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

<<11121314151617181920>>

  /libcore/luni/src/main/java/java/io/
FileReader.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 * A specialized {@link Reader} that reads from a file in the file system.
34 * Constructs a new FileReader on the given {@code file}.
36 * @param file
37 * a File to be opened for reading characters from.
39 * if {@code file} does not exist.
41 public FileReader(File file) throws FileNotFoundException
    [all...]
  /libcore/luni/src/test/java/libcore/java/io/
FileOutputStreamTest.java 5 * you may not use this file except in compliance with the License.
19 import java.io.File;
29 File tmp = File.createTempFile("FileOutputStreamTest", "tmp");
63 FileOutputStream fos = new FileOutputStream(File.createTempFile("FileOutputStreamTest", "tmp"));
  /packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/
SavedWallpaperImages.java 5 * you may not use this file except in compliance with the License.
37 import java.io.File;
52 public SavedWallpaperTile(int dbId, File target, Drawable thumb) {
88 File file = new File(mContext.getFilesDir(), filename); local
90 Bitmap thumb = BitmapFactory.decodeFile(file.getAbsolutePath());
93 new File(mContext.getFilesDir(), result.getString(2)),
145 File imageFile = new File(mContext.getFilesDir(), filenames.first)
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
BinaryTempFileBody.java 5 * you may not use this file except in compliance with the License.
28 import java.io.File;
37 * A Body that is backed by a temp file. The Body exposes a getOutputStream method that allows
38 * the user to write to the temp file. After the write the body is available via getInputStream
40 * getInputStream is closed the file is deleted and the Body should be considered disposed of.
43 private File mFile;
47 * created file. Note that this file will be deleted after it is read.
48 * @param filePath The file containing the data to be stored on disk temporarily
51 mFile = new File(filePath)
    [all...]
  /packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
BinaryDictOffdeviceUtils.java 5 * use this file except in compliance with the License. You may obtain a copy of
30 import java.io.File;
60 File mFile;
88 * dictionary signature, and copy the decoded file to a temporary place.
91 public static DecoderChainSpec getRawDictionaryOrNull(final File src) {
96 final DecoderChainSpec spec, final File src, final int depth) {
101 // decoding the file.
109 final File uncompressedFile = tryGetUncompressedFile(src);
117 final File decryptedFile = tryGetDecryptedFile(src);
127 /* Try to uncompress the file passed as an argument
174 final File file = new File(filename); local
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/exportgradle/
ExportStatus.java 5 * you may not use this file except in compliance with the License.
24 import java.io.File;
31 private final Multimap<FileStatus, File> mFileStatus = ArrayListMultimap.create();
33 void addFileStatus(@NonNull FileStatus status, @NonNull File file) {
34 mFileStatus.put(status, file);
53 public Multimap<FileStatus, File> getFileStatus() {
  /sdk/eclipse/plugins/com.android.ide.eclipse.ndk/src/com/android/ide/eclipse/ndk/internal/
NdkManager.java 5 * you may not use this file except in compliance with the License.
27 import java.io.File;
49 File dir = new File(location);
54 if (!new File(dir, "ndk-build").isFile()) //$NON-NLS-1$
  /cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/
VMHostTest.java 5 * you may not use this file except in compliance with the License.
25 import java.io.File;
70 File localTmpDir = FileUtil.createTempDir("cts-vm", new File(System.getProperty("java.io.tmpdir")));
72 File jarFile = new File(ctsBuild.getTestCasesDir(), getJarFileName());
74 CLog.e("Missing jar file %s", jarFile.getPath());
77 CLog.d("Extracting jar file %s to host temp directory %s.",
81 File localTestTmpDir = new File(localTmpDir, "tests")
    [all...]
  /cts/tools/utils/
VogarUtils.java 5 * you may not use this file except in compliance with the License.
23 import java.io.File;
73 private static Set<File> getExpectationFiles(String dir) {
74 Set<File> expectSet = new HashSet<File>();
75 File[] files = new File(dir).listFiles(new FilenameFilter() {
77 public boolean accept(File dir, String name) {
  /cts/tools/vm-tests-tf/src/util/build/
BuildStep.java 5 * you may not use this file except in compliance with the License.
19 import java.io.File;
33 final File folder;
34 final File fileName;
37 this.folder = new File(folder);
38 this.fileName = new File(this.folder, fileName);
106 public static void copyFile(File in, File out) throws IOException {
DasmBuildStep.java 5 * you may not use this file except in compliance with the License.
25 import java.io.File;
58 private boolean assemble(File file) {
60 String fname = file.getAbsolutePath();
62 // read and parse .d file
66 dAsm.readD(inp, new File(fname).getName(), generate_linenum);
93 // determine where to place .dex file
96 String class_dir = class_path[0].replaceAll("/|\\.", Character.toString(File.separatorChar));
98 dest_dir = dest_dir + File.separator + class_dir
    [all...]
  /external/chromium_org/chrome/browser/media_galleries/fileapi/
supported_image_type_validator.cc 3 // found in the LICENSE file.
9 #include "base/files/file.h"
23 // Arbitrary limit to sanity check the file size.
30 base::File file(path, base::File::FLAG_OPEN | base::File::FLAG_READ);
31 if (!file.IsValid())
34 base::File::Info file_info;
35 if (!file.GetInfo(&file_info) |
    [all...]
  /external/chromium_org/net/disk_cache/simple/
simple_version_upgrade.cc 3 // found in the LICENSE file.
10 #include "base/files/file.h"
33 base::File file(file_name, base::File::FLAG_CREATE | base::File::FLAG_WRITE);
34 if (!file.IsValid())
41 int bytes_written = file.Write(0, reinterpret_cast<char*>(&file_contents),
44 LOG(ERROR) << "Failed to write fake index file: "
63 // The V5 and V6 caches differ in the name of the index file (it moved to
    [all...]
  /external/chromium_org/webkit/browser/fileapi/
dragged_file_util.cc 3 // found in the LICENSE file.
51 base::File::Info file_info_;
60 base::File::Error DraggedFileUtil::GetFileInfo(
63 base::File::Info* file_info,
77 return base::File::FILE_OK;
79 base::File::Error error =
83 return base::File::FILE_ERROR_NOT_FOUND;
85 if (error == base::File::FILE_OK)
  /external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/io/
FileDeferredOutputStream.java 10 * A deferred output stream that uses a file as its backing store, with a in-memory intermediate buffer.
15 @Nonnull private final File backingFile;
19 public FileDeferredOutputStream(@Nonnull File backingFile) throws FileNotFoundException {
23 public FileDeferredOutputStream(@Nonnull File backingFile, int bufferSize) throws FileNotFoundException {
90 public static DeferredOutputStreamFactory getFactory(@Nullable File containingDirectory) {
95 public static DeferredOutputStreamFactory getFactory(@Nullable final File containingDirectory,
99 File tempFile = File.createTempFile("dexlibtmp", null, containingDirectory);
  /frameworks/base/core/java/android/util/
AtomicFile.java 5 * you may not use this file except in compliance with the License.
22 import java.io.File;
29 * Helper class for performing atomic operations on a file by creating a
30 * backup file until a write has successfully completed. If you need this
34 * Atomic file guarantees file integrity by ensuring that a file has
36 * As long as the backup file exists, the original file is considered
37 * to be invalid (left over from a previous attempt to write the file)
    [all...]
  /frameworks/base/core/java/com/android/internal/os/
AtomicFile.java 5 * you may not use this file except in compliance with the License.
22 import java.io.File;
29 * Helper class for performing atomic operations on a file, by creating a
30 * backup file until a write has successfully completed.
32 * Atomic file guarantees file integrity by ensuring that a file has
34 * As long as the backup file exists, the original file is considered
35 * to be invalid (left over from a previous attempt to write the file)
    [all...]
  /frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/
DefaultContainerService.java 5 * you may not use this file except in compliance with the License.
55 import java.io.File;
77 * a single monolithic APK file or a cluster directory
105 final File packageFile = new File(packagePath);
122 * a single monolithic APK file or a cluster directory
135 final File packageFile = new File(packagePath);
148 * a single monolithic APK file or a cluster directory
159 Slog.i(TAG, "Invalid package file " + packagePath)
    [all...]
  /frameworks/support/v4/java/android/support/v4/util/
AtomicFile.java 5 * you may not use this file except in compliance with the License.
21 import java.io.File;
29 * a helper class for performing atomic operations on a file by creating a
30 * backup file until a write has successfully completed.
32 * Atomic file guarantees file integrity by ensuring that a file has
34 * As long as the backup file exists, the original file is considered
35 * to be invalid (left over from a previous attempt to write the file)
    [all...]
  /frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
ExternalStorageProvider.java 5 * you may not use this file except in compliance with the License.
49 import java.io.File;
64 // docId format: root:path/to/file
95 private HashMap<String, File> mIdToPath;
98 private Map<File, DirectoryObserver> mObservers = Maps.newHashMap();
147 final File path = volume.getPathFile();
181 private String getDocIdForFile(File file) throws FileNotFoundException {
182 String path = file.getAbsolutePath();
185 Map.Entry<String, File> mostSpecific = null
316 File file; local
363 final File file = getFileForDocId(docId); local
406 final File file = pending.removeFirst(); local
421 final File file = getFileForDocId(documentId); local
429 final File file = getFileForDocId(documentId); local
    [all...]
  /libcore/luni/src/main/java/java/util/prefs/
FilePreferencesImpl.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;
28 * platform, using the file system as its back end.
30 * TODO some sync mechanism with backend, Performance - check file edit date
37 //prefs file name
40 //file path for this preferences node
46 //file represents this preferences node
47 private File prefsFile
    [all...]
  /libcore/luni/src/test/java/libcore/java/util/zip/
OldAndroidZipStressTest.java 5 * you may not use this file except in compliance with the License.
19 import java.io.File;
38 public void checkJarCertificates(File file) throws Exception {
39 JarFile jarFile = new JarFile(file);
61 private File[] getFiles() {
62 File[] result = new File("/system/app").listFiles(new FilenameFilter() {
63 public boolean accept(File dir, String name) {
67 return result != null ? result : new File[0]
    [all...]
OldZipInputStreamTest.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;
34 private byte[] dataBytes = "Some data in my file".getBytes();
40 System.out.println("file hyts_ZipFile.zip can not be found");
61 File resources = Support_Resources.createTempFolder();
63 FileInputStream fis = new FileInputStream(new File(resources,
90 File resources = Support_Resources.createTempFolder();
92 FileInputStream fis = new FileInputStream(new File(resources
    [all...]
  /packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/
SimpleTempStorage.java 3 * or more contributor license agreements. See the NOTICE file *
5 * regarding copyright ownership. The ASF licenses this file *
7 * "License"); you may not use this file except in compliance *
24 import java.io.File;
61 File p = null;
65 p = new File(parent.getAbsolutePath(), prefix + n);
88 File f = null;
94 f = new File(parent.getAbsolutePath(), prefix + n + suffix);
99 throw new IOException("Creating temp file failed: "
100 + "Unable to find unique file name")
188 private File file = null; field in class:SimpleTempStorage.SimpleTempFile
    [all...]
  /external/chromium_org/content/browser/
child_process_security_policy_unittest.cc 3 // found in the LICENSE file.
67 // Claim to always handle file:// URLs like the browser would.
86 const base::FilePath& file,
88 p->GrantPermissionsForFile(child_id, file, permissions);
100 const base::FilePath& file,
102 EXPECT_FALSE(p->CanReadFile(kRendererID, file));
103 EXPECT_FALSE(p->CanCreateReadWriteFile(kRendererID, file));
170 GURL("file:///etc/passwd")));
249 EXPECT_FALSE(p->CanRequestURL(kRendererID, GURL("file:///etc/passwd")));
250 p->GrantRequestURL(kRendererID, GURL("file:///etc/passwd"))
    [all...]

Completed in 1011 milliseconds

<<11121314151617181920>>