Lines Matching refs:i

176     for (int i = 1; i < CAMERA_FRAME_BURST_COUNT; ++i) {  in TEST_F()  local
177 exposures[i] = exposures[i-1] * CAMERA_EXPOSURE_DOUBLE; in TEST_F()
218 for (int i = 0; i < CAMERA_FRAME_BURST_COUNT; ++i) { in TEST_F() local
221 &exposures[i], 1)); in TEST_F()
222 ALOGV("Submitting capture request %d with exposure %" PRId64, i, in TEST_F()
223 exposures[i]); in TEST_F()
224 dout << "Capture request " << i << " exposure is " in TEST_F()
225 << (exposures[i]/1e6f) << std::endl; in TEST_F()
233 for (int i = 0; i < CAMERA_FRAME_BURST_COUNT; ++i) { in TEST_F() local
234 ALOGV("Reading capture request %d with exposure %" PRId64, i, exposures[i]); in TEST_F()
236 ALOGV("Reading capture request-1 %d", i); in TEST_F()
239 ALOGV("Reading capture request-2 %d", i); in TEST_F()
253 "overexposed %d), avg %f", i, brightness, underexposed, in TEST_F()
255 dout << "Average brightness (frame " << i << ") was " << avgBrightness in TEST_F()
261 brightnesses[i] = avgBrightness; in TEST_F()
268 for (int i = 1; i < CAMERA_FRAME_BURST_COUNT; ++i) { in TEST_F() local
269 if (fabs(brightnesses[i] - prev*CAMERA_EXPOSURE_DOUBLE) in TEST_F()
277 prev = brightnesses[i]; in TEST_F()
402 for (int i = 1; i < count; i++) { in TEST_F() local
403 sensitivities.push_back(minSensitivity + i * 100); in TEST_F()
409 for (size_t i = 0; i < sensitivities.size(); i++) { in TEST_F() local
410 dout << sensitivities[i] << " "; in TEST_F()
430 for (size_t i = 0; i < availableProcessedSizes.count; i += 2) { in TEST_F() local
431 if (availableProcessedSizes.data.i32[i] == mWidth && in TEST_F()
432 availableProcessedSizes.data.i32[i+1] == mHeight) { in TEST_F()
434 minDuration = availableProcessedMinFrameDurations.data.i64[i/2]; in TEST_F()
537 for (size_t i = 0; i < sensitivities.size(); i++) { in TEST_F() local
540 sensitivityList.push_back(sensitivities[i]); in TEST_F()
546 for (size_t i = 0; i < sensitivities.size(); i++) { in TEST_F() local
547 int64_t e_adj = e * 100 / sensitivities[i]; in TEST_F()
550 sensitivityList.push_back(sensitivities[i]); in TEST_F()
558 for (size_t i = 0; i < expList.size(); i++) { in TEST_F() local
559 EXPECT_GE(maxExp, expList[i]) in TEST_F()
560 << "Capture " << i << " exposure too long: " << expList[i]; in TEST_F()
561 EXPECT_LE(minExp, expList[i]) in TEST_F()
562 << "Capture " << i << " exposure too short: " << expList[i]; in TEST_F()
563 EXPECT_GE(maxDuration, durationList[i]) in TEST_F()
564 << "Capture " << i << " duration too long: " << durationList[i]; in TEST_F()
565 EXPECT_LE(minDuration, durationList[i]) in TEST_F()
566 << "Capture " << i << " duration too short: " << durationList[i]; in TEST_F()
569 if (sensitivityList[i] == sensitivities[j]) { in TEST_F()
575 << "Capture " << i << " sensitivity not in list: " << sensitivityList[i]; in TEST_F()
613 for (size_t i = 0; i < expList.size(); ++i) { in TEST_F() local
616 &expList[i], 1)); in TEST_F()
618 &durationList[i], 1)); in TEST_F()
620 &sensitivityList[i], 1)); in TEST_F()
622 i, expList[i], durationList[i], sensitivityList[i]); in TEST_F()
623 dout << "Capture request " << i << in TEST_F()
624 ": exposure is " << (expList[i]/1e6f) << " ms" << in TEST_F()
625 ", frame duration is " << (durationList[i]/1e6f) << " ms" << in TEST_F()
626 ", sensitivity is " << sensitivityList[i] << in TEST_F()
637 for (size_t i = 0; i < expList.size(); ++i) { in TEST_F() local
639 ALOGV("Reading request %zu", i); in TEST_F()
640 dout << "Waiting for capture " << i << ": " << in TEST_F()
641 " exposure " << (expList[i]/1e6f) << " ms," << in TEST_F()
642 " frame duration " << (durationList[i]/1e6f) << " ms," << in TEST_F()
643 " sensitivity " << sensitivityList[i] << in TEST_F()
648 if (expList[i] * 2 > waitLimit) waitLimit = expList[i] * 2; in TEST_F()
649 if (durationList[i] * 2 > waitLimit) waitLimit = durationList[i] * 2; in TEST_F()
652 ALOGV("Reading capture request-1 %zu", i); in TEST_F()
655 ALOGV("Reading capture request-2 %zu", i); in TEST_F()
677 "overexposed %d), avg %f", i, brightness, underexposed, in TEST_F()
679 dout << "Average brightness (frame " << i << ") was " << avgBrightness in TEST_F()
684 if (i != 0) { in TEST_F()
685 float prevEv = static_cast<float>(expList[i - 1]) * sensitivityList[i - 1]; in TEST_F()
686 float currentEv = static_cast<float>(expList[i]) * sensitivityList[i]; in TEST_F()
690 WARN_LT(fabs(brightnesses[i] - brightnesses[i - 1]), in TEST_F()
695 brightnesses[i] << ", previous: " << brightnesses[i-1] << in TEST_F()
701 nsecs_t timeDelta = captureTimes[i] - captureTimes[i-1]; in TEST_F()
702 nsecs_t expectedDelta = expList[i] > durationList[i] ? in TEST_F()
703 expList[i] : durationList[i]; in TEST_F()
719 … String8::format("/data/local/tmp/camera2_test_variable_burst_frame_%03zu.yuv", i); in TEST_F()