/frameworks/base/core/java/com/android/internal/http/multipart/ |
H A D | FilePartSource.java | 9 * contributor license agreements. See the NOTICE file distributed with 11 * The ASF licenses this file to You under the Apache License, Version 2.0 12 * (the "License"); you may not use this file except in compliance with 51 /** File part file. */ 52 private File file = null; field in class:FilePartSource 54 /** File part file name. */ 60 * @param file the FilePart source File. 62 * @throws FileNotFoundException if the file does not exist or 65 public FilePartSource(File file) throws FileNotFoundException { argument 66 this.file 87 FilePartSource(String fileName, File file) argument [all...] |
H A D | FilePart.java | 9 * contributor license agreements. See the NOTICE file distributed with 11 * The ASF licenses this file to You under the Apache License, Version 2.0 12 * (the "License"); you may not use this file except in compliance with 44 * consists of a file. 59 /** Default content encoding of file attachments. */ 62 /** Default charset of file attachments. */ 65 /** Default transfer encoding of file attachments. */ 71 /** Attachment's file name */ 74 /** Attachment's file name as a byte array */ 78 /** Source of the file par 125 FilePart(String name, File file) argument 143 FilePart(String name, File file, String contentType, String charset) argument 158 FilePart(String name, String fileName, File file) argument 177 FilePart(String name, String fileName, File file, String contentType, String charset) argument [all...] |
/frameworks/base/tests/CoreTests/android/core/ |
H A D | FileTest.java | 5 * you may not use this file except in compliance with the License. 25 * Checks creation and deletion of a file. 32 File file = File.createTempFile(String.valueOf(System.currentTimeMillis()), null, null); 34 assertTrue(file.exists()); 35 assertTrue(file.delete()); 36 assertFalse(file.exists());
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | EntropyServiceTest.java | 5 * you may not use this file except in compliance with the License. 32 File file = File.createTempFile("testInitialWrite", "dat", dir); 33 file.deleteOnExit(); 34 assertEquals(0, FileUtils.readTextFile(file, 0, null).length()); 36 // The constructor has the side effect of writing to file 37 new EntropyService("/dev/null", file.getCanonicalPath()); 39 assertTrue(FileUtils.readTextFile(file, 0, null).length() > 0);
|
/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | MemoryFileTest.java | 5 * you may not use this file except in compliance with the License. 51 // This will fail if the process runs out of file descriptors before 57 for (MemoryFile file : files) { 59 file.readBytes(testString, 0, 0, testString.length); 75 MemoryFile file = new MemoryFile("MemoryFileTest", 1000000); 80 file.writeBytes(testString, 0, 2000, testString.length); 81 file.readBytes(buffer, 2000, 0, testString.length); 87 OutputStream os = file.getOutputStream(); 90 InputStream is = file.getInputStream(); 101 file [all...] |
/frameworks/base/tools/localize/ |
H A D | SourcePos.cpp | 16 string file; member in struct:ErrorPos 22 ErrorPos(const string& file, int line, const string& error); 38 :file(that.file), 45 :file(f), 58 if (this->file < rhs.file) return true; 59 if (this->file == rhs.file) { 71 return this->file [all...] |
H A D | merge_res_and_xliff.cpp | 24 if (it->file == filename && it->id == id && it->index == index && it->version == version 39 printf("id=%s index=%d config=%s file=%s value='%s'\n", it->id.c_str(), it->index, 40 it->config.ToString().c_str(), it->file.c_str(), 46 convert_resource(const StringResource& s, const string& file, const Configuration& config, argument 49 return StringResource(s.pos, file, config, s.id, s.index, s.value ? s.value->Clone() : NULL, 87 set<StringResource>::const_iterator xlf = find_in_xliff(xliff, en_c->file, en_c->id, 219 fprintf(stderr, "localize import: unable to read file %s\n", xliffFilename->c_str()); 235 fprintf(stderr, "%s: duplicate string resources for file %s\n", 251 MergedFile* file = const_cast<MergedFile*>(&(*mf)); local 252 // file 285 MergedFile* file = const_cast<MergedFile*>(&(*mf)); local 301 MergedFile* file = const_cast<MergedFile*>(&(*mf)); local 322 MergedFile* file = const_cast<MergedFile*>(&(*mf)); local 358 MergedFile* file = const_cast<MergedFile*>(&(*mf)); local [all...] |
H A D | Values.cpp | 11 file(f), 24 file(), 37 file(that.file), 51 if (file != that.file) { 52 return file < that.file ? -1 : 1;
|
H A D | SourcePos.h | 11 string file; member in class:SourcePos
|
H A D | localize.h | 13 string file; member in struct:Reject 28 string translated_file_name(const string& file, const string& locale); 29 bool keep_this_trans_unit(const string& file, const TransUnit& unit, void* cookie);
|
H A D | res_check.cpp | 8 static int check_file(const ValuesFile* file); 36 check_file(const ValuesFile* file) argument 39 set<StringResource> strings = file->GetStrings();
|
/frameworks/base/tools/aapt/ |
H A D | SourcePos.cpp | 13 String8 file; member in struct:ErrorPos 20 ErrorPos(const String8& file, int line, const String8& error, bool fatal); 37 :file(that.file), 45 :file(f), 59 if (this->file < rhs.file) return true; 60 if (this->file == rhs.file) { 72 return this->file [all...] |
H A D | Images.h | 13 const sp<AaptFile>& file, String8* outNewLeafName); 16 ResourceTable* table, const sp<AaptFile>& file);
|
H A D | SourcePos.h | 12 String8 file; member in class:SourcePos
|
H A D | Bundle.h | 104 void setProguardFile(const char* file) { mProguardFile = file; } argument 108 void setAndroidManifestFile(const char* file) { mAndroidManifestFile = file; } argument 110 void setPublicOutputFile(const char* file) { mPublicOutputFile = file; } argument 118 void addPackageInclude(const char* file) { mPackageIncludes.add(file); } argument 120 void addJarFile(const char* file) { mJarFiles.add(file); } argument [all...] |
/frameworks/base/core/java/android/database/sqlite/ |
H A D | SQLiteContentHelper.java | 5 * you may not use this file except in compliance with the License. 44 * asset file descriptor. 49 MemoryFile file = simpleQueryForBlobMemoryFile(db, sql, selectionArgs); 50 if (file == null) { 53 return AssetFileDescriptor.fromMemoryFile(file); 64 * @return A memory file, or {@code null} if the query returns no results 66 * @throws IOException If there is an error creating the memory file. 83 MemoryFile file = new MemoryFile(null, bytes.length); 84 file.writeBytes(bytes, 0, 0, bytes.length); 85 file [all...] |
/frameworks/base/libs/utils/tests/ |
H A D | Android.mk | 34 $(foreach file,$(test_src_files), \ 39 $(eval LOCAL_SRC_FILES := $(file)) \ 40 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
|
/frameworks/base/core/java/android/gesture/ |
H A D | GestureLibraries.java | 5 * you may not use this file except in compliance with the License. 66 final File file = mPath; 68 final File parentFile = file.getParentFile(); 78 file.createNewFile(); 79 mStore.save(new FileOutputStream(file), true); 92 final File file = mPath; 93 if (file.exists() && file.canRead()) { 95 mStore.load(new FileInputStream(file), true);
|
/frameworks/base/core/tests/coretests/src/com/android/server/ |
H A D | MountServiceTests.java | 5 * you may not use this file except in compliance with the License. 138 private void mountObb(StorageManager sm, final int resource, final File file, argument 140 copyRawToFile(resource, file); 143 assertTrue("mountObb call on " + file.getPath() + " should succeed", 144 sm.mountObb(file.getPath(), null, observer)); 150 assertTrue("OBB should be mounted", sm.isObbMounted(file.getPath())); 153 assertEquals("Actual file and resolved file should be the same", 154 file.getPath(), observer.getPath()); 160 final File file) { 159 mountObbWithoutWait(final StorageManager sm, final int resource, final File file) argument 170 waitForObbActionCompletion(final StorageManager sm, final File file, final ObbObserver observer, int expectedState, boolean checkPath) argument 184 checkMountedPath(final StorageManager sm, final File file) argument 192 unmountObb(final StorageManager sm, final File file, int expectedState) argument [all...] |
/frameworks/base/services/java/com/android/server/am/ |
H A D | DeviceMonitor.java | 5 * you may not use this file except in compliance with the License. 110 * Dumps the current device stats to a new file. 124 for (File file : PATHS) { 125 dump(file, out); 133 * Returns true if the given file represents a process directory. 135 private static boolean isProcessDirectory(File file) { argument 137 Integer.parseInt(file.getName()); 138 return file.isDirectory(); 145 * Copies from a file to an output stream. 163 * Writes a header for the given file 165 writeHeader(File file, OutputStream out) argument [all...] |
/frameworks/base/libs/ui/tests/ |
H A D | Android.mk | 37 $(foreach file,$(test_src_files), \ 42 $(eval LOCAL_SRC_FILES := $(file)) \ 43 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
|
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/ |
H A D | FileFilter.java | 5 * you may not use this file except in compliance with the License. 29 public static boolean ignoreTest(String file) { argument 31 if (file.endsWith(ignoreTestList[i])) { 32 Log.v(LOGTAG, "File path in list of ignored tests: " + file); 41 public static boolean isNonTestDir(String file) { argument 43 if (file.endsWith(nonTestDirs[i])) { 51 public static boolean ignoreResult(String file) { argument 53 if (file.endsWith(ignoreResultList.get(i))) { 54 Log.v(LOGTAG, "File path in list of ignored results: " + file); 87 ignoreResultList.add("http/tests/appcache/manifest-with-empty-file [all...] |
/frameworks/base/core/java/android/os/ |
H A D | FileUtils.java | 5 * you may not use this file except in compliance with the License. 73 * @param path The path of the file to be stat'd. 74 * @param status Optional argument to fill in. It will only fill in the status if the file 76 * @return true if the file exists and false if it does not exist. If you do not have 77 * permission to stat the file, then this method will return false. 84 public static native int setPermissions(String file, int mode, int uid, int gid); argument 86 public static native int getPermissions(String file, int[] outPermissions); argument 88 /** returns the FAT file system volume ID for the volume mounted 110 // copy a file from srcFile to destFile, return true if succeed, return 159 * @param file Th 161 isFilenameSafe(File file) argument 176 readTextFile(File file, int max, String ellipsis) argument [all...] |
/frameworks/base/services/java/com/android/server/ |
H A D | DropBoxManagerService.java | 5 * you may not use this file except in compliance with the License. 75 // TODO: This implementation currently uses one file per entry, which is 76 // inefficient for smallish entries -- consider using a single queue file 260 entry.tag, entry.timestampMillis, entry.file, entry.flags); 262 Slog.e(TAG, "Can't read: " + entry.file, e); 263 // Continue to next file 293 } else if (args[i].equals("-f") || args[i].equals("--file")) { 326 if (entry.file == null) { 327 out.append(" (no file)\n"); 336 out.append(", ").append(entry.file 418 public final File file; field in class:DropBoxManagerService.EntryFile 482 EntryFile(File file, int blockSize) argument [all...] |
/frameworks/base/media/libstagefright/ |
H A D | StagefrightMediaScanner.cpp | 5 * you may not use this file except in compliance with the License. 71 EAS_FILE file; local 72 file.path = filename; 73 file.fd = 0; 74 file.offset = 0; 75 file.length = 0; 76 result = EAS_OpenFile(easData, &file, &easHandle);
|