Home
last modified time | relevance | path

Searched refs:file2 (Results 1 – 9 of 9) sorted by relevance

/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DZFileTest.java325 StoredEntry file2 = zf.get("file2");
326 assertNotNull(file2);
327 assertEquals(3, file2.getCentralDirectoryHeader().getUncompressedSize());
329 assertArrayEquals(new byte[] { 6, 7, 8 }, file2.read());
336 file2 = zf.get("file2");
337 assertNotNull(file2);
338 assertArrayEquals(new byte[] { 11, 12 }, file2.read());
342 StoredEntry file2 = zf2.get("file2");
343 assertNotNull(file2);
344 assertArrayEquals(new byte[] { 11, 12 }, file2.read());
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DZipUtilTest.java133 File file2 = new File(tmpParentDir, "bar.txt"); in testCreateAndExtractZip_fromFiles() local
135 FileUtil.writeToFile("contents2", file2); in testCreateAndExtractZip_fromFiles()
136 zipFile = ZipUtil.createZip(Arrays.asList(file1, file2)); in testCreateAndExtractZip_fromFiles()
141 File extractedFile2 = new File(extractedDir, file2.getName()); in testCreateAndExtractZip_fromFiles()
145 assertTrue(FileUtil.compareFileContents(file2, extractedFile2)); in testCreateAndExtractZip_fromFiles()
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DFileDownloadCacheFuncTest.java306 final File file2 = new File(cacheRoot, "anotherpath"); in testConstructor_cacheExceeded() local
307 FileUtil.writeToFile(filecontents, file2); in testConstructor_cacheExceeded()
312 return file2.length() + 1; in testConstructor_cacheExceeded()
318 assertTrue(file2.exists()); in testConstructor_cacheExceeded()
/tools/tradefederation/core/tests/src/com/android/tradefed/host/gcs/
DGCSHostResourceManagerTest.java93 File file2 = mHostResourceManager.getFile("key2"); in testSetUpHostResources() local
95 Assert.assertEquals(HOST_RESOURCE2, FileUtil.readStringFromFile(file2)); in testSetUpHostResources()
98 Assert.assertFalse(file2.exists()); in testSetUpHostResources()
/tools/repohooks/
DREADME.md130 With a commit that changes `path1/file1` and `path2/file2`, then this will run
132 * ['ls', 'path1/file1', 'path2/file2']
133 * ['check', '--file=path1/file1', '--file=path2/file2']
134 * ['check', '--file', 'path1/file1', '--file', 'path2/file2']
/tools/metalava/src/test/java/com/android/tools/metalava/
DOptionsTest.kt567 val file2 = File(top, "file2").apply { createNewFile() } in Test for --strict-input-files-exempt() constant
579 assertFalse(FileReadSandbox.isAccessAllowed(file2)) // Access *not* allowed in Test for --strict-input-files-exempt()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DTestDeviceFuncTest.java363 private boolean compareFiles(File file1, File file2) throws IOException { in compareFiles() argument
369 stream2 = new BufferedInputStream(new FileInputStream(file2)); in compareFiles()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DFileUtil.java751 public static boolean compareFileContents(File file1, File file2) throws IOException { in compareFileContents() argument
758 stream2 = new BufferedInputStream(new FileInputStream(file2)); in compareFileContents()
/tools/tradefederation/core/tests/res/testconfigs/yaml/
Dtest-config.tf_yaml6 - files: ["file1.txt", "file2.txt"]