Home
last modified time | relevance | path

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

/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/tradefederation/core/tests/src/com/android/tradefed/build/
DFileDownloadCacheFuncTest.java275 File file1 = new File(cacheRoot, REMOTE_PATH); in testConstructor_createCache() local
276 FileUtil.writeToFile(filecontents, file1); in testConstructor_createCache()
301 final File file1 = new File(cacheRoot, REMOTE_PATH); in testConstructor_cacheExceeded() local
302 FileUtil.writeToFile(filecontents, file1); in testConstructor_cacheExceeded()
317 assertFalse(file1.exists()); in testConstructor_cacheExceeded()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DZipUtilTest.java132 File file1 = new File(tmpParentDir, "foo.txt"); in testCreateAndExtractZip_fromFiles() local
134 FileUtil.writeToFile("contents1", file1); in testCreateAndExtractZip_fromFiles()
136 zipFile = ZipUtil.createZip(Arrays.asList(file1, file2)); in testCreateAndExtractZip_fromFiles()
140 File extractedFile1 = new File(extractedDir, file1.getName()); in testCreateAndExtractZip_fromFiles()
144 assertTrue(FileUtil.compareFileContents(file1, extractedFile1)); in testCreateAndExtractZip_fromFiles()
/tools/tradefederation/core/tests/src/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/src/test/java/com/android/tools/metalava/
DOptionsTest.kt566 val file1 = File(top, "file1").apply { createNewFile() } in Test for --strict-input-files-exempt() constant
572 file1.path + File.pathSeparatorChar + dir.path) in Test for --strict-input-files-exempt()
575 assertTrue(FileReadSandbox.isAccessAllowed(file1)) in Test for --strict-input-files-exempt()
/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/tradefederation/core/tests/src/com/android/tradefed/device/
DTestDeviceFuncTest.java363 private boolean compareFiles(File file1, File file2) throws IOException { in compareFiles() argument
368 stream1 = new BufferedInputStream(new FileInputStream(file1)); 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
757 stream1 = new BufferedInputStream(new FileInputStream(file1)); in compareFileContents()
/tools/tradefederation/core/tests/res/testconfigs/yaml/
Dtest-config.tf_yaml6 - files: ["file1.txt", "file2.txt"]