Home
last modified time | relevance | path

Searched refs:file_name (Results 1 – 25 of 60) 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/acloud/internal/lib/
Dcvd_utils.py200 for file_name in _ARTIFACT_FILES:
203 os.path.join(image_dir, file_name)))
637 def _GetLogType(file_name): argument
647 if file_name == "kernel.log":
649 if file_name == "logcat":
651 if file_name.endswith(".log") or file_name == "cuttlefish_config.json":
675 file_name = remote_path.basename(log_path)
676 log_type = _GetLogType(file_name)
679 base, ext = remote_path.splitext(file_name)
685 log_name = ("full_gce_logcat" + index_str if file_name == "logcat" else
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/cellular/performance/
Dcellular_performance_test_utils.py104 file_name = None
112 file_name = file[-1]
115 file_name = None
117 if file_name and file_size == previous_file_size:
124 local_file_name = '{}_{}'.format(file_name, tag) if tag else file_name
128 .format(file_name), log_path)
/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/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/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)
DWifiRvrTest.py217 golden_path = next(file_name for file_name in self.golden_files_list
218 if test_name in file_name)
281 golden_path = next(file_name
282 for file_name in self.golden_files_list
283 if self.current_test_name in 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/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)
Dtel_data_utils.py2464 file_folder, file_name = _generate_file_directory_and_file_name(
2466 file_path = os.path.join(file_folder, file_name)
2564 file_directory, file_name = _generate_file_directory_and_file_name(
2566 file_path = os.path.join(file_directory, file_name)
2614 file_directory, file_name = _generate_file_directory_and_file_name(
2616 file_path = os.path.join(file_directory, file_name)
2619 file_to_be_delete = os.path.join(file_directory, "*%s*" % file_name)
2755 def active_file_download_task(log, ad, file_name="5MB", method="curl"): argument
2816 file_size = file_size_map.get(file_name)
2817 file_urls = url_map.get(file_name)
[all …]
/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/test/connectivity/acts/framework/acts/controllers/buds_lib/
Dapollo_lib.py773 def write_to_flash(self, file_name=None): argument
786 if not os.path.isfile(file_name):
787 message = 'DFU file %s not found.'.format(file_name)
791 'Write file {} to external flash partition ...'.format(file_name))
792 image_size = os.path.getsize(file_name)
806 (file_name, self.commander_port))
836 def flash_from_file(self, file_name, reconnect=True): argument
847 if self.write_to_flash(file_name):
1485 self.flash_from_file(file_name=build, reconnect=True)
/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/test/connectivity/acts_tests/acts_contrib/test_utils/net/
Dnet_test_utils.py305 file_name = "%s/tcpdump_%s_%s.pcap" % (TCPDUMP_PATH, ad.serial, test_name)
306 ad.log.info("tcpdump file is %s", file_name)
308 interface, file_name)
349 file_name = "tcpdump_%s_%s.pcap" % (ad.serial, test_name)
350 return "%s/%s" % (log_path, file_name)
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/gnss/
Dgnss_measurement.py132 def _generate_local_temp_path(self, file_name="file.txt"): argument
139 file_path = os.path.join(folder, file_name)
162 dest = self._generate_local_temp_path(file_name="measurement.txt")
/tools/asuite/atest/test_finders/
Dmodule_finder.py334 _, file_name = test_finder_utils.get_dir_path_and_filename(path)
343 elif file_name and constants.JAVA_EXT_RE.match(file_name):
357 elif file_name and constants.CC_EXT_RE.match(file_name):
371 elif (not file_name and kwargs.get('class_name', None)):
375 elif (not file_name
Dtest_finder_utils.py278 def get_package_name(file_name): argument
287 with open(file_name) as data:
294 def get_parent_cls_name(file_name): argument
303 with open(file_name) as data:
984 dir_path, file_name = get_dir_path_and_filename(path)
991 if not file_name:
/tools/asuite/atest/
Dcli_translator.py471 file_name=constants.TEST_MAPPING, include_subdirs=False, argument
498 test_mapping_file = os.path.join(path, file_name)
504 test_mapping_files.update(atest_utils.find_files(path, file_name))
508 test_mapping_file = os.path.join(path, file_name)
535 path, test_groups, file_name, include_subdirs,
/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/framework/tests/libs/uicd/
Duicd_cli_test.py60 for file_name in ['file1', 'file2', 'file3']:
61 self.assertIn(file_name, nc._workflows,
/tools/acloud/public/actions/
Dcommon_operations.py168 file_name = "%s_serial_%s.log" % (device.instance_name, port)
169 file_path = os.path.join(tempdir, file_name)
170 src_dict[file_path] = file_name

123