/frameworks/rs/script_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, 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 | GenerateStubsWhiteList.cpp | 410 GeneratedFile file; in generateWhiteListFile() local 411 if (!file.start(".", "RSStubsWhiteList.cpp")) { in generateWhiteListFile() 415 file.writeNotices(); in generateWhiteListFile() 416 file << "#include \"RSStubsWhiteList.h\"\n\n"; in generateWhiteListFile() 417 file << "std::vector<std::string> stubList = {\n"; in generateWhiteListFile() 419 file << "\"" << e << "\",\n"; in generateWhiteListFile() 421 file << "};\n"; in generateWhiteListFile() 427 static const string addVariable(GeneratedFile* file, unsigned int* variableNumber) { in addVariable() argument 432 *file << "char " << name << "[200];\n"; in addVariable() 440 static void generateTestCall(GeneratedFile* file, ostringstream* calls, in generateTestCall() argument [all …]
|
/frameworks/support/samples/SupportLeanbackDemos/ |
D | generatev4.py | 28 file = open('src/com/example/android/leanback/GuidedStepActivity.java', 'r') variable 31 for line in file: 38 file.close() 41 file = open('src/com/example/android/leanback/GuidedStepHalfScreenActivity.java', 'r') variable 44 for line in file: 52 file.close() 55 file = open('src/com/example/android/leanback/BrowseFragment.java', 'r') variable 58 for line in file: 72 file.close() 75 file = open('src/com/example/android/leanback/BrowseActivity.java', 'r') variable [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | OWNERS | 1 # This file follows the Gerrit find-owners OWNERS syntax described at 19 per-file WifiBackupRestore*=rpius@google.com 20 per-file WifiConfigManager*=rpius@google.com 21 per-file WifiConfigStore*=rpius@google.com 22 per-file WifiSupplicantControl*=rpius@google.com 25 per-file BaseWifiDiagnostics*=quiche@google.com 26 per-file LastMileLogger*=quiche@google.com 27 per-file WifiDiagnostics*=quiche@google.com 28 per-file WifiLoggerHal*=quiche@google.com 31 per-file HalDeviceManager*=etancohen@google.com [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/data-binding/compilerCommon/src/main/java/android/databinding/tool/ |
D | LayoutXmlProcessor.java | 83 for (File file : files) { in processExistingIncrementalFiles() 84 File parent = file.getParentFile(); in processExistingIncrementalFiles() 86 callback.processOtherRootFile(file); in processExistingIncrementalFiles() 88 callback.processLayoutFile(file); in processExistingIncrementalFiles() 90 callback.processOtherFile(parent, file); in processExistingIncrementalFiles() 98 for (File file : files) { in processRemovedIncrementalFiles() 99 File parent = file.getParentFile(); in processRemovedIncrementalFiles() 101 callback.processRemovedOtherRootFile(file); in processRemovedIncrementalFiles() 103 callback.processRemovedLayoutFile(file); in processRemovedIncrementalFiles() 105 callback.processRemovedOtherFile(parent, file); in processRemovedIncrementalFiles() [all …]
|
/frameworks/base/core/java/com/android/internal/content/ |
D | FileSystemProvider.java | 73 protected abstract String getDocIdForFile(File file) throws FileNotFoundException; in getDocIdForFile() argument 132 final File file = FileUtils.buildUniqueFile(parent, mimeType, displayName); in createDocument() local 135 if (!file.mkdir()) { in createDocument() 136 throw new IllegalStateException("Failed to mkdir " + file); in createDocument() 138 childId = getDocIdForFile(file); in createDocument() 142 if (!file.createNewFile()) { in createDocument() 143 throw new IllegalStateException("Failed to touch " + file); in createDocument() 145 childId = getDocIdForFile(file); in createDocument() 147 throw new IllegalStateException("Failed to touch " + file + ": " + e); in createDocument() 238 final File file = getFileForDocId(docId); in deleteDocument() local [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/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/support/core-utils/tests/java/android/support/v4/content/ |
D | FileProviderTest.java | 74 File file = buildPath(mContext.getFilesDir(), "file.test"); in testStrategyUriSimple() local 76 strat.getUriForFile(file).toString()); in testStrategyUriSimple() 78 file = buildPath(mContext.getFilesDir(), "subdir", "file.test"); in testStrategyUriSimple() 80 strat.getUriForFile(file).toString()); in testStrategyUriSimple() 82 file = buildPath(Environment.getExternalStorageDirectory(), "file.test"); in testStrategyUriSimple() 84 strat.getUriForFile(file); in testStrategyUriSimple() 95 File file = buildPath(mContext.getFilesDir(), "..", "file.test"); in testStrategyUriJumpOutside() local 97 strat.getUriForFile(file); in testStrategyUriJumpOutside() 109 File file = buildPath(mContext.getFilesDir(), "file.test"); in testStrategyUriShortestRoot() local 111 strat.getUriForFile(file).toString()); in testStrategyUriShortestRoot() [all …]
|
/frameworks/support/v17/leanback/tests/ |
D | generatev4.py | 34 file = open('java/android/support/v17/leanback/app/{}Fragment.java'.format(w), 'r') variable 40 for line in file: 47 file.close() 57 file = open('java/android/support/v17/leanback/app/{}FragmentTestBase.java'.format(w), 'r') variable 63 for line in file: 73 file.close() 83 file = open('java/android/support/v17/leanback/app/{}FragmentTest.java'.format(w), 'r') variable 89 for line in file: 105 file.close() 114 file = open('java/android/support/v17/leanback/app/{}FragmentTestActivity.java'.format(w), 'r') variable [all …]
|
/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/tools/aapt2/cmd/ |
D | Dump.cpp | 36 std::unique_ptr<ResourceFile> file = in DumpCompiledFile() local 38 if (!file) { in DumpCompiledFile() 43 std::cout << "Resource: " << file->name << "\n" in DumpCompiledFile() 44 << "Config: " << file->config << "\n" in DumpCompiledFile() 45 << "Source: " << file->source << "\n"; in DumpCompiledFile() 54 io::IFile* file = zip->FindFile("resources.arsc.flat"); in TryDumpFile() local 55 if (file) { in TryDumpFile() 56 std::unique_ptr<io::IData> data = file->OpenAsData(); in TryDumpFile() 76 file = zip->FindFile("resources.arsc"); in TryDumpFile() 77 if (file) { in TryDumpFile() [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/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | OWNERS | 2 per-file ByteArrayRingBuffer*=quiche@google.com 3 per-file FrameParser*=quiche@google.com 6 per-file StringUtil*=quiche@google.com 7 per-file WifiPermissionsUtil*=sohanirao@google.com 8 per-file WifiPermissionsWrapper*=sohanirao@google.com 11 per-file WifiAsyncChannel*=sohanirao@google.com 12 per-file WifiHandler*=sohanirao@google.com
|
/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/support/v17/leanback/ |
D | generatev4.py | 30 file = open('src/android/support/v17/leanback/app/{}Fragment.java'.format(w), 'r') variable 36 for line in file: 47 file.close() 51 file = open('src/android/support/v17/leanback/app/VideoFragmentGlueHost.java'.format(w), 'r') variable 57 for line in file: 68 file.close() 72 file = open('src/android/support/v17/leanback/app/PlaybackFragmentGlueHost.java'.format(w), 'r') variable 78 for line in file: 89 file.close() 93 file = open('src/android/support/v17/leanback/app/DetailsFragmentBackgroundController.java'.format(… variable [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 …]
|
/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 …]
|