/cts/apps/CameraITS/tests/scene_tele/scene7_tele/ |
D | test_multi_camera_switch_tele.py | 88 its_session_utils.CHART_DISTANCE_NO_SCALING, log_path=self.log_path) 104 z_max, _ZOOM_STEP, self.log_path) 116 for filename in os.listdir(self.log_path): 117 file_path = os.path.join(self.log_path, filename) 136 its_session_utils.remove_frame_files(self.log_path, [ 137 os.path.join(self.log_path, img_w_file), 138 os.path.join(self.log_path, img_tele_file)]) 141 w_path = pathlib.Path(os.path.join(self.log_path, img_w_file)) 143 os.rename(os.path.join(self.log_path, img_w_file), w_name) 145 tele_path = pathlib.Path(os.path.join(self.log_path, img_tele_file)) [all …]
|
/cts/apps/CameraITS/tests/sensor_fusion/ |
D | test_video_stabilization_jca.py | 43 def _collect_data(cam, dut, lens_facing, log_path, argument 66 log_path, 92 log_path, 107 def _extract_frames_from_video(log_path, recording_path): argument 123 log_path, file_name, _IMG_FORMAT) 128 os.path.join(log_path, file)) 136 lens_facing, frames, frame_shape, gyro_events, log_path, ratio_tested): argument 165 gyro_events, f'{_NAME}_{ratio_name}', log_path) 250 log_path = self.log_path 289 cam, self.dut, lens_facing, log_path, ratio_tested, [all …]
|
D | test_video_stabilization.py | 124 log_path = self.log_path 184 self.dut.adb.pull([recording_obj['recordedOutputPath'], log_path]) 195 log_path, file_name, _IMG_FORMAT) 200 os.path.join(log_path, file)) 217 gyro_events, f'{_NAME}_{video_quality}', log_path) 254 log_path, f'*_{video_quality}_*_stabilized_frame_*.png'
|
/cts/apps/CameraITS/tests/scene8/ |
D | test_ae_awb_regions.py | 114 log_path, file_name, video_fps): argument 127 log_path, file_name, _IMG_FORMAT, video_fps) 135 save_files = [os.path.join(log_path, file_name)] 137 frame_path = os.path.join(log_path, frame) 147 its_session_utils.remove_frame_files(log_path, save_files) 185 log_path = self.log_path 186 test_name_with_log_path = os.path.join(log_path, _NAME) 203 log_path) 235 self.dut.adb.pull([recording_obj['recordedOutputPath'], log_path]) 237 file_name_with_path = os.path.join(log_path, file_name) [all …]
|
D | test_color_correction_mode_cct.py | 110 def color_temperature_capture_request(color_temp, color_tint, log_path, cam, argument 127 log_path, cam)['midSensitivity'] 183 log_path = self.log_path 184 test_name_with_log_path = os.path.join(log_path, _NAME) 193 log_path) 202 log_path, cam, props) 209 log_path, cam, props)
|
/cts/apps/CameraITS/utils/ |
D | ui_interaction_utils.py | 158 def open_jca_viewfinder(dut, log_path, request_video_capture=False): argument 169 call_on_fail = lambda: dut.take_screenshot(log_path, prefix='its_not_found') 190 dut.take_screenshot(log_path, prefix=VIEWFINDER_NOT_VISIBLE_PREFIX) 193 dut.take_screenshot(log_path, prefix=VIEWFINDER_VISIBLE_PREFIX) 196 def switch_jca_camera(dut, log_path, facing): argument 217 dut.take_screenshot(log_path, prefix='failed_to_switch_camera') 221 log_path, prefix=f"switched_to_{ui_facing_description.replace(' ', '_')}" 233 def set_jca_flash_mode(dut, log_path, flash_mode_desc): argument 264 dut.take_screenshot(log_path, prefix='cannot_set_flash_mode') 266 dut.take_screenshot(log_path, prefix='flash_mode_set') [all …]
|
D | ip_chart_extraction_utils.py | 52 img, output_file_name, log_path, feature=pd.TestChartFeature.FULL_CHART argument 83 os.path.join(log_path, output_file_name + '.png'), 86 return feature_image, os.path.join(log_path, output_file_name + '.png') 118 log_path, argument 173 cv2.imwrite(os.path.join(log_path, patch_suffix + '.png'), cropped_patch) 180 def get_cropped_dynamic_range_patch_cells(img_path, log_path, chart_suffix): argument 204 log_path, 207 cv2.imwrite(os.path.join(log_path, chart_name + '.png'), center_patch)
|
D | video_processing_utils.py | 174 def extract_key_frames_from_video(log_path, video_file_name): argument 198 log_path, ffmpeg_image_name + '_%04d.png') 203 os.path.join(log_path, video_file_name), 217 arr = os.listdir(os.path.join(log_path)) 249 log_path, video_file_name, img_format, video_fps=None): argument 277 'ffmpeg', '-i', os.path.join(log_path, video_file_name), 283 'ffmpeg', '-i', os.path.join(log_path, video_file_name), 293 [file for file in os.listdir(log_path) if 301 def extract_last_key_frame_from_recording(log_path, file_name): argument 311 key_frame_files = extract_key_frames_from_video(log_path, file_name) [all …]
|
D | preview_processing_utils.py | 190 log_path, facing, zoom_ratio=None, argument 215 log_path, file_name, _IMG_FORMAT 231 log_path, 245 log_path 293 os.remove(os.path.join(log_path, file)) 464 log_path): argument 500 dut, preview_rec_obj['recordedOutputPath'], log_path) 507 log_path, preview_file_name, _IMG_FORMAT 515 file_path = os.path.join(log_path, file_name) 526 file_path = os.path.join(log_path, file_name) [all …]
|
/cts/apps/CameraITS/tests/scene_ip/ |
D | test_default_jca_ip.py | 91 self.dut.take_screenshot(self.log_path, prefix='on_test_fail') 152 log_path=self.log_path, 155 device_id, device_img_path, self.log_path 158 default_path = os.path.join(self.log_path, default_img_name) 167 self.log_path, 202 self.log_path, 208 device_id, jca_capture_path, self.log_path 211 jca_path = os.path.join(self.log_path, img_name) 224 self.log_path, 232 self.log_path, [all …]
|
/cts/apps/CameraITS/tests/scene7/ |
D | test_multi_camera_switch.py | 89 _ZOOM_RANGE_UW_W[1], _ZOOM_STEP, self.log_path) 99 for filename in os.listdir(self.log_path): 100 file_path = os.path.join(self.log_path, filename) 121 its_session_utils.remove_frame_files(self.log_path, [ 122 os.path.join(self.log_path, img_uw_file), 123 os.path.join(self.log_path, img_w_file)]) 126 uw_path = pathlib.Path(os.path.join(self.log_path, img_uw_file)) 128 os.rename(os.path.join(self.log_path, img_uw_file), uw_name) 130 w_path = pathlib.Path(os.path.join(self.log_path, img_w_file)) 132 os.rename(os.path.join(self.log_path, img_w_file), w_name) [all …]
|
/cts/apps/CameraITS/tests/scene1_3/ |
D | test_jpeg.py | 36 def compute_img_means_and_save(img, fmt_name, log_path): argument 47 name_with_log_path = os.path.join(log_path, _NAME) 68 log_path = self.log_path 84 log_path, cam)['midExposureTime'] 98 rgb_means_yuv = compute_img_means_and_save(img, 'yuv', log_path) 106 rgb_means_jpg = compute_img_means_and_save(img, 'jpg', log_path)
|
D | test_ev_compensation.py | 54 imgs, ev_steps, lumas, expected_lumas, luma_delta_atols, log_path): argument 76 test_name_w_path = os.path.join(log_path, f'{_NAME}_advanced') 106 def _create_basic_plot(evs, lumas, log_path): argument 115 test_name_w_path = os.path.join(log_path, test_name) 124 def _create_advanced_plot(ev_steps, lumas, expected_lumas, log_path): argument 135 test_name_w_path = os.path.join(log_path, test_name) 238 log_path = self.log_path 293 _create_basic_plot(evs, lumas, log_path) 367 _create_advanced_plot(ev_steps, lumas, expected_lumas, log_path) 375 imgs, ev_steps, lumas, expected_lumas, luma_delta_atols, log_path
|
D | test_yuv_plus_jpeg.py | 36 def compute_means_and_save(cap, img_name, log_path): argument 67 log_path = self.log_path 104 rgb_means_yuv = compute_means_and_save(cap_yuv, 'yuv', log_path) 105 rgb_means_jpg = compute_means_and_save(cap_jpg, 'jpg', log_path)
|
D | test_capture_result.py | 53 def draw_lsc_plot(lsc_map_w, lsc_map_h, lsc_map, name, log_path): argument 62 name_with_log_path = os.path.join(log_path, _NAME) 94 def test_auto(cam, props, log_path): argument 151 draw_lsc_plot(lsc_map_w, lsc_map_h, lsc_map, 'auto', log_path) 154 def test_manual(cam, props, log_path): argument 248 draw_lsc_plot(lsc_map_w, lsc_map_h, lsc_map, 'manual', log_path) 275 test_auto(cam, props, self.log_path) 276 test_manual(cam, props, self.log_path) 277 test_auto(cam, props, self.log_path)
|
/cts/apps/CameraITS/tests/scene9/ |
D | test_jpeg_high_entropy.py | 40 def _read_files_back_from_disk(log_path): argument 51 for file in sorted(os.listdir(log_path)): 59 jpeg_file_with_log_path = os.path.join(log_path, jpeg_file) 84 log_path = self.log_path 85 test_name_with_log_path = os.path.join(log_path, _NAME) 143 _read_files_back_from_disk(log_path)
|
/cts/apps/CameraITS/tests/scene2_b/ |
D | test_preview_num_faces.py | 90 dut, cam, preview_size, fd_mode, log_path): argument 108 [result['recordedOutputPath'], log_path]) 179 log_path = self.log_path 190 log_path=log_path) 214 self.dut, cam, preview_size, fd_mode, log_path) 222 log_path, preview_file_name)) 241 file_name_stem = os.path.join(log_path, _NAME) 248 file_name_stem = os.path.join(log_path, 'rear_preview')
|
/cts/apps/CameraITS/tests/scene2_d/ |
D | test_preview_num_faces.py | 90 dut, cam, preview_size, fd_mode, log_path): argument 108 [result['recordedOutputPath'], log_path]) 179 log_path = self.log_path 190 log_path=log_path) 214 self.dut, cam, preview_size, fd_mode, log_path) 222 log_path, preview_file_name)) 241 file_name_stem = os.path.join(log_path, _NAME) 248 file_name_stem = os.path.join(log_path, 'rear_preview')
|
/cts/apps/CameraITS/tests/scene2_g/ |
D | test_preview_num_faces.py | 90 dut, cam, preview_size, fd_mode, log_path): argument 108 [result['recordedOutputPath'], log_path]) 179 log_path = self.log_path 190 log_path=log_path) 214 self.dut, cam, preview_size, fd_mode, log_path) 222 log_path, preview_file_name)) 241 file_name_stem = os.path.join(log_path, _NAME) 248 file_name_stem = os.path.join(log_path, 'rear_preview')
|
/cts/apps/CameraITS/tests/scene2_f/ |
D | test_preview_num_faces.py | 90 dut, cam, preview_size, fd_mode, log_path): argument 108 [result['recordedOutputPath'], log_path]) 179 log_path = self.log_path 190 log_path=log_path) 214 self.dut, cam, preview_size, fd_mode, log_path) 222 log_path, preview_file_name)) 241 file_name_stem = os.path.join(log_path, _NAME) 248 file_name_stem = os.path.join(log_path, 'rear_preview')
|
/cts/apps/CameraITS/tests/scene1_1/ |
D | test_auto_vs_manual.py | 36 def extract_awb_gains_and_xform(cap, cap_name, log_path): argument 48 name_with_log_path = os.path.join(log_path, _NAME) 78 log_path = self.log_path 107 cap_auto, 'auto', log_path) 115 cap_man1, 'manual_wb', log_path) 124 cap_man2, 'manual_wb_tm', log_path)
|
/cts/apps/CameraITS/tests/scene_flash/ |
D | test_preview_min_frame_rate.py | 86 log_path=self.log_path) 126 self.log_path]) 128 self.log_path) 133 self.log_path, preview_file_name) 158 self.log_path, preview_file_name)[-1] 162 os.path.join(self.log_path, last_key_frame))
|
/cts/apps/CameraITS/tests/scene_video/ |
D | test_preview_frame_drop.py | 58 log_path = self.log_path 73 lighting_check=False, log_path=self.log_path) 111 self.dut.adb.pull([recording_obj['recordedOutputPath'], log_path]) 118 self.log_path, file_name)
|
/cts/apps/CameraITS/tests/scene4/ |
D | test_preview_stabilization_fov.py | 136 log_path = self.log_path 192 self.dut.adb.pull([ustab_rec_obj['recordedOutputPath'], log_path]) 197 self.dut.adb.pull([stab_rec_obj['recordedOutputPath'], log_path]) 203 log_path, ustab_file_name) 207 log_path, stab_file_name) 211 ustab_frame = os.path.join(log_path, 215 stab_frame = os.path.join(log_path,
|
D | test_30_60fps_preview_fov_match.py | 98 log_path = self.log_path 133 [preview_recording_obj['recordedOutputPath'], log_path]) 140 self.log_path, preview_file_name) 182 log_path, fps30_video)) 185 log_path, fps60_video))
|