/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
ByodHelperActivity.java | 5 * you may not use this file except in compliance with the License. 39 import java.io.File; 116 private ArrayList<File> mTempFiles = new ArrayList<File>(); 322 final File file = new File(getFilesDir() + File.separator + "images" local 323 + File.separator + fileName); 324 file.getParentFile().mkdirs(); //if the folder doesn't exists it is create [all...] |
NfcTestActivity.java | 5 * you may not use this file except in compliance with the License. 42 import java.io.File; 146 final File file = new File(getFilesDir() + File.separator + "images" local 147 + File.separator + name); 148 file.getParentFile().mkdirs(); //if the folder doesn't exists it is created 151 new FileOutputStream(file)); 156 "com.android.cts.verifier.managedprovisioning.fileprovider", file); [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStore_FilesTest.java | 5 * you may not use this file except in compliance with the License. 36 import java.io.File; 67 File ext = Environment.getExternalStorageDirectory(); 68 File[] junk = ext.listFiles(new FilenameFilter() { 71 public boolean accept(File dir, String filename) { 75 for (File f: junk) { 80 void deleteAll(File f) { 82 File [] sub = f.listFiles(); 83 for (File s: sub) { 94 // Get the current file count. We will check if this increases afte 404 File file = new File(dir, "foobar"); local 425 File file = new File(dir, "foobar.jpg"); local 450 File file = new File(dir, "foobar.jpg"); local [all...] |
/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/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...] |
/external/jetty/src/java/org/eclipse/jetty/server/session/ |
HashSessionManager.java | 22 import java.io.File; 71 File _storeDir; 441 public void setStoreDirectory (File dir) throws IOException 449 public File getStoreDirectory () 504 File file = new File(_storeDir,idInCuster); local 510 if (file.exists()) 512 in = new FileInputStream(file); 529 if (isDeleteUnrestorableSessions() && file.exists() && file.getParentFile().equals(_storeDir) [all...] |
/external/vogar/src/vogar/ |
Vogar.java | 5 * you may not use this file except in compliance with the License. 20 import java.io.File; 36 private final List<File> actionFiles = new ArrayList<File>(); 40 private File configFile = Vogar.dotFile(".vogarconfig"); 43 public static File dotFile (String name) { 44 return new File(System.getProperty("user.home", "."), name); 48 Set<File> expectationFiles = new LinkedHashSet<File>(); 78 File xmlReportsDirectory 463 File file = new File(arg); local [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
FileRotator.java | 5 * you may not use this file except in compliance with the License. 24 import java.io.File; 38 * a single "active" file, which is periodically rotated into historical files, 44 * enables atomic rewriting of file contents in 54 private final File mBasePath; 62 // TODO: provide method to append to active file 89 * Create a file rotator. 93 * @param rotateAgeMillis Age in milliseconds beyond which an active file 94 * may be rotated into a historical file. 95 * @param deleteAgeMillis Age in milliseconds beyond which a rotated file 115 final File file = new File( local 125 final File file = new File( local 160 final File file = new File(mBasePath, name); local 235 final File file = new File(mBasePath, name); local 295 final File file = new File(mBasePath, name); local 354 final File file = new File(mBasePath, name); local 362 final File file = new File(mBasePath, name); local [all...] |
/frameworks/base/services/core/java/com/android/server/ |
WiredAccessoryManager.java | 5 * you may not use this file except in compliance with the License. 41 import java.io.File; 330 FileReader file = new FileReader(uei.getSwitchStatePath()); local 331 int len = file.read(buffer, 0, 1024); 332 file.close(); 451 File f = new File(getSwitchStatePath());
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
UsageStatsDatabase.java | 5 * use this file except in compliance with the License. You may obtain a copy 28 import java.io.File; 48 private final File[] mIntervalDirs; 51 private final File mVersionFile; 55 public UsageStatsDatabase(File dir) { 56 mIntervalDirs = new File[] { 57 new File(dir, "daily"), 58 new File(dir, "weekly"), 59 new File(dir, "monthly"), 60 new File(dir, "yearly") 153 final AtomicFile file = files.valueAt(i); local 292 final AtomicFile file = files.valueAt(i); local [all...] |
/frameworks/data-binding/compilationTests/src/test/java/android/databinding/compilationTest/ |
BaseCompilationTest.java | 5 * you may not use this file except in compliance with the License. 28 import java.io.File; 34 import java.nio.file.Files; 35 import java.nio.file.Paths; 36 import java.nio.file.attribute.PosixFilePermission; 70 protected final File testFolder = new File("./build/build-test"); 73 copyResourceTo(name, new File(testFolder, path)); 78 copyResourceTo(name, new File(testFolder, path), replacements); 85 assertEquals("file", dir.getProtocol()) 116 File file = new File(testFolder, pathInApp); local [all...] |
/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
DiskBasedCache.java | 5 * you may not use this file except in compliance with the License. 26 import java.io.File; 53 private final File mRootDirectory; 64 /** Magic number for current version of cache file format. */ 72 public DiskBasedCache(File rootDirectory, int maxCacheSizeInBytes) { 82 public DiskBasedCache(File rootDirectory) { 91 File[] files = mRootDirectory.listFiles(); 93 for (File file : files) { 94 file.delete() 113 File file = getFileForKey(key); local 197 File file = getFileForKey(key); local [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/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 20 import java.io.File; 35 // the file hyts_zipFile.zip in setup must be included as a resource 40 * java.util.zip.ZipFile#ZipFile(java.io.File, int) 43 zfile.close(); // about to reopen the same temp file 45 File file = new File(tempFileName) local 74 File file = File.createTempFile("zip", "tmp"); local 97 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/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...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/ |
ResourceHelper.java | 5 * you may not use this file except in compliance with the License. 102 import java.io.File; 182 * Is this a resource that can be defined in any file within the "values" folder? 184 * Some resource types can be defined <b>both</b> as a separate XML file as well 185 * as defined within a value XML file. This method will return true for these types 205 * Is this a resource that is defined in a file named by the resource plus the XML 208 * Some resource types can be defined <b>both</b> as a separate XML file as well as 209 * defined within a value XML file along with other properties. This method will 215 * @return true if the given resource type is stored in a file named by the resource 285 // We can create -some- file-based types - those supported by the New XML wizard 314 IFile file = project.getFile(projectPath); local 346 IFile file = (IFile) member; local 459 IFile file = project.getFile(new Path(projectPath)); local 562 File file = new File(value); local [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/refactorings/core/ |
RefactoringTestBase.java | 5 * you may not use this file except in compliance with the License. 45 import java.io.File; 103 File projectDir = AdtUtils.getAbsolutePath(project).toFile(); 156 IFile file = getFile(change); local 157 if (file != null) { 159 sb.append(file.getFullPath()); 166 assertNotNull(file); 167 if (file != null) { 170 byte[] bytes = ByteStreams.toByteArray(file.getContents()); 261 protected void createTestDataDir(File dir, Object[] data) throws IOException [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/ |
org.eclipse.equinox.p2.touchpoint.natives_1.0.200.v20100503a.jar | |
/art/runtime/ |
dex_file_test.cc | 5 * you may not use this file except in compliance with the License. 144 // write to provided file 145 std::unique_ptr<File> file(OS::CreateEmptyFile(location)); 146 CHECK(file.get() != nullptr); 147 if (!file->WriteFully(dex_bytes.get(), length)) { 148 PLOG(FATAL) << "Failed to write base64 as dex file"; 150 if (file->FlushCloseOrErase() != 0) { 151 PLOG(FATAL) << "Could not flush and close test file."; 153 file.reset() 370 ScratchFile file; local [all...] |
/art/tools/dexfuzz/src/dexfuzz/listeners/ |
UniqueProgramTrackerListener.java | 5 * you may not use this file except in compliance with the License. 23 import java.io.File; 51 * Used to remember the seed used to fuzz the fuzzed file, so we can save it with this 57 * Used to remember the name of the file we've fuzzed, so we can save it if we 112 File file = new File(databaseFile); local 113 if (!file.exists()) { 137 // copy the old file beforehand, and then delete it if we successfully wrote out the DB. 139 File file = new File(databaseFile) local [all...] |
/cts/hostsidetests/appsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/ |
MultiUserStorageTest.java | 5 * you may not use this file except in compliance with the License. 28 import java.io.File; 47 private void wipeTestFiles(File dir) { 49 final File[] files = dir.listFiles(); 51 for (File file : files) { 52 if (file.getName().startsWith(FILE_PREFIX)) { 53 Log.d(TAG, "Wiping " + file); 54 file.delete(); 70 for (File path : getAllPackageSpecificPathsExceptObb(getContext())) [all...] |