/cts/apps/CameraITS/tests/scene0/ |
D | test_vibration_restriction.py | 58 hidden_physical_id=self.hidden_physical_id) as cam: 59 props = cam.get_camera_properties() 60 props = cam.override_with_hidden_physical_camera_props(props) 61 sensors = cam.get_sensors() 66 cam.start_sensor_events() 67 cam.do_vibrate(PATTERN_MS) 70 events = cam.get_sensor_events() 80 cam.start_sensor_events() 82 events = cam.get_sensor_events() 93 cam.start_sensor_events() [all …]
|
D | test_sensor_events.py | 37 hidden_physical_id=self.hidden_physical_id) as cam: 38 props = cam.get_camera_properties() 39 props = cam.override_with_hidden_physical_camera_props(props) 44 sensors = cam.get_sensors() 45 cam.start_sensor_events() 47 events = cam.get_sensor_events()
|
D | test_unified_timestamps.py | 36 hidden_physical_id=self.hidden_physical_id) as cam: 37 props = cam.get_camera_properties() 38 props = cam.override_with_hidden_physical_camera_props(props) 52 cap = cam.do_capture(req, fmt) 57 sensors = cam.get_sensors() 58 cam.start_sensor_events() 60 events = cam.get_sensor_events() 72 cap = cam.do_capture(req, fmt)
|
D | test_burst_capture.py | 43 hidden_physical_id=self.hidden_physical_id) as cam: 44 props = cam.get_camera_properties() 45 props = cam.override_with_hidden_physical_camera_props(props) 49 caps = cam.do_capture([req] * NUM_TEST_FRAMES)
|
/cts/apps/CameraITS/tests/scene2_c/ |
D | test_jpeg_capture_perf_class.py | 40 camera_id=self.camera_id) as cam: 43 cam.is_primary_camera()) 46 props = cam.get_camera_properties() 48 cam, props, self.scene, self.tablet, self.chart_distance) 52 cam = its_session_utils.ItsSession( 56 jpeg_capture_ms = cam.measure_camera_1080p_jpeg_capture_ms() 59 if (cam.is_performance_class() and
|
D | test_camera_launch_perf_class.py | 40 camera_id=self.camera_id) as cam: 43 cam.is_primary_camera()) 46 props = cam.get_camera_properties() 48 cam, props, self.scene, self.tablet, self.chart_distance) 52 cam = its_session_utils.ItsSession( 56 launch_ms = cam.measure_camera_launch_ms() 59 if (cam.is_performance_class() and
|
/cts/apps/CameraITS/tests/scene2_b/ |
D | test_yuv_jpeg_capture_sameness.py | 52 hidden_physical_id=self.hidden_physical_id) as cam: 53 props = cam.get_camera_properties() 54 props = cam.override_with_hidden_physical_camera_props(props) 63 cam, props, self.scene, self.tablet, self.chart_distance) 66 display_size = cam.get_display_size() 67 max_camcorder_profile_size = cam.get_max_camcorder_profile_size( 84 cam.do_3a() 88 cap_yuv, cap_jpg = cam.do_capture(req, [fmt_yuv, fmt_jpg]) 111 cam.do_3a() 114 cap_yuv_use_case = cam.do_capture(req, [fmt_yuv_use_case])
|
/cts/apps/CameraITS/tests/scene1_1/ |
D | test_ae_precapture_trigger.py | 55 hidden_physical_id=self.hidden_physical_id) as cam: 56 props = cam.get_camera_properties() 57 props = cam.override_with_hidden_physical_camera_props(props) 66 cam, props, self.scene, self.tablet, self.chart_distance) 76 self.log_path, cam)['midExposureTime'] 84 caps = cam.do_capture(manual_reqs, fmt) 96 cap = cam.do_capture(auto_req, fmt) 107 cap = cam.do_capture(auto_req, fmt) 120 caps = cam.do_capture([auto_req] * FRAMES_PER_ITERATION, fmt)
|
D | test_jpeg.py | 64 hidden_physical_id=self.hidden_physical_id) as cam: 65 props = cam.get_camera_properties() 66 props = cam.override_with_hidden_physical_camera_props(props) 76 cam, props, self.scene, self.tablet, self.chart_distance) 80 log_path, cam)['midExposureTime'] 87 cam, req, sync_latency, out_surface) 95 cam, req, sync_latency, out_surface)
|
D | test_auto_vs_manual.py | 73 hidden_physical_id=self.hidden_physical_id) as cam: 74 props = cam.get_camera_properties() 75 props = cam.override_with_hidden_physical_camera_props(props) 86 cam, props, self.scene, self.tablet, self.chart_distance) 93 s, e, awb_gains, awb_xform, fd = cam.do_3a(get_results=True, 103 cap_auto = cam.do_capture(req, fmt) 111 cap_man1 = cam.do_capture(req, fmt) 120 cap_man2 = cam.do_capture(req, fmt)
|
D | test_black_white.py | 47 def do_img_capture(cam, s, e, fmt, latency, cap_name, log_path): argument 64 cap = its_session_utils.do_capture_with_latency(cam, req, latency, fmt) 94 hidden_physical_id=self.hidden_physical_id) as cam: 95 props = cam.get_camera_properties() 96 props = cam.override_with_hidden_physical_camera_props(props) 104 cam, props, self.scene, self.tablet, self.chart_distance) 116 black_means = do_img_capture(cam, s, e, fmt, latency, 'black', log_path) 124 white_means = do_img_capture(cam, s, e, fmt, latency, 'white', log_path)
|
D | test_3a.py | 47 hidden_physical_id=self.hidden_physical_id) as cam: 48 props = cam.get_camera_properties() 49 props = cam.override_with_hidden_physical_camera_props(props) 56 cam, props, self.scene, self.tablet, self.chart_distance) 59 s, e, awb_gains, awb_xform, focus = cam.do_3a(
|
D | test_capture_result.py | 92 def test_auto(cam, props, log_path): argument 107 cam.do_3a(do_af=False, mono_camera=mono_camera) 110 cap = its_session_utils.do_capture_with_latency(cam, req, sync_latency) 152 def test_manual(cam, props, log_path): argument 183 cap = its_session_utils.do_capture_with_latency(cam, req, sync_latency) 254 hidden_physical_id=self.hidden_physical_id) as cam: 255 props = cam.get_camera_properties() 256 props = cam.override_with_hidden_physical_camera_props(props) 266 cam, props, self.scene, self.tablet, self.chart_distance) 270 test_auto(cam, props, self.log_path) [all …]
|
D | test_locked_burst.py | 53 hidden_physical_id=self.hidden_physical_id) as cam: 54 props = cam.get_camera_properties() 55 props = cam.override_with_hidden_physical_camera_props(props) 66 cam, props, self.scene, self.tablet, self.chart_distance) 69 cam.do_3a(do_af=True, lock_ae=True, lock_awb=True, 85 caps = cam.do_capture([req]*BURST_LEN, fmt)
|
/cts/apps/CameraITS/tests/scene2_e/ |
D | test_continuous_picture.py | 42 def _capture_frames(cam, log_path, debug): argument 56 caps = cam.do_capture([req]*_NUM_FRAMES, fmt) 106 hidden_physical_id=self.hidden_physical_id) as cam: 107 props = cam.get_camera_properties() 108 props = cam.override_with_hidden_physical_camera_props(props) 119 cam, props, self.scene, self.tablet, self.chart_distance) 122 cam.do_3a() 125 cap_3a_state_list = _capture_frames(cam, log_path, debug)
|
/cts/apps/CameraITS/tests/scene1_2/ |
D | test_yuv_plus_dng.py | 39 hidden_physical_id=self.hidden_physical_id) as cam: 40 props = cam.get_camera_properties() 41 props = cam.override_with_hidden_physical_camera_props(props) 51 cam, props, self.scene, self.tablet, self.chart_distance) 55 cam.do_3a(mono_camera=mono_camera) 67 cap_dng, cap_yuv = cam.do_capture(req, out_surfaces)
|
D | test_tonemap_sequence.py | 43 cam, req, fmt, num_frames_per_cap, tonemap, log_path): argument 60 cap = cam.do_capture([req]*num_frames_per_cap, fmt) 87 hidden_physical_id=self.hidden_physical_id) as cam: 88 props = cam.get_camera_properties() 89 props = cam.override_with_hidden_physical_camera_props(props) 97 cam, props, self.scene, self.tablet, self.chart_distance) 113 sens, exp, _, _, f_dist = cam.do_3a(do_af=True, get_results=True) 117 cam.do_3a() 135 cam, req, fmt, num_frames_per_cap, tonemap, log_path))
|
D | test_yuv_jpeg_all.py | 38 def do_capture_and_extract_rgb_means(req, cam, size, img_type, log_path, debug): argument 53 cap = cam.do_capture(req, out_surface) 97 hidden_physical_id=self.hidden_physical_id) as cam: 98 props = cam.get_camera_properties() 99 props = cam.override_with_hidden_physical_camera_props(props) 108 cam, props, self.scene, self.tablet, self.chart_distance) 113 log_path, cam)['midExposureTime'] 121 req, cam, size, 'yuv', log_path, debug)) 126 req, cam, size, 'jpg', log_path, debug))
|
D | test_yuv_plus_jpeg.py | 65 hidden_physical_id=self.hidden_physical_id) as cam: 66 props = cam.get_camera_properties() 67 props = cam.override_with_hidden_physical_camera_props(props) 76 cam, props, self.scene, self.tablet, self.chart_distance) 95 log_path, cam)['midExposureTime'] 98 cap_yuv, cap_jpg = cam.do_capture(req, [fmt_yuv, fmt_jpg])
|
/cts/apps/CameraITS/tests/scene3/ |
D | test_edge_enhancement.py | 36 cam, edge_mode, sensitivity, exp, fd, out_surface, chart, log_path): argument 68 cap = cam.do_capture(req, out_surface, repeat_request=req) 95 hidden_physical_id=self.hidden_physical_id) as cam: 96 props = cam.get_camera_properties() 97 props = cam.override_with_hidden_physical_camera_props(props) 107 cam, props, self.scene, self.tablet, self.chart_distance) 110 chart = opencv_processing_utils.Chart(cam, props, self.log_path) 119 s, e, _, _, fd = cam.do_3a(get_results=True, mono_camera=mono_camera) 132 cam, edge_mode, s, e, fd, out_surface, chart, self.log_path)
|
D | test_flip_mirror.py | 41 def test_flip_mirror_impl(cam, props, fmt, chart, debug, log_path): argument 60 cam.do_3a() 62 cap = cam.do_capture(req, fmt) 132 hidden_physical_id=self.hidden_physical_id) as cam: 133 props = cam.get_camera_properties() 134 props = cam.override_with_hidden_physical_camera_props(props) 143 cam, props, self.scene, self.tablet, self.chart_distance) 146 chart = opencv_processing_utils.Chart(cam, props, self.log_path) 150 test_flip_mirror_impl(cam, props, fmt, chart, debug, self.log_path)
|
/cts/apps/CameraITS/tests/sensor_fusion/ |
D | test_preview_stabilization.py | 47 def _collect_data(cam, tablet_device, video_size, rot_rig): argument 83 cam.start_sensor_events() 87 recording_obj = cam.do_preview_recording(video_size, _VIDEO_DURATION, True) 118 hidden_physical_id=self.hidden_physical_id) as cam: 120 props = cam.get_camera_properties() 121 props = cam.override_with_hidden_physical_camera_props(props) 140 camera_fov = float(cam.calc_camera_fov(props)) 162 supported_preview_sizes = cam.get_supported_preview_sizes(self.camera_id) 172 recording_obj = _collect_data(cam, self.tablet_device, video_size, rot_rig) 181 gyro_events = cam.get_sensor_events()['gyro']
|
D | test_video_stabilization.py | 82 def _collect_data(cam, tablet_device, video_profile, video_quality, rot_rig): argument 99 props = cam.get_camera_properties() 100 props = cam.override_with_hidden_physical_camera_props(props) 115 cam.start_sensor_events() 119 recording_obj = cam.do_basic_recording( 151 hidden_physical_id=self.hidden_physical_id) as cam: 152 props = cam.get_camera_properties() 153 props = cam.override_with_hidden_physical_camera_props(props) 163 camera_fov = float(cam.calc_camera_fov(props)) 186 supported_video_qualities = cam.get_supported_video_qualities( [all …]
|
/cts/tests/app/src/android/app/cts/ |
D | Instrumentation_ActivityMonitorTest.java | 146 final CustomActivityMonitor cam = new CustomActivityMonitor( in testActivityMonitor_onStartActivityBlocks() local 148 instrumentation.addMonitor(cam); in testActivityMonitor_onStartActivityBlocks() 171 assertEquals("There should be 1 monitor hit", 1, cam.getHits()); in testActivityMonitor_onStartActivityBlocks() 174 instrumentation.removeMonitor(cam); in testActivityMonitor_onStartActivityBlocks() 195 final CustomActivityMonitor cam = new CustomActivityMonitor( in testActivityMonitor_onStartActivityAndIntentFilter() local 199 … cam.setResultToReturn(new ActivityResult(1111, new Intent("matched_using_onStartActivity"))); in testActivityMonitor_onStartActivityAndIntentFilter() 200 instrumentation.addMonitor(cam); in testActivityMonitor_onStartActivityAndIntentFilter() 223 assertEquals("There should be 1 monitor hit", 1, cam.getHits()); in testActivityMonitor_onStartActivityAndIntentFilter() 226 instrumentation.removeMonitor(cam); in testActivityMonitor_onStartActivityAndIntentFilter() 247 final CustomActivityMonitor cam = new CustomActivityMonitor( in testActivityMonitor_onStartActivityAndActivityClass() local [all …]
|
/cts/apps/CameraITS/tests/ |
D | tutorial.py | 84 hidden_physical_id=self.hidden_physical_id) as cam: 93 props = cam.get_camera_properties() 99 cap = cam.do_capture(req) 130 sens, exp, gains, xform, focus = cam.do_3a(get_results=True) 151 cap = cam.do_capture(req) 201 cap = cam.do_capture(req, cam.CAP_JPEG)
|