HomeSort by relevance Sort by last modified time
    Searched refs:File (Results 1 - 25 of 2536) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/chromium/net/disk_cache/
file.cc 3 // found in the LICENSE file.
5 #include "net/disk_cache/file.h"
12 File::File() : init_(false), mixed_(false) {}
14 File::File(bool mixed_mode) : init_(false), mixed_(mixed_mode) {}
  /external/smali/util/src/test/java/org/jf/util/
PathUtilTest.java 33 import java.io.File;
39 File[] roots = File.listRoots();
42 File basePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar + "test.txt");
43 File relativePath = new File(roots[1] + "some" + File.separatorChar + "dir" + File.separatorChar + "test.txt")
    [all...]
  /sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/io/
IFileOp.java 5 * you may not use this file except in compliance with the License.
19 import java.io.File;
27 * Wraps some common {@link File} operations on files and folders.
29 * This makes it possible to override/mock/stub some file operations in unit tests.
34 * Helper to delete a file or a directory.
39 public abstract void deleteFileOrFolder(File fileOrFolder);
42 * Sets the executable Unix permission (+x) on a file or folder.
44 * This attempts to use File#setExecutable through reflection if
51 * @param file The file to set permissions on
    [all...]
  /packages/apps/Email/src/org/apache/commons/io/comparator/
