Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 140) sorted by relevance

123456

/tools/repohooks/tools/
Dandroid_test_mapping_format_unittest.py199 with open(self.test_mapping_file, 'w') as f:
200 f.write(VALID_TEST_MAPPING)
201 with open(self.test_mapping_file, 'r') as f:
202 android_test_mapping_format.process_file(f.read())
206 with open(self.test_mapping_file, 'w') as f:
207 f.write(BAD_JSON)
208 with open(self.test_mapping_file, 'r') as f:
211 f.read())
215 with open(self.test_mapping_file, 'w') as f:
216 f.write(BAD_TEST_WRONG_KEY)
[all …]
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/utils/
DCachedFileContentsTest.java37 File f = mTemporaryFolder.newFile("test"); in createFileAndCheckWithNoChanges() local
38 Files.write("abc", f, Charsets.US_ASCII); in createFileAndCheckWithNoChanges()
42 CachedFileContents<Object> cachedFile = new CachedFileContents<>(f); in createFileAndCheckWithNoChanges()
51 File f = mTemporaryFolder.newFile("test"); in createFileAndCheckChanges() local
52 Files.write("abc", f, Charsets.US_ASCII); in createFileAndCheckChanges()
56 CachedFileContents<Object> cachedFile = new CachedFileContents<>(f); in createFileAndCheckChanges()
59 Files.write("def", f, Charsets.US_ASCII); in createFileAndCheckChanges()
67 File f = mTemporaryFolder.newFile("test"); in createFileUpdateAndCheckChanges() local
68 Files.write("abc", f, Charsets.US_ASCII); in createFileUpdateAndCheckChanges()
72 CachedFileContents<Object> cachedFile = new CachedFileContents<>(f); in createFileUpdateAndCheckChanges()
[all …]
/tools/treble/hacksaw/workspace/
Dcopier.go30 var f FileCopier
31 return &f
34 func (f FileCopier) GetIsGitProjectFunc(codebaseDir string, gitProjects []string) func(string) (boo…
54 func (f FileCopier) GetContainsGitProjectFunc(codebaseDir string, gitProjects []string) func(string…
77 func (f FileCopier) Copy(codebaseDir string, gitProjects []string, workspaceDir string) error {
78 isGitProject := f.GetIsGitProjectFunc(codebaseDir, gitProjects)
79 containsGitProject := f.GetContainsGitProjectFunc(codebaseDir, gitProjects)
89 return f.CopyNode(info, codebaseDir, path, workspaceDir)
116 destPath, err := f.GetDestPath(codebaseDir, path, workspaceDir)
120 if err = f.CopyDirRecursive(info, path, destPath); err != nil {
[all …]
/tools/apksig/src/test/java/com/android/apksig/util/
DDataSinkFromRAFTest.java37 RandomAccessFile f = null; in createDataSink() local
39 f = new RandomAccessFile(tmp, "rw"); in createDataSink()
41 if (f == null) { in createDataSink()
46 (RandomAccessFileDataSink) DataSinks.asDataSink(f), in createDataSink()
47 new DataSourceFromRAFTest.TmpFileCloseable(tmp, f)); in createDataSink()
52 RandomAccessFile f = dataSink.getFile(); in getContents() local
53 if (f.length() > Integer.MAX_VALUE) { in getContents()
54 throw new IOException("File too large: " + f.length()); in getContents()
56 byte[] contents = new byte[(int) f.length()]; in getContents()
57 f.seek(0); in getContents()
[all …]
DDataSourceFromRAFChunkTest.java49 File f = ((TmpFileCloseable) c.getCloseable()).getFile(); in testFileSizeChangesNotVisible() local
58 try (RandomAccessFile raf = new RandomAccessFile(f, "rw")) { in testFileSizeChangesNotVisible()
82 RandomAccessFile f = null; in createDataSource() local
85 f = new RandomAccessFile(tmp, "r"); in createDataSource()
87 if (f == null) { in createDataSource()
93 factory.create(f, 2, contents.length), in createDataSource()
94 new DataSourceFromRAFTest.TmpFileCloseable(tmp, f)); in createDataSource()
DDataSourceFromRAFTest.java51 File f = ((TmpFileCloseable) c.getCloseable()).getFile(); in testFileSizeChangesVisible() local
60 try (RandomAccessFile raf = new RandomAccessFile(f, "rw")) { in testFileSizeChangesVisible()
78 RandomAccessFile f = null; in createDataSource() local
81 f = new RandomAccessFile(tmp, "r"); in createDataSource()
83 if (f == null) { in createDataSource()
89 factory.create(f), in createDataSource()
90 new TmpFileCloseable(tmp, f)); in createDataSource()
/tools/treble/hacksaw/mount/
Dfake.go33 var f fakeMounter
34 f.mountMap = make(map[string]MountEntry)
35 return &f
38 func (f *fakeMounter) Mount(source string, target string, fstype string, flags uintptr, data string…
41 f.mountMap[target] = MountEntry{
50 func (f *fakeMounter) Unmount(target string, flags int) error {
51 _, ok := f.mountMap[target]
55 delete(f.mountMap, target)
59 func (f *fakeMounter) List() ([]string, error) {
61 for target, _ := range f.mountMap {
Dsystem.go29 var f systemMounter
30 return &f
33 func (f *systemMounter) Mount(source string, target string, fstype string, flags uintptr, data stri…
37 func (f *systemMounter) Unmount(target string, flags int) error {
41 func (f *systemMounter) List() ([]string, error) {
47 mounts, err := f.parseMounts(mountsFile)
65 func (f *systemMounter) parseMounts(mountSource io.Reader) ([]Mount, error) {
/tools/test/connectivity/acts_tests/tests/google/tel/etc/
Dmanage_sim.py96 f = open(sim_card_file, 'r')
97 simconf = json.load(f)
98 f.close()
126 f = open(sim_card_file, 'w')
127 json.dump(simconf, f, indent=4, sort_keys=True)
128 f.close()
134 f = open(sim_card_file, 'r')
135 simconf = json.load(f)
136 f.close()
160 f = open(sim_card_file, 'w')
[all …]
/tools/external_updater/
Dnotifier.py70 with open(owner_file, 'r') as f:
71 return f.read().strip()
86 subject += f" {proj} {latest_ver}"
103 f'--to={recipient}',
104 f'--cc={cc_recipient}',
105 f'--subject={subject}'],
166 with open(RESULT_FILE_PATH, 'r') as f:
167 results = json.load(f)
170 with open(args.history, 'r') as f:
171 history = json.load(f)
[all …]
/tools/carrier_settings/python/
Dupdate_carrier_data.py153 with open(path, 'r', encoding='utf-8') as f:
155 text_format.Merge(f.read(), mcs)
171 with open(path, 'r', encoding='utf-8') as f:
173 text_format.Merge(f.read(), carriers)
204 with open(carrier_file, 'r', encoding='utf-8') as f:
205 base_setting = text_format.ParseLines(f,
218 with open(carrier_file, 'w', encoding='utf-8') as f:
219 text_format.PrintMessage(base_setting, f, as_utf8=True)
233 with open(carrier_file, 'r', encoding='utf-8') as f:
235 f, carrier_settings_pb2.MultiCarrierSettings())
[all …]
/tools/tradefederation/prebuilts/test_harness/
DAndroid.mk35 $(tradefed_dist_zip) : $(SOONG_ZIP) $(foreach f,$(tradefed_dist_copy_pairs),$(call word-colon,1,$(f
37 $(foreach f,$(PRIVATE_COPY_PAIRS), \
38 cp -f $(call word-colon,1,$(f)) $(dir $@)/tmp/$(call word-colon,2,$(f)) &&) true
40 $(foreach f,$(PRIVATE_COPY_PAIRS),-f $(dir $@)/tmp/$(call word-colon,2,$(f)))
/tools/asuite/aidegen/lib/
Dmodule_info_util.py137 original_file_mtimes = {f: None for f in file_paths}
139 original_file_mtimes = {f: os.path.getmtime(f) for f in file_paths}
153 f, original_file_mtimes[f]) for f in file_paths]):
/tools/test/connectivity/acts/framework/acts/controllers/bits_lib/
Dbits_service.py94 with open(dmesg_log, 'w') as f:
95 f.write(dmesg.stdout)
99 with open(free_log, 'w') as f:
100 f.write(free.stdout)
104 with open(df_log, 'w') as f:
105 f.write(df.stdout)
151 with open(config_path, 'w') as f:
152 f.write(json.dumps(self.config.config_dic, indent=2))
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/audio_analysis_lib/
Dcheck_quality.py242 spectral = [(f, c) for (f, c) in spectral if f < ignore_high_freq]
345 with open(output_file, 'w') as f:
346 json.dump(dump_dict, f)
420 with open(output_file, 'w') as f:
421 json.dump(dump_dict, f)
451 with open(filename, 'rb') as f:
452 binary = f.read()
/tools/asuite/
Dasuite_run_unittests.py51 for f in files:
52 if 'atest' in f:
54 if 'atest-py2' in f:
56 if 'aidegen' in f:
58 if 'plugin_lib' in f:
60 if 'asuite_plugin' in f:
/tools/asuite/atest/
Dasuite_metrics.py77 with open(_META_FILE) as f:
79 return uuid.UUID(f.read(), version=4)
92 with open(_META_FILE, 'w+') as f:
93 f.write(str(key))
103 with open(old_file) as f:
105 key = uuid.UUID(f.read(), version=4)
/tools/asuite/atest-py2/
Dasuite_metrics.py79 with open(_META_FILE) as f:
81 return uuid.UUID(f.read(), version=4)
94 with open(_META_FILE, 'w+') as f:
95 f.write(str(key))
105 with open(old_file) as f:
107 key = uuid.UUID(f.read(), version=4)
/tools/test/graphicsbenchmark/
DAndroid.mk43 gamecore_dist_copy_pairs += $(foreach f, $(tradefed_files),$(f):gamecore/bin/$(notdir $(f)))
44 gamecore_dist_copy_pairs += $(foreach f, $(config_files),$(f):gamecore/$(notdir $(f)))
/tools/test/connectivity/acts/framework/acts/
Dtest_runner.py295 with open(path, 'w') as f:
296 f.write(self.results.json_str())
304 with open(config_path, 'a') as f:
309 f,
316 with open(path, 'w') as f:
318 f.write('%s:\n%s' % (test_class, ',\n'.join(test_cases)))
319 f.write('\n\n')
/tools/test/connectivity/acts/framework/acts/metrics/loggers/
Dusage_metadata_logger.py28 def record_api_usage(f): argument
40 @wraps(f)
42 log_usage(f.__module__, f.__name__)
43 return f(*args, **kwargs)
/tools/test/connectivity/acts/framework/acts/controllers/
Diperf_server.py107 with open(result_path, 'r') as f:
108 iperf_output = f.readlines()
116 with open(result_path, 'r') as f:
119 lines = f.readlines()[1:]
552 with open(log_file, 'w') as f:
553 f.write(iperf_result.stdout)
707 with open(log_file, 'w') as f:
708 f.write(iperf_result)
/tools/test/connectivity/tools/
Dproto_check.py153 status, f = match.group(1), match.group(2)
155 if f.endswith('.proto'):
156 proto_files.append(os.path.abspath(f))
157 if f.endswith('_pb2.py'):
158 proto_gen_files.append(os.path.abspath(f))
/tools/aadevtools/dev/
Dclone_proj.sh64 f=`git rev-parse --git-dir`/hooks/commit-msg ; mkdir -p $(dirname $f) ; curl -Lo $f https://gerrit-…
/tools/security/gdb/gdb_json_printer/test_examples/
Dbasic_types.cpp29 int32_t f = -6; in main() local
42 std::cout << a + b + c + d + e + f + g + h + i + j << std::endl; in main()
51 const int32_t f = -6; in main() local
62 std::cout << a + b + c + d + e + f + g + h + i + j << std::endl; in main()

123456