Home
last modified time | relevance | path

Searched refs:open (Results 1 – 25 of 204) sorted by relevance

123456789

/tools/repohooks/tools/
Dandroid_test_mapping_format_unittest.py199 with open(self.test_mapping_file, 'w') as f:
201 with open(self.test_mapping_file, 'r') as f:
206 with open(self.test_mapping_file, 'w') as f:
208 with open(self.test_mapping_file, 'r') as f:
215 with open(self.test_mapping_file, 'w') as f:
217 with open(self.test_mapping_file, 'r') as f:
225 with open(self.test_mapping_file, 'w') as f:
227 with open(self.test_mapping_file, 'r') as f:
235 with open(self.test_mapping_file, 'w') as f:
237 with open(self.test_mapping_file, 'r') as f:
[all …]
/tools/carrier_settings/python/
Dupdate_carrier_data.py153 with open(path, 'r', encoding='utf-8') as f:
171 with open(path, 'r', encoding='utf-8') as f:
204 with open(carrier_file, 'r', encoding='utf-8') as f:
218 with open(carrier_file, 'w', encoding='utf-8') as f:
233 with open(carrier_file, 'r', encoding='utf-8') as f:
253 with open(carrier_file, 'w', encoding='utf-8') as f:
270 with open(carrier_list_file, 'r', encoding='utf-8') as f:
283 with open(carrier_list_file, 'w', encoding='utf-8') as f:
312 with open(others_textpb, 'r', encoding='utf-8') as others_textpb_file:
341 with open(others_textpb, 'w', encoding='utf-8') as others_textpb_file:
[all …]
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DZFileNotificationTest.java40 public int open; field in ZFileNotificationTest.KeepListener
54 public IOExceptionRunnable open() { in open() method in ZFileNotificationTest.KeepListener
55 open++; in open()
92 open = 0; in reset()
101 assertEquals(0, open); in assertClear()
198 assertEquals(1, kl.open); in notifyOpenUpdateClose()
199 kl.open = 0; in notifyOpenUpdateClose()
222 assertEquals(1, kl.open); in notifyOpenUpdate()
223 kl.open = 0; in notifyOpenUpdate()
/tools/metalava/
DREADME.md403 open class ComparisonVisitor {
404 open fun compare(old: Item, new: Item) {}
405 open fun added(item: Item) {}
406 open fun removed(item: Item) {}
408 open fun compare(old: PackageItem, new: PackageItem) { }
409 open fun compare(old: ClassItem, new: ClassItem) { }
410 open fun compare(old: MethodItem, new: MethodItem) { }
411 open fun compare(old: FieldItem, new: FieldItem) { }
412 open fun compare(old: ParameterItem, new: ParameterItem) { }
414 open fun added(item: PackageItem) { }
[all …]
/tools/asuite/atest-py2/tools/
Datest_tools_unittest.py73 with open(uc.CLASS_INDEX, 'rb') as cache:
77 with open(uc.CC_CLASS_INDEX, 'rb') as cache:
81 with open(uc.PACKAGE_INDEX, 'rb') as cache:
85 with open(uc.QCLASS_INDEX, 'rb') as cache:
90 with open(uc.MODULE_INDEX, 'rb') as cache:
/tools/asuite/atest/tools/
Datest_tools.py176 with open(dump_file, 'wb') as cache_file:
241 with open(index, 'wb') as cache:
315 with open(index, 'wb') as cache_file:
417 with open(report_file, 'r') as _rfile:
420 with open(report_file, 'w+') as _wfile:
443 with open(report_file, 'r') as rfile:
472 with open(report_file, 'r') as rfile:
Datest_tools_unittest.py76 with open(uc.CLASS_INDEX, 'rb') as cache:
80 with open(uc.CC_CLASS_INDEX, 'rb') as cache:
84 with open(uc.PACKAGE_INDEX, 'rb') as cache:
88 with open(uc.QCLASS_INDEX, 'rb') as cache:
93 with open(uc.MODULE_INDEX, 'rb') as cache:
/tools/asuite/atest/
Datest_utils.py222 with open(error_log_file) as f:
508 with open(result_path) as json_file:
532 with open(result_path, 'w') as outfile:
606 with open(filename, 'rb') as target:
640 with open(check_file, 'r+') as _file:
662 with open(save_file, 'w+') as _file:
718 with open(cache_path, 'wb') as test_info_cache_file:
745 with open(cache_file, 'rb') as config_dictionary_file:
869 with zip_file.open(filename) as extract_file:
995 with open(path, 'rb') as proto_file:
[all …]
Dasuite_metrics.py77 with open(_META_FILE) as f:
92 with open(_META_FILE, 'w+') as f:
103 with open(old_file) as f:
Datest_execution_info.py118 with open(result_path) as json_file:
154 with open(path) as json_file:
219 with open(json_file) as result:
289 self.result_file = open(full_file_name, 'w')
/tools/test/connectivity/acts/framework/acts/controllers/bits_lib/
Dbits_service.py80 self._output_log = open(output_log_path, 'w')
94 with open(dmesg_log, 'w') as f:
99 with open(free_log, 'w') as f:
104 with open(df_log, 'w') as f:
151 with open(config_path, 'w') as f:
/tools/asuite/atest/test_finders/
Dtest_finder_utils.py209 with open(test_path) as class_file:
230 with open(test_path) as class_file:
247 with open(file_name) as data:
263 with open(file_name) as data:
484 with open(FIND_INDEXES[ref_type], 'rb') as index:
716 with open(full_push_file_path) as f:
1071 with open(test_path) as class_file:
1088 with open(test_path) as class_file:
1110 with open(test_path) as class_file:
1163 with open(file_path) as class_file:
/tools/test/connectivity/acts_tests/tests/google/tel/etc/
Dmanage_sim.py96 f = open(sim_card_file, 'r')
126 f = open(sim_card_file, 'w')
134 f = open(sim_card_file, 'r')
160 f = open(sim_card_file, 'w')
/tools/external_updater/
Dnotifier.py70 with open(owner_file, 'r') as f:
166 with open(RESULT_FILE_PATH, 'r') as f:
170 with open(args.history, 'r') as f:
177 with open(args.history, 'w') as f:
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/
Dlogserial.py210 self.open()
247 self.open()
262 def open(self): member in LogSerial
267 self.connection_handle.open()
333 with open(path, 'a') as log_file:
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/coex/
Daudio_capture_device.py66 with wave.open(latest_file_path, 'r') as f:
84 wf = wave.open(file_name, 'wb')
138 with open(file_to_read, 'rb') as pcm_file:
192 stream = self.audio.open(
/tools/asuite/aidegen_functional_test/
Daidegen_functional_test_main.py271 with open(_GIT_COMMIT_ID_JSON, 'r') as jsfile:
426 with open(_GOLDEN_SAMPLES_JSON, 'r') as infile:
434 with open(_GOLDEN_SAMPLES_JSON, 'w') as outfile:
454 with open(_GOLDEN_SAMPLES_JSON, 'r') as outfile:
611 with open(verified_file_path, 'r') as jsfile:
678 with open(path, encoding='utf8') as template:
/tools/test/openhst/
Dstress_test_common.py49 return open(path, "rb").read()
53 return open(resource_name, "rb").read()
54 return open(os.path.join(RESOURCE_DIR, os.path.basename(resource_name)),
/tools/asuite/atest-py2/
Dasuite_metrics.py79 with open(_META_FILE) as f:
94 with open(_META_FILE, 'w+') as f:
105 with open(old_file) as f:
/tools/test/connectivity/acts/framework/tests/
Dtest_suite.py63 stdout=open(output_file, 'w+'),
75 with open(result.output_file, 'r') as out_file:
82 with open(result.output_file, 'r') as out_file:
/tools/test/connectivity/acts/framework/acts/controllers/attenuator_lib/
D_tnhelper.py49 def open(self, host, port=23): member in _TNHelper
56 self._tn.open(host, port, 10)
95 self.open(self._ip_address, self._port)
/tools/asuite/atest-py2/test_finders/
Dtest_finder_utils.py181 with open(test_path) as class_file:
202 with open(test_path) as class_file:
219 with open(file_name) as data:
249 with open(test_path) as test_file:
422 with open(FIND_INDEXES[ref_type], 'rb') as index:
645 with open(full_push_file_path) as f:
/tools/test/connectivity/acts/framework/acts/controllers/
Diperf_server.py107 with open(result_path, 'r') as f:
116 with open(result_path, 'r') as f:
381 self._last_opened_file = open(self._current_log_file, 'w')
552 with open(log_file, 'w') as f:
707 with open(log_file, 'w') as f:
/tools/asuite/aidegen/lib/
Dcommon_util.py587 with open(json_path, 'w') as json_file:
601 with open(json_path) as jfile:
616 with open(file_path, encoding='utf8') as infile:
633 with open(path, encoding=encode_type) as template:
647 with open(path, 'w') as target:
/tools/acloud/setup/
Dgcp_setup_runner_test.py60 file_write = open(self.cfg_path, 'w')
77 open(self.cfg_path, "r"), user_config_pb2.UserConfig)
84 open(self.cfg_path, "r"), user_config_pb2.UserConfig)
93 open(self.cfg_path, "r"), user_config_pb2.UserConfig)

123456789