/frameworks/base/core/tests/coretests/src/android/os/ |
D | MemoryFileTest.java | 55 for (MemoryFile file : files) { in testPurge() 57 file.readBytes(testString, 0, 0, testString.length); in testPurge() 73 MemoryFile file = new MemoryFile("MemoryFileTest", 1000000); in testRun() local 78 file.writeBytes(testString, 0, 2000, testString.length); in testRun() 79 file.readBytes(buffer, 2000, 0, testString.length); in testRun() 85 OutputStream os = file.getOutputStream(); in testRun() 88 InputStream is = file.getInputStream(); in testRun() 99 file.close(); in testRun() 104 MemoryFile file = new MemoryFile("MemoryFileTest", 10); in testOutputStreamAdvances() local 106 OutputStream os = file.getOutputStream(); in testOutputStreamAdvances() [all …]
|
/frameworks/av/drm/common/ |
D | ReadWriteUtils.cpp | 36 FILE* file = NULL; in readBytes() local 37 file = fopen(filePath.string(), "r"); in readBytes() 40 if (NULL != file) { in readBytes() 41 int fd = fileno(file); in readBytes() 52 fclose(file); in readBytes() 58 FILE* file = NULL; in readBytes() local 59 file = fopen(filePath.string(), "r"); in readBytes() 62 if (NULL != file) { in readBytes() 63 int fd = fileno(file); in readBytes() 73 fclose(file); in readBytes() [all …]
|
/frameworks/base/core/java/com/android/internal/http/multipart/ |
D | FilePartSource.java | 52 private File file = null; field in FilePartSource 65 public FilePartSource(File file) throws FileNotFoundException { in FilePartSource() argument 66 this.file = file; in FilePartSource() 67 if (file != null) { in FilePartSource() 68 if (!file.isFile()) { in FilePartSource() 71 if (!file.canRead()) { in FilePartSource() 74 this.fileName = file.getName(); in FilePartSource() 87 public FilePartSource(String fileName, File file) in FilePartSource() argument 89 this(file); in FilePartSource() 101 if (this.file != null) { in getLength() [all …]
|
D | FilePart.java | 125 public FilePart(String name, File file) in FilePart() argument 127 this(name, new FilePartSource(file), null, null); in FilePart() 143 public FilePart(String name, File file, String contentType, String charset) in FilePart() argument 145 this(name, new FilePartSource(file), contentType, charset); in FilePart() 158 public FilePart(String name, String fileName, File file) in FilePart() argument 160 this(name, new FilePartSource(fileName, file), null, null); in FilePart() 177 public FilePart(String name, String fileName, File file, String contentType, String charset) in FilePart() argument 179 this(name, new FilePartSource(fileName, file), contentType, charset); in FilePart()
|
/frameworks/base/tools/aapt/ |
D | SourcePos.cpp | 13 String8 file; member 20 ErrorPos(const String8& file, int line, const String8& error, bool fatal); 37 :file(that.file), in ErrorPos() 45 :file(f), in ErrorPos() 59 if (this->file < rhs.file) return true; in operator <() 60 if (this->file == rhs.file) { in operator <() 72 return this->file == rhs.file in operator ==() 80 this->file = rhs.file; in operator =() 92 fprintf(to, "%s:%d: %s %s\n", this->file.string(), this->line, type, this->error.string()); in print() 94 fprintf(to, "%s: %s %s\n", this->file.string(), type, this->error.string()); in print() [all …]
|
/frameworks/compile/mclinker/include/mcld/LD/ |
D | DiagCommonKinds.inc | 1 …pen_input, DiagnosticEngine::Error, "can not open input file `%0': %1", "can not open input file `… 2 …tput_file, DiagnosticEngine::Fatal, "cannot open output file `%0': %1", "cannot open output file `… 5 DIAG(err_empty_input, DiagnosticEngine::Error, "Empty input file `%0' : %1", "Empty input file `%0'… 6 …recognize the format of file `%0'.\n object format or given target machine (%1) is wrong.","canno… 10 …e, DiagnosticEngine::Unreachable, "unsupported output file format: `%0'", "unsupported output file… 14 …, DiagnosticEngine::Fatal, "can not read symbol[%0] in file %1", "can not read symbol[%0] in file … 17 …tion being relocated in file %0.\ninvalid sh_info: %1\nrelocation section: %2", "can not read the … 19 …agnosticEngine::Unreachable, "section[%0] is invalid in file %1", "section[%0] is invalid in file … 26 DIAG(err_cannot_change_file_size, DiagnosticEngine::Error, "cannot truncate file `%0' to size %1", … 27 …nnot_open_file, DiagnosticEngine::Error, "cannot open file %0.\nError Code: %1", "cannot open file… [all …]
|
/frameworks/base/data/keyboards/ |
D | keyboards.mk | 19 PRODUCT_COPY_FILES := $(foreach file,$(keylayouts),\ 20 frameworks/base/data/keyboards/$(file):system/usr/keylayout/$(file)) 22 PRODUCT_COPY_FILES += $(foreach file,$(keycharmaps),\ 23 frameworks/base/data/keyboards/$(file):system/usr/keychars/$(file)) 25 PRODUCT_COPY_FILES += $(foreach file,$(keyconfigs),\ 26 frameworks/base/data/keyboards/$(file):system/usr/idc/$(file))
|
D | Android.mk | 26 $(foreach file,$(keylayouts),frameworks/base/data/keyboards/$(file)) \ 27 $(foreach file,$(keycharmaps),frameworks/base/data/keyboards/$(file)) \ 28 $(foreach file,$(keyconfigs),frameworks/base/data/keyboards/$(file))
|
/frameworks/base/core/java/com/android/internal/util/ |
D | FileRotator.java | 115 final File file = new File( in FileRotator() local 119 backupFile.renameTo(file); in FileRotator() 125 final File file = new File( in FileRotator() local 130 file.delete(); in FileRotator() 160 final File file = new File(mBasePath, name); in dumpAll() local 161 final FileInputStream is = new FileInputStream(file); in dumpAll() 235 final File file = new File(mBasePath, name); in rewriteSingle() local 240 if (file.exists()) { in rewriteSingle() 242 readFile(file, rewriter); in rewriteSingle() 249 file.renameTo(backupFile); in rewriteSingle() [all …]
|
/frameworks/base/tests/HugeBackup/src/com/android/hugebackup/ |
D | HugeBackupActivity.java | 95 RandomAccessFile file; in populateUI() local 106 file = new RandomAccessFile(mDataFile, "rw"); in populateUI() 109 whichFilling = file.readInt(); in populateUI() 110 addMayo = file.readBoolean(); in populateUI() 111 addTomato = file.readBoolean(); in populateUI() 119 writeDataToFileLocked(file, in populateUI() 165 void writeDataToFileLocked(RandomAccessFile file, in writeDataToFileLocked() argument 168 file.setLength(0L); in writeDataToFileLocked() 169 file.writeInt(whichFilling); in writeDataToFileLocked() 170 file.writeBoolean(addMayo); in writeDataToFileLocked() [all …]
|
D | HugeAgent.java | 96 RandomAccessFile file = new RandomAccessFile(mDataFile, "r"); in onBackup() local 97 mFilling = file.readInt(); in onBackup() 98 mAddMayo = file.readBoolean(); in onBackup() 99 mAddTomato = file.readBoolean(); in onBackup() 244 RandomAccessFile file = new RandomAccessFile(mDataFile, "rw"); in onRestore() local 245 file.setLength(0L); in onRestore() 246 file.writeInt(mFilling); in onRestore() 247 file.writeBoolean(mAddMayo); in onRestore() 248 file.writeBoolean(mAddTomato); in onRestore()
|
/frameworks/base/docs/html/tools/help/ |
D | jobb.jd | 8 Level 9) or higher. OBB files are used to provide additional file assets for Android applications 9 (such as graphics, sounds and video), separate from an application's APK file. For more 23 <p>You can use the {@code jobb} tool to create an OBB file or extract the contents of an 24 existing OBB. The following example command creates an OBB file from source files.</p> 30 <p>This example shows how to dump (extract) the contents of an existing OBB file:</p> 48 <td>Set the input directory for creating an OBB file, or the output directory when extracting 49 ({@code -dump}) an existing file. When creating an OBB file, the contents of the specified 50 directory and all its sub-directories are included in the OBB file system. 55 <td>Specify the filename for the OBB file. This parameter is required when 60 <td>Specify the package name for the application that mounts the OBB file, which corresponds [all …]
|
D | etc1tool.jd | 12 diff-file] [-o outfile]</pre> 24 <td>The input file to compress</td> 36 <td>Create an ETC1 file from a PNG file. 43 <td>Create a raw ETC1 data file (without a header) from a PNG file.</td> 49 <td>Create a PNG file from an ETC1 file</td> 53 <td><code>--showDifference <em>diff-file</em></code></td> 56 <code><em>diff-file</em></code> (only valid when encoding).</td> 62 <td>Specify the name of the output file. 63 If <code><em>outfile</em></code> is not specified, the output file is constructed
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/ |
D | build_vc.pl | 34 my (@headerlist, @filelist, $hd, $file, $ofile, $command, $objlist, $libfile, $h); 60 foreach $file (@filelist) 67 chomp($file); 68 $file = File::Spec->canonpath($file); 70 (undef, undef, $f) = File::Spec->splitpath($file); 78 $command = $CC.' '.$CC_OPTS.' '.$hd.' -o '.$objfile.' '.$file; 85 $command = $AS.' '.$AS_OPTS.' '.$hd.' -o '.$objfile.' '.$file;
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/ |
D | build_vc.pl | 34 my (@headerlist, @filelist, $hd, $file, $ofile, $command, $objlist, $libfile, $h); 60 foreach $file (@filelist) 67 chomp($file); 68 $file = File::Spec->canonpath($file); 70 (undef, undef, $f) = File::Spec->splitpath($file); 78 $command = $CC.' '.$CC_OPTS.' '.$hd.' -o '.$objfile.' '.$file; 85 $command = $AS.' '.$AS_OPTS.' '.$hd.' -o '.$objfile.' '.$file;
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/ |
D | build_vc.pl | 34 my (@headerlist, @filelist, $hd, $file, $ofile, $command, $objlist, $libfile, $h); 60 foreach $file (@filelist) 67 chomp($file); 68 $file = File::Spec->canonpath($file); 70 (undef, undef, $f) = File::Spec->splitpath($file); 80 $command = $CC.' '.$CC_OPTS.' '.$hd.' -o '.$objfile.' '.$file; 87 $command = $AS.' '.$AS_OPTS.' '.$hd.' -o '.$objfile.' '.$file;
|
/frameworks/base/services/java/com/android/server/ |
D | DropBoxManagerService.java | 295 entry.tag, entry.timestampMillis, entry.file, entry.flags); in getNextEntry() 297 Slog.e(TAG, "Can't read: " + entry.file, e); in getNextEntry() 361 if (entry.file == null) { in dump() 371 out.append(", ").append(entry.file.length()).append(" bytes)\n"); in dump() 376 out.append(entry.file.getPath()).append("\n"); in dump() 384 entry.tag, entry.timestampMillis, entry.file, entry.flags); in dump() 412 Slog.e(TAG, "Can't read: " + entry.file, e); in dump() 460 public final File file; field in DropBoxManagerService.EntryFile 467 if (file != null && o.file != null) return file.compareTo(o.file); in compareTo() 468 if (o.file != null) return -1; in compareTo() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | MountServiceTests.java | 140 private void mountObb(StorageManager sm, final int resource, final File file, in mountObb() argument 142 copyRawToFile(resource, file); in mountObb() 145 assertTrue("mountObb call on " + file.getPath() + " should succeed", in mountObb() 146 sm.mountObb(file.getPath(), null, observer)); in mountObb() 152 assertTrue("OBB should be mounted", sm.isObbMounted(file.getPath())); in mountObb() 156 file.getPath(), observer.getPath()); in mountObb() 162 final File file) { in mountObbWithoutWait() argument 163 copyRawToFile(resource, file); in mountObbWithoutWait() 166 assertTrue("mountObb call on " + file.getPath() + " should succeed", sm.mountObb(file in mountObbWithoutWait() 172 private void waitForObbActionCompletion(final StorageManager sm, final File file, in waitForObbActionCompletion() argument [all …]
|
D | EntropyMixerTest.java | 32 File file = File.createTempFile("testInitialWrite", "dat", dir); in testInitialWrite() local 33 file.deleteOnExit(); in testInitialWrite() 34 assertEquals(0, FileUtils.readTextFile(file, 0, null).length()); in testInitialWrite() 37 new EntropyMixer("/dev/null", file.getCanonicalPath()); in testInitialWrite() 39 assertTrue(FileUtils.readTextFile(file, 0, null).length() > 0); in testInitialWrite()
|
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/ |
D | FsUtils.java | 91 public static void writeDataToStorage(File file, byte[] bytes, boolean append) { in writeDataToStorage() argument 92 Log.d(LOG_TAG, "writeDataToStorage(): " + file.getAbsolutePath()); in writeDataToStorage() 96 file.getParentFile().mkdirs(); in writeDataToStorage() 97 file.createNewFile(); in writeDataToStorage() 98 Log.d(LOG_TAG, "writeDataToStorage(): File created: " + file.getAbsolutePath()); in writeDataToStorage() 99 outputStream = new FileOutputStream(file, append); in writeDataToStorage() 107 Log.e(LOG_TAG, "file.getAbsolutePath=" + file.getAbsolutePath() + " append=" + append, in writeDataToStorage() 112 public static byte[] readDataFromStorage(File file) { in readDataFromStorage() argument 113 if (!file.exists()) { in readDataFromStorage() 115 + file.getAbsolutePath()); in readDataFromStorage() [all …]
|
/frameworks/wilhelm/src/ |
D | locks.c | 34 void object_lock_exclusive_(IObject *thiz, const char *file, int line) in object_lock_exclusive_() argument 54 SL_LOGE("%s:%d: recursive lock detected", file, line); in object_lock_exclusive_() 57 SL_LOGE("%s:%d: pthread_mutex_lock_timeout_np returned %d", file, line, ok); in object_lock_exclusive_() 74 " (tid %d) at %s:%d\n", file, line, *(void **)&me, gettid(), thiz, in object_lock_exclusive_() 94 " %p (tid %d) at %s:%d\n", file, line, *(void **)&me, gettid(), thiz, in object_lock_exclusive_() 98 " state by pthread %p (tid %d) at %s:%d\n", file, line, *(void **)&me, gettid(), in object_lock_exclusive_() 104 thiz->mFile = file; in object_lock_exclusive_() 122 void object_unlock_exclusive_(IObject *thiz, const char *file, int line) in object_unlock_exclusive_() argument 128 thiz->mFile = file; in object_unlock_exclusive_() 150 const char *file, int line) in object_unlock_exclusive_attributes_() argument [all …]
|
/frameworks/base/core/java/android/gesture/ |
D | GestureLibraries.java | 66 final File file = mPath; in save() 68 final File parentFile = file.getParentFile(); in save() 78 file.createNewFile(); in save() 79 mStore.save(new FileOutputStream(file), true); in save() 92 final File file = mPath; in load() local 93 if (file.exists() && file.canRead()) { in load() 95 mStore.load(new FileInputStream(file), true); in load()
|
/frameworks/base/cmds/am/ |
D | Android.mk | 20 define make-notice-file 23 @echo Notice file: $$< -- $$@ 31 $(foreach file,$(files_noticed),$(eval $(call make-notice-file,$(file))))
|
/frameworks/base/cmds/content/ |
D | Android.mk | 22 define make-notice-file 25 @echo Notice file: $$< -- $$@ 33 $(foreach file,$(files_noticed),$(eval $(call make-notice-file,$(file))))
|
/frameworks/support/volley/src/com/android/volley/toolbox/ |
D | DiskBasedCache.java | 91 for (File file : files) { in clear() 92 file.delete(); in clear() 111 File file = getFileForKey(key); in get() local 114 cis = new CountingInputStream(new FileInputStream(file)); in get() 116 byte[] data = streamToBytes(cis, (int) (file.length() - cis.bytesRead)); in get() 119 VolleyLog.d("%s: %s", file.getAbsolutePath(), e.toString()); in get() 143 for (File file : files) { in initialize() 146 fis = new FileInputStream(file); in initialize() 148 entry.size = file.length(); in initialize() 151 if (file != null) { in initialize() [all …]
|