Searched refs:file (Results 1 - 25 of 407) sorted by relevance

1234567891011>>

/frameworks/base/core/java/com/android/internal/http/multipart/
H A DFilePartSource.java9 * contributor license agreements. See the NOTICE file distributed with
11 * The ASF licenses this file to You under the Apache License, Version 2.0
12 * (the "License"); you may not use this file except in compliance with
51 /** File part file. */
52 private File file = null; field in class:FilePartSource
54 /** File part file name. */
60 * @param file the FilePart source File.
62 * @throws FileNotFoundException if the file does not exist or
65 public FilePartSource(File file) throws FileNotFoundException { argument
66 this.file
87 FilePartSource(String fileName, File file) argument
[all...]
/frameworks/wilhelm/src/
H A Dassert.c5 * you may not use this file except in compliance with the License.
24 void __assert(const char *file, int line, const char *failedexpr) argument
26 LOG_ALWAYS_FATAL("assertion \"%s\" failed: file \"%s\", line %d", failedexpr, file, line);
30 void __assert2(const char *file, int line, const char *func, const char *failedexpr) argument
32 LOG_ALWAYS_FATAL("assertion \"%s\" failed: file \"%s\", line %d, function \"%s\"",
33 failedexpr, file, line, func);
/frameworks/rs/cpu_ref/linkloader/utils/
H A Drsl_assert.cpp5 * you may not use this file except in compliance with the License.
28 extern "C" void ASSERT_FAILED(char const *file, argument
33 llvm::errs() << "rslAssert [" << file << ":" << line << "] " << expr << "\n";
37 ALOGE("rslAssert [%s:%d] %s\n", file, line, expr);
H A Drsl_assert.h5 * you may not use this file except in compliance with the License.
24 extern void ASSERT_FAILED(char const *file,
/frameworks/av/drm/common/
H A DReadWriteUtils.cpp5 * you may not use this file except in compliance with the License.
36 FILE* file = NULL; local
37 file = fopen(filePath.string(), "r");
40 if (NULL != file) {
41 int fd = fileno(file);
52 fclose(file);
58 FILE* file = NULL; local
59 file = fopen(filePath.string(), "r");
62 if (NULL != file) {
63 int fd = fileno(file);
79 FILE* file = NULL; local
96 FILE* file = NULL; local
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DEntropyMixerTest.java5 * you may not use this file except in compliance with the License.
32 File file = File.createTempFile("testInitialWrite", "dat", dir);
33 file.deleteOnExit();
34 assertEquals(0, FileUtils.readTextFile(file, 0, null).length());
36 // The constructor has the side effect of writing to file
37 new EntropyMixer(getContext(), "/dev/null", file.getCanonicalPath(), "/dev/null");
39 assertTrue(FileUtils.readTextFile(file, 0, null).length() > 0);
/frameworks/base/core/tests/coretests/src/android/os/
H A DMemoryFileTest.java5 * you may not use this file except in compliance with the License.
49 // This will fail if the process runs out of file descriptors before
55 for (MemoryFile file : files) {
57 file.readBytes(testString, 0, 0, testString.length);
73 MemoryFile file = new MemoryFile("MemoryFileTest", 1000000);
78 file.writeBytes(testString, 0, 2000, testString.length);
79 file.readBytes(buffer, 2000, 0, testString.length);
85 OutputStream os = file.getOutputStream();
88 InputStream is = file.getInputStream();
99 file
[all...]
/frameworks/rs/api/
H A Dgen_runtime.cpp5 * you may not use this file except in compliance with the License.
18 * For each spec file provided on the command line, it generates a corresponding
23 * - a Renderscript file named Test{Function}.rs,
24 * - a Junit file named Test{function}.java, which calls the above RS file.
27 * test files for. The header file will always contain all the functions.
30 * - SpecFile: Represents on spec file.
32 * spec file contains many entries for clamp, we'll only have one clamp instance.
35 * spec file. Strings that are parts of a Specification can include placeholders,
62 "// Don't edit this file! I
511 writeIfdef(ofstream& file, string filename, bool isStart) argument
530 writeJavaArrayInitialization(ofstream& file, const ParameterDefinition& p) argument
830 FILE* file = fopen(name.c_str(), "wt"); local
1410 writeJavaArgumentClass(ofstream& file, bool scalar) const argument
1437 writeJavaCheckMethod(ofstream& file, bool generateCallToVerifier) const argument
1460 writeJavaInputAllocationDefinition(ofstream& file, const string& indent, const ParameterDefinition& param) const argument
1495 writeJavaRandomCompatibleFloatAllocation(ofstream& file, const string& dataType, const string& seed, char vectorSize, const Type& compatibleType, const Type& generatedType) const argument
1528 writeJavaRandomCompatibleIntegerAllocation(ofstream& file, const string& dataType, const string& seed, char vectorSize, const Type& compatibleType, const Type& generatedType) const argument
1548 writeJavaOutputAllocationDefinition(ofstream& file, const string& indent, const ParameterDefinition& param) const argument
1578 writeJavaVerifyScalarMethod(ofstream& file, bool verifierValidates) const argument
1682 writeJavaTestAndSetValid(ofstream& file, int indent, const ParameterDefinition& p, const string& argsIndex, const string& actualIndex) const argument
1690 writeJavaTestOneValue(ofstream& file, int indent, const ParameterDefinition& p, const string& argsIndex, const string& actualIndex) const argument
1709 writeJavaAppendOutputToMessage(ofstream& file, int indent, const ParameterDefinition& p, const string& argsIndex, const string& actualIndex, bool verifierValidates) const argument
1742 writeJavaAppendInputToMessage(ofstream& file, int indent, const ParameterDefinition& p, const string& actual) const argument
1750 writeJavaAppendNewLineToMessage(ofstream& file, int indent) const argument
1754 writeJavaAppendVariableToMessage(ofstream& file, int indent, const ParameterDefinition& p, const string& value) const argument
1772 writeJavaAppendFloatVariableToMessage(ofstream& file, int indent, const string& value, bool regularFloat) const argument
1784 writeJavaVectorComparison(ofstream& file, int indent, const ParameterDefinition& p) const argument
1796 writeJavaAppendVectorInputToMessage(ofstream& file, int indent, const ParameterDefinition& p) const argument
1808 writeJavaAppendVectorOutputToMessage(ofstream& file, int indent, const ParameterDefinition& p) const argument
1891 writeJavaCallToRs(ofstream& file, bool relaxed, bool generateCallToVerifier) const argument
[all...]
/frameworks/compile/slang/lit-tests/
H A Drs-filecheck-wrapper.sh12 $FILECHECK -input-file $OUTDIR/$FILECHECK_INPUTFILE $SOURCEFILE
/frameworks/base/data/keyboards/
H A Dkeyboards.mk4 # you may not use this file except in compliance with the License.
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)))
[all...]
/frameworks/base/tools/aapt/
H A DSourcePos.cpp19 String8 file; member in struct:ErrorPos
26 ErrorPos(const String8& file, int line, const String8& error, Level level);
40 :file(that.file),
48 :file(f),
58 this->file = rhs.file;
81 if (!this->file.isEmpty()) {
83 fprintf(to, "%s:%d: %s%s\n", this->file.string(), this->line, type, this->error.string());
85 fprintf(to, "%s: %s%s\n", this->file
[all...]
/frameworks/base/services/usage/java/com/android/server/usage/
H A DUsageStatsXml.java5 * use this file except in compliance with the License. You may obtain a copy
36 public static long parseBeginTime(AtomicFile file) { argument
37 return parseBeginTime(file.getBaseFile());
40 public static long parseBeginTime(File file) { argument
41 String name = file.getName();
44 // would be appended more than once to a checked-in file, causing a crash
53 public static void read(AtomicFile file, IntervalStats statsOut) throws IOException { argument
55 FileInputStream in = file.openRead();
57 statsOut.beginTime = parseBeginTime(file);
59 statsOut.lastTimeSaved = file
73 write(AtomicFile file, IntervalStats stats) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/libcore/io/
H A DMemoryMappedFile_Delegate.java5 * you may not use this file except in compliance with the License.
48 /** Path on the target device where the data file is available. */
67 RandomAccessFile file = new RandomAccessFile(f, "r");
69 long size = file.length();
70 MemoryMappedFile_Delegate newDelegate = new MemoryMappedFile_Delegate(file);
71 long filePointer = file.getFilePointer();
77 file.close();
94 static BufferIterator bigEndianIterator(MemoryMappedFile file) { argument
95 MemoryMappedFile_Delegate delegate = getDelegate(file);
101 public MemoryMappedFile_Delegate(RandomAccessFile file) throw argument
113 getDelegate(MemoryMappedFile file) argument
[all...]
/frameworks/support/v17/leanback/
H A Dgeneratev4.py6 # you may not use this file except in compliance with the License.
28 file = open('src/android/support/v17/leanback/app/{}Fragment.java'.format(w), 'r') variable
31 outfile.write("/* This file is auto-generated from {}Fragment.java. DO NOT MODIFY. */\n\n".format(w))
33 for line in file:
39 file.close()
/frameworks/base/packages/Keyguard/scripts/
H A Dnew_merge.py17 path, file = os.path.split(program)
55 #Anything file which contains any string in this list as a substring will be ommitted
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)
[all...]
/frameworks/compile/libbcc/lib/Support/
H A DSha1Util.cpp5 * you may not use this file except in compliance with the license.
30 InputFile file(pFilename);
32 if (file.hasError()) {
33 ALOGE("Unable to open the file %s before SHA-1 checksum "
34 "calculation! (%s)", pFilename, file.getErrorMessage().c_str());
43 ssize_t nread = file.read(buf, sizeof(buf));
46 // Some errors occurred during file reading.
/frameworks/base/core/java/android/os/
H A DSELinux.java5 * you may not use this file except in compliance with the License.
60 * Sets the security context for newly created file objects.
67 * Change the security context of an existing file object.
68 * @param path representing the path of file object to relabel.
75 * Get the security context of a file object.
76 * @param path the pathname of the file object.
133 * Restores a file to its default SELinux security context.
139 * @param pathname The pathname of the file to be relabeled.
149 * Restores a file to its default SELinux security context.
155 * @param pathname The pathname of the file t
171 restorecon(File file) argument
189 restoreconRecursive(File file) argument
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
H A DMutexFileProvider.java5 * you may not use this file except in compliance with the License.
25 * This class provides a shared file to several threads. Only one thread
26 * at a time can use the file. To acquire the file a thread has to
29 * when another one wants to acquire the file. In case a release is requested
30 * the thread owning the file must release it as soon as possible. If no
31 * callback is provided a thread that acquires the file must release it
33 * have the file for less time.
49 public void onReleaseRequested(File file); argument
52 public MutexFileProvider(File file) throw argument
[all...]
/frameworks/native/cmds/installd/tests/
H A DAndroid.mk23 $(foreach file,$(test_src_files), \
27 $(eval LOCAL_SRC_FILES := $(file)) \
29 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
H A DExternalStorageProvider.java5 * you may not use this file except in compliance with the License.
66 // docId format: root:path/to/file
188 private String getDocIdForFile(File file) throws FileNotFoundException { argument
189 String path = file.getAbsolutePath();
237 throw new FileNotFoundException("Missing file for " + docId + " at " + target);
242 private void includeFile(MatrixCursor result, String docId, File file) argument
245 docId = getDocIdForFile(file);
247 file = getFileForDocId(docId);
252 if (file.canWrite()) {
253 if (file
525 getTypeForFile(File file) argument
546 startObserving(File file, Uri notifyUri) argument
561 stopObserving(File file) argument
586 DirectoryObserver(File file, ContentResolver resolver, Uri notifyUri) argument
610 DirectoryCursor(String[] columnNames, String docId, File file) argument
[all...]
/frameworks/support/tests/java/android/support/v4/content/
H A DFileProviderTest.java5 * you may not use this file except in compliance with the License.
47 private static final String TEST_FILE = "file.test";
64 File file = buildPath(mContext.getFilesDir(), "file.test");
65 assertEquals("content://authority/tag/file.test",
66 strat.getUriForFile(file).toString());
68 file = buildPath(mContext.getFilesDir(), "subdir", "file.test");
69 assertEquals("content://authority/tag/subdir/file.test",
70 strat.getUriForFile(file)
328 stageFileAndGetUri(File file, byte[] data) argument
[all...]
/frameworks/base/tests/HugeBackup/src/com/android/hugebackup/
H A DHugeBackupActivity.java5 * you may not use this file except in compliance with the License.
43 * agent running to perform a backup while our UI is updating the file, the
51 /** Also supply a global standard file name for everyone to use */
59 /** Cache a reference to our persistent data file */
78 /** Set up our file bookkeeping */
92 * data file and establishing defaults if necessary.
95 RandomAccessFile file;
97 // Default values in case there's no data file yet
102 /** Hold the data-access lock around access to the file */
106 file
165 writeDataToFileLocked(RandomAccessFile file, boolean addMayo, boolean addTomato, int whichFilling) argument
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DFileRotator.java5 * you may not use this file except in compliance with the License.
38 * a single "active" file, which is periodically rotated into historical files,
44 * enables atomic rewriting of file contents in
62 // TODO: provide method to append to active file
89 * Create a file rotator.
93 * @param rotateAgeMillis Age in milliseconds beyond which an active file
94 * may be rotated into a historical file.
95 * @param deleteAgeMillis Age in milliseconds beyond which a rotated file
115 final File file = new File(
118 // write failed with backup; recover last file
368 readFile(File file, Reader reader) argument
378 writeFile(File file, Writer writer) argument
[all...]
/frameworks/native/libs/ui/tests/
H A DAndroid.mk19 $(foreach file,$(test_src_files), \
23 $(eval LOCAL_SRC_FILES := $(file)) \
24 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/
H A Dbuild_vc.pl5 * you may not use this file except in compliance with the License.
28 # This file builds the OpenMAX DL vc domain library omxVC.o.
49 my (@headerlist, @filelist, $hd, $file, $ofile, $command, $objlist, $libfile, $h);
55 open(FILES, '<filelist_vc.txt') or die("Can't open source file list\n");
59 # Fix the file separators in the header paths
74 # Compile each file
75 foreach $file (@filelist)
82 chomp($file);
83 $file = File::Spec->canonpath($file);
[all...]

Completed in 728 milliseconds

1234567891011>>