Home
last modified time | relevance | path

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

12

/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/commands/
Dshell.py120 def search_file(self, search_string, file_name): argument
131 self.run('grep %s %s' % (shlex.quote(search_string), file_name))
136 def read_file(self, file_name): argument
145 return self.run('cat %s' % file_name).stdout
147 def write_file(self, file_name, data): argument
154 return self.run('echo %s > %s' % (shlex.quote(data), file_name))
156 def append_file(self, file_name, data): argument
163 return self.run('echo %s >> %s' % (shlex.quote(data), file_name))
165 def touch_file(self, file_name): argument
171 self.write_file(file_name, '')
[all …]
/tools/acloud/pull/
Dpull.py43 def PullFileFromInstance(cfg, instance, file_name=None, no_prompts=False): argument
63 log_files = SelectLogFileToPull(ssh, file_name)
127 def SelectLogFileToPull(ssh, file_name=None): argument
144 if file_name:
145 file_path = os.path.join(constants.REMOTE_LOG_FOLDER, file_name)
197 file_name = os.path.basename(file_path)
198 if file_name == _KERNEL or file_name.endswith(_IMG_FILE_EXTENSION):
219 return PullFileFromInstance(cfg, instance[0], args.file_name, args.no_prompt)
222 args.file_name,
Dpull_test.py149 args.file_name = "file1.log"
156 mock.call(cfg, instance_obj, args.file_name, args.no_prompt)])
165 mock.call(cfg, selected_instance, args.file_name, args.no_prompt)])
/tools/test/connectivity/acts/framework/acts/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/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/tradefederation/core/atest/
Dcli_translator.py309 def _find_files(self, path, file_name=constants.TEST_MAPPING): argument
321 for filename in fnmatch.filter(filenames, file_name):
365 file_name=constants.TEST_MAPPING, include_subdirs=False, argument
389 test_mapping_file = os.path.join(path, file_name)
395 test_mapping_files.update(self._find_files(path, file_name))
400 test_mapping_file = os.path.join(path, file_name)
427 path, test_group, file_name, include_subdirs,
Dcli_translator_unittest.py277 path=TEST_MAPPING_DIR, file_name='test_mapping_sample',
295 file_name='test_mapping_sample', checked_files=set())
312 file_name='test_mapping_sample', checked_files=set())
329 path=TEST_MAPPING_TOP_DIR, file_name='test_mapping_sample',
/tools/test/connectivity/acts/tests/google/wifi/
DWifiIFSTwTest.py167 file_name = time.strftime("%Y-%m-%d_%H:%M:%S", time.localtime())
168 current_path = os.path.join(self.dut.log_path, file_name)
190 self.dut, self.tcpdump_pid, file_name, adb_pull_timeout=600)
191 self.tcpdump_pid = start_tcpdump(self.dut, file_name)
267 file_name = time.strftime("%Y-%m-%d_%H:%M:%S", time.localtime())
268 self.tcpdump_pid = start_tcpdump(self.dut, file_name)
DWifiRvrTest.py191 golden_path = next(file_name for file_name in self.golden_files_list
192 if test_name in file_name)
254 golden_path = next(file_name
255 for file_name in self.golden_files_list
256 if test_name in file_name)
/tools/test/connectivity/acts/framework/acts/test_utils/fuchsia/
Dutils.py46 file_directory, file_name = _generate_file_directory_and_file_name(
48 file_path = os.path.join(file_directory, file_name)
98 file_name = url.split('/')[-1]
102 file_directory, file_name = os.path.split(out_path)
105 return file_directory, file_name
/tools/asuite/atest/test_finders/
Dmodule_finder.py238 _, file_name = test_finder_utils.get_dir_path_and_filename(path)
245 elif file_name and constants.JAVA_EXT_RE.match(file_name):
251 elif file_name and constants.CC_EXT_RE.match(file_name):
260 elif (not file_name
Dtest_finder_utils.py217 def get_package_name(file_name): argument
226 with open(file_name) as data:
894 dir_path, file_name = get_dir_path_and_filename(path)
901 if not file_name:
/tools/tradefederation/core/atest/test_finders/
Dmodule_finder.py236 _, file_name = test_finder_utils.get_dir_path_and_filename(path)
243 elif file_name and constants.JAVA_EXT_RE.match(file_name):
249 elif file_name and constants.CC_EXT_RE.match(file_name):
258 elif (not file_name
Dtest_finder_utils.py210 def get_package_name(file_name): argument
219 with open(file_name) as data:
880 dir_path, file_name = get_dir_path_and_filename(path)
887 if not file_name:
/tools/test/connectivity/acts/framework/acts/test_utils/coex/
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
Daudio_capture_device.py84 file_name = self.wave_file % self.next_fileno
85 logging.debug('writing to %s' % file_name)
86 wf = wave.open(file_name, 'wb')
92 return file_name
/tools/test/connectivity/acts/framework/acts/test_utils/net/
Dnet_test_utils.py251 file_name = "%s/tcpdump_%s_%s.pcap" % (TCPDUMP_PATH, ad.serial, test_name)
252 ad.log.info("tcpdump file is %s", file_name)
254 file_name)
289 file_name = "tcpdump_%s_%s.pcap" % (ad.serial, test_name)
290 return "%s/%s" % (log_path, file_name)
/tools/test/connectivity/acts/framework/acts/test_utils/tel/
Dtel_test_utils.py3662 file_name = url.split("/")[-1]
3666 file_directory, file_name = os.path.split(out_path)
3669 return file_directory, file_name
3734 def active_file_download_task(log, ad, file_name="5MB", method="curl"): argument
3795 file_size = file_size_map.get(file_name)
3796 file_urls = url_map.get(file_name)
3805 ad.log.error("No url is available to download %s", file_name)
3822 def active_file_download_test(log, ad, file_name="5MB", method="sl4a"): argument
3823 task = active_file_download_task(log, ad, file_name, method=method)
4085 file_directory, file_name = _generate_file_directory_and_file_name(
[all …]
/tools/asuite/atest/
Dcli_translator.py349 file_name=constants.TEST_MAPPING, include_subdirs=False, argument
373 test_mapping_file = os.path.join(path, file_name)
379 test_mapping_files.update(atest_utils.find_files(path, file_name))
384 test_mapping_file = os.path.join(path, file_name)
411 path, test_group, file_name, include_subdirs,
Dcli_translator_unittest.py278 path=TEST_MAPPING_DIR, file_name='test_mapping_sample',
296 file_name='test_mapping_sample', checked_files=set())
313 file_name='test_mapping_sample', checked_files=set())
330 path=TEST_MAPPING_TOP_DIR, file_name='test_mapping_sample',
/tools/dexter/slicer/
Ddebuginfo_encoder.cc106 auto file_name = dbg_annotation->CastOperand<String>(0); in Visit() local
107 if (file_name->ir_string != source_file_) { in Visit()
108 source_file_ = file_name->ir_string; in Visit()
110 dbginfo_.PushULeb128(file_name->index + 1); in Visit()
/tools/test/connectivity/acts_tests/tests/google/net/
DDataCostTest.py251 file_folder, file_name = _generate_file_directory_and_file_name(
253 file_path = os.path.join(file_folder, file_name)
256 self.log.info("File exists. Removing file %s" % file_name)
257 ad.adb.shell("rm -rf %s%s" % (DOWNLOAD_PATH, file_name))
/tools/test/connectivity/acts_tests/tests/google/tel/live/
DTelLiveStressTest.py181 for file_name in ("test_run_info.txt", "test_run_debug.txt"):
182 extract_test_log(self.log, os.path.join(src_dir, file_name),
184 "%s_%s" % (test_name, file_name)),
789 file_name = file_names[selection]
815 self.log, self.dut, file_name,
/tools/acloud/public/actions/
Dcommon_operations.py154 file_name = "%s_serial_%s.log" % (device.instance_name, port)
155 file_path = os.path.join(tempdir, file_name)
156 src_dict[file_path] = file_name
/tools/acloud/public/
Ddevice_driver.py328 file_name = "%s.log" % instance_name
329 file_path = os.path.join(tempdir, file_name)
330 src_dict[file_path] = file_name

12