/frameworks/rs/api/ |
H A D | GenerateHeaderFiles.cpp | 5 * you may not use this file except in compliance with the License. 26 // Convert a file name into a string that can be used to guard the include file with #ifdef... 45 static void writeVersionGuardStart(GeneratedFile* file, VersionInfo info, int finalVersion) { argument 47 *file << "#ifndef __LP64__\n"; 49 *file << "#ifdef __LP64__\n"; 64 *file << "#if !defined(RS_VERSION) || " << checkMaxVersion.str() << "\n"; 67 *file << "#if (defined(RS_VERSION) && (RS_VERSION >= " << info.minVersion << ")"; 69 *file << " && " << checkMaxVersion.str(); 71 *file << ")\ 75 writeVersionGuardEnd(GeneratedFile* file, VersionInfo info) argument 84 writeComment(GeneratedFile* file, const string& name, const string& briefComment, const vector<string>& comment, bool addDeprecatedWarning, bool closeBlock) argument 113 writeConstantComment(GeneratedFile* file, const Constant& constant) argument 119 writeConstantSpecification(GeneratedFile* file, const ConstantSpecification& spec) argument 127 writeTypeSpecification(GeneratedFile* file, const TypeSpecification& spec) argument 192 writeTypeComment(GeneratedFile* file, const Type& type) argument 197 writeFunctionPermutation(GeneratedFile* file, const FunctionSpecification& spec, const FunctionPermutation& permutation) argument 279 writeFunctionComment(GeneratedFile* file, const Function& function) argument 305 writeFunctionSpecification(GeneratedFile* file, const FunctionSpecification& spec) argument 316 GeneratedFile file; local [all...] |
H A D | GenerateDocumentation.cpp | 5 * you may not use this file except in compliance with the License. 36 static void writeHeader(GeneratedFile* file, bool forVerification, const string& title) { argument 38 *file << "<!DOCTYPE html>\n"; 39 *file << "<!-- " << AUTO_GENERATED_WARNING << "-->\n"; 40 *file << "<html><head>\n" 52 *file << "<h1>" << title << "</h1>\n"; 54 *file << "page.title=RenderScript " << title << "\n\n"; 55 *file << "@jd:body\n\n"; 57 *file << "<div class='renderscript'>\n"; 60 static void writeFooter(GeneratedFile* file, boo argument 200 generateHtmlParagraphs(GeneratedFile* file, const vector<string>& description) argument 226 writeSummaryTableStart(GeneratedFile* file, const string& label, bool labelIsHeading) argument 236 writeSummaryTableEnd(GeneratedFile* file) argument 272 writeSummaryTable(GeneratedFile* file, const ostringstream* entries, const char* name, DeprecatedSelector deprecatedSelector, bool labelAsHeader) argument 286 writeSummaryTables(GeneratedFile* file, const map<string, Constant*>& constants, const map<string, Type*>& types, const map<string, Function*>& functions, DeprecatedSelector deprecatedSelector, bool labelAsHeader) argument 309 writeHtmlVersionTag(GeneratedFile* file, VersionInfo info) argument 343 writeDetailedTypeSpecification(GeneratedFile* file, const TypeSpecification* spec) argument 394 writeDetailedConstantSpecification(GeneratedFile* file, ConstantSpecification* c) argument 402 writeOverviewForFile(GeneratedFile* file, const SpecFile& specFile) argument 418 GeneratedFile file; local 438 GeneratedFile file; local 455 writeDeprecatedWarning(GeneratedFile* file, Definition* definition) argument 469 writeDetailedConstant(GeneratedFile* file, Constant* constant) argument 508 writeDetailedType(GeneratedFile* file, Type* type) argument 537 writeDetailedFunction(GeneratedFile* file, Function* function) argument 607 GeneratedFile file; local 668 generateSnippet(GeneratedFile* file, const string& fileName, const string& title) argument 680 GeneratedFile file; local [all...] |
H A D | GenerateStubsWhiteList.cpp | 5 * you may not use this file except in compliance with the License. 366 /* Generate the white list file of the mangled function prototypes. This generated list is used 384 GeneratedFile file; local 385 if (!file.start(".", "RSStubsWhiteList.cpp")) { 389 file.writeNotices(); 390 file << "#include \"RSStubsWhiteList.h\"\n\n"; 391 file << "std::vector<std::string> stubList = {\n"; 393 file << "\"" << e << "\",\n"; 395 file << "};\n"; 400 // Add a uniquely named variable definition to the file an 401 addVariable(GeneratedFile* file, unsigned int* variableNumber) argument 414 generateTestCall(GeneratedFile* file, ostringstream* calls, unsigned int* variableNumber, const Function& function, const FunctionPermutation& permutation) argument 455 GeneratedFile file; local [all...] |
/frameworks/wilhelm/src/ |
H A D | assert.c | 5 * 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/av/drm/common/ |
H A D | ReadWriteUtils.cpp | 5 * 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 D | EntropyMixerTest.java | 5 * 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 D | MemoryFileTest.java | 5 * 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/compile/slang/lit-tests/ |
H A D | rs-filecheck-wrapper.sh | 12 $FILECHECK -input-file $OUTDIR/$FILECHECK_INPUTFILE $SOURCEFILE
|
/frameworks/base/data/keyboards/ |
H A D | keyboards.mk | 4 # 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 D | SourcePos.cpp | 19 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 D | UsageStatsXml.java | 5 * use this file except in compliance with the License. You may obtain a copy 36 public static long parseBeginTime(AtomicFile file) throws IOException { argument 37 return parseBeginTime(file.getBaseFile()); 40 public static long parseBeginTime(File file) throws IOException { argument 41 String name = file.getName(); 44 // would be appended more than once to a checked-in file, causing a crash 58 public static void read(AtomicFile file, IntervalStats statsOut) throws IOException { argument 60 FileInputStream in = file.openRead(); 62 statsOut.beginTime = parseBeginTime(file); 64 statsOut.lastTimeSaved = file 78 write(AtomicFile file, IntervalStats stats) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/libcore/io/ |
H A D | MemoryMappedFile_Delegate.java | 5 * 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 D | generatev4.py | 6 # 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 D | new_merge.py | 17 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/base/core/java/android/os/ |
H A D | SELinux.java | 5 * you may not use this file except in compliance with the License. 53 * Sets the security context for newly created file objects. 60 * Change the security context of an existing file object. 61 * @param path representing the path of file object to relabel. 68 * Get the security context of a file object. 69 * @param path the pathname of the file object. 105 * Restores a file to its default SELinux security context. 111 * @param pathname The pathname of the file to be relabeled. 121 * Restores a file to its default SELinux security context. 127 * @param pathname The pathname of the file t 143 restorecon(File file) argument 161 restoreconRecursive(File file) argument [all...] |
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
H A D | MutexFileProvider.java | 5 * 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 D | Android.mk | 22 $(foreach file,$(test_src_files), \ 26 $(eval LOCAL_SRC_FILES := $(file)) \ 28 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
|
/frameworks/support/tests/java/android/support/v4/content/ |
H A D | FileProviderTest.java | 5 * 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/packages/ExternalStorageProvider/src/com/android/externalstorage/ |
H A D | ExternalStorageProvider.java | 5 * you may not use this file except in compliance with the License. 68 // docId format: root:path/to/file 194 private String getDocIdForFile(File file) throws FileNotFoundException { argument 195 String path = file.getAbsolutePath(); 255 throw new FileNotFoundException("Missing file for " + docId + " at " + target); 260 private void includeFile(MatrixCursor result, String docId, File file) argument 263 docId = getDocIdForFile(file); 265 file = getFileForDocId(docId); 270 if (file.canWrite()) { 271 if (file 501 getTypeForFile(File file) argument 522 startObserving(File file, Uri notifyUri) argument 537 stopObserving(File file) argument 562 DirectoryObserver(File file, ContentResolver resolver, Uri notifyUri) argument 586 DirectoryCursor(String[] columnNames, String docId, File file) argument [all...] |
/frameworks/base/tests/HugeBackup/src/com/android/hugebackup/ |
H A D | HugeBackupActivity.java | 5 * 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/data-binding/compilationTests/src/test/java/android/databinding/compilationTest/ |
H A D | MultiLayoutVerificationTest.java | 5 * you may not use this file except in compliance with the License. 57 File file = new File(report.getFilePath()); 58 assertTrue(file.exists()); 61 switch (file.getParentFile().getName()) { 65 .getCanonicalFile(), file.getCanonicalFile()); 78 .getCanonicalFile(), file.getCanonicalFile()); 89 fail("unexpected error file"); 115 File file = new File(report.getFilePath()); 116 assertTrue(file.exists()); 120 String config = file [all...] |
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/ |
H A D | StubProvider.java | 5 * you may not use this file except in compliance with the License. 141 final StubDocument file = mStorage.get(documentId); 142 if (file == null) { 145 includeDocument(result, file); 153 return FileUtils.contains(parentDocument.file, childDocument.file); 160 if (parentDocument == null || !parentDocument.file.isDirectory()) { 163 final File file = new File(parentDocument.file, displayName); 165 if (!file 379 removeRecursively(File file) argument 478 public final File file; field in class:StubProvider.StubDocument 484 StubDocument(File file, String mimeType, StubDocument parent) argument 493 StubDocument(File file, String mimeType, RootInfo rootInfo) argument 503 getDocumentIdForFile(File file) argument [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | FileRotator.java | 5 * 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/compile/mclinker/lib/MC/ |
H A D | SearchDirs.cpp | 5 // This file is distributed under the University of Illinois Open Source 75 std::string file; local 78 file.assign(pNamespec); 82 SpecToFilename(pNamespec, file); 98 if (file == entry.path()->filename().native()) 106 if (file == entry.path()->stem().native()) { 120 if (file == entry.path()->stem().native() && 140 std::string file; local 143 file.assign(pNamespec); 147 SpecToFilename(pNamespec, file); [all...] |
/frameworks/native/services/inputflinger/tests/ |
H A D | Android.mk | 28 $(foreach file,$(test_src_files), \ 33 $(eval LOCAL_SRC_FILES := $(file)) \ 34 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
|