/aosp_15_r20/external/uwb/src/rust/uwb_core/src/uci/ |
H A D | pcapng_uci_logger_factory.rs | 81 log_path: PathBuf, field 93 log_path: PathBuf::from(DEFAULT_LOG_DIR), in default() 110 consuming_builder_field!(log_path, PathBuf); 117 self.log_path, in build() 532 .log_path(dir.as_ref().to_owned()) in test_no_file_write() 543 let log_path = dir.as_ref().to_owned().join("log.pcapng"); in test_no_file_write() localVariable 544 assert!(fs::read(log_path).is_err()); in test_no_file_write() 551 let log_path = dir.join("log.pcapng"); in test_no_preexisting_dir_created() localVariable 557 .log_path(dir.clone()) in test_no_preexisting_dir_created() 571 assert!(log_path.is_file()); in test_no_preexisting_dir_created() [all …]
|
/aosp_15_r20/external/autotest/server/ |
H A D | crashcollect.py | 80 def collect_log_file(host, log_path, dest_path, use_tmp=False, clean=False, argument 105 logging.info('Collecting %s...', log_path) 108 'file %s.', host.hostname, log_path) 111 file_stats = _get_file_stats(host, log_path) 120 log_path, file_stats.size, 123 _collect_log_file_with_tmpdir(host, log_path, dest_path) 125 _collect_log_file_with_summary(host, log_path, dest_path) 128 log_path, e) 131 path_to_delete = os.path.join(pipes.quote(log_path), '*') 133 path_to_delete = pipes.quote(log_path) [all …]
|
/aosp_15_r20/external/cronet/base/test/ |
H A D | perf_test_suite.cc | 30 FilePath log_path = in Initialize() local 32 if (log_path.empty()) { in Initialize() 33 PathService::Get(FILE_EXE, &log_path); in Initialize() 37 log_path = tmp_dir.Append(log_path.BaseName()); in Initialize() 39 log_path = in Initialize() 40 FilePath(kPersistedDataDirectoryPath).Append(log_path.BaseName()); in Initialize() 42 log_path = log_path.ReplaceExtension(FILE_PATH_LITERAL("log")); in Initialize() 43 log_path = log_path.InsertBeforeExtension(FILE_PATH_LITERAL("_perf")); in Initialize() 45 ASSERT_TRUE(InitPerfLog(log_path)); in Initialize()
|
/aosp_15_r20/cts/apps/CameraITS/utils/ |
H A D | ui_interaction_utils.py | 96 def open_jca_viewfinder(dut, log_path, request_video_capture=False): argument 107 call_on_fail = lambda: dut.take_screenshot(log_path, prefix='its_not_found') 128 dut.take_screenshot(log_path, prefix=VIEWFINDER_NOT_VISIBLE_PREFIX) 131 dut.take_screenshot(log_path, prefix=VIEWFINDER_VISIBLE_PREFIX) 134 def switch_jca_camera(dut, log_path, facing): argument 155 dut.take_screenshot(log_path, prefix='failed_to_switch_camera') 159 log_path, prefix=f"switched_to_{ui_facing_description.replace(' ', '_')}" 164 def change_jca_aspect_ratio(dut, log_path, aspect_ratio): argument 186 log_path, prefix=f'failed_to_find{aspect_ratio.replace(" ", "_")}' 193 def do_jca_video_setup(dut, log_path, facing, aspect_ratio): argument [all …]
|
H A 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 …]
|
H A D | preview_processing_utils.py | 185 test_name, log_path, facing, zoom_ratio=None): argument 208 log_path, file_name, _IMG_FORMAT 214 img_bgr = cv2.imread(os.path.join(log_path, file)) 243 log_path) 277 os.remove(os.path.join(log_path, file)) 476 log_path): argument 512 dut, preview_rec_obj['recordedOutputPath'], log_path) 519 log_path, preview_file_name, _IMG_FORMAT 527 file_path = os.path.join(log_path, file_name) 538 file_path = os.path.join(log_path, file_name) [all …]
|
/aosp_15_r20/external/libchrome/base/test/ |
H A D | perf_test_suite.cc | 25 FilePath log_path = in Initialize() local 27 if (log_path.empty()) { in Initialize() 28 PathService::Get(FILE_EXE, &log_path); in Initialize() 32 log_path = tmp_dir.Append(log_path.BaseName()); in Initialize() 34 log_path = log_path.ReplaceExtension(FILE_PATH_LITERAL("log")); in Initialize() 35 log_path = log_path.InsertBeforeExtension(FILE_PATH_LITERAL("_perf")); in Initialize() 37 ASSERT_TRUE(InitPerfLog(log_path)); in Initialize()
|
/aosp_15_r20/cts/apps/CameraITS/tests/sensor_fusion/ |
H A D | test_video_stabilization_jca.py | 44 def _collect_data(cam, dut, lens_facing, log_path, argument 67 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 288 cam, self.dut, lens_facing, log_path, ratio_tested, [all …]
|
/aosp_15_r20/external/autotest/client/cros/bluetooth/ |
H A D | logger_helper.py | 27 def __init__(self, log_path=SYSLOG_PATH, raise_missing=False): argument 35 if not os.path.isfile(log_path): 36 msg = 'Requested log file {} does not exist'.format(log_path) 42 self.log_path = log_path 55 return os.path.getsize(self.log_path) 82 if not os.path.isfile(self.log_path): 83 msg = 'File {} disappeared unexpectedly'.format(self.log_path) 90 with open(self.log_path, 'rb') as mf: 122 if not os.path.isfile(self.log_path): 129 with open(self.log_path, 'rb+') as mf: [all …]
|
/aosp_15_r20/external/python/mobly/mobly/ |
D | logger.py | 163 def _setup_test_logger(log_path, console_level, prefix=None): argument 195 os.path.join(log_path, records.OUTPUT_FILE_INFO_LOG) 200 os.path.join(log_path, records.OUTPUT_FILE_DEBUG_LOG) 207 log.log_path = log_path 208 logging.log_path = log_path 209 logging.root_output_path = log_path 238 log_path, prefix=None, alias='latest', console_level=logging.INFO argument 262 utils.create_dir(log_path) 263 _setup_test_logger(log_path, console_level, prefix) 264 logging.debug('Test output folder: "%s"', log_path) [all …]
|
/aosp_15_r20/cts/apps/CameraITS/tests/scene8/ |
H A D | test_ae_awb_regions.py | 163 log_path, file_name, video_fps): argument 176 log_path, file_name, _IMG_FORMAT, video_fps) 184 save_files = [os.path.join(log_path, file_name)] 186 frame_path = os.path.join(log_path, frame) 196 its_session_utils.remove_frame_files(log_path, save_files) 234 log_path = self.log_path 235 test_name_with_log_path = os.path.join(log_path, _NAME) 252 log_path) 284 self.dut.adb.pull([recording_obj['recordedOutputPath'], log_path]) 286 file_name_with_path = os.path.join(log_path, file_name) [all …]
|
/aosp_15_r20/external/python/mobly/tests/mobly/ |
D | output_test.py | 52 self.base_mock_test_config.log_path = self.tmp_dir 53 self.log_dir = self.base_mock_test_config.log_path 84 def assert_log_contents(self, log_path, whitelist=[], blacklist=[]): argument 85 with io.open(log_path, 'r', encoding='utf-8') as f: 94 with tr.mobly_logger() as log_path: 95 self.assertEqual(log_path, logging.log_path) 108 self.assertEqual(os.readlink(symlink), logging.log_path) 130 win32file.GetLongPathName(logging.log_path) 142 logging.log_path, expected_alias_dir 155 logging.log_path, expected_alias_dir [all …]
|
/aosp_15_r20/tools/test/connectivity/acts_tests/tests/google/net/ |
D | LegacyVpnTest.py | 105 self.log_path) 117 self.log_path) 129 self.log_path) 141 self.log_path) 153 self.log_path) 165 self.log_path) 177 self.log_path) 189 self.log_path) 201 self.log_path) 213 self.log_path) [all …]
|
D | VpnOverLTETest.py | 64 self.log_path) 75 self.log_path) 86 self.log_path) 97 self.log_path) 108 self.log_path) 119 self.log_path) 130 self.log_path) 141 self.log_path) 152 self.log_path) 163 self.log_path)
|
/aosp_15_r20/tools/asuite/atest/ |
H A D | atest_execution_info_unittest.py | 57 log_path = pathlib.Path('/logs') 58 self.fs.create_dir(log_path) 67 start_time, end_time, out_path, log_path, 'build.trace' 71 self._is_dir_contains_files_with_prefix(log_path, 'build.trace') 76 log_path = pathlib.Path('/logs') 77 self.fs.create_dir(log_path) 86 start_time, end_time, out_path, log_path, 'build.trace' 90 self._is_dir_contains_files_with_prefix(log_path, 'build.trace') 95 log_path = pathlib.Path('/logs') 96 self.fs.create_dir(log_path) [all …]
|
/aosp_15_r20/external/autotest/server/site_tests/telemetry_Crosperf/ |
H A D | telemetry_Crosperf.py | 144 def run_in_background_with_log(self, cmd, dut, log_path): argument 187 '', dut, log_path, self.resultsdir, ignore_status=True) 198 log_path = '/tmp/%s' % log_name 216 'done;') % log_path 218 return self.run_in_background_with_log(cpu_stats_cmd, dut, log_path) 225 log_path = '/tmp/%s' % log_name 231 ' | grep -E "^[ 0-9]|^$" > %s;') % (interval_in_sec, log_path) 233 return self.run_in_background_with_log(top_cmd, dut, log_path) 240 log_path = '/tmp/%s' % log_name 244 '1> %s') % log_path [all …]
|
/aosp_15_r20/cts/apps/CameraITS/tests/scene1_3/ |
H A D | test_ev_compensation.py | 52 imgs, ev_steps, lumas, expected_lumas, luma_delta_atols, log_path): argument 74 test_name_w_path = os.path.join(log_path, f'{_NAME}_advanced') 104 def _create_basic_plot(evs, lumas, log_path): argument 113 test_name_w_path = os.path.join(log_path, test_name) 122 def _create_advanced_plot(ev_steps, lumas, expected_lumas, log_path): argument 133 test_name_w_path = os.path.join(log_path, test_name) 236 log_path = self.log_path 291 _create_basic_plot(evs, lumas, log_path) 365 _create_advanced_plot(ev_steps, lumas, expected_lumas, log_path) 371 imgs, ev_steps, lumas, expected_lumas, luma_delta_atols, log_path
|
H A 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)
|
/aosp_15_r20/cts/apps/CameraITS/tests/scene2_f/ |
H A D | test_preview_num_faces.py | 91 dut, cam, preview_size, fd_mode, log_path): argument 109 [result['recordedOutputPath'], log_path]) 180 log_path = self.log_path 191 log_path=log_path) 220 self.dut, cam, preview_size, fd_mode, log_path) 228 log_path, preview_file_name)) 247 file_name_stem = os.path.join(log_path, _NAME) 254 file_name_stem = os.path.join(log_path, 'rear_preview')
|
/aosp_15_r20/cts/apps/CameraITS/tests/scene2_g/ |
H A D | test_preview_num_faces.py | 91 dut, cam, preview_size, fd_mode, log_path): argument 109 [result['recordedOutputPath'], log_path]) 180 log_path = self.log_path 191 log_path=log_path) 220 self.dut, cam, preview_size, fd_mode, log_path) 228 log_path, preview_file_name)) 247 file_name_stem = os.path.join(log_path, _NAME) 254 file_name_stem = os.path.join(log_path, 'rear_preview')
|
/aosp_15_r20/cts/apps/CameraITS/tests/scene2_b/ |
H A D | test_preview_num_faces.py | 91 dut, cam, preview_size, fd_mode, log_path): argument 109 [result['recordedOutputPath'], log_path]) 180 log_path = self.log_path 191 log_path=log_path) 220 self.dut, cam, preview_size, fd_mode, log_path) 228 log_path, preview_file_name)) 247 file_name_stem = os.path.join(log_path, _NAME) 254 file_name_stem = os.path.join(log_path, 'rear_preview')
|
/aosp_15_r20/cts/apps/CameraITS/tests/scene2_d/ |
H A D | test_preview_num_faces.py | 91 dut, cam, preview_size, fd_mode, log_path): argument 109 [result['recordedOutputPath'], log_path]) 180 log_path = self.log_path 191 log_path=log_path) 220 self.dut, cam, preview_size, fd_mode, log_path) 228 log_path, preview_file_name)) 247 file_name_stem = os.path.join(log_path, _NAME) 254 file_name_stem = os.path.join(log_path, 'rear_preview')
|
/aosp_15_r20/cts/apps/CameraITS/tools/ |
H A D | dng_noise_model.py | 201 sens_max, sens_max_analog, log_path): argument 218 os.path.join(log_path, 'noise_model.c'), 236 os.path.join(log_path, 'noise_model_avg.c'), 242 os.path.join(log_path, 'noise_profile_avg.cc'), 248 os.path.join(log_path, 'noise_profile.cc'), 256 os.path.join(log_path, 'noise_profile.cc'), 508 log_path = self.log_path 509 name_with_log_path = os.path.join(log_path, _NAME) 565 self.log_path, 611 file_path = os.path.join(log_path, filename) [all …]
|
/aosp_15_r20/external/cronet/net/log/ |
H A D | file_net_log_observer.cc | 116 base::FilePath SiblingInprogressDirectory(const base::FilePath& log_path) { in SiblingInprogressDirectory() argument 117 return log_path.AddExtension(FILE_PATH_LITERAL(".inprogress")); in SiblingInprogressDirectory() 203 FileWriter(const base::FilePath& log_path, 337 const base::FilePath& log_path, in CreateBounded() argument 341 return CreateInternal(log_path, SiblingInprogressDirectory(log_path), in CreateBounded() 347 const base::FilePath& log_path, in CreateUnbounded() argument 350 return CreateInternal(log_path, base::FilePath(), std::nullopt, kNoLimit, in CreateUnbounded() 433 const base::FilePath& log_path, in CreateBoundedForTests() argument 438 return CreateInternal(log_path, SiblingInprogressDirectory(log_path), in CreateBoundedForTests() 444 const base::FilePath& log_path, in CreateInternal() argument [all …]
|
/aosp_15_r20/cts/apps/CameraITS/tests/scene7/ |
H A D | test_multi_camera_switch.py | 109 def _do_ae_check(uw_img, w_img, log_path, suffix): argument 408 _ZOOM_RANGE_UW_W[1], _ZOOM_STEP, self.log_path) 462 for filename in os.listdir(self.log_path): 463 file_path = os.path.join(self.log_path, filename) 509 its_session_utils.remove_frame_files(self.log_path, [ 510 os.path.join(self.log_path, img_uw_file), 511 os.path.join(self.log_path, img_w_file)]) 514 uw_path = pathlib.Path(os.path.join(self.log_path, img_uw_file)) 516 os.rename(os.path.join(self.log_path, img_uw_file), uw_name) 518 w_path = pathlib.Path(os.path.join(self.log_path, img_w_file)) [all …]
|