Home
last modified time | relevance | path

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

12345678910>>...40

/frameworks/rs/api/
Dgen_runtime.cpp316 void writeHeaderSection(ofstream& file) const;
320 void writeJavaSection(ofstream& file) const;
321 void writeJavaArgumentClass(ofstream& file, bool scalar) const;
322 void writeJavaCheckMethod(ofstream& file, bool generateCallToVerifier) const;
323 void writeJavaVerifyScalarMethod(ofstream& file, bool verifierValidates) const;
324 void writeJavaVerifyVectorMethod(ofstream& file) const;
325 void writeJavaVerifyFunctionHeader(ofstream& file) const;
326 void writeJavaInputAllocationDefinition(ofstream& file, const string& indent,
328 void writeJavaOutputAllocationDefinition(ofstream& file, const string& indent,
331 void writeJavaRandomCompatibleFloatAllocation(ofstream& file, const string& dataType,
[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/base/core/java/com/android/internal/http/multipart/
DFilePartSource.java52 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 …]
/frameworks/support/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/packages/ExternalStorageProvider/src/com/android/externalstorage/
DExternalStorageProvider.java181 private String getDocIdForFile(File file) throws FileNotFoundException { in getDocIdForFile() argument
182 String path = file.getAbsolutePath(); in getDocIdForFile()
235 private void includeFile(MatrixCursor result, String docId, File file) in includeFile() argument
238 docId = getDocIdForFile(file); in includeFile()
240 file = getFileForDocId(docId); in includeFile()
245 if (file.canWrite()) { in includeFile()
246 if (file.isDirectory()) { in includeFile()
257 final String displayName = file.getName(); in includeFile()
258 final String mimeType = getTypeForFile(file); in includeFile()
266 row.add(Document.COLUMN_SIZE, file.length()); in includeFile()
[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/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/compile/mclinker/include/mcld/LD/
DDiagCommonKinds.inc1 …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 …ognize the format of file `%0'.\n object format or given target machine (%1) is incompatible.","c…
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 DIAG(err_cannot_open_file, DiagnosticEngine::Error, "cannot open file `%0': %1.", "cannot open file
[all …]
/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/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/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/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/
Dbuild_vc.pl34 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/
Dbuild_vc.pl34 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/base/core/java/android/os/
DFileUtils.java212 public static boolean isFilenameSafe(File file) { in isFilenameSafe() argument
216 return SAFE_FILENAME_PATTERN.matcher(file.getPath()).matches(); in isFilenameSafe()
227 public static String readTextFile(File file, int max, String ellipsis) throws IOException { in readTextFile() argument
228 InputStream input = new FileInputStream(file); in readTextFile()
234 long size = file.length(); in readTextFile()
303 public static long checksumCrc32(File file) throws FileNotFoundException, IOException { in checksumCrc32() argument
308 cis = new CheckedInputStream( new FileInputStream(file), checkSummer); in checksumCrc32()
351 final File file = files[i]; in deleteOlderFiles() local
354 final long age = System.currentTimeMillis() - file.lastModified(); in deleteOlderFiles()
356 if (file.delete()) { in deleteOlderFiles()
[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 …]
Drequest-file.jd31 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/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/
Dbuild_vc.pl34 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/docs/html/tools/help/
Detc1tool.jd12 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
Djobb.jd8 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 …]
/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/usage/java/com/android/server/usage/
DUsageStatsXml.java40 public static long parseBeginTime(AtomicFile file) { in parseBeginTime() argument
41 return Long.parseLong(file.getBaseFile().getName()); in parseBeginTime()
44 public static void read(AtomicFile file, IntervalStats statsOut) throws IOException { in read() argument
46 FileInputStream in = file.openRead(); in read()
48 statsOut.beginTime = parseBeginTime(file); in read()
50 statsOut.lastTimeSaved = file.getLastModifiedTime(); in read()
64 public static void write(AtomicFile file, IntervalStats stats) throws IOException { in write() argument
65 FileOutputStream fos = file.startWrite(); in write()
68 file.finishWrite(fos); in write()
72 file.failWrite(fos); in write()
/frameworks/support/v4/java/android/support/v4/content/
DFileProvider.java375 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 …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DMountServiceTests.java140 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 …]
/frameworks/compile/mclinker/include/mcld/Config/
DConfig.h.in8 // This file is distributed under the University of Illinois Open Source
16 /* Define to 1 if you have the <dlfcn.h> header file. */
19 /* Define to 1 if you have the <fcntl.h> header file. */
22 /* Define to 1 if you have the <inttypes.h> header file. */
25 /* Define to 1 if you have the <memory.h> header file. */
31 /* Define to 1 if you have the <stdint.h> header file. */
34 /* Define to 1 if you have the <stdlib.h> header file. */
37 /* Define to 1 if you have the <strings.h> header file. */
40 /* Define to 1 if you have the <string.h> header file. */
43 /* Define to 1 if you have the <sys/mman.h> header file. */
[all …]

12345678910>>...40