/frameworks/rs/script_api/ |
D | GenerateDocumentation.cpp | 35 static void writeHeader(GeneratedFile* file, const string& title, in writeHeader() argument 38 *file in writeHeader() 49 *file << " <meta name=\"description\" content=\""; in writeHeader() 54 if (i) *file << " "; in writeHeader() 55 *file << desc[i]; in writeHeader() 57 *file << "…\">\n"; in writeHeader() 59 *file << "</head>\n\n" in writeHeader() 61 *file << "<div class='renderscript'>\n"; in writeHeader() 64 static void writeFooter(GeneratedFile* file) { in writeFooter() argument 65 *file << "</div>\n"; in writeFooter() [all …]
|
D | GenerateHeaderFiles.cpp | 45 static void writeVersionGuardStart(GeneratedFile* file, VersionInfo info, unsigned 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 | GenerateRSFunctionsList.cpp | 412 GeneratedFile file; in generateRSFunctionsListFile() local 413 if (!file.start(".", "RSFunctionsList.cpp")) { in generateRSFunctionsListFile() 417 file.writeNotices(); in generateRSFunctionsListFile() 418 file << "#include \"RSFunctionsList.h\"\n\n"; in generateRSFunctionsListFile() 419 file << "std::array<std::string_view, " << allManglings.size() << "> stubList = {\n"; in generateRSFunctionsListFile() 421 file << "\"" << e << "\",\n"; in generateRSFunctionsListFile() 423 file << "};\n"; in generateRSFunctionsListFile() 443 static const string addVariable(GeneratedFile* file, unsigned int* variableNumber) { in addVariable() argument 448 *file << "char " << name << "[200];\n"; in addVariable() 456 static void generateTestCall(GeneratedFile* file, ostringstream* calls, in generateTestCall() argument [all …]
|
D | GenerateTestFiles.cpp | 1013 static bool startJavaFile(GeneratedFile* file, const string& directory, in startJavaFile() argument 1017 if (!file->start(directory, fileName)) { in startJavaFile() 1020 file->writeNotices(); in startJavaFile() 1022 *file << "package android.renderscript.cts;\n\n"; in startJavaFile() 1024 *file << "import android.renderscript.Allocation;\n"; in startJavaFile() 1025 *file << "import android.renderscript.RSRuntimeException;\n"; in startJavaFile() 1026 *file << "import android.renderscript.Element;\n"; in startJavaFile() 1027 *file << "import android.renderscript.cts.Target;\n\n"; in startJavaFile() 1028 *file << "import java.util.Arrays;\n\n"; in startJavaFile() 1030 *file << "public class " << testName << " extends RSBaseCompute"; in startJavaFile() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | MemoryFileTest.java | 57 for (MemoryFile file : files) { in testPurge() 59 file.readBytes(testString, 0, 0, testString.length); in testPurge() 75 MemoryFile file = new MemoryFile("MemoryFileTest", 1000000); in testRun() local 80 file.writeBytes(testString, 0, 2000, testString.length); in testRun() 81 file.readBytes(buffer, 2000, 0, testString.length); in testRun() 87 OutputStream os = file.getOutputStream(); in testRun() 90 InputStream is = file.getInputStream(); in testRun() 101 file.close(); in testRun() 106 MemoryFile file = new MemoryFile("MemoryFileTest", 10); in testOutputStreamAdvances() local 108 OutputStream os = file.getOutputStream(); in testOutputStreamAdvances() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | OWNERS | 13 per-file ApexManager.java = dariofreni@google.com, ioffe@google.com, olilan@google.com 14 per-file StagingManager.java = dariofreni@google.com, ioffe@google.com, olilan@google.com 17 per-file AbstractStatsBase.java = agampe@google.com, calin@google.com, ngeoffray@google.com 18 per-file BackgroundDexOptService.java = agampe@google.com, calin@google.com, ngeoffray@google.com 19 per-file CompilerStats.java = agampe@google.com, calin@google.com, ngeoffray@google.com 20 per-file DynamicCodeLoggingService.java = alanstokes@google.com, agampe@google.com, calin@google.co… 21 per-file InstructionSets.java = agampe@google.com, calin@google.com, ngeoffray@google.com 22 per-file OtaDexoptService.java = agampe@google.com, calin@google.com, ngeoffray@google.com 23 per-file OtaDexoptShellCommand.java = agampe@google.com, calin@google.com, ngeoffray@google.com 24 per-file PackageDexOptimizer.java = agampe@google.com, calin@google.com, ngeoffray@google.com [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/tools/aapt2/cmd/ |
D | Convert.cpp | 52 virtual bool SerializeFile(FileReference* file, IArchiveWriter* writer) = 0; 95 bool SerializeFile(FileReference* file, IArchiveWriter* writer) override { in SerializeFile() argument 96 if (file->type == ResourceFile::Type::kProtoXml) { in SerializeFile() 97 unique_ptr<io::InputStream> in = file->file->OpenInputStream(); in SerializeFile() 100 << "failed to open file " << *file->path); in SerializeFile() 108 << "failed to parse proto XML " << *file->path); in SerializeFile() 117 << *file->path << ": " << error); in SerializeFile() 121 if (!SerializeXml(xml.get(), *file->path, false /*utf16*/, writer, in SerializeFile() 122 file->file->WasCompressed() ? ArchiveEntry::kCompress : 0u)) { in SerializeFile() 124 << "failed to serialize to binary XML: " << *file->path); in SerializeFile() [all …]
|
/frameworks/base/core/java/com/android/internal/content/ |
D | FileSystemProvider.java | 57 import java.nio.file.FileSystems; 58 import java.nio.file.FileVisitResult; 59 import java.nio.file.FileVisitor; 60 import java.nio.file.Files; 61 import java.nio.file.Path; 62 import java.nio.file.attribute.BasicFileAttributes; 99 protected abstract String getDocIdForFile(File file) throws FileNotFoundException; in getDocIdForFile() argument 138 File file = getFileForDocId(documentId); in getDocumentMetadata() local 140 if (!file.exists()) { in getDocumentMetadata() 149 final Path path = FileSystems.getDefault().getPath(file.getAbsolutePath()); in getDocumentMetadata() [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/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/base/services/core/java/com/android/server/power/batterysaver/ |
D | FileUpdater.java | 140 final String file = fileValues.keyAt(i); in writeFiles() local 144 Slog.d(TAG, "Scheduling write: '" + value + "' to '" + file + "'"); in writeFiles() 147 mPendingWrites.put(file, value); in writeFiles() 212 final String file = writes.keyAt(i); in handleWriteOnHandler() local 216 if (!ensureDefaultLoaded(file)) { in handleWriteOnHandler() 223 injectWriteToFile(file, value); in handleWriteOnHandler() 225 removePendingWrite(file); in handleWriteOnHandler() 235 private void removePendingWrite(String file) { in removePendingWrite() argument 237 mPendingWrites.remove(file); in removePendingWrite() 263 private boolean ensureDefaultLoaded(String file) { in ensureDefaultLoaded() argument [all …]
|
/frameworks/base/services/robotests/backup/src/android/app/backup/ |
D | BackupUtilsTest.java | 52 BackupUtils.isFileSpecifiedInPathList(file("a/b.txt"), paths(file("a/b.txt"))); in testIsFileSpecifiedInPathList_whenFileAndPathListHasIt() 61 BackupUtils.isFileSpecifiedInPathList(file("a/b.txt"), paths(directory("a"))); in testIsFileSpecifiedInPathList_whenFileAndPathListHasItsDirectory() 69 BackupUtils.isFileSpecifiedInPathList(file("a/b.txt"), paths(file("a/c.txt"))); in testIsFileSpecifiedInPathList_whenFileAndPathListHasOtherFile() 76 boolean isSpecified = BackupUtils.isFileSpecifiedInPathList(file("a/b.txt"), paths()); in testIsFileSpecifiedInPathList_whenFileAndPathListEmpty() 108 BackupUtils.isFileSpecifiedInPathList(file("a/b.txt"), paths(directory("c"))); in testIsFileSpecifiedInPathList_whenFileAndPathListDoesntContainDirectory() 117 BackupUtils.isFileSpecifiedInPathList(file("a/b.txt"), paths(directory("a/b"))); in testIsFileSpecifiedInPathList_whenFileAndPathListHasDirectoryWhoseNameIsPrefix() 127 file("name/subname.txt"), paths(directory("nam"))); in testIsFileSpecifiedInPathList_whenFileAndPathListHasDirectoryWhoseNameIsPrefix2() 138 file("a/b.txt"), paths(directory("b"), directory("a"))); in testIsFileSpecifiedInPathList_whenFileAndPathListContainsFirstNotRelatedAndSecondContainingDirectory() 160 file("a/b.txt"), paths(directory("b"), file("a/b.txt"))); in testIsFileSpecifiedInPathList_whenFileAndPathListContainsFirstNotRelatedFileAndSecondSameFile() 165 private File file(String path) throws IOException { in file() method in BackupUtilsTest [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/native/libs/vr/libdvrcommon/include/private/dvr/ |
D | benchmark.h | 32 static inline void Btrace(FILE* file, const char* name, 34 static inline void Btrace(FILE* file, const char* name); 40 static inline void BtraceData(FILE* file, const char* name, 42 static inline void BtraceData(FILE* file, const char* name, int64_t data); 55 static inline void Btrace(FILE* file, const char* name, in Btrace() argument 57 fprintf(file, "#btrace#%s|%" PRId64 "\n", name, nanoseconds_monotonic); in Btrace() 60 static inline void Btrace(FILE* file, const char* name) { in Btrace() argument 61 Btrace(file, name, android::dvr::GetSystemClockNs()); in Btrace() 76 static inline void BtraceData(FILE* file, const char* name, in BtraceData() argument 78 fprintf(file, "#btrace#%s|%" PRId64 "|%" PRId64 "\n", name, data, in BtraceData() [all …]
|
/frameworks/base/packages/SystemUI/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/services/core/java/com/android/server/pm/permission/ |
D | OWNERS | 2 per-file DefaultPermissionGrantPolicy.java = hackbod@android.com 3 per-file DefaultPermissionGrantPolicy.java = jsharkey@android.com 4 per-file DefaultPermissionGrantPolicy.java = svetoslavganov@google.com 5 per-file DefaultPermissionGrantPolicy.java = toddke@google.com 6 per-file DefaultPermissionGrantPolicy.java = yamasani@google.com 7 per-file DefaultPermissionGrantPolicy.java = patb@google.com 8 per-file DefaultPermissionGrantPolicy.java = eugenesusla@google.com 9 per-file DefaultPermissionGrantPolicy.java = moltmann@google.com
|
/frameworks/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/base/services/backup/java/com/android/server/backup/utils/ |
D | RandomAccessFileUtils.java | 30 private static RandomAccessFile getRandomAccessFile(File file) throws FileNotFoundException { in getRandomAccessFile() argument 31 return new RandomAccessFile(file, "rwd"); in getRandomAccessFile() 35 public static void writeBoolean(File file, boolean b) { in writeBoolean() argument 36 try (RandomAccessFile af = getRandomAccessFile(file)) { in writeBoolean() 39 Slog.w(TAG, "Error writing file:" + file.getAbsolutePath(), e); in writeBoolean() 44 public static boolean readBoolean(File file, boolean def) { in readBoolean() argument 45 try (RandomAccessFile af = getRandomAccessFile(file)) { in readBoolean() 48 Slog.w(TAG, "Error reading file:" + file.getAbsolutePath(), e); in readBoolean()
|
/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/native/libs/gui/ |
D | OWNERS | 15 per-file EndToEndNativeInputTest.cpp = svv@google.com 18 per-file BufferQueue* = set noparent 19 per-file BufferQueue* = jreck@google.com, sumir@google.com, alecmouri@google.com 20 per-file IGraphicBuffer* = set noparent 21 per-file IGraphicBuffer* = jreck@google.com, sumir@google.com, alecmouri@google.com 22 per-file include/gui/BufferQueue* = set noparent 23 per-file include/gui/BufferQueue* = jreck@google.com, sumir@google.com, alecmouri@google.com 24 per-file include/gui/IGraphicBuffer* = set noparent 25 per-file include/gui/IGraphicBuffer* = jreck@google.com, sumir@google.com, alecmouri@google.com
|
/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/base/cmds/incidentd/src/ |
D | Broadcaster.cpp | 173 for (const sp<ReportFile>& file: files) { in sendBroadcasts() local 174 err = file->loadEnvelope(); in sendBroadcasts() 177 file->getEnvelopeFileName().c_str()); in sendBroadcasts() 181 const ReportFileProto& envelope = file->getEnvelope(); in sendBroadcasts() 185 file->getEnvelopeFileName().c_str()); in sendBroadcasts() 205 if (!was_ready_sent(file->getId(), report.pkg(), report.cls())) { in sendBroadcasts() 210 err = send_to_dropbox(file, args); in sendBroadcasts() 215 reportReadyBroadcasts.insert(ReportId(file->getId(), report.pkg(), in sendBroadcasts() 221 if (!was_approval_sent(file->getId(), report.pkg(), report.cls())) { in sendBroadcasts() 222 err = send_approval_broadcasts(file->getId(), report.pkg(), report.cls()); in sendBroadcasts() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | MountServiceTests.java | 128 private void mountObb(StorageManager sm, final int resource, final File file, in mountObb() argument 130 copyRawToFile(resource, file); in mountObb() 133 assertTrue("mountObb call on " + file.getPath() + " should succeed", in mountObb() 134 sm.mountObb(file.getPath(), null, observer)); in mountObb() 140 assertTrue("OBB should be mounted", sm.isObbMounted(file.getPath())); in mountObb() 144 file.getPath(), observer.getPath()); in mountObb() 150 final File file) { in mountObbWithoutWait() argument 151 copyRawToFile(resource, file); in mountObbWithoutWait() 154 assertTrue("mountObb call on " + file.getPath() + " should succeed", sm.mountObb(file in mountObbWithoutWait() 160 private void waitForObbActionCompletion(final StorageManager sm, final File file, in waitForObbActionCompletion() argument [all …]
|