Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 1369) sorted by relevance

12345678910>>...55

/frameworks/rs/api/
DGenerateDocumentation.cpp36 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 …]
DGenerateHeaderFiles.cpp45 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 …]
DGenerateStubsWhiteList.cpp410 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/
Dgeneratev4.py27 file = open('src/com/example/android/leanback/GuidedStepActivity.java', 'r') variable
30 for line in file:
37 file.close()
40 file = open('src/com/example/android/leanback/GuidedStepHalfScreenActivity.java', 'r') variable
43 for line in file:
51 file.close()
54 file = open('src/com/example/android/leanback/BrowseFragment.java', 'r') variable
57 for line in file:
71 file.close()
74 file = open('src/com/example/android/leanback/BrowseActivity.java', 'r') variable
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DMemoryFileTest.java55 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/
DReadWriteUtils.cpp36 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/
DLayoutXmlProcessor.java83 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/packages/DocumentsUI/tests/src/com/android/documentsui/
DStubProvider.java124 final File file = new File(getContext().getCacheDir(), rootId); in clearCacheAndBuildRoots() local
125 if (file.mkdir()) { in clearCacheAndBuildRoots()
126 Log.i(TAG, "Created new root directory @ " + file.getPath()); in clearCacheAndBuildRoots()
128 final RootInfo rootInfo = new RootInfo(file, getSize(rootId)); in clearCacheAndBuildRoots()
169 final StubDocument file = mStorage.get(documentId); in queryDocument() local
170 if (file == null) { in queryDocument()
173 includeDocument(result, file); in queryDocument()
181 return FileUtils.contains(parentDocument.file, childDocument.file); in isChildDocument()
188 File file = createFile(parent, mimeType, displayName); in createDocument() local
190 final StubDocument document = StubDocument.createRegularDocument(file, mimeType, parent); in createDocument()
[all …]
/frameworks/compile/mclinker/include/mcld/LD/
DDiagCommonKinds.inc3 "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/support/core-utils/tests/java/android/support/v4/content/
DFileProviderTest.java62 File file = buildPath(mContext.getFilesDir(), "file.test"); in testStrategyUriSimple() local
64 strat.getUriForFile(file).toString()); in testStrategyUriSimple()
66 file = buildPath(mContext.getFilesDir(), "subdir", "file.test"); in testStrategyUriSimple()
68 strat.getUriForFile(file).toString()); in testStrategyUriSimple()
70 file = buildPath(Environment.getExternalStorageDirectory(), "file.test"); in testStrategyUriSimple()
72 strat.getUriForFile(file); in testStrategyUriSimple()
82 File file = buildPath(mContext.getFilesDir(), "..", "file.test"); in testStrategyUriJumpOutside() local
84 strat.getUriForFile(file); in testStrategyUriJumpOutside()
95 File file = buildPath(mContext.getFilesDir(), "file.test"); in testStrategyUriShortestRoot() local
97 strat.getUriForFile(file).toString()); in testStrategyUriShortestRoot()
[all …]
/frameworks/base/tools/aapt/
DSourcePos.cpp19 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/data/keyboards/
Dkeyboards.mk19 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/Keyguard/scripts/
Dnew_merge.py17 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/packages/ExternalStorageProvider/src/com/android/externalstorage/
DExternalStorageProvider.java271 private String getDocIdForFile(File file) throws FileNotFoundException { in getDocIdForFile() argument
272 return getDocIdForFileMaybeCreate(file, false); in getDocIdForFile()
275 private String getDocIdForFileMaybeCreate(File file, boolean createNewDir) in getDocIdForFileMaybeCreate() argument
277 String path = file.getAbsolutePath(); in getDocIdForFileMaybeCreate()
308 if (!file.exists() && createNewDir) { in getDocIdForFileMaybeCreate()
309 Log.i(TAG, "Creating new directory " + file); in getDocIdForFileMaybeCreate()
310 if (!file.mkdir()) { in getDocIdForFileMaybeCreate()
311 Log.e(TAG, "Could not create directory " + file); in getDocIdForFileMaybeCreate()
349 private void includeFile(MatrixCursor result, String docId, File file) in includeFile() argument
352 docId = getDocIdForFile(file); in includeFile()
[all …]
/frameworks/support/v17/leanback/tests/
Dgeneratev4.py30 file = open('java/android/support/v17/leanback/app/{}Fragment.java'.format(w), 'r') variable
35 for line in file:
41 file.close()
49 file = open('java/android/support/v17/leanback/app/{}FragmentTest.java'.format(w), 'r') variable
54 for line in file:
62 file.close()
67 file = open('java/android/support/v17/leanback/app/BrowseFragmentTestActivity.java', 'r') variable
70 for line in file:
78 file.close()
82 file = open('java/android/support/v17/leanback/app/PlaybackControlGlueTest.java', 'r') variable
[all …]
/frameworks/base/core/java/com/android/internal/util/
DFileRotator.java115 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/
DMemoryMappedFile_Delegate.java67 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/tests/HugeBackup/src/com/android/hugebackup/
DHugeBackupActivity.java95 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/docs/html/training/secure-file-sharing/
Dretrieve-info.jd27 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 …]
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsXml.java36 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/tools/aapt2/dump/
DDump.cpp36 std::unique_ptr<ResourceFile> file = deserializeCompiledFileFromPb(pbFile, source, in dumpCompiledFile() local
38 if (!file) { in dumpCompiledFile()
42 std::cout << "Resource: " << file->name << "\n" in dumpCompiledFile()
43 << "Config: " << file->config << "\n" in dumpCompiledFile()
44 << "Source: " << file->source << "\n"; in dumpCompiledFile()
62 io::IFile* file = zip->findFile("resources.arsc.flat"); in tryDumpFile() local
63 if (file) { in tryDumpFile()
64 std::unique_ptr<io::IData> data = file->openAsData(); in tryDumpFile()
89 Maybe<android::FileMap> file = file::mmapPath(filePath, &err); in tryDumpFile() local
90 if (!file) { in tryDumpFile()
[all …]
/frameworks/native/opengl/tools/glgen2/registry/
Dreg.py28 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/services/tests/servicestests/src/com/android/server/
DMountServiceTests.java128 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/data-binding/compiler/src/main/java/android/databinding/tool/util/
DGenerationalClassUtil.java71 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()
92 for (File file : FileUtils.listFiles(directory, TrueFileFilter.INSTANCE, in loadFromDirectory()
95 if (filter.accept(file.getName())) { in loadFromDirectory()
98 inputStream = FileUtils.openInputStream(file); in loadFromDirectory()
106 L.e(e, "Could not merge in Bindables from %s", file.getAbsolutePath()); in loadFromDirectory()
109 file.getAbsolutePath()); in loadFromDirectory()
[all …]
/frameworks/native/cmds/dumpstate/
Dbugreport-format.md1 # Bugreport file format
12 ## Text file (Pre-M)
13 Prior to _Android M (Marshmallow)_, `dumpstate` generates a flat .txt file named
20 _bugreport-DATE.txt_ file, but then **Shell** creates a zip file called
22 file as the `ACTION_SEND_MULTIPLE` attachment.
25 On _Android N (TBD)_, `dumpstate` generates a zip file directly (unless there
26 is a failure, in which case it reverts to the flat file that is zipped by
29 The zip file is by default called _bugreport-BUILD_ID-DATE.zip_ and it contains a
34 The zip file also contains 2 metadata entries generated by `dumpstate`:
40 `dumpstate` can also copy files from the device’s filesystem into the zip file
[all …]

12345678910>>...55