/external/apache-harmony/support/src/test/java/tests/support/ |
Support_DeleteOnExitTest.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 20 import java.io.File; 26 File f1 = new File(args[i]);
|
/external/proguard/src/proguard/ |
Configuration.java | 23 import java.io.File; 35 public static final File STD_OUT = new File(""); 100 * An optional output file for listing the kept seeds. 101 * An empty file name means the standard output. 103 public File printSeeds; 115 * An optional output file for listing the unused classes and class 116 * members. An empty file name means the standard output. 118 public File printUsage; 174 * An optional output file for listing the obfuscation mapping [all...] |
/frameworks/support/v4/froyo/android/support/v4/content/ |
ContextCompatFroyo.java | 5 * you may not use this file except in compliance with the License. 21 import java.io.File; 24 public static File getExternalCacheDir(Context context) { 28 public static File getExternalFilesDir(Context context, String type) {
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
PathClassLoaderTest.java | 5 * you may not use this file except in compliance with the License. 20 import java.io.File; 32 File tmp = new File(System.getProperty("java.io.tmpdir")); 33 File systemLibPath = new File(tmp, "systemLibPath"); 34 File applicationLibPath = new File(tmp, "applicationLibPath"); 36 File applicationLib = makeTempFile(applicationLibPath, "libduplicated.so"); 46 private File makeTempFile(File directory, String name) throws IOException [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
FileDescriptorTest.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 27 File f= File.createTempFile("FileDescriptorTest", "tmp");
|
OldAndroidFileTest.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 23 * Checks creation and deletion of a file. 28 File file = File.createTempFile(String.valueOf(System.currentTimeMillis()), null, null); local 30 assertTrue(file.exists()); 31 assertTrue(file.delete()); 32 assertFalse(file.exists());
|
FileTest.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 27 private static File createTemporaryDirectory() throws Exception { 29 File directory = new File(base, UUID.randomUUID().toString()); 42 private static File createDeepStructure(File base) throws Exception { 48 File f = base; 50 f = new File(f, longString); 59 File base = createTemporaryDirectory() [all...] |
OldFileTest.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 20 import java.io.File; 36 File tempDir = new File(System.getProperty("java.io.tmpdir")); 39 File f = new File(tempDir, files[i]); 45 new File(tempDir, files[i]).delete(); 49 private void deleteTempFolder(File dir) [all...] |
/packages/apps/UnifiedEmail/src/com/android/emailcommon/ |
TempDirectory.java | 5 * you may not use this file except in compliance with the License. 21 import java.io.File; 24 * TempDirectory caches the directory used for caching file. It is set up during application 28 private static File sTempDirectory = null; 34 public static File getTempDirectory() {
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/filefilter/ |
FalseFileFilter.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; 23 * A file filter that always returns false. 54 * @param file the file to check 57 public boolean accept(File file) { 68 public boolean accept(File dir, String name) [all...] |
IOFileFilter.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; 35 * Checks to see if the File should be accepted by this filter. 39 * @param file the File to check 40 * @return true if this file matches the test 42 public boolean accept(File file); [all...] |
TrueFileFilter.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; 23 * A file filter that always returns true. 54 * @param file the file to check 57 public boolean accept(File file) { 68 public boolean accept(File dir, String name) [all...] |
/packages/inputmethods/LatinIME/tools/dicttool/compat/android/test/ |
AndroidTestCase.java | 5 * you may not use this file except in compliance with the License. 23 import java.io.File; 31 public File getCacheDir() { 32 final File dir = Test.TEST_TMP_DIR;
|
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ |
CommonExternalStorageTest.java | 5 * you may not use this file except in compliance with the License. 26 import java.io.File; 56 final File single = getContext().getExternalCacheDir(); 58 final File firstMultiple = getContext().getExternalCacheDirs()[0]; 66 final File single = getContext().getExternalFilesDir(Environment.DIRECTORY_PICTURES); 68 final File firstMultiple = getContext() 77 final File single = getContext().getObbDir(); 79 final File firstMultiple = getContext().getObbDirs()[0]; 87 final List<File> paths = getAllPackageSpecificPaths(getContext()); 88 for (File path : paths) [all...] |
/frameworks/base/services/core/java/com/android/server/updates/ |
SELinuxPolicyInstallReceiver.java | 5 * you may not use this file except in compliance with the License. 29 import java.io.File; 51 private void backupContexts(File contexts) { 52 new File(contexts, versionPath).renameTo( 53 new File(contexts, versionPath + "_backup")); 55 new File(contexts, macPermissionsPath).renameTo( 56 new File(contexts, macPermissionsPath + "_backup")); 58 new File(contexts, seappContextsPath).renameTo( 59 new File(contexts, seappContextsPath + "_backup")); 61 new File(contexts, propertyContextsPath).renameTo [all...] |
/cts/tests/tests/permission/src/android/permission/cts/ |
FileSystemPermissionTest.java | 5 * you may not use this file except in compliance with the License. 28 import java.io.File; 53 * TODO: Combine this file with {@link android.os.cts.FileAccessPermissionTest} 59 File myFile = new File(getContext().getFilesDir(), "hello"); 80 File myDir = new File(getContext().getFilesDir(), "helloDirectory"); 101 Set<File> writableDirs = new HashSet<File>(); 108 writableDirs.addAll(getWritableDirectoryiesAndSubdirectoriesOf(new File(app.dataDir))) [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/util/ |
TestUtil.java | 5 import java.io.File; 14 public static File testDirLocation; 35 public static File file(String... pathParts) { method in class:TestUtil 36 return file(new File("."), pathParts); 39 public static File file(File f, String... pathParts) { method in class:TestUtil 41 f = new File(f, pathPart) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/ |
FileUtils.java | 5 * you may not use this file except in compliance with the License. 21 import java.io.File; 25 private static final File sCacheDir; 32 public static File createTempFile(String prefix, String suffix) { 33 File f; 35 f = File.createTempFile(prefix, suffix, sCacheDir);
|
/cts/tests/tests/net/src/android/net/http/cts/ |
X509TrustManagerExtensionsTest.java | 5 * you may not use this file except in compliance with the License. 22 import java.io.File; 64 final File DIR_TEMP = new File(System.getProperty("java.io.tmpdir")); 65 final File DIR_TEST = new File(DIR_TEMP, "test"); 66 final File system = new File(DIR_TEST, "system-test"); 67 final File added = new File(DIR_TEST, "added-test") [all...] |
/external/chromium_org/net/disk_cache/blockfile/ |
file.h | 3 // found in the LICENSE file. 10 #include "base/files/file.h" 31 // Simple wrapper around a file that allows asynchronous operations. 32 class NET_EXPORT_PRIVATE File : public base::RefCounted<File> { 33 friend class base::RefCounted<File>; 35 File(); 36 // mixed_mode set to true enables regular synchronous operations for the file. 37 explicit File(bool mixed_mode); 39 // Initializes the object to use the passed in file instead of opening it wit [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/res/ |
DocumentLoader.java | 7 import java.io.File; 14 @Override public boolean accept(File file) { 15 return file.getName().endsWith(".xml"); 28 public void loadResourceXmlDirs(File... resourceXmlDirs) throws Exception { 32 public void loadResourceXmlDirs(boolean isSystem, File... resourceXmlDirs) throws Exception { 33 for (File resourceXmlDir : resourceXmlDirs) { 38 public void loadResourceXmlDir(File resourceXmlDir) throws Exception { 42 public void loadSystemResourceXmlDir(File resourceXmlDir) throws Exception { 46 private void loadResourceXmlDir(File resourceXmlDir, boolean isSystem) throws Exception [all...] |
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests/src/com/android/framework/multidexlegacytestservices/test/ |
ServicesTests.java | 5 * you may not use this file except in compliance with the License. 23 import java.io.File; 38 File targetFilesDir = getInstrumentation().getTargetContext().getFilesDir(); 40 File resultFile = new File(targetFilesDir, "Service" + i); 42 assertFalse("Failed to delete result file '" + resultFile.getAbsolutePath() + "'.", 44 File completeFile = new File(targetFilesDir, "Service" + i + ".complete"); 46 assertFalse("Failed to delete completion file '" + completeFile.getAbsolutePath() + 73 File resultFile = new File(targetFilesDir, "Service" + i) [all...] |
/cts/tests/tests/os/src/android/os/cts/ |
AbiTest.java | 5 * you may not use this file except in compliance with the License. 21 import java.io.File; 27 for (String dir : new File("/").list()) { 29 checkElfFilesInDirectory(new File("/" + dir)); 34 private void checkElfFilesInDirectory(File dir) throws Exception { 43 File[] files = dir.listFiles(); 48 for (File f : files) { 56 // If it's not actually an ELF file, we don't care. 66 private static boolean isSymbolicLink(File f) throws Exception {
|
/development/tools/idegen/src/com/android/idegen/ |
FrameworkModule.java | 5 * you may not use this file except in compliance with the License. 22 import java.io.File; 34 public FrameworkModule(File moduleDir) throws IOException { 41 File intermediates = new File(DirectorySearch.getRepoRoot(), 42 REL_OUT_APP_DIR + File.separator + FRAMEWORK_INTERMEDIATES); 43 ImmutableList<File> intermediateSrcDirs = DirectorySearch.findSourceDirs(intermediates); 44 sb.append(" <content url=\"file://").append(intermediates).append("\">\n"); 45 for (File src : intermediateSrcDirs) { 46 sb.append(" <sourceFolder url=\"file://" [all...] |
/external/chromium_org/content/public/test/ |
async_file_test_helper.cc | 3 // found in the LICENSE file. 25 base::File::Error* result_out, 26 base::File::Error result) { 31 base::Callback<void(base::File::Error)> 33 base::File::Error* result) { 38 base::File::Error* result_out, 39 base::File::Info* file_info_out, 40 base::File::Error result, 41 const base::File::Info& file_info) { 50 base::File::Error* result_out [all...] |