Searched refs:files (Results 1 - 25 of 25) sorted by relevance

/libcore/ojluni/src/main/java/java/io/
H A DDeleteOnExitHook.java37 private static LinkedHashSet<String> files = new LinkedHashSet<>(); field in class:DeleteOnExitHook
49 if(files == null) {
54 files.add(file);
61 theFiles = files;
62 files = null;
H A DFile.java44 * strings</em> to name files and directories. This class presents an
136 * files, file attributes, and file systems. This API may be used to overcome
233 * separate filenames in a sequence of files given as a <em>path list</em>.
1051 * so calling this method will not ensure that files are deleted</i>. Instead, you should
1055 * <li>Maintain your own set of files to delete, and process it at an appropriate point
1083 * Returns an array of strings naming the files and directories in the
1099 * open a directory and iterate over the names of the files in the directory.
1103 * @return An array of strings naming the files and directories in the
1126 * Returns an array of strings naming the files and directories in the
1140 * @return An array of strings naming the files an
[all...]
/libcore/luni/src/test/java/dalvik/system/
H A DInMemoryDexClassLoaderTest.java60 File[] files = dir.listFiles();
61 for (File file : files) {
114 * @param files The .dex files to use for the class path.
116 private static ClassLoader createLoaderDirect(File... files) throws IOException { argument
117 assertNotNull(files);
118 assertTrue(files.length > 0);
120 for (int i = 0; i < files.length; ++i) {
121 ByteBuffer buffer = ReadFileToByteBufferDirect(files[i]);
133 * @param files Th
135 createLoaderIndirect(File... files) argument
154 createLoaderDirectAndCallMethod( String className, String methodName, File... files) argument
172 createLoaderIndirectAndCallMethod( String className, String methodName, File... files) argument
[all...]
H A DDexClassLoaderTest.java71 File[] files = dir.listFiles();
72 for (File file : files) {
112 * @param files The .dex or .jar files to use for the class path.
114 private ClassLoader createLoader(File... files) { argument
115 assertNotNull(files);
116 assertTrue(files.length > 0);
117 String path = files[0].getAbsolutePath();
118 for (int i = 1; i < files.length; i++) {
119 path += File.pathSeparator + files[
134 createLoaderAndCallMethod( String className, String methodName, File... files) argument
151 createLoaderAndGetResource(String resourceName, File... files) argument
[all...]
/libcore/
H A DDocs.mk4 # Exports: libcore_to_document as a list of .java files relative to libcore/.
12 # List of libcore javadoc source files
17 $(call find-files-in-subdirs, external/icu, \
26 # List of libcore-related javadoc source files
28 # NOTE: Because libcore-related source spans modules (not just libcore!), files names here are
H A DJavaLibrary.mk32 # resources/ # Support files.
36 # resources/ # Support files.
43 define all-test-java-files-under
51 # The Java files and their associated resources.
56 test_src_files := $(call all-test-java-files-under,dalvik dalvik/test-rules dom harmony-tests json luni xml)
57 ojtest_src_files := $(call all-test-java-files-under,ojluni)
62 nojcore_src_files += $(call all-java-files-under, ../external/emma/core ../external/emma/pregenerated)
78 android_icu4j_src_files := $(call all-java-files-under,$(android_icu4j_root)/src/main/java)
176 LOCAL_SRC_FILES := $(call all-java-files-under, dalvik/test-rules/src/main test-rules/src/main)
185 LOCAL_SRC_FILES := $(call all-java-files
[all...]
H A DNativeCode.mk59 # sub.mk files don't see anything stray from the last rule that was
73 # Include the sub.mk files.
H A Dopenjdk_java_files.mk1748 # On older platforms : Both sets of stub files are used and core-oj does not contain
/libcore/luni/src/test/java/libcore/java/io/
H A DOldFileTest.java35 // Delete all old temporary files
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();
51 for (int i = 0; i < files
[all...]
H A DFileTest.java301 File[] files = base.listFiles();
302 assertEquals(1, files.length);
303 assertEquals("dir_\uD80C\uDC00", files[0].getName());
305 files = subDir.listFiles();
306 assertEquals(1, files.length);
307 assertEquals("file_\uD80C\uDC00", files[0].getName());
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/
H A DFileURLConnection.java62 List<String> files; field in class:FileURLConnection
87 files = Arrays.<String>asList(fileList);
196 if (files == null) {
200 Collections.sort(files, Collator.getInstance());
202 for (int i = 0 ; i < files.size() ; i++) {
203 String fileName = files.get(i);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DFileTest.java42 String files[] = dir.list();
43 if (files != null) {
44 for (int i = 0; i < files.length; i++) {
45 File f = new File(dir, files[i]);
335 assertEquals("Equal files did not answer zero for compareTo", 0, f1
468 // Testing two files, one with suffix ".tmp" and one with null
1116 // On Unix hidden files are marked with a "." at the beginning
1122 // We can still delete hidden files.
1173 // Old test left behind "garbage files" so this time it creates a
1196 String[] files
[all...]
/libcore/ojluni/src/main/java/sun/misc/
H A DJarIndex.java35 * and resources to their enclosing JAR files. Mappings are kept
36 * at the package level except for class or resource files that
71 * If true, the names of the files in META-INF, and its subdirectories, will
96 * Constructs a new index for the specified list of jar files.
98 * @param files the list of jar files to construct the index from.
100 public JarIndex(String[] files) throws IOException { argument
102 this.jarFiles = files;
103 parseJars(files);
143 * Returns the jar files tha
226 parseJars(String[] files) argument
[all...]
/libcore/tzdata/update2/
H A DAndroid.mk21 LOCAL_SRC_FILES := $(call all-java-files-under, src/main)
31 LOCAL_SRC_FILES := $(call all-java-files-under, src/test)
/libcore/tzdata/shared2/
H A DAndroid.mk22 LOCAL_SRC_FILES := $(call all-java-files-under, src/main)
33 LOCAL_SRC_FILES := $(call all-java-files-under, src/main)
42 LOCAL_SRC_FILES := $(call all-java-files-under, src/test)
/libcore/tzdata/testing/
H A DAndroid.mk21 LOCAL_SRC_FILES := $(call all-java-files-under, src/main)
32 LOCAL_SRC_FILES := $(call all-java-files-under, src/main)
41 LOCAL_SRC_FILES := $(call all-java-files-under, src/main)
/libcore/ojluni/src/main/java/java/util/logging/
H A DFileHandler.java55 * or it can write to a rotating set of files.
57 * For a rotating set of files, as each file reaches a given size
59 * Successively older files are named by adding "0", "1", "2",
91 * specifies how many output files to cycle through (defaults to 1). </li>
97 * any existing files (defaults to false). </li>
127 * would typically cause log files to be written on Solaris to
159 private File files[]; field in class:FileHandler
256 * @exception IOException if there are IO problems opening the files.
279 * @exception IOException if there are IO problems opening the files.
311 * @exception IOException if there are IO problems opening the files
[all...]
/libcore/luni/src/main/java/libcore/io/
H A DIoUtils.java127 File[] files = dir.listFiles();
128 if (files != null) {
129 for (File file : files) {
185 * For the case where we know the "true" length of a file (most ordinary files)
/libcore/tzdata/tools2/
H A DAndroid.mk21 LOCAL_SRC_FILES := $(call all-java-files-under, src/main)
32 LOCAL_SRC_FILES := $(call all-java-files-under, src/main)
/libcore/benchmarks/
H A DAndroid.mk23 LOCAL_SRC_FILES := $(call all-java-files-under, src)
/libcore/dalvik/src/main/java/dalvik/system/
H A DDexPathList.java84 * @param dexFiles the bytebuffers containing the dex files that we should load classes from.
123 * @param optimizedDirectory directory where optimized {@code .dex} files
165 // 1.2. Path to libraries in apk-files
209 * @param optimizedDirectory directory where optimized {@code .dex} files
248 * and readable files.
308 private static Element[] makeDexElements(List<File> files, File optimizedDirectory, argument
310 Element[] elements = new Element[files.size()];
313 * Open all files and load the (direct or contained) dex files up front.
315 for (File file : files) {
421 makePathElements(List<File> files, File optimizedDirectory, List<IOException> suppressedExceptions) argument
430 makePathElements(List<File> files) argument
[all...]
/libcore/tzdata/shared2/src/test/libcore/tzdata/shared2/
H A DTimeZoneDistroTest.java43 // Delete files / directories in reverse order.
140 private static void assertFilesExist(File... files) { argument
141 for (File f : files) {
H A DFileUtilsTest.java189 // Only files and symlinks supported. We do not delete directories.
319 private static void assertFilesDoNotExist(File... files) { argument
320 for (File f : files) {
325 private static void assertFilesExist(File... files) { argument
326 for (File f : files) {
/libcore/tzdata/update_test_app/
H A DAndroid.mk22 LOCAL_SRC_FILES := $(call all-java-files-under, src)
/libcore/luni/src/test/java/libcore/java/util/logging/
H A DOldFileHandlerTest.java401 File[] files = file.listFiles();
402 for (int i = 0; i < files.length; i++) {
403 files[i].delete();

Completed in 3135 milliseconds