HomeSort by relevance Sort by last modified time
    Searched refs:File (Results 151 - 175 of 3205) sorted by null

1 2 3 4 5 67 8 91011>>

  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowEnvironment.java 3 import java.io.File;
26 public static File getExternalStorageDirectory() {
32 public static File getExternalStoragePublicDirectory(String type) {
33 File f = (type == null) ? ShadowContext.EXTERNAL_FILES_DIR : new File( ShadowContext.EXTERNAL_FILES_DIR, type );
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
OpenRandomFileTest.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
19 import java.io.File;
37 File file = File.createTempFile("test", "tmp"); local
38 assertTrue(file.exists());
39 file.deleteOnExit();
40 FileOutputStream fos = new FileOutputStream(file);
50 File file = File.createTempFile("test", "tmp"); local
    [all...]
  /packages/apps/UnifiedEmail/src/org/apache/commons/io/
FileDeleteStrategy.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 * There is more than one way to delete a file.
38 * The singleton instance for normal file deletion, which does not permit
43 * The singleton instance for forced file deletion, which always deletes,
44 * even if the file represents a non-empty directory.
63 * Deletes the file object, which may be a file or a directory
    [all...]
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...]
DirectoryWalker.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;
59 * public List clean(File startDirectory) {
65 * protected boolean handleDirectory(File directory, int depth, Collection results) {
76 * protected void handleFile(File file, int depth, Collection results) {
77 * // delete file and add to list of deleted
78 * file.delete()
572 private File file; field in class:DirectoryWalker.CancelException
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
AssetFileAddress.java 5 * use this file except in compliance with the License. You may obtain a copy of
19 import java.io.File;
23 * As opposed to a normal file, an asset is usually represented as a contiguous byte array in
24 * the package file. Open it correctly thus requires the name of the package it is in, but
25 * also the offset in the file and the length of this data. This class encapsulates these three.
42 * @return the address, or null if the file does not exist or the parameters are not valid.
46 final File f = new File(filename);
57 * @return the address, or null if the file does not exist or the parameters are not valid.
62 final File f = new File(filename)
    [all...]
  /external/chromium_org/webkit/browser/fileapi/
remove_operation_delegate.cc 3 // found in the LICENSE file.
44 callback.Run(base::File::FILE_OK);
52 void RemoveOperationDelegate::DidTryRemoveFile(base::File::Error error) {
53 if (error != base::File::FILE_ERROR_NOT_A_FILE &&
54 error != base::File::FILE_ERROR_SECURITY) {
65 base::File::Error remove_file_error,
66 base::File::Error remove_directory_error) {
68 remove_directory_error == base::File::FILE_ERROR_NOT_A_DIRECTORY ?
74 base::File::Error error) {
75 if (error == base::File::FILE_ERROR_NOT_FOUND)
    [all...]
obfuscated_file_util.cc 3 // found in the LICENSE file.
145 base::File::Error error =
149 if (error != base::File::FILE_OK)
205 base::File::Info current_platform_file_info_;
274 base::File ObfuscatedFileUtil::CreateOrOpen(
277 base::File file = CreateOrOpenInternal(context, url, file_flags); local
278 if (file.IsValid() && file_flags & base::File::FLAG_WRITE &&
283 return file.Pass()
1057 base::File file = NativeFileUtil::CreateOrOpen(dest_local_path, file_flags); local
1396 base::File file = NativeFileUtil::CreateOrOpen(local_path, file_flags); local
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.monitor/src/com/android/ide/eclipse/monitor/
SdkToolsLocator.java 5 * you may not use this file except in compliance with the License.
22 import java.io.File;
49 private final File mSdkFolder;
51 public SdkToolsLocator(File sdkFolder) {
56 return new File(getSdkPlatformToolsFolder(), SdkConstants.FN_ADB).getAbsolutePath();
60 return new File(getSdkToolsFolder(), FN_TRACEVIEW).getAbsolutePath();
64 return new File(getSdkPlatformToolsFolder(), FN_HPROF_CONV).getAbsolutePath();
68 return new File(mSdkFolder, SdkConstants.FD_TOOLS).getAbsolutePath();
72 return new File(mSdkFolder, SdkConstants.FD_PLATFORM_TOOLS).getAbsolutePath();
81 File f = new File(exe)
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
ContextTest.java 13 import java.io.File;
34 File[] files = context.getFilesDir().listFiles();
38 File[] cachedFiles = context.getFilesDir().listFiles();
51 public void deleteDir(File path) {
53 File[] files = path.listFiles();
55 for (File f : files) {
64 File dataDir = new File(ShadowContext.FILES_DIR, "data");
75 File dataDir = new File(ShadowContext.FILES_DIR, "data")
159 File file = new File(context.getFilesDir(), "__test__"); local
190 File file = new File("__test__"); local
226 File file = new File(filesDir, "test.txt"); local
236 File file = new File(filesDir, "test.txt"); local
    [all...]
  /cts/tests/tests/os/src/android/os/storage/cts/
StorageManagerTest.java 5 * you may not use this file except in compliance with the License.
34 import java.io.File;
61 for (File target : getTargetFiles()) {
62 target = new File(target, "test1.obb");
68 private void doMountAndUnmountObbNormal(File outFile) throws IOException {
75 final File mountDir = new File(mountPath);
76 final File testFile = new File(mountDir, "test1.txt");
87 for (File target : getTargetFiles())
    [all...]
  /external/emma/core/java12/com/vladium/emma/report/
SourcePathCache.java 11 import java.io.File;
44 final File dir = new File (sourcepath [i]);
50 m_sourcepath = new File [_sourcepath.size ()];
59 public SourcePathCache (final File [] sourcepath, final boolean removeNonExistent)
66 final File dir = sourcepath [i];
72 m_sourcepath = new File [_sourcepath.size ()];
81 public synchronized File find (final String packageVMName, final String name)
109 final File relativeFile = new File (packageVMName.replace ('/', File.separatorChar), name)
    [all...]
  /cts/common/host-side/java-scanner/tests/src/com/android/compatibility/common/scanner/
JavaScannerTest.java 5 * you may not use this file except in compliance with the License.
20 import java.io.File;
89 final File parent0 = new File(System.getProperty("java.io.tmpdir"));
90 final File parent1 = new File(parent0, "tmp" + System.currentTimeMillis());
91 final File parent2 = new File(parent1, "com");
92 final File parent3 = new File(parent2, "android")
    [all...]
  /external/dexmaker/src/main/java/com/google/dexmaker/
AppDataDirGuesser.java 5 * you may not use this file except in compliance with the License.
19 import java.io.File;
28 public File guess() {
36 File[] results = guessPath(pathFromThisClassLoader);
72 File[] guessPath(String input) {
73 List<File> results = new ArrayList<File>();
88 File dataDir = new File("/data/data/" + packageName);
90 File cacheDir = new File(dataDir, "cache")
    [all...]
  /packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
HelpersTest.java 5 * you may not use this file except in compliance with the License.
26 import java.io.File;
43 final File expected = new File(getContext().getFilesDir(), "file.mp4");
45 "http://example.com/file.txt", null, null, null,
51 final File expected1 = new File(getContext().getFilesDir(), "file.txt");
52 final String actual1 = Helpers.generateSaveFile(getContext(), "http://example.com/file.txt"
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/fileapi/
File.cpp 27 #include "core/fileapi/File.h"
40 static String getContentTypeFromFileName(const String& name, File::ContentTypeLookupPolicy policy)
45 if (policy == File::WellKnownContentTypes)
48 ASSERT(policy == File::AllContentTypes);
63 static PassOwnPtr<BlobData> createBlobDataForFile(const String& path, File::ContentTypeLookupPolicy policy)
68 static PassOwnPtr<BlobData> createBlobDataForFileWithName(const String& path, const String& fileSystemName, File::ContentTypeLookupPolicy policy)
76 blobData->setContentType(getContentTypeFromFileName(fileSystemName, File::WellKnownContentTypes));
84 blobData->setContentType(getContentTypeFromFileName(fileSystemURL.path(), File::WellKnownContentTypes));
89 PassRefPtrWillBeRawPtr<File> File::createWithRelativePath(const String& path, const String& relativePath
91 RefPtrWillBeRawPtr<File> file = adoptRefWillBeNoop(new File(path, AllContentTypes)); local
    [all...]
  /external/chromium_org/base/files/
file_proxy_unittest.cc 3 // found in the LICENSE file.
9 #include "base/files/file.h"
23 error_(File::FILE_OK),
32 void DidFinish(File::Error error) {
37 void DidCreateOrOpen(File::Error error) {
42 void DidCreateTemporary(File::Error error,
49 void DidGetFileInfo(File::Error error,
50 const File::Info& file_info) {
56 void DidRead(File::Error error,
65 void DidWrite(File::Error error
    [all...]
  /external/apache-harmony/support/src/test/java/tests/support/resource/
Support_Resources.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;
45 File resources = createTempFolder();
58 url = new URL("file:/" + resPath + "/" + fileName);
65 public static File createTempFolder() {
66 File folder = null;
68 folder = File.createTempFile("hyts_resources", "", null);
78 public static void copyFile(File root, String folder, String file)
    [all...]
  /external/chromium_org/chrome/browser/media_galleries/fileapi/
picasa_file_util.cc 3 // found in the LICENSE file.
35 base::File::Error FindAlbumInfo(const std::string& key,
39 return base::File::FILE_ERROR_FAILED;
44 return base::File::FILE_ERROR_NOT_FOUND;
49 return base::File::FILE_OK;
93 // |data_provider| may be NULL if the file system was revoked before this
113 // |data_provider| may be NULL if the file system was revoked before this
128 base::File::Error PicasaFileUtil::GetFileInfoSync(
130 base::File::Info* file_info, base::FilePath* platform_path) {
143 return base::File::FILE_OK
    [all...]
  /libcore/luni/src/test/java/libcore/java/util/jar/
OldJarFileTest.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;
31 private final String jarName = "hyts_patch.jar"; // a 'normal' jar file
33 private File resources = Support_Resources.createTempFolder();
37 new JarFile(new File("Wrong.file"));
43 new JarFile(new File(resources, jarName));
48 new JarFile("Wrong.file");
    [all...]
  /external/chromium_org/base/test/android/javatests/src/org/chromium/base/test/util/
TestFileUtil.java 3 // found in the LICENSE file.
7 import java.io.File;
24 File file = new File(name); local
25 if (!file.createNewFile()) {
26 throw new IOException("File \"" + name + "\" already exists");
31 writer = new OutputStreamWriter(new FileOutputStream(file), "UTF-8");
46 File file = new File(name) local
    [all...]
  /external/droiddriver/src/com/google/android/droiddriver/util/
FileUtils.java 5 * you may not use this file except in compliance with the License.
24 import java.io.File;
33 * Opens file at {@code path} to output. If any directories on {@code path} do
34 * not exist, they will be created. The file will be readable and writable to
38 File file = getAbsoluteFile(path); local
40 Logs.log(Log.INFO, "opening file " + file.getAbsolutePath());
41 BufferedOutputStream stream = new BufferedOutputStream(new FileOutputStream(file));
42 file.setReadable(true /* readable */, false/* ownerOnly */)
55 File file = new File(path); local
    [all...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/res/
RawResourceLoader.java 3 import java.io.File;
11 private File resourceDir;
13 public RawResourceLoader(ResourceExtractor resourceExtractor, File resourceDir) {
22 File rawResourceDir = new File(resourceDir, "raw");
25 File[] files = rawResourceDir.listFiles();
27 File file = files[i]; local
28 String name = file.getName();
37 return new FileInputStream(file);
    [all...]
  /external/proguard/src/proguard/io/
DirectoryWriter.java 36 private final File baseFile;
39 private File currentFile;
48 public DirectoryWriter(File baseFile,
60 // Should we close the current file?
67 File directory = getFile(dataEntry);
87 File file = getFile(dataEntry); local
89 // Should we close the current file?
92 !currentFile.equals(file))
101 File parentDirectory = file.getParentFile()
    [all...]
  /art/compiler/
elf_writer.h 5 * you may not use this file except in compliance with the License.
38 // Looks up information about location of oat file in elf file container.
40 static void GetOatElfInformation(File* file,
48 ElfWriter(const CompilerDriver& driver, File* elf_file)
61 File* const elf_file_;

Completed in 1387 milliseconds

1 2 3 4 5 67 8 91011>>