/frameworks/base/services/java/com/android/server/ |
DropBoxManagerService.java | 5 * you may not use this file except in compliance with the License. 43 import java.io.File; 75 // TODO: This implementation currently uses one file per entry, which is 76 // inefficient for smallish entries -- consider using a single queue file 83 private final File mDropBoxDir; 137 public DropBoxManagerService(final Context context, File path) { 179 File temp = null; 207 temp = new File(mDropBoxDir, "drop" + Thread.currentThread().getId() + ".tmp"); 301 entry.tag, entry.timestampMillis, entry.file, entry.flags); 303 Slog.e(TAG, "Can't read: " + entry.file, e) 466 public final File file; field in class:DropBoxManagerService.EntryFile [all...] |
WiredAccessoryManager.java | 5 * you may not use this file except in compliance with the License. 42 import java.io.File; 301 FileReader file = new FileReader(uei.getSwitchStatePath()); local 302 int len = file.read(buffer, 0, 1024); 303 file.close(); 420 File f = new File(getSwitchStatePath());
|
/libcore/crypto/src/test/java/org/conscrypt/ |
TrustedCertificateStoreTest.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 40 private static final File DIR_TEMP = new File(System.getProperty("java.io.tmpdir")); 41 private static final File DIR_TEST = new File(DIR_TEMP, "test"); 42 private static final File DIR_SYSTEM = new File(DIR_TEST, "system"); 43 private static final File DIR_ADDED = new File(DIR_TEST, "added") 251 File file = file(getAliasSystemCa1()); local 586 File file = file(alias); local 631 File file = file(alias); local 644 private static File file(String alias) { method in class:TrustedCertificateStoreTest [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/ |
ChannelsTest.java | 2 * contributor license agreements. See the NOTICE file distributed with 4 * The ASF licenses this file to You under the Apache License, Version 2.0 5 * (the "License"); you may not use this file except in compliance with 18 import java.io.File; 45 * Note: the test case uses a temp text file named "test" which contains 31 63 private final int fileSize = 31;// the file size 65 private File tmpFile; 69 // Make the test file same in every test 70 tmpFile = File.createTempFile("test","tmp"); 104 * This private method is to assert if the file size is the same as th 109 FileInputStream file = new FileInputStream(fileToTest); local [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/builders/ |
PostCompilerBuilder.java | 5 * you may not use this file except in compliance with the License. 68 import java.io.File; 85 /** This ID is used in plugin.xml and in each project's .project file. 100 * file is a .class file. Upon visiting all the delta resource, if this 101 * flag is true, then we know we'll have to make the "classes.dex" file. 107 * file is a resource file. Upon visiting all the delta resource, if 362 // check the jar output file is present, if not create it. 387 // we need to update the jar file 900 IFile file = (IFile) member; local [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/exportgradle/ |
BuildFileCreator.java | 5 * you may not use this file except in compliance with the License. 47 import java.io.File; 101 File gradleLocation = new File(Sdk.getCurrent().getSdkLocation(), GRADLE_WRAPPER_LOCATION); 108 for (File wrapperFile : getGradleWrapperFiles(gradleLocation)) { 120 // add the build.gradle file for all modules. 122 // build.gradle file 123 IFile file = module.getProject().getFile(BuildFileCreator.BUILD_FILE); local 124 files.add(file); 137 File settingsFile = new File(commonRoot.toFile(), SETTINGS_FILE) 159 IFile file = workspaceRoot.getFile(path); local 182 IFile file = moduleProject.getFile(BuildFileCreator.BUILD_FILE); local [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
AdtProjectTest.java | 5 * you may not use this file except in compliance with the License. 61 import java.io.File; 90 String path = "testdata" + File.separator + relativePath; //$NON-NLS-1$ 244 IFile file = parent.getFile(new Path(name)); local 245 if (overwrite && file.exists()) { 246 String currentContents = AdtPlugin.readFile(file); 249 file.delete(true, new NullProgressMonitor()); 251 return file; 254 if (!file.exists()) { 258 file.create(bstream, false /* force */, monitor) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/wizards/templates/ |
TemplateHandlerTest.java | 5 * you may not use this file except in compliance with the License. 74 import java.io.File; 115 private static final Set<File> sProjectTestedSeparately = Sets.newHashSet(); 120 private static final Set<File> sTemplateTestedSeparately = Sets.newHashSet(); 231 List<File> other = manager.getTemplates("other"); 232 for (File templateFile : other) { 239 List<File> activities = manager.getTemplates("activities"); 240 for (File templateFile : activities) { 255 List<File> templates = manager.getTemplates("activities"); 256 for (File activityFile : templates) 295 File file = new File(templateRootFolder, category + File.separator + name); local [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/ |
feedTools.jar | |
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
DebugInfoDecoder.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 36 import static com.android.dexgen.dex.file.DebugInfoConstants.*; 65 /** dex file this debug info will be stored in */ 66 private final DexFile file; field in class:DebugInfoDecoder 92 * @param file dex file this debug info will be stored in 95 boolean isStatic, CstMethodRef ref, DexFile file) { 103 this.file = file; [all...] |
DebugInfoEncoder.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 40 import static com.android.dexgen.dex.file.DebugInfoConstants.*; 65 private final DexFile file; field in class:DebugInfoEncoder 101 * @param file {@code null-ok;} may only be {@code null} if simply using 109 DexFile file, int codeSize, int regSize, 113 this.file = file; 640 if ((string == null) || (file == null)) { 644 1 + file.getStringIds().indexOf(string)) [all...] |
/dalvik/dx/src/com/android/dx/dex/file/ |
DebugInfoEncoder.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 22 import static com.android.dx.dex.file.DebugInfoConstants.DBG_ADVANCE_LINE; 23 import static com.android.dx.dex.file.DebugInfoConstants.DBG_ADVANCE_PC; 24 import static com.android.dx.dex.file.DebugInfoConstants.DBG_END_LOCAL; 25 import static com.android.dx.dex.file.DebugInfoConstants.DBG_END_SEQUENCE; 26 import static com.android.dx.dex.file.DebugInfoConstants.DBG_FIRST_SPECIAL; 27 import static com.android.dx.dex.file.DebugInfoConstants.DBG_LINE_BASE; 28 import static com.android.dx.dex.file.DebugInfoConstants.DBG_LINE_RANGE; 29 import static com.android.dx.dex.file.DebugInfoConstants.DBG_RESTART_LOCAL 73 private final DexFile file; field in class:DebugInfoEncoder [all...] |
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ |
ZipFileTest.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; 46 // the file hyts_zipFile.zip in setup must be included as a resource 53 * @tests java.util.zip.ZipFile#ZipFile(java.io.File) 56 // Test for method java.util.zip.ZipFile(java.io.File) 57 zfile.close(); // about to reopen the same temp file 58 File file = new File(tempFileName) local 69 File file = new File(tempFileName); local 109 File file = Support_Resources.createTempFile(".jar"); local [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
JarURLConnectionTest.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 import java.io.File; 45 "file:resources/org/apache/harmony/luni/tests/java/net/lf.jar"; 72 URL url = new URL("jar:file:///bar.jar!/foo.jar!/Bugs/HelloWorld.class"); 112 File resources = Support_Resources.createTempFolder(); 115 File file = new File(resources.toString() + "/hyts_att.jar") local 156 File file = new File(resources.toString() + "\/hyts_att.jar"); local 214 File file = new File(jarFileName); local [all...] |
/external/dexmaker/src/dx/java/com/android/dx/dex/file/ |
DebugInfoEncoder.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 40 import static com.android.dx.dex.file.DebugInfoConstants.*; 65 private final DexFile file; field in class:DebugInfoEncoder 101 * @param file {@code null-ok;} may only be {@code null} if simply using 109 DexFile file, int codeSize, int regSize, 113 this.file = file; 640 if ((string == null) || (file == null)) { 644 1 + file.getStringIds().indexOf(string)) [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/src_rss/org/eclipse/releng/generators/rss/ |
RSSFeedAddEntryTask.java | 13 //TODO: bug - can't run CreateFeed and AddEntry together when debug=2 - file locking problem? 15 import java.io.File; 48 * file - path to the XML file that will be created - eg., /path/to/file.to.create.xml 53 * note that feedURL is not required if the feed already exists, only if a new feed file must be created 58 * dependencyURLs - upstream dependencies, eg., UML2 depends on emf and eclipse, so specify TWO URLs in properties file or ant task 77 * CALLISTOSITEREADY - Have you updated the features.xml file in the Callisto CVS directory? 124 private File file; field in class:RSSFeedAddEntryTask [all...] |
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/ |
ExternalStorageProvider.java | 5 * you may not use this file except in compliance with the License. 44 import java.io.File; 59 // docId format: root:path/to/file 89 private HashMap<String, File> mIdToPath; 92 private Map<File, DirectoryObserver> mObservers = Maps.newHashMap(); 140 final File path = volume.getPathFile(); 174 private String getDocIdForFile(File file) throws FileNotFoundException { 175 String path = file.getAbsolutePath(); 178 Map.Entry<String, File> mostSpecific = null 290 File file; local 320 final File file = getFileForDocId(docId); local 360 final File file = pending.removeFirst(); local 375 final File file = getFileForDocId(documentId); local 383 final File file = getFileForDocId(documentId); local 391 final File file = getFileForDocId(documentId); local [all...] |
/frameworks/volley/src/com/android/volley/toolbox/ |
DiskBasedCache.java | 5 * you may not use this file except in compliance with the License. 25 import java.io.File; 52 private final File mRootDirectory; 63 /** Magic number for current version of cache file format. */ 71 public DiskBasedCache(File rootDirectory, int maxCacheSizeInBytes) { 81 public DiskBasedCache(File rootDirectory) { 90 File[] files = mRootDirectory.listFiles(); 92 for (File file : files) { 93 file.delete() 112 File file = getFileForKey(key); local 196 File file = getFileForKey(key); local [all...] |
/libcore/luni/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ |
ZipFileTest.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 24 import java.io.File; 51 // the file hyts_zipFile.zip in setup must be included as a resource 73 * java.util.zip.ZipFile#ZipFile(java.io.File) 76 // Test for method java.util.zip.ZipFile(java.io.File) 81 * java.util.zip.ZipFile#ZipFile(java.io.File, int) 84 zfile.close(); // about to reopen the same temp file 85 File file = new File(tempFileName) local 116 File file = File.createTempFile("zip", "tmp"); local 139 File file = Support_Resources.createTempFile(".jar"); local [all...] |
/packages/apps/Browser/src/com/android/browser/widget/ |
BookmarkThumbnailWidgetService.java | 5 * you may not use this file except in compliance with the License. 43 import java.io.File; 92 File file = context.getSharedPrefsFile( local 94 if (file.exists()) { 95 if (!file.delete()) { 96 file.deleteOnExit(); 124 File prefsDirectory = context.getSharedPrefsFile("null").getParentFile(); 125 File[] widgetStates = prefsDirectory.listFiles(new StateFilter(widgetIds)); 127 for (File f : widgetStates) [all...] |
/packages/apps/Camera2/src/com/android/camera/crop/ |
SaveImage.java | 5 * you may not use this file except in compliance with the License. 33 import java.io.File; 69 private final File mDestinationFile; 113 * @param destination Destinaton File, if this is null, a new file will be 119 File destination, Bitmap previewImage, Callback callback) { 133 public static File getFinalSaveDirectory(Context context, Uri sourceUri) { 134 File saveDirectory = SaveImage.getSaveDirectory(context, sourceUri); 136 saveDirectory = new File(Environment.getExternalStorageDirectory(), 145 public static File getNewFile(Context context, Uri sourceUri) 344 File file = new File(saveDirectory, filename + ".JPG"); local 374 File file = getLocalFileFromUri(context, sourceUri); local 399 final File[] file = new File[1]; local [all...] |
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
UtilityUnitTests.java | 5 * you may not use this file except in compliance with the License. 41 import java.io.File; 170 @Override public boolean createNewFile(File f) { 203 Utility.createUniqueFileInternal(nfc, new File(dir), fileName).toString()); 210 File file = null; local 216 file = Utility.createUniqueFile(Environment.getExternalStorageDirectory(), 218 OutputStream out = new FileOutputStream(file); 223 if (file != null) { 224 if (file.exists()) [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
FileCache.java | 5 * you may not use this file except in compliance with the License. 29 import java.io.File; 55 private File mRootDir; 65 public File cacheFile; 67 private CacheEntry(long id, String contentUrl, File cacheFile) { 74 public static void deleteFiles(Context context, File rootDir, String dbName) { 77 File[] files = rootDir.listFiles(); 79 for (File file : rootDir.listFiles()) { 80 String name = file.getName() 144 FileEntry file = queryDatabase(downloadUrl); local [all...] |
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
FileUtils.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 import java.io.File;
48 * General file manipulation utilities.
52 * <li>writing to a file
53 * <li>reading from a file
59 * <li>comparing file content
60 * <li>file last changed date
108 * An empty array of type <code>File</code>. 1046 File file = files[i]; local 1456 File file = files[i]; local 1523 File file = files[i]; local [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
ExpandableBinaryDictionary.java | 5 * you may not use this file except in compliance with the License. 32 import java.io.File; 74 * binary dictionary file and tracks whether the file is regenerating. The key for this map is 108 /** Controls updating the shared binary dictionary file across multiple instances. */ 116 /* A extension for a binary dictionary file. */ 129 * Indicates that the source dictionary content has changed and a rebuild of the binary file is 131 * from file. Note that the shared binary dictionary is locked when this is called. 249 final File file = new File(mContext.getFilesDir(), mFilename) 502 final File file = new File(mContext.getFilesDir(), mFilename); local 547 final File file = new File(mContext.getFilesDir(), mFilename); local 661 final File file = new File(mContext.getFilesDir(), mFilename); local [all...] |