Home
last modified time | relevance | path

Searched refs:file_name (Results 1 – 25 of 74) sorted by relevance

123

/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/commands/
Dshell.py128 def search_file(self, search_string, file_name): argument
139 self.run('grep %s %s' % (shlex.quote(search_string), file_name))
144 def read_file(self, file_name): argument
153 return self.run('cat %s' % file_name).stdout
155 def write_file(self, file_name, data): argument
162 return self.run('echo %s > %s' % (shlex.quote(data), file_name))
164 def append_file(self, file_name, data): argument
171 return self.run('echo %s >> %s' % (shlex.quote(data), file_name))
173 def touch_file(self, file_name): argument
179 self.write_file(file_name, '')
[all …]
/tools/acloud/pull/
Dpull.py41 def PullFileFromInstance(cfg, instance, file_name=None, no_prompts=False): argument
61 log_files = SelectLogFileToPull(ssh, file_name)
130 def SelectLogFileToPull(ssh, file_name=None): argument
147 if file_name:
148 file_path = os.path.join(constants.REMOTE_LOG_FOLDER, file_name)
182 file_name = os.path.basename(file_path)
183 if file_name == _KERNEL or file_name.endswith(_IMG_FILE_EXTENSION):
204 return PullFileFromInstance(cfg, instance[0], args.file_name, args.no_prompt)
207 args.file_name,
Dpull_test.py150 args.file_name = "file1.log"
157 mock.call(cfg, instance_obj, args.file_name, args.no_prompt)])
166 mock.call(cfg, selected_instance, args.file_name, args.no_prompt)])
/tools/asuite/adevice/src/
Dfingerprint.rs151 for (file_name, host_metadata) in host_files { in diff()
152 match device_files.get(file_name) { in diff()
157 diffs.device_diffs.insert(file_name.clone(), host_metadata.clone()) in diff()
162 None => diffs.device_needs.insert(file_name.clone(), host_metadata.clone()), in diff()
167 for (file_name, metadata) in device_files { in diff()
168 if host_files.get(file_name).is_none() { in diff()
169 diffs.device_extra.insert(file_name.clone(), metadata.clone()); in diff()
764 for (file_name, file_type, data) in expected { in fingerprint_simple_partition()
767 matching_file_fingerprint(file_name, data, &result), in fingerprint_simple_partition()
769 file_name, in fingerprint_simple_partition()
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/fuchsia/
Dutils.py45 file_directory, file_name = _generate_file_directory_and_file_name(
47 file_path = os.path.join(file_directory, file_name)
93 file_name = url.split('/')[-1]
97 file_directory, file_name = os.path.split(out_path)
100 return file_directory, file_name
/tools/asuite/atest/logstorage/
Dlog_uploader_unittest.py180 file_name = 'some_name.log'
181 file_path1 = dir_path.joinpath(file_name)
182 file_path2 = dir_path.joinpath('some_sub_dir').joinpath(file_name)
198 file_name = 'filename.extension'
199 file_path1 = dir_path.joinpath(file_name)
200 file_path2 = dir_path.joinpath('some_sub_dir').joinpath(file_name)
299 file_name = 'file.txt'
301 self.fs.create_file(target_path.joinpath(file_name), contents=file_content)
313 link_path.joinpath(file_name),
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/
Dbt_contacts_utils.py52 def parse_contacts(file_name): argument
64 with open(file_name, "r") as contacts_file:
93 def phone_number_count(destination_path, file_name): argument
97 with open("{}{}".format(destination_path, file_name),
226 file_name, argument
256 create_new_contacts_vcf_from_vcards(destination_path, file_name, vcards)
315 for file_name in files.split():
316 if ".vcf" in file_name:
317 device.adb.shell("rm -f {}{}".format(STORAGE_PATH, file_name))
/tools/acloud/internal/lib/
Dcvd_utils.py220 for file_name in _ARTIFACT_FILES:
223 os.path.join(image_dir, file_name)))
1018 def _GetLogType(file_name): argument
1028 if file_name == "kernel.log":
1030 if file_name == "logcat":
1032 if file_name.endswith(".log") or file_name == "cuttlefish_config.json":
1056 file_name = remote_path.basename(log_path)
1057 log_type = _GetLogType(file_name)
1060 base, ext = remote_path.splitext(file_name)
1066 log_name = ("full_gce_logcat" + index_str if file_name == "logcat" else
[all …]
Dgoldfish_utils.py123 for file_name in file_names:
124 if not file_name.endswith(".ko"):
125 os.remove(os.path.join(parent_dir, file_name))
/tools/test/connectivity/acts_tests/tests/google/wifi/
DWifiIFSTwTest.py169 file_name = time.strftime("%Y-%m-%d_%H:%M:%S", time.localtime())
170 current_path = os.path.join(self.dut.log_path, file_name)
192 self.dut, self.tcpdump_pid, file_name, adb_pull_timeout=600)
193 self.tcpdump_pid = start_tcpdump(self.dut, file_name)
269 file_name = time.strftime("%Y-%m-%d_%H:%M:%S", time.localtime())
270 self.tcpdump_pid = start_tcpdump(self.dut, file_name)
/tools/dexter/slicer/
Ddebuginfo_encoder.cc109 auto file_name = dbg_annotation->CastOperand<String>(0); in Visit() local
110 if (file_name->ir_string != source_file_) { in Visit()
111 source_file_ = file_name->ir_string; in Visit()
113 dbginfo_.PushULeb128(file_name->index + 1); in Visit()
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/coex/
Daudio_capture_device.py82 file_name = self.wave_file % self.next_fileno
83 logging.debug('writing to %s' % file_name)
84 wf = wave.open(file_name, 'wb')
90 return file_name
DCoexPerformanceBaseTest.py359 file_name for file_name in self.performance_files_list
360 if self.current_test_name in file_name
420 file_name for file_name in self.performance_files_list
421 if self.current_test_name in file_name
/tools/asuite/aidegen/vscode/
Dvscode_workspace_file_gen.py79 file_name = ''.join([folder_name, _VSCODE_WORKSPACE_EXT])
80 file_path = os.path.join(abs_path, file_name)
Dvscode_workspace_file_gen_unittest.py54 file_name = ''.join(
56 file_path = os.path.join(abs_path, file_name)
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/cellular/performance/
Dcellular_performance_test_utils.py312 file_name = None
320 file_name = file[-1]
323 file_name = None
325 if file_name and file_size == previous_file_size:
332 local_file_name = '{}_{}'.format(file_name,
333 tag) if tag else file_name
337 .format(file_name), log_path)
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/tel/
Dtel_logging_utils.py595 file_name = "/sdcard/Pictures/screencap"
597 file_name = "%s_%s" % (file_name, test_name)
598 file_name = "%s_%s.png" % (file_name, utils.get_current_epoch_time())
600 ad.adb.shell("screencap -p %s" % file_name)
602 ad.log.error("Fail to log screen shot to %s", file_name)
/tools/test/connectivity/acts_tests/tests/google/net/
DDataCostTest.py242 file_folder, file_name = _generate_file_directory_and_file_name(
244 file_path = os.path.join(file_folder, file_name)
247 self.log.info("File exists. Removing file %s" % file_name)
248 ad.adb.shell("rm -rf %s%s" % (DOWNLOAD_PATH, file_name))
/tools/tradefederation/core/javatests/res/testtype/
Dgtest_output7.txt7 [ RUN ] TestPartResultTest.file_name
8 [ OK ] TestPartResultTest.file_name (1 ms)
Dgtest_output11.txt7 [ RUN ] TestPartResultTest.file_name
8 [ OK ] TestPartResultTest.file_name (1 ms)
Dgtest_output1.txt7 [ RUN ] TestPartResultTest.file_name
8 [ OK ] TestPartResultTest.file_name (1 ms)
/tools/tradefederation/core/res/perfetto/
Drecord_android_trace206 def download_or_get_cached(file_name, url, sha256):
216 bin_path = os.path.join(dir, file_name)
217 sha256_path = os.path.join(dir, file_name + '.sha256')
269 file_name=manifest_entry['file_name'],
692 def check_hash(file_name, sha_value):
693 with open(file_name, 'rb') as fd:
/tools/test/connectivity/acts/framework/tests/libs/uicd/
Duicd_cli_test.py60 for file_name in ['file1', 'file2', 'file3']:
61 self.assertIn(file_name, nc._workflows,
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/net/
Dnet_test_utils.py306 file_name = "%s/tcpdump_%s_%s.pcap" % (TCPDUMP_PATH, ad.serial, test_name)
307 ad.log.info("tcpdump file is %s", file_name)
309 interface, file_name)
350 file_name = "tcpdump_%s_%s.pcap" % (ad.serial, test_name)
351 return "%s/%s" % (log_path, file_name)
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/gnss/
Dgnss_measurement.py168 def _generate_local_temp_path(self, file_name="file.txt"): argument
175 file_path = os.path.join(folder, file_name)
198 dest = self._generate_local_temp_path(file_name="measurement.txt")

123