/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | DelegateLastClassLoaderTest.java | 198 List<String> resources = readResources(delegate, "resource.txt"); in testLookupOrder_getResources() local 200 assertEquals(2, resources.size()); in testLookupOrder_getResources() 201 assertEquals("child", resources.get(0)); in testLookupOrder_getResources() 202 assertEquals("parent", resources.get(1)); in testLookupOrder_getResources() 205 resources = readResources(delegate, "resource.txt"); in testLookupOrder_getResources() 207 assertEquals(2, resources.size()); in testLookupOrder_getResources() 208 assertEquals("parent", resources.get(0)); in testLookupOrder_getResources() 209 assertEquals("child", resources.get(1)); in testLookupOrder_getResources() 214 List<String> resources = readResources(delegate, "resource2.txt"); in testLookupOrder_getResources2() local 216 assertEquals(1, resources.size()); in testLookupOrder_getResources2() [all …]
|
D | ClassLoaderTestSupport.java | 34 static Map<String, File> setupAndCopyResources(List<String> resources) throws Exception { in setupAndCopyResources() argument 42 for (String resource: resources) { in setupAndCopyResources() 52 static void cleanUpResources(Map<String, File> resources) { in cleanUpResources() argument 53 cleanUpDir(resources.get(null)); in cleanUpResources()
|
D | BaseDexClassLoaderTest.java | 287 Enumeration<URL> resources = cl.getResources(resourceName); in readResources() local 290 while (resources.hasMoreElements()) { in readResources() 291 URL url = resources.nextElement(); in readResources() 313 List<String> resources = readResources(loader, "resource.txt"); in checkResources() local 315 assertEquals(2, resources.size()); in checkResources() 316 assertTrue(resources.contains("parent")); in checkResources() 317 assertTrue(resources.contains("child")); in checkResources() 319 resources = readResources(loader, "resource2.txt"); in checkResources() 321 assertEquals(1, resources.size()); in checkResources() 322 assertEquals("parent2", resources.get(0)); in checkResources()
|
D | PathClassLoaderTest.java | 95 File resources = Support_Resources.createTempFolder(); in test_classLoader_tampered_certificate_loadsOK_nullCertificates() local 98 Support_Resources.copyFile(resources, null, jar); in test_classLoader_tampered_certificate_loadsOK_nullCertificates() 99 File f = new File(resources, jar); in test_classLoader_tampered_certificate_loadsOK_nullCertificates()
|
/libcore/luni/src/test/java/libcore/java/util/jar/ |
D | OldJarFileTest.java | 33 private File resources; field in OldJarFileTest 37 resources = Support_Resources.createTempFolder(); in setUp() 47 Support_Resources.copyFile(resources, null, jarName); in test_ConstructorLjava_io_File() 48 new JarFile(new File(resources, jarName)); in test_ConstructorLjava_io_File() 58 Support_Resources.copyFile(resources, null, jarName); in test_ConstructorLjava_lang_String() 59 String fileName = (new File(resources, jarName)).getCanonicalPath(); in test_ConstructorLjava_lang_String() 70 Support_Resources.copyFile(resources, null, jarName); in test_ConstructorLjava_lang_StringZ() 71 String fileName = (new File(resources, jarName)).getCanonicalPath(); in test_ConstructorLjava_lang_StringZ() 82 Support_Resources.copyFile(resources, null, jarName); in test_ConstructorLjava_io_FileZ() 83 new JarFile(new File(resources, jarName), false); in test_ConstructorLjava_io_FileZ() [all …]
|
D | OldJarEntryTest.java | 35 private File resources; field in OldJarEntryTest 39 resources = Support_Resources.createTempFolder(); in setUp() 40 Support_Resources.copyFile(resources, null, jarName); in setUp() 41 jarFile = new JarFile(new File(resources, jarName)); in setUp() 90 Support_Resources.copyFile(resources, null, "Broken_manifest.jar"); in test_getAttributes() 92 attrJar = new JarFile(new File(resources, "Broken_manifest.jar")); in test_getAttributes()
|
D | OldJarInputStreamTest.java | 57 File resources = Support_Resources.createTempFolder(); in test_createZipEntryLjava_lang_String() local 58 Support_Resources.copyFile(resources, null, "Broken_entry.jar"); in test_createZipEntryLjava_lang_String() 65 File resources = Support_Resources.createTempFolder(); in test_read$ZII() local 66 Support_Resources.copyFile(resources, null, "Broken_entry_data.jar"); in test_read$ZII()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | OldZipInputStreamTest.java | 61 File resources = Support_Resources.createTempFolder(); in test_skipJ() local 62 Support_Resources.copyFile(resources, null, "Broken_manifest.jar"); in test_skipJ() 63 FileInputStream fis = new FileInputStream(new File(resources, in test_skipJ() 90 File resources = Support_Resources.createTempFolder(); in test_read$BII() local 91 Support_Resources.copyFile(resources, null, "Broken_manifest.jar"); in test_read$BII() 92 FileInputStream fis = new FileInputStream(new File(resources, in test_read$BII() 129 File resources = Support_Resources.createTempFolder(); in test_closeEntry() local 130 Support_Resources.copyFile(resources, null, "Broken_manifest.jar"); in test_closeEntry() 131 FileInputStream fis = new FileInputStream(new File(resources, in test_closeEntry() 166 File resources = Support_Resources.createTempFolder(); in test_createZipEntryLjava_lang_String() local [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
D | JarEntryTest.java | 51 private File resources; field in JarEntryTest 55 resources = Support_Resources.createTempFolder(); in setUp() 56 Support_Resources.copyFile(resources, null, jarName); in setUp() 57 jarFile = new JarFile(new File(resources, jarName)); in setUp() 103 Support_Resources.copyFile(resources, null, attJarName); in test_getAttributes() 104 file = new File(resources, attJarName); in test_getAttributes() 125 Support_Resources.copyFile(resources, null, jarFileName); in testCertificatesAndCodesigners() 126 File file = new File(resources, jarFileName); in testCertificatesAndCodesigners() 159 Support_Resources.copyFile(resources, null, jarFileName); in test_getCodeSigners() 160 File file = new File(resources, jarFileName); in test_getCodeSigners()
|
D | JarFileTest.java | 138 private File resources; field in JarFileTest 153 resources = Support_Resources.createTempFolder(); in setUp() 168 File file = Support_Resources.copyFile(resources, null, jarName); in test_ConstructorLjava_io_File() 188 File file = Support_Resources.copyFile(resources, null, jarName); in test_ConstructorLjava_lang_String() 209 File file = Support_Resources.copyFile(resources, null, jarName); in test_ConstructorLjava_lang_StringZ() 230 File file = Support_Resources.copyFile(resources, null, jarName); in test_ConstructorLjava_io_FileZ() 251 File file = Support_Resources.copyFile(resources, null, jarName); in test_ConstructorLjava_io_FileZI() 259 File file = Support_Resources.copyFile(resources, null, jarName); in test_ConstructorLjava_io_FileZI() 277 File f = Support_Resources.copyFile(resources, null, jarName); in testConstructor_file() 295 File file = Support_Resources.copyFile(resources, null, jarName); in test_entries() [all …]
|
D | JarInputStreamTest.java | 73 File resources = Support_Resources.createTempFolder(); in test_closeAfterException() local 74 Support_Resources.copyFile(resources, null, "Broken_entry.jar"); in test_closeAfterException() 114 File resources = Support_Resources.createTempFolder(); in test_getNextJarEntry_Ex() local 115 Support_Resources.copyFile(resources, null, "Broken_entry.jar"); in test_getNextJarEntry_Ex() 386 File resources = Support_Resources.createTempFolder(); in test_getNextEntry() local 387 Support_Resources.copyFile(resources, null, "Broken_entry.jar"); in test_getNextEntry() 413 File resources = Support_Resources.createTempFolder(); in test_metainf_verification() local 414 Support_Resources.copyFile(resources, null, jarFilename); in test_metainf_verification()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | GZIPInputStreamTest.java | 41 File resources; field in GZIPInputStreamTest 67 Support_Resources.copyFile(resources, null, "hyts_gInput.txt.gz"); in test_ConstructorLjava_io_InputStream() 68 final URL gInput = new File(resources.toString() + "/hyts_gInput.txt.gz").toURL(); in test_ConstructorLjava_io_InputStream() 95 Support_Resources.copyFile(resources, null, "hyts_gInput.txt.gz"); in test_ConstructorLjava_io_InputStreamI() 96 final URL gInput = new File(resources.toString() + "/hyts_gInput.txt.gz").toURL(); in test_ConstructorLjava_io_InputStreamI() 113 Support_Resources.copyFile(resources, null, "hyts_checkInput.txt"); in test_ConstructorLjava_io_InputStreamI() 114 final URL jarInput = new File(resources.toString() + "/hyts_checkInput.txt").toURL(); in test_ConstructorLjava_io_InputStreamI() 137 Support_Resources.copyFile(resources, null, "hyts_gInput.txt.gz"); in test_read$BII() 138 final URL gInput = new File(resources.toString() + "/hyts_gInput.txt.gz").toURL(); in test_read$BII() 253 Support_Resources.copyFile(resources, null, "hyts_gInput.txt.gz"); in test_close() [all …]
|
D | ZipInputStreamTest.java | 123 File resources = Support_Resources.createTempFolder(); in test_closeAfterException() local 124 Support_Resources.copyFile(resources, null, "Broken_manifest.jar"); in test_closeAfterException() 125 FileInputStream fis = new FileInputStream(new File(resources, in test_closeAfterException() 219 File resources = Support_Resources.createTempFolder(); in test_available() local 220 Support_Resources.copyFile(resources, null, "hyts_ZipFile.zip"); in test_available() 221 File fl = new File(resources, "hyts_ZipFile.zip"); in test_available()
|
D | InflaterInputStreamTest.java | 309 File resources = Support_Resources.createTempFolder(); in test_read$BII2() local 310 Support_Resources.copyFile(resources, null, "Broken_manifest.jar"); in test_read$BII2() 311 FileInputStream fis = new FileInputStream(new File(resources, in test_read$BII2() 326 File resources = Support_Resources.createTempFolder(); in test_read$BII3() local 327 Support_Resources.copyFile(resources, null, "Broken_manifest.jar"); in test_read$BII3() 328 FileInputStream fis = new FileInputStream(new File(resources, in test_read$BII3()
|
/libcore/luni/src/test/etc/loading-test2-jar/ |
D | README.txt | 2 dex files, which are included as resources in the luni tests. These 6 resources in any practical way. To update the resource, use the script 8 test resources directory.
|
D | build.sh | 36 resourceDir=../../resources/dalvik/system 45 jar cf loading-test2.jar classes.dex -C resources .
|
/libcore/luni/src/test/etc/loading-test-jar/ |
D | README.txt | 2 dex files, which are included as resources in the luni tests. These 6 resources in any practical way. To update the resource, use the script 8 test resources directory.
|
D | build.sh | 36 resourceDir=../../resources/dalvik/system 51 jar cf loading-test.jar classes.dex -C resources .
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | JarURLConnectionTest.java | 44 File resources = Support_Resources.createTempFolder(); in copyAndOpenResourceStream() local 46 Support_Resources.copyFile(resources, "net", jarFile); in copyAndOpenResourceStream() 47 File file = new File(resources.toString() + "/net/" + jarFile); in copyAndOpenResourceStream() 117 File resources = Support_Resources.createTempFolder(); in test_getJarFile() local 119 Support_Resources.copyFile(resources, null, "hyts_att.jar"); in test_getJarFile() 120 File file = new File(resources.toString() + "/hyts_att.jar"); in test_getJarFile() 158 File resources = Support_Resources.createTempFolder(); in test_setUseCaches() local 159 Support_Resources.copyFile(resources, null, "hyts_att.jar"); in test_setUseCaches() 160 File file = new File(resources.toString() + "/hyts_att.jar"); in test_setUseCaches()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldJarURLConnectionTest.java | 49 File resources = Support_Resources.createTempFolder(); in createContent() local 51 Support_Resources.copyFile(resources, "net", jarFile); in createContent() 52 File file = new File(resources.toString() + "/net/" + jarFile); in createContent() 187 File resources = Support_Resources.createTempFolder(); in test_getJarFile() local 189 Support_Resources.copyFile(resources, null, "hyts_att.jar"); in test_getJarFile() 190 File file = new File(resources.toString() + "/hyts_att.jar"); in test_getJarFile() 226 File resources = Support_Resources.createTempFolder(); in test_setUseCaches() local 227 Support_Resources.copyFile(resources, null, "hyts_att.jar"); in test_setUseCaches() 228 File file = new File(resources.toString() + "/hyts_att.jar"); in test_setUseCaches()
|
/libcore/support/src/test/java/tests/support/resource/ |
D | Support_Resources.java | 62 File resources = createTempFolder(); in getURL() local 68 copyFile(resources, folder, name); in getURL() 69 String resPath = resources.toString(); in getURL() 149 File resources = createTempFolder(); in getExternalLocalFile() local 151 File temp = new File(resources.toString() + "/local.tmp"); in getExternalLocalFile()
|
/libcore/luni/src/test/java/dalvik/system/ |
D | create_test_jar.sh | 26 cp ./child.jar $ANDROID_BUILD_TOP/libcore/luni/src/test/resources/dalvik/system/child.jar 51 cp ./parent.jar $ANDROID_BUILD_TOP/libcore/luni/src/test/resources/dalvik/system/parent.jar 71 cp ./bootoverride.jar $ANDROID_BUILD_TOP/libcore/luni/src/test/resources/dalvik/system/bootoverride…
|
/libcore/support/src/test/java/tests/resources/ServiceLoader/ |
D | ServiceForEmptyTest.java | 18 package tests.resources.ServiceLoader;
|
D | ServiceWithDuplicateSons.java | 18 package tests.resources.ServiceLoader;
|
D | Service.java | 18 package tests.resources.ServiceLoader;
|