/libcore/ojluni/src/main/java/java/io/ |
D | DeleteOnExitHook.java | 37 private static LinkedHashSet<String> files = new LinkedHashSet<>(); field in DeleteOnExitHook 51 if(files == null) { in add() 56 files.add(file); in add() 63 theFiles = files; in runHooks() 64 files = null; in runHooks()
|
D | File.java | 1273 ArrayList<File> files = new ArrayList<>(); in listFiles() 1276 files.add(new File(s, this)); in listFiles() 1277 return files.toArray(new File[files.size()]); in listFiles() 1311 ArrayList<File> files = new ArrayList<>(); in listFiles() 1315 files.add(f); in listFiles() 1317 return files.toArray(new File[files.size()]); in listFiles()
|
/libcore/ojluni/annotations/ |
D | README | 1 This directory contains annotated stub files which can be merged into 2 the main source files by metalava when it is producing API stubs. This 4 files, to avoid carrying patches against the upstream sources. 17 - To add some new files under this directory: 20 3. Add nullability annotations to the new files. 21 - To see the effect of the files under this directory: 27 - To add some new files under this directory: 29 2. Add @FlaggedApi annotations to the new files. 30 - To see the effect of the files under this directory: 37 - To add some new files under this directory: [all …]
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldFileTest.java | 37 String[] files = tempDir.list(); 38 for (int i = 0; i < files.length; i++) { 39 File f = new File(tempDir, files[i]); 41 if (files[i].startsWith("hyts_resources")) 44 if (files[i].startsWith("hyts_") || files[i].startsWith("hyjar_")) 45 new File(tempDir, files[i]).delete(); 50 String files[] = dir.list(); in deleteTempFolder() local 51 for (int i = 0; i < files.length; i++) { in deleteTempFolder() 52 File f = new File(dir, files[i]); in deleteTempFolder()
|
D | FileTest.java | 338 File[] files = base.listFiles(); in testFilesWithSurrogatePairs() local 339 assertEquals(1, files.length); in testFilesWithSurrogatePairs() 340 assertEquals("dir_\uD80C\uDC00", files[0].getName()); in testFilesWithSurrogatePairs() 342 files = subDir.listFiles(); in testFilesWithSurrogatePairs() 343 assertEquals(1, files.length); in testFilesWithSurrogatePairs() 344 assertEquals("file_\uD80C\uDC00", files[0].getName()); in testFilesWithSurrogatePairs()
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | InMemoryDexClassLoaderTest.java | 65 File[] files = dir.listFiles(); in cleanUpDir() local 66 for (File file : files) { in cleanUpDir() 172 private ClassLoader createLoaderDirect(File... files) throws IOException { in createLoaderDirect() argument 173 assertNotNull(files); in createLoaderDirect() 174 assertTrue(files.length > 0); in createLoaderDirect() 176 for (int i = 0; i < files.length; ++i) { in createLoaderDirect() 177 ByteBuffer buffer = readFileToByteBufferDirect(files[i]); in createLoaderDirect() 191 private ClassLoader createLoaderIndirect(File... files) throws IOException { in createLoaderIndirect() argument 192 assertNotNull(files); in createLoaderIndirect() 193 assertTrue(files.length > 0); in createLoaderIndirect() [all …]
|
D | DexClassLoaderTest.java | 71 private ClassLoader createLoader(File... files) { in createLoader() argument 72 assertNotNull(files); in createLoader() 73 assertTrue(files.length > 0); in createLoader() 74 String path = files[0].getAbsolutePath(); in createLoader() 75 for (int i = 1; i < files.length; i++) { in createLoader() 76 path += File.pathSeparator + files[i].getAbsolutePath(); in createLoader() 92 String className, String methodName, File... files) in createLoaderAndCallMethod() argument 94 ClassLoader cl = createLoader(files); in createLoaderAndCallMethod() 108 private String createLoaderAndGetResource(String resourceName, File... files) throws Exception { in createLoaderAndGetResource() argument 109 ClassLoader cl = createLoader(files); in createLoaderAndGetResource()
|
D | ClassLoaderTestSupport.java | 64 File[] files = dir.listFiles(); in cleanUpDir() local 65 for (File file : files) { in cleanUpDir()
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/ |
D | FileURLConnection.java | 62 List<String> files; field in FileURLConnection 87 files = Arrays.<String>asList(fileList); in connect() 196 if (files == null) { in getInputStream() 200 Collections.sort(files, Collator.getInstance()); in getInputStream() 202 for (int i = 0 ; i < files.size() ; i++) { in getInputStream() 203 String fileName = files.get(i); in getInputStream()
|
/libcore/luni/src/test/etc/loading-test2-jar/ |
D | README.txt | 2 dex files, which are included as resources in the luni tests. These 3 files are used for testing the various class loaders. 7 build.sh in this directory, which copies resulting files into the luni
|
/libcore/luni/src/test/etc/loading-test-jar/ |
D | README.txt | 2 dex files, which are included as resources in the luni tests. These 3 files are used for testing the various class loaders. 7 build.sh in this directory, which copies resulting files into the luni
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | FileTest.java | 42 String files[] = dir.list(); in deleteTempFolder() local 43 if (files != null) { in deleteTempFolder() 44 for (int i = 0; i < files.length; i++) { in deleteTempFolder() 45 File f = new File(dir, files[i]); in deleteTempFolder() 1201 String[] files = { "mtzz1.xx", "mtzz2.xx", "mtzz3.yy", "mtzz4.yy" }; in test_list() local 1218 for (int i = 0; i < files.length; i++) { in test_list() 1219 File f = new File(dir, files[i]); in test_list() 1225 if (flist.length != files.length) { in test_list() 1235 for (int i = 0; i < files.length; i++) { in test_list() 1237 if (flist[j].equals(files[i])) { in test_list() [all …]
|
/libcore/ojluni/src/main/java/jdk/internal/util/jar/ |
D | JarIndex.java | 104 public JarIndex(String[] files) throws IOException { in JarIndex() argument 106 this.jarFiles = files; in JarIndex() 107 parseJars(files); in JarIndex() 208 private void parseJars(String[] files) throws IOException { in parseJars() argument 209 if (files == null) { in parseJars() 215 for (int i = 0; i < files.length; i++) { in parseJars() 216 currentJar = files[i]; in parseJars()
|
/libcore/ |
D | PREUPLOAD.cfg | 2 # libcore-checkstyle applies per directory checks to modified files. 9 # the syntax of PREUPLOAD.cfg files.
|
D | Android.bp | 31 // For unused files, consider creating a 'filegroup' with "//visibility:private" 32 // to attach the license to, and including a comment whether the files may be 38 // Please consider removing redundant or irrelevant files from 'license_text:'.
|
D | nullability_annotated_classes.txt | 3 # with annotations in stub files under ojluni/annotations/sdk/nullability/
|
/libcore/ojluni/src/main/java/java/util/logging/ |
D | FileHandler.java | 159 private File files[]; field in FileHandler 530 files = new File[count]; in openFiles() 532 files[i] = generate(pattern, i, unique); in openFiles() 537 open(files[0], true); in openFiles() 655 File f1 = files[i]; in rotate() 656 File f2 = files[i+1]; in rotate() 665 open(files[0], false); in rotate()
|
/libcore/dalvik/src/main/java/dalvik/system/ |
D | DexPathList.java | 362 private static Element[] makeDexElements(List<File> files, File optimizedDirectory, in makeDexElements() argument 364 return makeDexElements(files, optimizedDirectory, suppressedExceptions, loader, false); in makeDexElements() 368 private static Element[] makeDexElements(List<File> files, File optimizedDirectory, in makeDexElements() argument 370 Element[] elements = new Element[files.size()]; in makeDexElements() 375 for (File file : files) { in makeDexElements() 486 private static Element[] makePathElements(List<File> files, File optimizedDirectory, in makePathElements() argument 488 return makeDexElements(files, optimizedDirectory, suppressedExceptions, null); in makePathElements() 496 private static NativeLibraryElement[] makePathElements(List<File> files) { in makePathElements() argument 497 NativeLibraryElement[] elements = new NativeLibraryElement[files.size()]; in makePathElements() 499 for (File file : files) { in makePathElements()
|
/libcore/tools/expected_upstream/ |
D | README.md | 1 If you want to import files from the OpenJDK into `libcore/`, you are reading 52 You can build and test the change. If you need to import more files, 55 # -a imports more files into the last merge commit instead of a new commit 76 # -a imports more files into the last merge commit instead of a new commit 87 # Upload the original upstream files to the expected_upstream branch 96 * It has the same layout as the ojluni/ files in `aosp/main` 130 1. Changes to non-OpenJDK files 131 * Those files are usually under the `luni/` folder, you can make the change 140 4. Changes to non-OpenJDK files in `ojluni/` 189 files [all …]
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZipFile.java | 1096 List<String> files = null; in getManifestAndSignatureRelatedFiles() local 1098 files = new ArrayList<>(); in getManifestAndSignatureRelatedFiles() 1099 files.add(getEntryName(zsrc.manifestPos)); in getManifestAndSignatureRelatedFiles() 1102 if (files == null) { in getManifestAndSignatureRelatedFiles() 1103 files = new ArrayList<>(); in getManifestAndSignatureRelatedFiles() 1106 files.add(getEntryName(metanames[i])); in getManifestAndSignatureRelatedFiles() 1109 return files == null ? List.of() : files; in getManifestAndSignatureRelatedFiles() 1359 private static final HashMap<Key, Source> files = new HashMap<>(); field in ZipFile.Source 1382 synchronized (files) { in get() 1383 src = files.get(key); in get() [all …]
|
/libcore/tools/upstream/ |
D | Android.bp | 36 name: "libcore-copy-upstream-files", 38 manifest: "src/main/libcore-copy-upstream-files.mf",
|
D | pkg-status | 166 files = set(self.list_candidate_files(self.baseline_dir)) 167 files.update(self.list_candidate_files(self.release_dir)) 168 files.update(self.list_candidate_files(self.upstream_dir)) 169 files.update(self.list_candidate_files(self.current_dir)) 170 return sorted(list(files))
|
/libcore/luni/src/test/resources/keystore/ |
D | README.md | 4 PKCS#12 KeyStore files, each using a different PKCS#7 encryption scheme for the 59 and the private key. All the pbe-3des-* files use this encryption but with 64 All the pbes2-* files are generated with the `mkstores.sh` script which uses
|
/libcore/ojluni/src/main/ |
D | Android.bp | 19 // License for OpenJDK source files. The tests from OpenJDK have a 38 // the files from this directory and its subdirectories in to the
|
/libcore/ojluni/annotations/hiddenapi/sun/misc/ |
D | JarIndex.java | 45 public JarIndex(java.lang.String[] files) throws java.io.IOException { in JarIndex() argument 82 private void parseJars(java.lang.String[] files) throws java.io.IOException { in parseJars() argument
|