DefaultFileComparator.java 3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
19 import java.io.File;
24 * Compare two files using the <b>default</b> {@link File#compareTo(File)} method.
27 * by using the default file comparison.
32 * List&lt;File&gt; list = ...
39 * File[] array = ...
47 public class DefaultFileComparator implements Comparator<File>, Serializable {
    [all...]
LastModifiedFileComparator.java 3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
19 import java.io.File;
25 * (see {@link File#lastModified()}).
33 * List&lt;File&gt; list = ...
40 * File[] array = ...
48 public class LastModifiedFileComparator implements Comparator<File>, Serializable {
51 public static final Comparator<File> LASTMODIFIED_COMPARATOR = new LastModifiedFileComparator();
54 public static final Comparator<File> LASTMODIFIED_REVERSE = new ReverseComparator<File>(LASTMODIFIED_COMPARATOR);
    [all...]
ExtensionFileComparator.java 3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
19 import java.io.File;
27 * Compare the file name <b>extensions</b> for order
31 * by their file extension either in a case-sensitive, case-insensitive or
36 * Example of a <i>case-sensitive</i> file extension sort using the
39 * List&lt;File&gt; list = ...
43 * Example of a <i>reverse case-insensitive</i> file extension sort using the
46 * File[] array = ...
    [all...]
NameFileComparator.java 3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
19 import java.io.File;
26 * Compare the <b>names</b> of two files for order (see {@link File#getName()}).
34 * Example of a <i>case-sensitive</i> file name sort using the
37 * List&lt;File&gt; list = ...
41 * Example of a <i>reverse case-insensitive</i> file name sort using the
44 * File[] array = ...
52 public class NameFileComparator implements Comparator<File>, Serializable {
    [all...]
PathFileComparator.java 3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
19 import java.io.File;
26 * Compare the <b>path</b> of two files for order (see {@link File#getPath()}).
34 * Example of a <i>case-sensitive</i> file path sort using the
37 * List&lt;File&gt; list = ...
41 * Example of a <i>reverse case-insensitive</i> file path sort using the
44 * File[] array = ...
52 public class PathFileComparator implements Comparator<File>, Serializable {
    [all...]
  /sdk/lint/libs/lint_checks/tests/src/com/android/tools/lint/detector/api/
LocationTest.java 5 * you may not use this file except in compliance with the License.
19 import java.io.File;
27 File file1 = new File("parent/location1");
28 File file2 = new File("parent/location2");
29 File file3 = new File("parent/location3");
30 File file4 = new File("parent/location4")
    [all...]
LintUtilsTest.java 5 * you may not use this file except in compliance with the License.
20 import java.io.File;
64 assertTrue(LintUtils.isXmlFile(new File("foo.xml")));
65 assertTrue(LintUtils.isXmlFile(new File("foo.Xml")));
66 assertTrue(LintUtils.isXmlFile(new File("foo.XML")));
68 assertFalse(LintUtils.isXmlFile(new File("foo.png")));
69 assertFalse(LintUtils.isXmlFile(new File("xml")));
70 assertFalse(LintUtils.isXmlFile(new File("xml.png")));
94 assertEquals(new File("/a"), (LintUtils.getCommonParent(
95 new File("/a/b/c/d/e"), new File("/a/c"))))
179 File file = File.createTempFile("getEncodingTest" + encoding + writeBom, ".txt"); local
    [all...]
  /libcore/support/src/test/java/tests/support/
Support_DeleteOnExitTest.java 3 import java.io.File;
12 File file1 = new File(args[0]);
13 File file2 = new File(args[1]);
  /cts/libs/vogar-expect/src/vogar/commands/
Rm.java 5 * you may not use this file except in compliance with the License.
19 import java.io.File;
26 public void file(File file) { method in class:Rm
27 new Command("rm", "-f", file.getPath()).execute();
30 public void directoryTree(File directory) {
Mkdir.java 5 * you may not use this file except in compliance with the License.
19 import java.io.File;
26 public void mkdirs(File directory) {
  /external/emma/core/java12/com/vladium/util/
IConstants.java 11 import java.io.File;
23 File [] EMPTY_FILE_ARRAY = new File [0];
  /external/junit/src/org/junit/rules/
TemporaryFolder.java 3 import java.io.File;
20 * File createdFile= folder.newFile(&quot;myfile.txt&quot;);
21 * File createdFolder= folder.newFolder(&quot;subfolder&quot;);
28 private File folder;
49 * Returns a new fresh file with the given name under the temporary folder.
51 public File newFile(String fileName) throws IOException {
52 File file= new File(getRoot(), fileName); local
53 file.createNewFile()
68 File file = getRoot(); local
    [all...]
  /cts/tools/tradefed-host/src/com/android/cts/tradefed/build/
CtsBuildHelper.java 5 * you may not use this file except in compliance with the License.
22 import java.io.File;
34 private final File mRootDir;
36 private final File mCtsDir;
44 public CtsBuildHelper(File rootDir) {
46 mCtsDir = new File(mRootDir, CTS_DIR_NAME);
84 * @return a {@link File} representing the parent folder of the CTS installation
86 public File getRootDir() {
91 * @return a {@link File} representing the "android-cts" folder of the CTS installation
93 public File getCtsDir()
    [all...]
  /frameworks/base/core/java/android/os/
Environment.java 5 * you may not use this file except in compliance with the License.
24 import java.io.File;
32 private static final File ROOT_DIRECTORY
62 public static File getRootDirectory() {
68 * If Encrypted File system is enabled, it returns an encrypted directory (/data/secure/system).
70 * @return File object representing the secure storage system directory.
73 public static File getSystemSecureDirectory() {
75 return new File(SECURE_DATA_DIRECTORY, "system");
77 return new File(DATA_DIRECTORY, "system");
83 * If Encrypted File system is enabled, it returns an encrypted directory (/data/secure)
    [all...]
  /cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/build/
StubCtsBuildHelper.java 5 * you may not use this file except in compliance with the License.
18 import java.io.File;
27 super(new File("tmp"));
36 public File getTestApp(String appFileName) throws FileNotFoundException {
37 return new File("tmp");
  /libcore/luni/src/main/java/java/io/
FileFilter.java 3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
21 * An interface for filtering {@link File} objects based on their names
24 * @see File#listFiles(FileFilter)
29 * Indicating whether a specific file should be included in a pathname list.
32 * the abstract file to check.
33 * @return {@code true} if the file should be included, {@code false}
36 public abstract boolean accept(File pathname);
FilenameFilter.java 3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
21 * An interface for filtering {@link File} objects based on their names
24 * @see File
25 * @see File#list(FilenameFilter)
35 * the name of the file in {@code dir} to test.
40 public abstract boolean accept(File dir, String filename);
  /sdk/uiautomatorviewer/src/com/android/uiautomator/
Utils.java 5 * you may not use this file except in compliance with the License.
19 import java.io.File;
22 public static void deleteRecursive(File file) {
23 if (file.isDirectory()) {
24 File[] children = file.listFiles();
25 for (File child : children) {
30 file.delete();
  /sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/build/
DuplicateFileException.java 5 * you may not use this file except in compliance with the License.
21 import java.io.File;
24 * An exception thrown during packaging of an APK file.
29 private final File mFile1;
30 private final File mFile2;
32 public DuplicateFileException(String archivePath, File file1, File file2) {
43 public File getFile1() {
47 public File getFile2() {
  /external/proguard/src/proguard/
Configuration.java 23 import java.io.File;
97 * An optional output file for listing the kept seeds.
98 * An empty file name means the standard output.
100 public File printSeeds;
112 * An optional output file for listing the unused classes and class
113 * members. An empty file name means the standard output.
115 public File printUsage;
171 * An optional output file for listing the obfuscation mapping.
172 * An empty file name means the standard output.
174 public File printMapping
    [all...]
  /cts/tests/tests/os/src/android/os/cts/
FileAccessPermissionTest.java 5 * you may not use this file except in compliance with the License.
22 import java.io.File;
30 * This is testing for file access permissions.
39 * create a sdcard image file then start emulator with command emulator -sdcard <filepath>
42 * mksdcard <size> <file>
45 * TODO: Combine this file with {@link android.permission.cts.FileSystemPermissionTest}
53 File file = new File("/system"); local
54 assertTrue(file.canRead())
82 File file = new File("\/system\/app"); local
100 File file = new File("\/data\/app"); local
    [all...]
  /cts/tests/tests/permission/src/android/permission/cts/
FileSystemPermissionTest.java 5 * you may not use this file except in compliance with the License.
26 import java.io.File;
38 * TODO: Combine this file with {@link android.os.cts.FileAccessPermissionTest}
44 File myFile = new File(getContext().getFilesDir(), "hello");
65 File myDir = new File(getContext().getFilesDir(), "helloDirectory");
86 Set<File> writableDirs = new HashSet<File>();
93 writableDirs.addAll(getWritableDirectoryiesAndSubdirectoriesOf(new File(app.dataDir)))
    [all...]

Completed in 969 milliseconds

1 2 3 4 5 6 7 8 91011>>