Lines Matching refs:EXPECT_EQ
33 #define EXPECT_NULL(x) EXPECT_EQ((void*)0, x)
46 EXPECT_EQ(OK, validate_camera_metadata_structure(m, NULL)); \
57 EXPECT_EQ((size_t)0, get_camera_metadata_entry_count(m)); in TEST()
58 EXPECT_EQ(entry_capacity, get_camera_metadata_entry_capacity(m)); in TEST()
59 EXPECT_EQ((size_t)0, get_camera_metadata_data_count(m)); in TEST()
60 EXPECT_EQ(data_capacity, get_camera_metadata_data_capacity(m)); in TEST()
71 EXPECT_EQ((size_t)0, get_camera_metadata_entry_count(m)); in TEST()
72 EXPECT_EQ((size_t)1, get_camera_metadata_entry_capacity(m)); in TEST()
73 EXPECT_EQ((size_t)0, get_camera_metadata_data_count(m)); in TEST()
74 EXPECT_EQ((size_t)0, get_camera_metadata_data_capacity(m)); in TEST()
88 EXPECT_EQ((size_t)0, get_camera_metadata_entry_count(copy)); in TEST()
89 EXPECT_EQ((size_t)0, get_camera_metadata_entry_capacity(copy)); in TEST()
90 EXPECT_EQ((size_t)0, get_camera_metadata_data_count(copy)); in TEST()
91 EXPECT_EQ((size_t)0, get_camera_metadata_data_capacity(copy)); in TEST()
103 EXPECT_EQ((size_t)0, get_camera_metadata_entry_count(m)); in TEST()
104 EXPECT_EQ((size_t)0, get_camera_metadata_entry_capacity(m)); in TEST()
105 EXPECT_EQ((size_t)0, get_camera_metadata_data_count(m)); in TEST()
106 EXPECT_EQ((size_t)0, get_camera_metadata_data_capacity(m)); in TEST()
127 EXPECT_EQ(buf, (uint8_t*)m); in TEST()
128 EXPECT_EQ((size_t)0, get_camera_metadata_entry_count(m)); in TEST()
129 EXPECT_EQ(entry_capacity, get_camera_metadata_entry_capacity(m)); in TEST()
130 EXPECT_EQ((size_t)0, get_camera_metadata_data_count(m)); in TEST()
131 EXPECT_EQ(data_capacity, get_camera_metadata_data_capacity(m)); in TEST()
133 EXPECT_EQ(OK, validate_camera_metadata_structure(m, &buf_size)); in TEST()
184 EXPECT_EQ((uint8_t*)m, buf); in TEST()
185 EXPECT_EQ((size_t)0, get_camera_metadata_entry_count(m)); in TEST()
186 EXPECT_EQ(entry_capacity, get_camera_metadata_entry_capacity(m)); in TEST()
187 EXPECT_EQ((size_t)0, get_camera_metadata_data_count(m)); in TEST()
188 EXPECT_EQ(data_capacity, get_camera_metadata_data_capacity(m)); in TEST()
189 EXPECT_EQ(buf + buf_size - extra_space, (uint8_t*)m + get_camera_metadata_size(m)); in TEST()
191 EXPECT_EQ(OK, validate_camera_metadata_structure(m, &buf_size)); in TEST()
203 EXPECT_EQ(calculate_camera_metadata_size(entry_capacity, data_capacity), in TEST()
206 EXPECT_EQ(calculate_camera_metadata_size(0,0), in TEST()
219 EXPECT_EQ(OK, validate_camera_metadata_structure(m, NULL)); in TEST()
231 EXPECT_EQ(OK, result); in TEST()
236 EXPECT_EQ(OK, validate_camera_metadata_structure(m, NULL)); in TEST()
244 EXPECT_EQ(OK, result); in TEST()
249 EXPECT_EQ(OK, validate_camera_metadata_structure(m, NULL)); in TEST()
257 EXPECT_EQ(OK, result); in TEST()
262 EXPECT_EQ(OK, validate_camera_metadata_structure(m, NULL)); in TEST()
270 EXPECT_EQ(OK, result); in TEST()
276 EXPECT_EQ(OK, validate_camera_metadata_structure(m, NULL)); in TEST()
289 EXPECT_EQ(OK, result); in TEST()
295 EXPECT_EQ(OK, validate_camera_metadata_structure(m, NULL)); in TEST()
304 EXPECT_EQ(OK, result); in TEST()
305 EXPECT_EQ(index, entry.index); in TEST()
306 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, entry.tag); in TEST()
307 EXPECT_EQ(TYPE_INT64, entry.type); in TEST()
308 EXPECT_EQ((size_t)1, entry.count); in TEST()
309 EXPECT_EQ(exposure_time, *entry.data.i64); in TEST()
314 EXPECT_EQ(OK, result); in TEST()
315 EXPECT_EQ(index, entry.index); in TEST()
316 EXPECT_EQ(ANDROID_SENSOR_SENSITIVITY, entry.tag); in TEST()
317 EXPECT_EQ(TYPE_INT32, entry.type); in TEST()
318 EXPECT_EQ((size_t)1, entry.count); in TEST()
319 EXPECT_EQ(sensitivity, *entry.data.i32); in TEST()
324 EXPECT_EQ(OK, result); in TEST()
325 EXPECT_EQ(index, entry.index); in TEST()
326 EXPECT_EQ(ANDROID_LENS_FOCUS_DISTANCE, entry.tag); in TEST()
327 EXPECT_EQ(TYPE_FLOAT, entry.type); in TEST()
328 EXPECT_EQ((size_t)1, entry.count); in TEST()
329 EXPECT_EQ(focusDistance, *entry.data.f); in TEST()
334 EXPECT_EQ(OK, result); in TEST()
335 EXPECT_EQ(index, entry.index); in TEST()
336 EXPECT_EQ(ANDROID_COLOR_CORRECTION_GAINS, entry.tag); in TEST()
337 EXPECT_EQ(TYPE_FLOAT, entry.type); in TEST()
338 EXPECT_EQ(ARRAY_SIZE(colorCorrectionGains), entry.count); in TEST()
340 EXPECT_EQ(colorCorrectionGains[i], entry.data.f[i]); in TEST()
346 EXPECT_EQ(OK, result); in TEST()
347 EXPECT_EQ(index, entry.index); in TEST()
348 EXPECT_EQ(ANDROID_COLOR_CORRECTION_TRANSFORM, entry.tag); in TEST()
349 EXPECT_EQ(TYPE_RATIONAL, entry.type); in TEST()
350 EXPECT_EQ(ARRAY_SIZE(colorTransform), entry.count); in TEST()
352 EXPECT_EQ(colorTransform[i].numerator, entry.data.r[i].numerator); in TEST()
353 EXPECT_EQ(colorTransform[i].denominator, entry.data.r[i].denominator); in TEST()
357 EXPECT_EQ(calculate_camera_metadata_size(entry_capacity, data_capacity), in TEST()
360 EXPECT_EQ(calculate_camera_metadata_size(entries_used, data_used), in TEST()
383 EXPECT_EQ(OK, result); in add_test_metadata()
388 EXPECT_EQ(data_used, get_camera_metadata_data_count(m)); in add_test_metadata()
389 EXPECT_EQ(entries_used, get_camera_metadata_entry_count(m)); in add_test_metadata()
409 EXPECT_EQ(ERROR, result); in TEST()
416 EXPECT_EQ(OK, result); in TEST()
417 EXPECT_EQ(i, entry.index); in TEST()
418 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, entry.tag); in TEST()
419 EXPECT_EQ(TYPE_INT64, entry.type); in TEST()
420 EXPECT_EQ((size_t)1, entry.count); in TEST()
421 EXPECT_EQ(exposure_time, *entry.data.i64); in TEST()
429 EXPECT_EQ(ERROR, result); in TEST()
430 EXPECT_EQ((uint32_t)1234, entry.tag); in TEST()
431 EXPECT_EQ((uint8_t)56, entry.type); in TEST()
432 EXPECT_EQ(NULL, entry.data.u8); in TEST()
433 EXPECT_EQ((size_t)7890, entry.count); in TEST()
457 EXPECT_EQ(ERROR, result); in TEST()
479 EXPECT_EQ(buf, (uint8_t*)m2); in TEST()
480 EXPECT_EQ(get_camera_metadata_entry_count(m), in TEST()
482 EXPECT_EQ(get_camera_metadata_data_count(m), in TEST()
484 EXPECT_EQ(get_camera_metadata_entry_capacity(m2), in TEST()
486 EXPECT_EQ(get_camera_metadata_data_capacity(m2), in TEST()
493 EXPECT_EQ(OK, result); in TEST()
495 EXPECT_EQ(OK, result); in TEST()
496 EXPECT_EQ(e1.index, e2.index); in TEST()
497 EXPECT_EQ(e1.tag, e2.tag); in TEST()
498 EXPECT_EQ(e1.type, e2.type); in TEST()
499 EXPECT_EQ(e1.count, e2.count); in TEST()
503 EXPECT_EQ(e1.data.u8[j], e2.data.u8[j]); in TEST()
507 EXPECT_EQ(OK, validate_camera_metadata_structure(m2, &buf_size)); in TEST()
533 EXPECT_EQ(buf, (uint8_t*)m2); in TEST()
534 EXPECT_EQ(get_camera_metadata_entry_count(m), in TEST()
536 EXPECT_EQ(get_camera_metadata_data_count(m), in TEST()
538 EXPECT_EQ(get_camera_metadata_entry_capacity(m2), in TEST()
540 EXPECT_EQ(get_camera_metadata_data_capacity(m2), in TEST()
542 EXPECT_EQ(buf + buf_size - extra_space, in TEST()
550 EXPECT_EQ(OK, result); in TEST()
551 EXPECT_EQ(i, e1.index); in TEST()
553 EXPECT_EQ(OK, result); in TEST()
554 EXPECT_EQ(e1.index, e2.index); in TEST()
555 EXPECT_EQ(e1.tag, e2.tag); in TEST()
556 EXPECT_EQ(e1.type, e2.type); in TEST()
557 EXPECT_EQ(e1.count, e2.count); in TEST()
561 EXPECT_EQ(e1.data.u8[j], e2.data.u8[j]); in TEST()
565 EXPECT_EQ(OK, validate_camera_metadata_structure(m2, &buf_size)); in TEST()
614 EXPECT_EQ(OK, result); in TEST()
616 EXPECT_EQ(get_camera_metadata_entry_count(m), in TEST()
618 EXPECT_EQ(get_camera_metadata_data_count(m), in TEST()
620 EXPECT_EQ(entry_capacity*2, get_camera_metadata_entry_capacity(m2)); in TEST()
621 EXPECT_EQ(data_capacity*2, get_camera_metadata_data_capacity(m2)); in TEST()
627 EXPECT_EQ(OK, result); in TEST()
628 EXPECT_EQ(i, e1.index); in TEST()
630 EXPECT_EQ(OK, result); in TEST()
631 EXPECT_EQ(e1.index, e2.index); in TEST()
632 EXPECT_EQ(e1.tag, e2.tag); in TEST()
633 EXPECT_EQ(e1.type, e2.type); in TEST()
634 EXPECT_EQ(e1.count, e2.count); in TEST()
638 EXPECT_EQ(e1.data.u8[j], e2.data.u8[j]); in TEST()
644 EXPECT_EQ(OK, result); in TEST()
646 EXPECT_EQ(get_camera_metadata_entry_count(m)*2, in TEST()
648 EXPECT_EQ(get_camera_metadata_data_count(m)*2, in TEST()
650 EXPECT_EQ(entry_capacity*2, get_camera_metadata_entry_capacity(m2)); in TEST()
651 EXPECT_EQ(data_capacity*2, get_camera_metadata_data_capacity(m2)); in TEST()
659 EXPECT_EQ(OK, result); in TEST()
660 EXPECT_EQ(i % entry_capacity, e1.index); in TEST()
663 EXPECT_EQ(OK, result); in TEST()
664 EXPECT_EQ(i, e2.index); in TEST()
665 EXPECT_EQ(e1.tag, e2.tag); in TEST()
666 EXPECT_EQ(e1.type, e2.type); in TEST()
667 EXPECT_EQ(e1.count, e2.count); in TEST()
671 EXPECT_EQ(e1.data.u8[j], e2.data.u8[j]); in TEST()
697 EXPECT_EQ(ERROR, result); in TEST()
698 EXPECT_EQ((size_t)0, get_camera_metadata_entry_count(m2)); in TEST()
699 EXPECT_EQ((size_t)0, get_camera_metadata_data_count(m2)); in TEST()
724 EXPECT_EQ(OK, result); in TEST()
726 EXPECT_EQ(get_camera_metadata_entry_count(m), in TEST()
728 EXPECT_EQ(get_camera_metadata_data_count(m), in TEST()
730 EXPECT_EQ(entry_capacity2, get_camera_metadata_entry_capacity(m2)); in TEST()
731 EXPECT_EQ(data_capacity2, get_camera_metadata_data_capacity(m2)); in TEST()
738 EXPECT_EQ(OK, result); in TEST()
739 EXPECT_EQ(i, e1.index); in TEST()
741 EXPECT_EQ(OK, result); in TEST()
742 EXPECT_EQ(e1.index, e2.index); in TEST()
743 EXPECT_EQ(e1.tag, e2.tag); in TEST()
744 EXPECT_EQ(e1.type, e2.type); in TEST()
745 EXPECT_EQ(e1.count, e2.count); in TEST()
749 EXPECT_EQ(e1.data.u8[j], e2.data.u8[j]); in TEST()
755 EXPECT_EQ(ERROR, result); in TEST()
756 EXPECT_EQ(entry_capacity, get_camera_metadata_entry_count(m2)); in TEST()
757 EXPECT_EQ(get_camera_metadata_data_count(m), in TEST()
759 EXPECT_EQ(entry_capacity2, get_camera_metadata_entry_capacity(m2)); in TEST()
760 EXPECT_EQ(data_capacity2, get_camera_metadata_data_capacity(m2)); in TEST()
768 EXPECT_EQ(OK, result); in TEST()
769 EXPECT_EQ(i % entry_capacity, e1.index); in TEST()
771 EXPECT_EQ(OK, result); in TEST()
772 EXPECT_EQ(i, e2.index); in TEST()
773 EXPECT_EQ(e1.tag, e2.tag); in TEST()
774 EXPECT_EQ(e1.type, e2.type); in TEST()
775 EXPECT_EQ(e1.count, e2.count); in TEST()
779 EXPECT_EQ(e1.data.u8[j], e2.data.u8[j]); in TEST()
799 EXPECT_EQ(ERROR, result); in TEST()
800 EXPECT_EQ(OK, validate_camera_metadata_structure(m, NULL)); in TEST()
805 EXPECT_EQ(OK, result); in TEST()
806 EXPECT_EQ(OK, validate_camera_metadata_structure(m, NULL)); in TEST()
810 EXPECT_EQ(-1, get_camera_metadata_tag_type(FAKEVENDOR_SENSOR_SUPERMODE)); in TEST()
817 EXPECT_EQ(OK, result); in TEST()
818 EXPECT_EQ(OK, validate_camera_metadata_structure(m, NULL)); in TEST()
823 EXPECT_EQ(OK, result); in TEST()
824 EXPECT_EQ(OK, validate_camera_metadata_structure(m, NULL)); in TEST()
829 EXPECT_EQ(ERROR, result); in TEST()
830 EXPECT_EQ(OK, validate_camera_metadata_structure(m, NULL)); in TEST()
836 EXPECT_EQ(TYPE_BYTE, in TEST()
842 EXPECT_EQ(-1, get_camera_metadata_tag_type(FAKEVENDOR_SCALER_END)); in TEST()
846 EXPECT_EQ(OK, validate_camera_metadata_structure(m, NULL)); in TEST()
851 EXPECT_EQ(ERROR, result); in TEST()
852 EXPECT_EQ(OK, validate_camera_metadata_structure(m, NULL)); in TEST()
857 EXPECT_EQ(OK, result); in TEST()
858 EXPECT_EQ(OK, validate_camera_metadata_structure(m, NULL)); in TEST()
862 EXPECT_EQ(-1, get_camera_metadata_tag_type(FAKEVENDOR_SENSOR_SUPERMODE)); in TEST()
867 EXPECT_EQ(OK, find_camera_metadata_ro_entry(m, in TEST()
870 EXPECT_EQ(OK, delete_camera_metadata_entry(m, entry.index)); in TEST()
980 EXPECT_EQ(OK, result); in TEST()
986 EXPECT_EQ(OK, result); in TEST()
992 EXPECT_EQ(OK, result); in TEST()
998 EXPECT_EQ(OK, result); in TEST()
1005 EXPECT_EQ(OK, result); in TEST()
1006 EXPECT_EQ(ANDROID_LENS_FOCUS_DISTANCE, entry.tag); in TEST()
1007 EXPECT_EQ((size_t)1, entry.index); in TEST()
1008 EXPECT_EQ(TYPE_FLOAT, entry.type); in TEST()
1009 EXPECT_EQ((size_t)1, entry.count); in TEST()
1010 EXPECT_EQ(focus_distance, *entry.data.f); in TEST()
1015 EXPECT_EQ(NOT_FOUND, result); in TEST()
1016 EXPECT_EQ((size_t)1, entry.index); in TEST()
1017 EXPECT_EQ(ANDROID_LENS_FOCUS_DISTANCE, entry.tag); in TEST()
1018 EXPECT_EQ(TYPE_FLOAT, entry.type); in TEST()
1019 EXPECT_EQ((size_t)1, entry.count); in TEST()
1020 EXPECT_EQ(focus_distance, *entry.data.f); in TEST()
1029 EXPECT_EQ(OK, result); in TEST()
1054 EXPECT_EQ(OK, result); in TEST()
1055 EXPECT_EQ(lensFocusIndex, entry.index); in TEST()
1056 EXPECT_EQ(ANDROID_LENS_FOCUS_DISTANCE, entry.tag); in TEST()
1057 EXPECT_EQ(TYPE_FLOAT, entry.type); in TEST()
1058 EXPECT_EQ((size_t)1, (size_t)entry.count); in TEST()
1059 EXPECT_EQ(focus_distance, *entry.data.f); in TEST()
1064 EXPECT_EQ(NOT_FOUND, result); in TEST()
1065 EXPECT_EQ(lensFocusIndex, entry.index); in TEST()
1066 EXPECT_EQ(ANDROID_LENS_FOCUS_DISTANCE, entry.tag); in TEST()
1067 EXPECT_EQ(TYPE_FLOAT, entry.type); in TEST()
1068 EXPECT_EQ((size_t)1, entry.count); in TEST()
1069 EXPECT_EQ(focus_distance, *entry.data.f); in TEST()
1092 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m)); in TEST()
1093 EXPECT_EQ(num_data, get_camera_metadata_data_count(m)); in TEST()
1096 EXPECT_EQ(OK, result); in TEST()
1100 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m)); in TEST()
1101 EXPECT_EQ(entry_capacity, get_camera_metadata_entry_capacity(m)); in TEST()
1102 EXPECT_EQ(num_data, get_camera_metadata_data_count(m)); in TEST()
1103 EXPECT_EQ(data_capacity, get_camera_metadata_data_capacity(m)); in TEST()
1106 EXPECT_EQ(ERROR, result); in TEST()
1108 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m)); in TEST()
1109 EXPECT_EQ(entry_capacity, get_camera_metadata_entry_capacity(m)); in TEST()
1110 EXPECT_EQ(num_data, get_camera_metadata_data_count(m)); in TEST()
1111 EXPECT_EQ(data_capacity, get_camera_metadata_data_capacity(m)); in TEST()
1116 EXPECT_EQ(OK, result); in TEST()
1117 EXPECT_EQ(i, e.index); in TEST()
1118 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, e.tag); in TEST()
1119 EXPECT_EQ(TYPE_INT64, e.type); in TEST()
1121 EXPECT_EQ(exposureTime, *e.data.i64); in TEST()
1130 EXPECT_EQ(OK, result); in TEST()
1133 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m)); in TEST()
1134 EXPECT_EQ(entry_capacity, get_camera_metadata_entry_capacity(m)); in TEST()
1135 EXPECT_EQ(num_data, get_camera_metadata_data_count(m)); in TEST()
1136 EXPECT_EQ(data_capacity, get_camera_metadata_data_capacity(m)); in TEST()
1140 EXPECT_EQ(OK, result); in TEST()
1142 EXPECT_EQ((size_t)4, e.index); in TEST()
1143 EXPECT_EQ(ANDROID_REQUEST_FRAME_COUNT, e.tag); in TEST()
1144 EXPECT_EQ(TYPE_INT32, e.type); in TEST()
1145 EXPECT_EQ((size_t)1, e.count); in TEST()
1146 EXPECT_EQ(frameCount, *e.data.i32); in TEST()
1149 EXPECT_EQ(OK, result); in TEST()
1152 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m)); in TEST()
1153 EXPECT_EQ(entry_capacity, get_camera_metadata_entry_capacity(m)); in TEST()
1154 EXPECT_EQ(num_data, get_camera_metadata_data_count(m)); in TEST()
1155 EXPECT_EQ(data_capacity, get_camera_metadata_data_capacity(m)); in TEST()
1158 EXPECT_EQ(ERROR, result); in TEST()
1161 EXPECT_EQ(ERROR, result); in TEST()
1163 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m)); in TEST()
1164 EXPECT_EQ(entry_capacity, get_camera_metadata_entry_capacity(m)); in TEST()
1165 EXPECT_EQ(num_data, get_camera_metadata_data_count(m)); in TEST()
1166 EXPECT_EQ(data_capacity, get_camera_metadata_data_capacity(m)); in TEST()
1170 EXPECT_EQ(OK, result); in TEST()
1177 EXPECT_EQ(OK, result); in TEST()
1178 EXPECT_EQ(i, e2.index); in TEST()
1179 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, e2.tag); in TEST()
1180 EXPECT_EQ(TYPE_INT64, e2.type); in TEST()
1182 EXPECT_EQ(exposureTime, *e2.data.i64); in TEST()
1191 EXPECT_EQ(OK, result); in TEST()
1194 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m)); in TEST()
1195 EXPECT_EQ(entry_capacity, get_camera_metadata_entry_capacity(m)); in TEST()
1196 EXPECT_EQ(num_data, get_camera_metadata_data_count(m)); in TEST()
1197 EXPECT_EQ(data_capacity, get_camera_metadata_data_capacity(m)); in TEST()
1200 EXPECT_EQ(OK, result); in TEST()
1204 EXPECT_EQ(OK, result); in TEST()
1205 EXPECT_EQ((size_t)0, e.index); in TEST()
1206 EXPECT_EQ(ANDROID_REQUEST_FRAME_COUNT, e.tag); in TEST()
1207 EXPECT_EQ(TYPE_INT32, e.type); in TEST()
1208 EXPECT_EQ((size_t)1, e.count); in TEST()
1209 EXPECT_EQ(frameCount, *e.data.i32); in TEST()
1212 EXPECT_EQ(OK, result); in TEST()
1215 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m)); in TEST()
1216 EXPECT_EQ(entry_capacity, get_camera_metadata_entry_capacity(m)); in TEST()
1217 EXPECT_EQ(num_data, get_camera_metadata_data_count(m)); in TEST()
1218 EXPECT_EQ(data_capacity, get_camera_metadata_data_capacity(m)); in TEST()
1223 EXPECT_EQ(OK, result); in TEST()
1224 EXPECT_EQ(i, e2.index); in TEST()
1225 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, e2.tag); in TEST()
1226 EXPECT_EQ(TYPE_INT64, e2.type); in TEST()
1228 EXPECT_EQ(exposureTime, *e2.data.i64); in TEST()
1247 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m)); in TEST()
1248 EXPECT_EQ(num_data, get_camera_metadata_data_count(m)); in TEST()
1256 EXPECT_EQ(OK, result); in TEST()
1258 EXPECT_EQ((size_t)0, e.index); in TEST()
1259 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, e.tag); in TEST()
1260 EXPECT_EQ(TYPE_INT64, e.type); in TEST()
1261 EXPECT_EQ((size_t)1, e.count); in TEST()
1262 EXPECT_EQ(newExposureTime, *e.data.i64); in TEST()
1268 EXPECT_EQ((size_t)0, e.index); in TEST()
1269 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, e.tag); in TEST()
1270 EXPECT_EQ(TYPE_INT64, e.type); in TEST()
1271 EXPECT_EQ((size_t)1, e.count); in TEST()
1272 EXPECT_EQ(newExposureTime, *e.data.i64); in TEST()
1277 EXPECT_EQ(OK, result); in TEST()
1278 EXPECT_EQ(i, e2.index); in TEST()
1279 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, e2.tag); in TEST()
1280 EXPECT_EQ(TYPE_INT64, e2.type); in TEST()
1282 EXPECT_EQ(exposureTime, *e2.data.i64); in TEST()
1289 EXPECT_EQ(OK, result); in TEST()
1292 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m)); in TEST()
1293 EXPECT_EQ(num_data, get_camera_metadata_data_count(m)); in TEST()
1295 EXPECT_EQ((size_t)0, e.index); in TEST()
1296 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, e.tag); in TEST()
1297 EXPECT_EQ(TYPE_INT64, e.type); in TEST()
1298 EXPECT_EQ((size_t)2, e.count); in TEST()
1299 EXPECT_EQ(newExposures[0], e.data.i64[0]); in TEST()
1300 EXPECT_EQ(newExposures[1], e.data.i64[1]); in TEST()
1306 EXPECT_EQ((size_t)0, e.index); in TEST()
1307 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, e.tag); in TEST()
1308 EXPECT_EQ(TYPE_INT64, e.type); in TEST()
1309 EXPECT_EQ((size_t)2, e.count); in TEST()
1310 EXPECT_EQ(newExposures[0], e.data.i64[0]); in TEST()
1311 EXPECT_EQ(newExposures[1], e.data.i64[1]); in TEST()
1316 EXPECT_EQ(OK, result); in TEST()
1317 EXPECT_EQ(i, e2.index); in TEST()
1318 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, e2.tag); in TEST()
1319 EXPECT_EQ(TYPE_INT64, e2.type); in TEST()
1321 EXPECT_EQ(exposureTime, *e2.data.i64); in TEST()
1328 EXPECT_EQ(OK, result); in TEST()
1332 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m)); in TEST()
1333 EXPECT_EQ(num_data, get_camera_metadata_data_count(m)); in TEST()
1335 EXPECT_EQ((size_t)0, e.index); in TEST()
1336 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, e.tag); in TEST()
1337 EXPECT_EQ(TYPE_INT64, e.type); in TEST()
1338 EXPECT_EQ((size_t)1, e.count); in TEST()
1339 EXPECT_EQ(newExposureTime, *e.data.i64); in TEST()
1345 EXPECT_EQ((size_t)0, e.index); in TEST()
1346 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, e.tag); in TEST()
1347 EXPECT_EQ(TYPE_INT64, e.type); in TEST()
1348 EXPECT_EQ((size_t)1, e.count); in TEST()
1349 EXPECT_EQ(newExposureTime, *e.data.i64); in TEST()
1354 EXPECT_EQ(OK, result); in TEST()
1355 EXPECT_EQ(i, e2.index); in TEST()
1356 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, e2.tag); in TEST()
1357 EXPECT_EQ(TYPE_INT64, e2.type); in TEST()
1359 EXPECT_EQ(exposureTime, *e2.data.i64); in TEST()
1368 EXPECT_EQ(OK, result); in TEST()
1371 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m)); in TEST()
1372 EXPECT_EQ(entry_capacity, get_camera_metadata_entry_capacity(m)); in TEST()
1373 EXPECT_EQ(num_data, get_camera_metadata_data_count(m)); in TEST()
1374 EXPECT_EQ(data_capacity, get_camera_metadata_data_capacity(m)); in TEST()
1377 EXPECT_EQ(OK, result); in TEST()
1381 EXPECT_EQ(OK, result); in TEST()
1382 EXPECT_EQ((size_t)0, e.index); in TEST()
1383 EXPECT_EQ(ANDROID_REQUEST_FRAME_COUNT, e.tag); in TEST()
1384 EXPECT_EQ(TYPE_INT32, e.type); in TEST()
1385 EXPECT_EQ((size_t)1, e.count); in TEST()
1386 EXPECT_EQ(frameCount, *e.data.i32); in TEST()
1392 EXPECT_EQ(OK, result); in TEST()
1393 EXPECT_EQ((size_t)0, e.index); in TEST()
1394 EXPECT_EQ(ANDROID_REQUEST_FRAME_COUNT, e.tag); in TEST()
1395 EXPECT_EQ(TYPE_INT32, e.type); in TEST()
1396 EXPECT_EQ((size_t)1, e.count); in TEST()
1397 EXPECT_EQ(newFrameCount, *e.data.i32); in TEST()
1402 EXPECT_EQ(OK, result); in TEST()
1403 EXPECT_EQ((size_t)0, e.index); in TEST()
1404 EXPECT_EQ(ANDROID_REQUEST_FRAME_COUNT, e.tag); in TEST()
1405 EXPECT_EQ(TYPE_INT32, e.type); in TEST()
1406 EXPECT_EQ((size_t)1, e.count); in TEST()
1407 EXPECT_EQ(newFrameCount, *e.data.i32); in TEST()
1412 EXPECT_EQ(OK, result); in TEST()
1413 EXPECT_EQ(i, e2.index); in TEST()
1414 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, e2.tag); in TEST()
1415 EXPECT_EQ(TYPE_INT64, e2.type); in TEST()
1417 EXPECT_EQ(exposureTime, *e2.data.i64); in TEST()
1427 EXPECT_EQ(OK, result); in TEST()
1432 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m)); in TEST()
1433 EXPECT_EQ(num_data, get_camera_metadata_data_count(m)); in TEST()
1435 EXPECT_EQ((size_t)0, e.index); in TEST()
1436 EXPECT_EQ(ANDROID_REQUEST_FRAME_COUNT, e.tag); in TEST()
1437 EXPECT_EQ(TYPE_INT32, e.type); in TEST()
1438 EXPECT_EQ((size_t)4, e.count); in TEST()
1439 EXPECT_EQ(newFrameCounts[0], e.data.i32[0]); in TEST()
1440 EXPECT_EQ(newFrameCounts[1], e.data.i32[1]); in TEST()
1441 EXPECT_EQ(newFrameCounts[2], e.data.i32[2]); in TEST()
1442 EXPECT_EQ(newFrameCounts[3], e.data.i32[3]); in TEST()
1449 EXPECT_EQ(OK, result); in TEST()
1450 EXPECT_EQ((size_t)0, e.index); in TEST()
1451 EXPECT_EQ(ANDROID_REQUEST_FRAME_COUNT, e.tag); in TEST()
1452 EXPECT_EQ(TYPE_INT32, e.type); in TEST()
1453 EXPECT_EQ((size_t)4, e.count); in TEST()
1454 EXPECT_EQ(newFrameCounts[0], e.data.i32[0]); in TEST()
1455 EXPECT_EQ(newFrameCounts[1], e.data.i32[1]); in TEST()
1456 EXPECT_EQ(newFrameCounts[2], e.data.i32[2]); in TEST()
1457 EXPECT_EQ(newFrameCounts[3], e.data.i32[3]); in TEST()
1462 EXPECT_EQ(OK, result); in TEST()
1463 EXPECT_EQ(i, e2.index); in TEST()
1464 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, e2.tag); in TEST()
1465 EXPECT_EQ(TYPE_INT64, e2.type); in TEST()
1467 EXPECT_EQ(exposureTime, *e2.data.i64); in TEST()
1474 EXPECT_EQ(OK, result); in TEST()
1478 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m)); in TEST()
1479 EXPECT_EQ(num_data, get_camera_metadata_data_count(m)); in TEST()
1481 EXPECT_EQ((size_t)0, e.index); in TEST()
1482 EXPECT_EQ(ANDROID_REQUEST_FRAME_COUNT, e.tag); in TEST()
1483 EXPECT_EQ(TYPE_INT32, e.type); in TEST()
1484 EXPECT_EQ((size_t)1, e.count); in TEST()
1485 EXPECT_EQ(newFrameCount, *e.data.i32); in TEST()
1490 EXPECT_EQ(OK, result); in TEST()
1491 EXPECT_EQ((size_t)0, e.index); in TEST()
1492 EXPECT_EQ(ANDROID_REQUEST_FRAME_COUNT, e.tag); in TEST()
1493 EXPECT_EQ(TYPE_INT32, e.type); in TEST()
1494 EXPECT_EQ((size_t)1, e.count); in TEST()
1495 EXPECT_EQ(newFrameCount, *e.data.i32); in TEST()
1500 EXPECT_EQ(OK, result); in TEST()
1501 EXPECT_EQ(i, e2.index); in TEST()
1502 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, e2.tag); in TEST()
1503 EXPECT_EQ(TYPE_INT64, e2.type); in TEST()
1505 EXPECT_EQ(exposureTime, *e2.data.i64); in TEST()
1512 EXPECT_EQ(OK, result); in TEST()
1516 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m)); in TEST()
1517 EXPECT_EQ(num_data, get_camera_metadata_data_count(m)); in TEST()
1519 EXPECT_EQ((size_t)1, e.index); in TEST()
1520 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, e.tag); in TEST()
1521 EXPECT_EQ(TYPE_INT64, e.type); in TEST()
1522 EXPECT_EQ((size_t)2, e.count); in TEST()
1523 EXPECT_EQ(newExposures[0], e.data.i64[0]); in TEST()
1524 EXPECT_EQ(newExposures[1], e.data.i64[1]); in TEST()
1532 EXPECT_EQ(OK, result); in TEST()
1537 EXPECT_EQ(OK, result); in TEST()
1538 EXPECT_EQ((size_t)0, e.index); in TEST()
1539 EXPECT_EQ(ANDROID_REQUEST_FRAME_COUNT, e.tag); in TEST()
1540 EXPECT_EQ(TYPE_INT32, e.type); in TEST()
1541 EXPECT_EQ((size_t)1, e.count); in TEST()
1542 EXPECT_EQ(newFrameCount, *e.data.i32); in TEST()
1548 EXPECT_EQ(ERROR, result); in TEST()
1550 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m2)); in TEST()
1551 EXPECT_EQ(num_data, get_camera_metadata_data_count(m2)); in TEST()
1553 EXPECT_EQ((size_t)0, e.index); in TEST()
1554 EXPECT_EQ(ANDROID_REQUEST_FRAME_COUNT, e.tag); in TEST()
1555 EXPECT_EQ(TYPE_INT32, e.type); in TEST()
1556 EXPECT_EQ((size_t)1, e.count); in TEST()
1557 EXPECT_EQ(newFrameCount, *e.data.i32); in TEST()
1564 EXPECT_EQ(OK, result); in TEST()
1566 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m2)); in TEST()
1567 EXPECT_EQ(num_data, get_camera_metadata_data_count(m2)); in TEST()
1569 EXPECT_EQ((size_t)0, e.index); in TEST()
1570 EXPECT_EQ(ANDROID_REQUEST_FRAME_COUNT, e.tag); in TEST()
1571 EXPECT_EQ(TYPE_INT32, e.type); in TEST()
1572 EXPECT_EQ((size_t)1, e.count); in TEST()
1573 EXPECT_EQ(newFrameCount, *e.data.i32); in TEST()
1578 EXPECT_EQ(OK, result); in TEST()
1579 EXPECT_EQ((size_t)0, e.index); in TEST()
1580 EXPECT_EQ(ANDROID_REQUEST_FRAME_COUNT, e.tag); in TEST()
1581 EXPECT_EQ(TYPE_INT32, e.type); in TEST()
1582 EXPECT_EQ((size_t)1, e.count); in TEST()
1583 EXPECT_EQ(newFrameCount, *e.data.i32); in TEST()
1586 EXPECT_EQ((size_t)1, e.index); in TEST()
1587 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, e.tag); in TEST()
1588 EXPECT_EQ(TYPE_INT64, e.type); in TEST()
1589 EXPECT_EQ((size_t)2, e.count); in TEST()
1590 EXPECT_EQ(newExposures[0], e.data.i64[0]); in TEST()
1591 EXPECT_EQ(newExposures[1], e.data.i64[1]); in TEST()
1596 EXPECT_EQ(OK, result); in TEST()
1597 EXPECT_EQ(i, e2.index); in TEST()
1598 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, e2.tag); in TEST()
1599 EXPECT_EQ(TYPE_INT64, e2.type); in TEST()
1601 EXPECT_EQ(exposureTime, *e2.data.i64); in TEST()
1610 EXPECT_EQ(OK, result); in TEST()
1612 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m2)); in TEST()
1613 EXPECT_EQ(num_data, get_camera_metadata_data_count(m2)); in TEST()
1615 EXPECT_EQ((size_t)1, e.index); in TEST()
1616 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, e.tag); in TEST()
1617 EXPECT_EQ(TYPE_INT64, e.type); in TEST()
1618 EXPECT_EQ((size_t)2, e.count); in TEST()
1619 EXPECT_EQ(newExposures[0], e.data.i64[0]); in TEST()
1620 EXPECT_EQ(newExposures[1], e.data.i64[1]); in TEST()
1625 EXPECT_EQ(OK, result); in TEST()
1626 EXPECT_EQ((size_t)0, e.index); in TEST()
1627 EXPECT_EQ(ANDROID_REQUEST_FRAME_COUNT, e.tag); in TEST()
1628 EXPECT_EQ(TYPE_INT32, e.type); in TEST()
1629 EXPECT_EQ((size_t)1, e.count); in TEST()
1630 EXPECT_EQ(newFrameCount, *e.data.i32); in TEST()
1635 EXPECT_EQ(OK, result); in TEST()
1636 EXPECT_EQ(i, e2.index); in TEST()
1637 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, e2.tag); in TEST()
1638 EXPECT_EQ(TYPE_INT64, e2.type); in TEST()
1640 EXPECT_EQ(exposureTime, *e2.data.i64); in TEST()
1647 EXPECT_EQ(OK, result); in TEST()
1652 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m2)); in TEST()
1653 EXPECT_EQ(num_data, get_camera_metadata_data_count(m2)); in TEST()
1655 EXPECT_EQ((size_t)1, e.index); in TEST()
1656 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, e.tag); in TEST()
1657 EXPECT_EQ(TYPE_INT64, e.type); in TEST()
1658 EXPECT_EQ((size_t)1, e.count); in TEST()
1659 EXPECT_EQ(newExposureTime, e.data.i64[0]); in TEST()
1664 EXPECT_EQ(OK, result); in TEST()
1665 EXPECT_EQ((size_t)0, e.index); in TEST()
1666 EXPECT_EQ(ANDROID_REQUEST_FRAME_COUNT, e.tag); in TEST()
1667 EXPECT_EQ(TYPE_INT32, e.type); in TEST()
1668 EXPECT_EQ((size_t)1, e.count); in TEST()
1669 EXPECT_EQ(newFrameCount, *e.data.i32); in TEST()
1674 EXPECT_EQ(OK, result); in TEST()
1675 EXPECT_EQ(i, e2.index); in TEST()
1676 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, e2.tag); in TEST()
1677 EXPECT_EQ(TYPE_INT64, e2.type); in TEST()
1679 EXPECT_EQ(exposureTime, *e2.data.i64); in TEST()
1704 EXPECT_EQ(get_camera_metadata_compact_size(m), in TEST()
1708 EXPECT_EQ(get_camera_metadata_entry_capacity(m), in TEST()
1710 EXPECT_EQ(get_camera_metadata_data_count(m), in TEST()
1712 EXPECT_EQ(get_camera_metadata_data_capacity(m), in TEST()
1722 EXPECT_EQ(e1.index, e2.index); in TEST()
1723 EXPECT_EQ(e1.tag, e2.tag); in TEST()
1738 EXPECT_EQ(OK, result); in TEST()
1745 EXPECT_EQ(e1.index, e2.index); in TEST()
1746 EXPECT_EQ(e1.tag, e2.tag); in TEST()
1750 EXPECT_EQ(100, e1.data.i64[0]); in TEST()
1751 EXPECT_EQ(200, e1.data.i64[1]); in TEST()
1752 EXPECT_EQ(100, e2.data.i64[0]); in TEST()
1760 EXPECT_EQ(OK, result); in TEST()
1767 EXPECT_EQ(e1.index, e2.index); in TEST()
1768 EXPECT_EQ(e1.tag, e2.tag); in TEST()
1772 EXPECT_EQ(100, e1.data.i64[0]); in TEST()
1773 EXPECT_EQ(200, e1.data.i64[1]); in TEST()
1774 EXPECT_EQ(300, e2.data.i64[0]); in TEST()
1775 EXPECT_EQ(200, e2.data.i64[1]); in TEST()
1777 EXPECT_EQ(OK, validate_camera_metadata_structure(m2, &m_size)); in TEST()
1861 EXPECT_EQ(aligned_ptr, data_ptr) << in TEST()