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

/libcore/luni/src/main/java/libcore/io/
H A DDeleteOnExit.java49 * Our list of files scheduled for deletion.
51 private final ArrayList<String> files = new ArrayList<String>(); field in class:DeleteOnExit
63 synchronized (files) {
64 if (!files.contains(filename)) {
65 files.add(filename);
71 * Does the actual work. Note we (a) first sort the files lexicographically
72 * and then (b) delete them in reverse order. This is to make sure files
77 Collections.sort(files);
78 for (int i = files.size() - 1; i >= 0; i--) {
79 new File(files
[all...]
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/luni/src/test/java/dalvik/system/
H A DDexClassLoaderTest.java71 File[] files = dir.listFiles();
72 for (File file : files) {
107 * @param files The .dex or .jar files to use for the class path.
109 private ClassLoader createLoader(File... files) { argument
110 assertNotNull(files);
111 assertTrue(files.length > 0);
112 String path = files[0].getAbsolutePath();
113 for (int i = 1; i < files.length; i++) {
114 path += File.pathSeparator + files[
129 createLoaderAndCallMethod( String className, String methodName, File... files) argument
146 createLoaderAndGetResource(String resourceName, File... files) argument
[all...]
/libcore/luni/src/main/java/java/util/logging/
H A DFileHandler.java33 * rotating set of files.
35 * When a set of files is used and a given amount of data has been written to
37 * these files are generated by given name pattern, see below for details.
38 * When the files have all been filled the Handler returns to the first and goes
51 * {@code FileHandler} should append onto existing files, defaults to
53 * <li>java.util.logging.FileHandler.count specifies how many output files to
66 * output files. See below for details. Defaults to "%h/java%u.log".</li>
70 * be replaced to generate output files:
110 // the count of files which the output cycle through
130 private File[] files; field in class:FileHandler
[all...]
/libcore/
H A DDocs.mk4 # Exports: libcore_to_document as a list of .java files relative to libcore/.
8 # List of libcore javadoc source files
12 $(call find-files-in-subdirs, libcore, \
15 $(call find-files-in-subdirs, libcore, \
34 $(call find-files-in-subdirs, libcore, \
H A DJavaLibrary.mk32 # resources/ # Support files.
36 # resources/ # Support files.
40 define all-main-java-files-under
44 define all-test-java-files-under
52 # The Java files and their associated resources.
53 common_core_src_files := $(call all-main-java-files-under,dalvik dex dom json luni xml)
56 test_src_files := $(call all-test-java-files-under,dalvik dom harmony-tests json luni xml)
60 common_core_src_files += $(call all-java-files-under, ../external/emma/core ../external/emma/pregenerated)
65 libart_core_src_files += $(common_core_src_files) $(call all-main-java-files-under,libart)
77 icu4j_src_files := $(call all-java-files
[all...]
H A DCaCerts.mk20 define all-files-under
42 cacerts := $(call all-files-under,luni/src/main/files/cacerts)
H A DNativeCode.mk52 # sub.mk files don't see anything stray from the last rule that was
60 # Include the sub.mk files.
/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...]
/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.
1177 // Old test left behind "garbage files" so this time it creates a
1200 String[] files
[all...]
/libcore/tzdata/
H A DAndroid.mk25 LOCAL_SRC_FILES := $(call all-java-files-under, tools/src/main)
36 LOCAL_SRC_FILES := $(call all-java-files-under, update/src/main)
45 LOCAL_SRC_FILES := $(call all-java-files-under, update/src/test)
/libcore/benchmarks/
H A DAndroid.mk23 LOCAL_SRC_FILES := $(call all-java-files-under, src)
/libcore/tzdata/update/src/test/libcore/tzdata/update/
H A DConfigBundleTest.java42 // Delete files / directories in reverse order.
121 private static void assertFilesExist(File... files) { argument
122 for (File f : files) {
H A DFileUtilsTest.java204 // Only files and symlinks supported. We do not delete directories.
280 private static void assertFilesDoNotExist(File... files) { argument
281 for (File f : files) {
286 private static void assertFilesExist(File... files) { argument
287 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/main/java/java/io/
H A DFile.java322 * so calling this method will not ensure that files are deleted</i>. Instead, you should
326 * <li>Maintain your own set of files to delete, and process it at an appropriate point
492 * @return this files's hash value.
746 * Gets a list of the files in the directory represented by this file. This
747 * list is then filtered through a FilenameFilter and the names of files
757 * @return an array of files or {@code null}.
774 * Returns an array of files contained in the directory represented by this
776 * paths of the files in the array are absolute if the path of this file is
779 * @return an array of files or {@code null}.
786 * Gets a list of the files i
[all...]
/libcore/luni/src/main/java/java/util/jar/
H A DStrictJarFile.java62 // Read the MANIFEST and signature files up front and try to
68 Set<String> files = this.manifest.getEntries().keySet();
69 for (String file : files) {
/libcore/luni/src/test/java/libcore/java/util/logging/
H A DOldFileHandlerTest.java396 File[] files = file.listFiles();
397 for (int i = 0; i < files.length; i++) {
398 files[i].delete();
/libcore/dalvik/src/main/java/dalvik/system/
H A DDexPathList.java86 * @param optimizedDirectory directory where optimized {@code .dex} files
128 // 1.2. Path to libraries in apk-files
172 * and readable files. (That is, directories are not included in the
214 private static Element[] makePathElements(List<File> files, File optimizedDirectory, argument
218 * Open all files and load the (direct or contained) dex files
221 for (File file : files) {
297 * that for files that are paired with resource-only jar
298 * files. If the VM can assume that there's no classes.dex in
302 * files i
[all...]

Completed in 9174 milliseconds