본문 바로가기

Hello Android

run cts -m CtsCameraTestCases -t android.hardware.cts.CameraTest#testPreviewFpsRange

[CTS][Android 9.0]

run cts -m CtsCameraTestCases -t android.hardware.cts.CameraTest#testPreviewFpsRange 

testPreviewFpsRange junit.framework.AssertionFailedError

 

 

/media/pastime0/hellob/sources/pie/cts/cts/tests/camera/src/android/hardware/cts/CameraTest.java

1
2
3
4
5
6
7
8
9
10
11
        // Test if the list is properly sorted.
        for (int i = 0; i < fpsList.size() - 1; i++) {
            int minFps1 = fpsList.get(i)[Parameters.PREVIEW_FPS_MIN_INDEX];
            int maxFps1 = fpsList.get(i)[Parameters.PREVIEW_FPS_MAX_INDEX];
            int minFps2 = fpsList.get(i + 1)[Parameters.PREVIEW_FPS_MIN_INDEX];
            int maxFps2 = fpsList.get(i + 1)[Parameters.PREVIEW_FPS_MAX_INDEX];
 
            assertTrue(maxFps1 < maxFps2
                    || (maxFps1 == maxFps2 && minFps1 < minFps2));
        }
 

 

  

위 소스 코드의 assertTrue 에서 faill 발생

fps 배열을 정렬해 주어야 한다. 

 

mm-camera/mm-camera2/media-controller/mct/pipeline/mct_pipeline.c

mct_util_sort_fps_entries 함수를 이용하여 hal table 을 정렬

1
2
3
4
5
6
7
8
9
10
11
static boolean mct_pipeline_fill_dimensions_snapshot (
  mct_pipeline_t *pipeline,
  const int32_t snap_sensor_width, const int32_t snap_sensor_height )
{
/*
...
...
*/
  mct_util_sort_fps_entries(hal_data->fps_ranges_tbl, hal_data->fps_ranges_tbl_cnt);
 
}

 

 

 

 

 

 

 

 

 

 

'Hello Android' 카테고리의 다른 글

run cts -m CtsOsTestCases -t android.os.cts.ParcelTest#testMaliciousMapWrite  (0) 2019.11.06
hw_get_module  (0) 2017.03.17
안드로이드 원격조정 seven-square  (0) 2016.07.12
문자열 API  (0) 2015.11.03
spin_lock_irq 문제  (0) 2015.09.15