/frameworks/rs/api/ |
D | GenerateDocumentation.cpp | 36 static void writeHeader(GeneratedFile* file, bool forVerification, const string& title) { in writeHeader() argument 38 *file << "<!DOCTYPE html>\n"; in writeHeader() 39 *file << "<!-- " << AUTO_GENERATED_WARNING << "-->\n"; in writeHeader() 40 *file << "<html><head>\n" in writeHeader() 52 *file << "<h1>" << title << "</h1>\n"; in writeHeader() 54 *file << "page.title=RenderScript " << title << "\n\n"; in writeHeader() 55 *file << "@jd:body\n\n"; in writeHeader() 57 *file << "<div class='renderscript'>\n"; in writeHeader() 60 static void writeFooter(GeneratedFile* file, bool forVerification) { in writeFooter() argument 61 *file << "</div>\n"; in writeFooter() [all …]
|
D | GenerateHeaderFiles.cpp | 45 static void writeVersionGuardStart(GeneratedFile* file, VersionInfo info, int finalVersion) { in writeVersionGuardStart() argument 47 *file << "#ifndef __LP64__\n"; in writeVersionGuardStart() 49 *file << "#ifdef __LP64__\n"; in writeVersionGuardStart() 64 *file << "#if !defined(RS_VERSION) || " << checkMaxVersion.str() << "\n"; in writeVersionGuardStart() 67 *file << "#if (defined(RS_VERSION) && (RS_VERSION >= " << info.minVersion << ")"; in writeVersionGuardStart() 69 *file << " && " << checkMaxVersion.str(); in writeVersionGuardStart() 71 *file << ")\n"; in writeVersionGuardStart() 75 static void writeVersionGuardEnd(GeneratedFile* file, VersionInfo info) { in writeVersionGuardEnd() argument 77 *file << "#endif\n"; in writeVersionGuardEnd() 80 *file << "#endif\n"; in writeVersionGuardEnd() [all …]
|
D | GenerateStubsWhiteList.cpp | 384 GeneratedFile file; in generateWhiteListFile() local 385 if (!file.start(".", "RSStubsWhiteList.cpp")) { in generateWhiteListFile() 389 file.writeNotices(); in generateWhiteListFile() 390 file << "#include \"RSStubsWhiteList.h\"\n\n"; in generateWhiteListFile() 391 file << "std::vector<std::string> stubList = {\n"; in generateWhiteListFile() 393 file << "\"" << e << "\",\n"; in generateWhiteListFile() 395 file << "};\n"; in generateWhiteListFile() 401 static const string addVariable(GeneratedFile* file, unsigned int* variableNumber) { in addVariable() argument 406 *file << "char " << name << "[200];\n"; in addVariable() 414 static void generateTestCall(GeneratedFile* file, ostringstream* calls, in generateTestCall() argument [all …]
|
/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/support/tests/java/android/support/v4/content/ |
D | FileProviderTest.java | 64 File file = buildPath(mContext.getFilesDir(), "file.test"); in testStrategyUriSimple() local 66 strat.getUriForFile(file).toString()); in testStrategyUriSimple() 68 file = buildPath(mContext.getFilesDir(), "subdir", "file.test"); in testStrategyUriSimple() 70 strat.getUriForFile(file).toString()); in testStrategyUriSimple() 72 file = buildPath(Environment.getExternalStorageDirectory(), "file.test"); in testStrategyUriSimple() 74 strat.getUriForFile(file); in testStrategyUriSimple() 84 File file = buildPath(mContext.getFilesDir(), "..", "file.test"); in testStrategyUriJumpOutside() local 86 strat.getUriForFile(file); in testStrategyUriJumpOutside() 97 File file = buildPath(mContext.getFilesDir(), "file.test"); in testStrategyUriShortestRoot() local 99 strat.getUriForFile(file).toString()); in testStrategyUriShortestRoot() [all …]
|
/frameworks/base/tools/aapt/ |
D | SourcePos.cpp | 19 String8 file; member 26 ErrorPos(const String8& file, int line, const String8& error, Level level); 40 :file(that.file), in ErrorPos() 48 :file(f), in ErrorPos() 58 this->file = rhs.file; in operator =() 81 if (!this->file.isEmpty()) { in print() 83 … fprintf(to, "%s:%d: %s%s\n", this->file.string(), this->line, type, this->error.string()); in print() 85 fprintf(to, "%s: %s%s\n", this->file.string(), type, this->error.string()); in print() 95 : file(f), line(l) in SourcePos() 100 : file(that.file), line(that.line) in SourcePos() [all …]
|
/frameworks/compile/mclinker/include/mcld/LD/ |
D | DiagCommonKinds.inc | 3 "can not open input file `%0': %1", 4 "can not open input file `%0' : %1") 7 "cannot open output file `%0': %1", 8 "cannot open output file `%0': %1") 16 "Empty input file `%0' : %1", 17 "Empty input file `%0' : %1") 20 "cannot recognize the format of file `%0'.\n object format or given " 22 "cannot recognize the format of file `%0'.\n object format or given " 38 "unsupported output file format: `%0'", 39 "unsupported output file format: `%0'") [all …]
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/ |
D | StubProvider.java | 141 final StubDocument file = mStorage.get(documentId); in queryDocument() local 142 if (file == null) { in queryDocument() 145 includeDocument(result, file); in queryDocument() 153 return FileUtils.contains(parentDocument.file, childDocument.file); in isChildDocument() 160 if (parentDocument == null || !parentDocument.file.isDirectory()) { in createDocument() 163 final File file = new File(parentDocument.file, displayName); in createDocument() local 165 if (!file.mkdirs()) { in createDocument() 170 if (!file.createNewFile()) { in createDocument() 171 … throw new IllegalStateException("The file " + file.getPath() + " already exists"); in createDocument() 178 final StubDocument document = new StubDocument(file, mimeType, parentDocument); in createDocument() [all …]
|
/frameworks/base/data/keyboards/ |
D | keyboards.mk | 19 PRODUCT_COPY_FILES := $(foreach file,$(framework_keylayouts),\ 20 $(file):system/usr/keylayout/$(notdir $(file))) 22 PRODUCT_COPY_FILES += $(foreach file,$(framework_keycharmaps),\ 23 $(file):system/usr/keychars/$(notdir $(file))) 25 PRODUCT_COPY_FILES += $(foreach file,$(framework_keyconfigs),\ 26 $(file):system/usr/idc/$(notdir $(file)))
|
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/ |
D | ExternalStorageProvider.java | 194 private String getDocIdForFile(File file) throws FileNotFoundException { in getDocIdForFile() argument 195 String path = file.getAbsolutePath(); in getDocIdForFile() 260 private void includeFile(MatrixCursor result, String docId, File file) in includeFile() argument 263 docId = getDocIdForFile(file); in includeFile() 265 file = getFileForDocId(docId); in includeFile() 270 if (file.canWrite()) { in includeFile() 271 if (file.isDirectory()) { in includeFile() 282 final String displayName = file.getName(); in includeFile() 283 final String mimeType = getTypeForFile(file); in includeFile() 291 row.add(Document.COLUMN_SIZE, file.length()); in includeFile() [all …]
|
/frameworks/base/packages/Keyguard/scripts/ |
D | new_merge.py | 17 path, file = os.path.split(program) 62 for file in sourceFiles: 63 print file 64 destFile = destDir + file 65 sourceFile = sourceDir + file 66 if (file in destFiles): 74 print "File %s is the same in proto and framework" %(file) 76 print "Running diff for: %s" %(file) 79 print "File %s does not exist in framework" %(file) 99 file = path[path.rfind('/') + 1:] [all …]
|
/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/tools/layoutlib/bridge/src/libcore/io/ |
D | MemoryMappedFile_Delegate.java | 67 RandomAccessFile file = new RandomAccessFile(f, "r"); in mmapRO() local 69 long size = file.length(); in mmapRO() 70 MemoryMappedFile_Delegate newDelegate = new MemoryMappedFile_Delegate(file); in mmapRO() 71 long filePointer = file.getFilePointer(); in mmapRO() 77 file.close(); in mmapRO() 94 static BufferIterator bigEndianIterator(MemoryMappedFile file) { in bigEndianIterator() argument 95 MemoryMappedFile_Delegate delegate = getDelegate(file); in bigEndianIterator() 101 public MemoryMappedFile_Delegate(RandomAccessFile file) throws IOException { in MemoryMappedFile_Delegate() argument 102 mSize = file.length(); in MemoryMappedFile_Delegate() 105 mMappedByteBuffer = file.getChannel().map(MapMode.READ_ONLY, 0, mSize); in MemoryMappedFile_Delegate() [all …]
|
/frameworks/data-binding/compilationTests/src/test/java/android/databinding/compilationTest/ |
D | MultiLayoutVerificationTest.java | 57 File file = new File(report.getFilePath()); in testMultipleLayoutFilesWithNameMismatch() local 58 assertTrue(file.exists()); in testMultipleLayoutFilesWithNameMismatch() 61 switch (file.getParentFile().getName()) { in testMultipleLayoutFilesWithNameMismatch() 65 .getCanonicalFile(), file.getCanonicalFile()); in testMultipleLayoutFilesWithNameMismatch() 78 .getCanonicalFile(), file.getCanonicalFile()); in testMultipleLayoutFilesWithNameMismatch() 115 File file = new File(report.getFilePath()); in testMultipleLayoutFilesVariableMismatch() local 116 assertTrue(file.exists()); in testMultipleLayoutFilesVariableMismatch() 120 String config = file.getParentFile().getName(); in testMultipleLayoutFilesVariableMismatch() 122 switch (file.getParentFile().getName()) { in testMultipleLayoutFilesVariableMismatch() 136 .getCanonicalFile(), file.getCanonicalFile()); in testMultipleLayoutFilesVariableMismatch() [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 …]
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsXml.java | 36 public static long parseBeginTime(AtomicFile file) throws IOException { in parseBeginTime() argument 37 return parseBeginTime(file.getBaseFile()); in parseBeginTime() 40 public static long parseBeginTime(File file) throws IOException { in parseBeginTime() argument 41 String name = file.getName(); in parseBeginTime() 58 public static void read(AtomicFile file, IntervalStats statsOut) throws IOException { in read() argument 60 FileInputStream in = file.openRead(); in read() 62 statsOut.beginTime = parseBeginTime(file); in read() 64 statsOut.lastTimeSaved = file.getLastModifiedTime(); in read() 78 public static void write(AtomicFile file, IntervalStats stats) throws IOException { in write() argument 79 FileOutputStream fos = file.startWrite(); in write() [all …]
|
/frameworks/base/docs/html/training/secure-file-sharing/ |
D | retrieve-info.jd | 27 Before a client app tries to work with a file for which it has a content URI, the app can 28 request information about the file from the server app, including the file's data type and 29 file size. The data type helps the client app to determine if it can handle the file, and the 30 file size helps the client app set up buffering and caching for the file. 34 {@link android.support.v4.content.FileProvider} to retrieve a file's MIME type and size. 38 A file's data type indicates to the client app how it should handle the file's contents. To get 39 the data type of a shared file given its content URI, the client app calls 41 the file's MIME type. By default, a 42 {@link android.support.v4.content.FileProvider} determines the file's MIME type from its 46 The following code snippet demonstrates how a client app retrieves the MIME type of a file once [all …]
|
D | request-file.jd | 31 When an app wants to access a file shared by another app, the requesting app (the client) 34 The user picks a file, after which the server app returns the file's content URI to the 38 This lesson shows you how a client app requests a file from a server app, receives the file's 39 content URI from the server app, and opens the file using the content URI. 44 To request a file from the server app, the client app calls 53 {@link android.app.Activity} described in <a href="share-file.html#SendURI" 72 * When the user requests a file, send an Intent to the 84 The server app sends the file's content URI back to the client app in an 87 the client app has the file's content URI, it can access the file by getting its 95 the file, and only for the permissions granted by the server app. The permissions are temporary, [all …]
|
/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/base/core/java/android/os/ |
D | FileUtils.java | 220 public static boolean isFilenameSafe(File file) { in isFilenameSafe() argument 224 return SAFE_FILENAME_PATTERN.matcher(file.getPath()).matches(); in isFilenameSafe() 235 public static String readTextFile(File file, int max, String ellipsis) throws IOException { in readTextFile() argument 236 InputStream input = new FileInputStream(file); in readTextFile() 242 long size = file.length(); in readTextFile() 311 public static long checksumCrc32(File file) throws FileNotFoundException, IOException { in checksumCrc32() argument 316 cis = new CheckedInputStream( new FileInputStream(file), checkSummer); in checksumCrc32() 359 final File file = files[i]; in deleteOlderFiles() local 362 final long age = System.currentTimeMillis() - file.lastModified(); in deleteOlderFiles() 364 if (file.delete()) { in deleteOlderFiles() [all …]
|
/frameworks/native/opengl/tools/glgen2/registry/ |
D | reg.py | 28 file = kwargs.pop('file',sys.stdout) 30 file.write( ' '.join([str(arg) for arg in args]) ) 31 file.write( end ) 374 write('ERROR:', *args, file=strfile) 376 write(strfile.getvalue(), file=self.errFile) 380 write('WARNING:', *args, file=self.warnFile) 383 write('DIAG:', *args, file=self.diagFile) 513 write('', file=self.outFile) 522 write('#ifndef', headerSym, file=self.outFile) 523 write('#define', headerSym, '1', file=self.outFile) [all …]
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/util/ |
D | GenerationalClassUtil.java | 71 final File file = new File(url.toURI()); in buildCache() local 72 if (!file.exists()) { in buildCache() 76 if (file.isDirectory()) { in buildCache() 78 loadFromDirectory(file); in buildCache() 81 loadFomZipFile(file); in buildCache() 90 for (File file : FileUtils.listFiles(directory, TrueFileFilter.INSTANCE, in loadFromDirectory() 93 if (filter.accept(file.getName())) { in loadFromDirectory() 96 inputStream = FileUtils.openInputStream(file); in loadFromDirectory() 104 L.e(e, "Could not merge in Bindables from %s", file.getAbsolutePath()); in loadFromDirectory() 107 file.getAbsolutePath()); in loadFromDirectory() [all …]
|
/frameworks/support/v4/java/android/support/v4/content/ |
D | FileProvider.java | 375 public static Uri getUriForFile(Context context, String authority, File file) { in getUriForFile() argument 377 return strategy.getUriForFile(file); in getUriForFile() 412 final File file = mStrategy.getFileForUri(uri); in query() local 424 values[i++] = file.getName(); in query() 427 values[i++] = file.length(); in query() 451 final File file = mStrategy.getFileForUri(uri); in getType() local 453 final int lastDot = file.getName().lastIndexOf('.'); in getType() 455 final String extension = file.getName().substring(lastDot + 1); in getType() 497 final File file = mStrategy.getFileForUri(uri); in delete() local 498 return file.delete() ? 1 : 0; in delete() [all …]
|