Lines Matching refs:entry
76 camera_metadata_entry_t entry; in TEST() local
97 entry = deviceInfo.find(ANDROID_CONTROL_ZOOM_RATIO_RANGE); in TEST()
98 ASSERT_EQ(entry.count, 2U); in TEST()
99 ASSERT_EQ(entry.data.f[0], 1.0); in TEST()
100 ASSERT_EQ(entry.data.f[1], maxDigitalZoom); in TEST()
102 entry = deviceInfo.find(ANDROID_REQUEST_AVAILABLE_CHARACTERISTICS_KEYS); in TEST()
103 ASSERT_GT(entry.count, 0U); in TEST()
104 ASSERT_NE(std::find(entry.data.i32, entry.data.i32 + entry.count, in TEST()
105 ANDROID_CONTROL_ZOOM_RATIO_RANGE), entry.data.i32 + entry.count); in TEST()
107 entry = deviceInfo.find(ANDROID_REQUEST_AVAILABLE_REQUEST_KEYS); in TEST()
108 ASSERT_GT(entry.count, 0U); in TEST()
109 ASSERT_NE(std::find(entry.data.i32, entry.data.i32 + entry.count, in TEST()
110 ANDROID_CONTROL_ZOOM_RATIO), entry.data.i32 + entry.count); in TEST()
112 entry = deviceInfo.find(ANDROID_REQUEST_AVAILABLE_RESULT_KEYS); in TEST()
113 ASSERT_GT(entry.count, 0U); in TEST()
114 ASSERT_NE(std::find(entry.data.i32, entry.data.i32 + entry.count, in TEST()
115 ANDROID_CONTROL_ZOOM_RATIO), entry.data.i32 + entry.count); in TEST()
131 entry = deviceInfo.find(ANDROID_CONTROL_ZOOM_RATIO_RANGE); in TEST()
132 ASSERT_EQ(entry.count, 2U); in TEST()
133 ASSERT_EQ(entry.data.f[0], ratioRange[0]); in TEST()
134 ASSERT_EQ(entry.data.f[1], ratioRange[1]); in TEST()
140 entry = requestTemplate.find(ANDROID_CONTROL_ZOOM_RATIO); in TEST()
141 ASSERT_EQ(entry.count, 1U); in TEST()
142 ASSERT_EQ(entry.data.f[0], 1.0f); in TEST()
149 entry = requestTemplate.find(ANDROID_CONTROL_ZOOM_RATIO); in TEST()
150 ASSERT_EQ(entry.count, 1U); in TEST()
151 ASSERT_EQ(entry.data.f[0], customRatio); in TEST()
275 camera_metadata_entry_t entry; in subCropOverMaxDigitalZoomTest() local
281 entry = metadata.find(ANDROID_SCALER_CROP_REGION); in subCropOverMaxDigitalZoomTest()
282 ASSERT_EQ(entry.count, 4U); in subCropOverMaxDigitalZoomTest()
284 EXPECT_EQ(entry.data.i32[i], testDefaultCropSize[index][i]); in subCropOverMaxDigitalZoomTest()
290 entry = metadata.find(ANDROID_SCALER_CROP_REGION); in subCropOverMaxDigitalZoomTest()
291 ASSERT_EQ(entry.count, 4U); in subCropOverMaxDigitalZoomTest()
293 EXPECT_EQ(entry.data.i32[i], test2xCropRegion[index][i]); in subCropOverMaxDigitalZoomTest()
295 entry = metadata.find(ANDROID_CONTROL_ZOOM_RATIO); in subCropOverMaxDigitalZoomTest()
296 ASSERT_TRUE(entry.count == 0 || (entry.count == 1 && entry.data.f[0] == 1.0f)); in subCropOverMaxDigitalZoomTest()
315 camera_metadata_entry_t entry; in subCropOverZoomRangeTest() local
323 entry = metadata.find(ANDROID_SCALER_CROP_REGION); in subCropOverZoomRangeTest()
324 ASSERT_EQ(entry.count, 4U); in subCropOverZoomRangeTest()
326 EXPECT_LE(std::abs(entry.data.i32[i] - testDefaultCropSize[index][i]), in subCropOverZoomRangeTest()
329 entry = metadata.find(ANDROID_CONTROL_ZOOM_RATIO); in subCropOverZoomRangeTest()
330 EXPECT_NEAR(entry.data.f[0], 2.0f, kMaxAllowedRatioError); in subCropOverZoomRangeTest()
334 entry = metadata.find(ANDROID_CONTROL_ZOOM_RATIO); in subCropOverZoomRangeTest()
335 EXPECT_NEAR(entry.data.f[0], 1.0f, kMaxAllowedRatioError); in subCropOverZoomRangeTest()
336 entry = metadata.find(ANDROID_SCALER_CROP_REGION); in subCropOverZoomRangeTest()
337 ASSERT_EQ(entry.count, 4U); in subCropOverZoomRangeTest()
339 EXPECT_LE(std::abs(entry.data.i32[i] - test2xCropRegion[index][i]), kMaxAllowedPixelError); in subCropOverZoomRangeTest()
348 entry = metadata.find(ANDROID_SCALER_CROP_REGION); in subCropOverZoomRangeTest()
349 ASSERT_EQ(entry.count, 4U); in subCropOverZoomRangeTest()
351 EXPECT_EQ(entry.data.i32[i], testLetterBoxSize[index][i]); in subCropOverZoomRangeTest()
353 entry = metadata.find(ANDROID_CONTROL_ZOOM_RATIO); in subCropOverZoomRangeTest()
354 EXPECT_NEAR(entry.data.f[0], 1.0f, kMaxAllowedRatioError); in subCropOverZoomRangeTest()
358 entry = metadata.find(ANDROID_SCALER_CROP_REGION); in subCropOverZoomRangeTest()
359 ASSERT_EQ(entry.count, 4U); in subCropOverZoomRangeTest()
361 EXPECT_EQ(entry.data.i32[i], testLetterBoxSize[index][i]); in subCropOverZoomRangeTest()
363 entry = metadata.find(ANDROID_CONTROL_ZOOM_RATIO); in subCropOverZoomRangeTest()
364 EXPECT_NEAR(entry.data.f[0], 1.0f, kMaxAllowedRatioError); in subCropOverZoomRangeTest()
384 camera_metadata_entry_t entry; in subZoomOverMaxDigitalZoomTest() local
393 entry = metadata.find(ANDROID_SCALER_CROP_REGION); in subZoomOverMaxDigitalZoomTest()
394 ASSERT_EQ(entry.count, 4U); in subZoomOverMaxDigitalZoomTest()
402 EXPECT_LE(std::abs(entry.data.i32[i] - expectedCrop[i]), kMaxAllowedPixelError); in subZoomOverMaxDigitalZoomTest()
405 entry = metadata.find(ANDROID_CONTROL_ZOOM_RATIO); in subZoomOverMaxDigitalZoomTest()
406 if (entry.count == 1) { in subZoomOverMaxDigitalZoomTest()
407 EXPECT_NEAR(entry.data.f[0], 1.0f, kMaxAllowedRatioError); in subZoomOverMaxDigitalZoomTest()
428 camera_metadata_entry_t entry; in subZoomOverZoomRangeTest() local
436 entry = metadata.find(ANDROID_SCALER_CROP_REGION); in subZoomOverZoomRangeTest()
437 ASSERT_EQ(entry.count, 4U); in subZoomOverZoomRangeTest()
439 EXPECT_EQ(entry.data.i32[i], testDefaultCropSize[index][i]); in subZoomOverZoomRangeTest()
441 entry = metadata.find(ANDROID_CONTROL_ZOOM_RATIO); in subZoomOverZoomRangeTest()
442 ASSERT_EQ(entry.data.f[0], zoomRatio); in subZoomOverZoomRangeTest()
446 entry = metadata.find(ANDROID_SCALER_CROP_REGION); in subZoomOverZoomRangeTest()
447 ASSERT_EQ(entry.count, 4U); in subZoomOverZoomRangeTest()
449 EXPECT_EQ(entry.data.i32[i], testDefaultCropSize[index][i]); in subZoomOverZoomRangeTest()
451 entry = metadata.find(ANDROID_CONTROL_ZOOM_RATIO); in subZoomOverZoomRangeTest()
452 ASSERT_EQ(entry.data.f[0], zoomRatio); in subZoomOverZoomRangeTest()