Home
last modified time | relevance | path

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

1234

/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/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 …]
DDataSourceFromRAFTest.java43 File f = ((TmpFileCloseable) c.getCloseable()).getFile(); in testFileSizeChangesVisible() local
52 try (RandomAccessFile raf = new RandomAccessFile(f, "rw")) { in testFileSizeChangesVisible()
70 RandomAccessFile f = null; in createDataSource() local
73 f = new RandomAccessFile(tmp, "r"); in createDataSource()
75 if (f == null) { in createDataSource()
81 DataSources.asDataSource(f), in createDataSource()
82 new TmpFileCloseable(tmp, f)); in createDataSource()
DDataSourceFromRAFChunkTest.java41 File f = ((TmpFileCloseable) c.getCloseable()).getFile(); in testFileSizeChangesNotVisible() local
50 try (RandomAccessFile raf = new RandomAccessFile(f, "rw")) { in testFileSizeChangesNotVisible()
74 RandomAccessFile f = null; in createDataSource() local
77 f = new RandomAccessFile(tmp, "r"); in createDataSource()
79 if (f == null) { in createDataSource()
85 DataSources.asDataSource(f, 2, contents.length), in createDataSource()
86 new DataSourceFromRAFTest.TmpFileCloseable(tmp, f)); in createDataSource()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DHprofAllocSiteParserTest.java67 File f = FileUtil.createTempFile("hprof", ".test"); in testParse() local
69 FileUtil.writeToFile(TEST_STRING, f); in testParse()
70 Map<String, String> results = mParser.parse(f); in testParse()
75 FileUtil.deleteFile(f); in testParse()
82 File f = FileUtil.createTempFile("hprof", ".test"); in testParse_invalidContent() local
84 FileUtil.writeToFile("SITES BEGIN\nugh, we are in big trouble", f); in testParse_invalidContent()
85 Map<String, String> results = mParser.parse(f); in testParse_invalidContent()
88 FileUtil.deleteFile(f); in testParse_invalidContent()
DRunUtilFuncTest.java129 File f = FileUtil.createTempFile("foo", ".txt"); in testRunTimedCmd_largeOutput() local
132 s = new BufferedWriter(new FileWriter(f)); in testRunTimedCmd_largeOutput()
142 .runTimedCmd(3 * LONG_TIMEOUT_MS, "cat", f.getAbsolutePath()); in testRunTimedCmd_largeOutput()
151 f.delete(); in testRunTimedCmd_largeOutput()
/tools/test/connectivity/acts/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/tradefederation/core/src/com/android/tradefed/device/metric/
DFilePullerLogCollector.java66 for (File f : metricDirectory.listFiles()) { in processMetricDirectory()
67 if (f.isDirectory()) { in processMetricDirectory()
68 processMetricDirectory(key, f, runData); in processMetricDirectory()
70 processMetricFile(key, f, runData); in processMetricDirectory()
/tools/test/connectivity/tools/
Dyapf_checker.py43 full_files = [os.path.abspath(f) for f in files if f.endswith('.py')]
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zfile/
DZFiles.java65 public static ZFile apk(@Nonnull File f, @Nonnull ZFileOptions options) throws IOException { in apk() argument
68 return new ZFile(f, options); in apk()
93 @Nonnull File f, in apk()
103 ZFile zfile = apk(f, options); in apk()
/tools/tradefederation/core/tests/res/testCmdFiles/
Dbasic.txt6 LONG MACRO f
13 recharge --max-battery f() --noisy-dry-run
Dmissing-end-macro.txt6 LONG MACRO f
13 recharge --max-battery f() --noisy-dry-run
Dmissing-macro-def.txt6 LONG MACRO f
13 recharge --max-battery f() --noisy-dry-run
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DAllTestAppsInstallSetup.java104 for (File f : files) { in installApksRecursively()
105 if (f.isDirectory()) { in installApksRecursively()
106 installApksRecursively(f, device); in installApksRecursively()
108 if (FileUtil.getExtension(f.getAbsolutePath()).toLowerCase().equals(".apk")) { in installApksRecursively()
109 installApk(f, device); in installApksRecursively()
111 CLog.d("Skipping %s because it is not an apk", f.getAbsolutePath()); in installApksRecursively()
DInstallAllTestZipAppsSetup.java141 for (File f : files) { in installApksRecursively()
142 if (f.isDirectory()) { in installApksRecursively()
143 installApksRecursively(f, device); in installApksRecursively()
144 } else if (FileUtil.getExtension(f.getAbsolutePath()).toLowerCase().equals(".apk")) { in installApksRecursively()
145 installApk(f, device); in installApksRecursively()
147 CLog.d("Skipping %s because it is not an apk", f.getAbsolutePath()); in installApksRecursively()
/tools/test/connectivity/acts/tests/google/power/tel/lab/temp/
Diperf_server.py67 with open(result_path, 'r') as f:
68 iperf_output = f.readlines()
76 with open(result_path, 'r') as f:
79 lines = f.readlines()[1:]
259 with open(self.full_out_path, 'w') as f:
260 f.write(iperf_result.stdout)
/tools/test/connectivity/acts/framework/acts/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/tradefederation/core/atest/
Drun_atest_unittests.sh60 for f in $PREUPLOAD_FILES;
63 if [[ $f == atest/* ]]; then
Dunittest_utils.py39 for f in first._fields:
40 assert_strict_equal(test_class, getattr(first, f),
41 getattr(second, f))
/tools/test/connectivity/acts/framework/tests/
Dacts_import_unit_test.py80 for f in files:
81 full_path = os.path.join(root, f)
85 path = os.path.relpath(os.path.join(root, f), os.getcwd())
/tools/test/connectivity/acts/framework/acts/controllers/
Diperf_server.py79 with open(result_path, 'r') as f:
80 iperf_output = f.readlines()
88 with open(result_path, 'r') as f:
91 lines = f.readlines()[1:]
298 with open(self.full_out_path, 'w') as f:
299 f.write(iperf_result.stdout)
358 with open(self.full_out_path, 'w') as f:
359 f.write(iperf_result)
Diperf_client.py57 with open(full_out_path, "w") as f:
58 subprocess.call(cmd, stdout=f)
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/utils/
DIOExceptionFunction.java44 static <F, T> Function<F, T> asFunction(@Nonnull IOExceptionFunction<F, T> f) { in asFunction() argument
47 return f.apply(i); in asFunction()
/tools/tradefederation/core/src/com/android/tradefed/log/
DLogUtil.java371 int f; in findCallerClassName() local
372 for (f = 0; f < frames.length; f++) { in findCallerClassName()
373 className = frames[f].getClassName(); in findCallerClassName()
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandFileWatcher.java102 for (File f: dependencies) { in CommandFile()
103 this.dependencies.add(new CommandFile(f)); in CommandFile()
132 CommandFile f = new CommandFile(cmdFile, extraArgs, dependencies); in addCmdFile() local
133 mCmdFileMap.put(cmdFile.getAbsolutePath(), f); in addCmdFile() local

1234