Home
last modified time | relevance | path

Searched refs:file_name (Results 1 – 25 of 50) 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.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/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.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-py2/
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/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.py192 golden_path = next(file_name for file_name in self.golden_files_list
193 if test_name in file_name)
255 golden_path = next(file_name
256 for file_name in self.golden_files_list
257 if test_name in file_name)
/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/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/acts_contrib/test_utils/net/
Dnet_test_utils.py302 file_name = "%s/tcpdump_%s_%s.pcap" % (TCPDUMP_PATH, ad.serial, test_name)
303 ad.log.info("tcpdump file is %s", file_name)
305 file_name)
346 file_name = "tcpdump_%s_%s.pcap" % (ad.serial, test_name)
347 return "%s/%s" % (log_path, file_name)
/tools/asuite/atest-py2/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
/tools/asuite/atest/test_finders/
Dmodule_finder.py295 _, file_name = test_finder_utils.get_dir_path_and_filename(path)
302 elif file_name and constants.JAVA_EXT_RE.match(file_name):
316 elif file_name and constants.CC_EXT_RE.match(file_name):
337 elif (not file_name and kwargs.get('class_name', None)):
341 elif (not file_name
Dtest_finder_utils.py238 def get_package_name(file_name): argument
247 with open(file_name) as data:
254 def get_parent_cls_name(file_name): argument
263 with open(file_name) as data:
954 dir_path, file_name = get_dir_path_and_filename(path)
961 if not file_name:
/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/asuite/atest/
Dcli_translator.py441 file_name=constants.TEST_MAPPING, include_subdirs=False, argument
468 test_mapping_file = os.path.join(path, file_name)
474 test_mapping_files.update(atest_utils.find_files(path, file_name))
479 test_mapping_file = os.path.join(path, file_name)
506 path, test_groups, file_name, include_subdirs,
Dcli_translator_unittest.py310 path=TEST_MAPPING_DIR, file_name='test_mapping_sample',
328 file_name='test_mapping_sample', checked_files=set())
345 file_name='test_mapping_sample', checked_files=set())
362 path=TEST_MAPPING_TOP_DIR, file_name='test_mapping_sample',
/tools/acloud/public/actions/
Dcommon_operations.py170 file_name = "%s_serial_%s.log" % (device.instance_name, port)
171 file_path = os.path.join(tempdir, file_name)
172 src_dict[file_path] = 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/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/
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