Home
last modified time | relevance | path

Searched refs:file1 (Results 1 – 14 of 14) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/device/cloud/
DOxygenUtilTest.java66 File file1 = FileUtil.createTempFile("kernel", ".log", tmpDir); in testDownloadLaunchFailureLogs() local
101 File file1 = FileUtil.createTempFile("launcher.log", ".randomstring", tmpDir); in testCollectErrorSignatures() local
107 FileUtil.writeToFile(content, file1); in testCollectErrorSignatures()
125 File file1 = FileUtil.createTempFile("vdl_stdout.txt", ".randomstring", tmpDir); in testCollectDeviceLaunchMetrics() local
135 FileUtil.writeToFile(content, file1); in testCollectDeviceLaunchMetrics()
154 File file1 = FileUtil.createTempFile("vdl_stdout.txt", ".randomstring", tmpDir); in testCollectDeviceLaunchMetricsV2() local
166 FileUtil.writeToFile(content, file1); in testCollectDeviceLaunchMetricsV2()
181 File file1 = FileUtil.createTempFile("oxygen_version.txt", "", tmpDir); in testCollectOxygenVersion() local
183 FileUtil.writeToFile(content, file1); in testCollectOxygenVersion()
DGceManagerTest.java499 File file1 = FileUtil.createTempFile("test_file1", ".txt"); in testBuildGceCommandWithExtraFiles() local
501 extraFiles.put(file1, "/home/vsoc-01/test_file1.txt"); in testBuildGceCommandWithExtraFiles()
526 file1.getAbsolutePath() + ",/home/vsoc-01/test_file1.txt", in testBuildGceCommandWithExtraFiles()
536 FileUtil.deleteFile(file1); in testBuildGceCommandWithExtraFiles()
/tools/tradefederation/core/javatests/com/android/tradefed/host/gcs/
DGCSHostResourceManagerTest.java92 File file1 = mHostResourceManager.getFile("key1"); in testSetUpHostResources() local
94 Assert.assertEquals(HOST_RESOURCE1, FileUtil.readStringFromFile(file1)); in testSetUpHostResources()
97 Assert.assertFalse(file1.exists()); in testSetUpHostResources()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/cli/common/
DPreviouslyReleasedApiTest.kt45 val file1 = in check multiple signature files() constant
53 PreviouslyReleasedApi.optionalPreviouslyReleasedApi(OPTION_NAME, listOf(file1, file2)) in check multiple signature files()
55 .isEqualTo(SignatureBasedApi.fromFiles(listOf(file1, file2))) in check multiple signature files()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/cli/compatibility/
DCompatibilityCheckOptionsTest.kt99 val file1 = in check compatibility api released multiple files() constant
107 file1.path, in check compatibility api released multiple files()
116 SignatureBasedApi.fromFiles(listOf(file1, file2)), in check compatibility api released multiple files()
/tools/tradefederation/core/javatests/com/android/tradefed/build/
DFileDownloadCacheFuncTest.java274 File file1 = new File(cacheRoot, REMOTE_PATH); in testConstructor_createCache() local
275 FileUtil.writeToFile(filecontents, file1); in testConstructor_createCache()
300 final File file1 = new File(cacheRoot, REMOTE_PATH); in testConstructor_cacheExceeded() local
301 FileUtil.writeToFile(filecontents, file1); in testConstructor_cacheExceeded()
316 assertFalse(file1.exists()); in testConstructor_cacheExceeded()
/tools/tradefederation/core/javatests/res/testconfigs/yaml/
Dtest-config.tf_yaml15 - files: ["file1.txt", "file2.txt"]
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DZipUtilTest.java148 File file1 = new File(tmpParentDir, "foo.txt"); in testCreateAndExtractZip_fromFiles() local
150 FileUtil.writeToFile("contents1", file1); in testCreateAndExtractZip_fromFiles()
152 zipFile = ZipUtil.createZip(Arrays.asList(file1, file2)); in testCreateAndExtractZip_fromFiles()
156 File extractedFile1 = new File(extractedDir, file1.getName()); in testCreateAndExtractZip_fromFiles()
160 assertTrue(FileUtil.compareFileContents(file1, extractedFile1)); in testCreateAndExtractZip_fromFiles()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DZFileTest.java408 StoredEntry file1 = zf.get("file1");
409 assertNotNull(file1);
410 assertEquals(5, file1.getCentralDirectoryHeader().getUncompressedSize());
412 assertArrayEquals(new byte[]{1, 2, 3, 4, 5}, file1.read());
428 file1 = zf.get("file1");
429 assertNotNull(file1);
430 assertArrayEquals(newData, file1.read());
434 StoredEntry file1 = zf2.get("file1");
435 assertNotNull(file1);
436 assertArrayEquals(newData, file1.read());
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DDriver.kt538 private fun compareFileContents(file1: File, file2: File): Boolean { in compareFileContents()
540 if (file1.length() == file2.length()) { in compareFileContents()
542 file1.inputStream().buffered().use { stream1 -> in compareFileContents()
/tools/repohooks/
DREADME.md137 With a commit that changes `path1/file1` and `path2/file2`, then this will run
139 * ['ls', 'path1/file1', 'path2/file2']
140 * ['check', '--file=path1/file1', '--file=path2/file2']
141 * ['check', '--file', 'path1/file1', '--file', 'path2/file2']
/tools/asuite/atest/
Datest_utils_unittest.py713 file1 = os.path.join(
717 atest_utils.save_md5([file1], '/tmp/_tmp_module-info.json')
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DTestDeviceFuncTest.java377 private boolean compareFiles(File file1, File file2) throws IOException { in compareFiles() argument
382 stream1 = new BufferedInputStream(new FileInputStream(file1)); in compareFiles()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DFileUtil.java830 public static boolean compareFileContents(File file1, File file2) throws IOException { in compareFileContents() argument
836 stream1 = new BufferedInputStream(new FileInputStream(file1)); in compareFileContents()