/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, unsigned 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 195 writeTypeComment(GeneratedFile* file, const Type& type) argument 200 writeFunctionPermutation(GeneratedFile* file, const FunctionSpecification& spec, const FunctionPermutation& permutation) argument 282 writeFunctionComment(GeneratedFile* file, const Function& function) argument 308 writeFunctionSpecification(GeneratedFile* file, const FunctionSpecification& spec) argument 319 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, bool addSpacing) argument 348 writeDetailedTypeSpecification(GeneratedFile* file, const TypeSpecification* spec) argument 405 writeDetailedConstantSpecification(GeneratedFile* file, ConstantSpecification* c) argument 413 writeOverviewForFile(GeneratedFile* file, const SpecFile& specFile) argument 429 GeneratedFile file; local 449 GeneratedFile file; local 466 writeDeprecatedWarning(GeneratedFile* file, Definition* definition) argument 480 writeDetailedConstant(GeneratedFile* file, Constant* constant) argument 519 writeDetailedType(GeneratedFile* file, Type* type) argument 548 writeDetailedFunction(GeneratedFile* file, Function* function) argument 618 GeneratedFile file; local 679 generateSnippet(GeneratedFile* file, const string& fileName, const string& title) argument 691 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/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: 43 file.close() 46 file = open('src/android/support/v17/leanback/app/PlaybackControlGlue.java', 'r') variable 48 outfile.write("/* This file is auto-generated from PlaybackControlGlue.java. DO NOT MODIFY. */\n\n") 49 for line in file: 53 file.close()
|
/frameworks/compile/slang/lit-tests/ |
H A D | rs-filecheck-wrapper.sh | 13 $FILECHECK -input-file $OUTDIR/bc32/$FILECHECK_INPUTFILE $SOURCEFILE 14 $FILECHECK -input-file $OUTDIR/bc64/$FILECHECK_INPUTFILE $SOURCEFILE
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
H A D | NinePatchInputStream.java | 5 * you may not use this file except in compliance with the License. 31 public NinePatchInputStream(File file) throws FileNotFoundException { argument 32 super(file);
|
/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/data-binding/compilerCommon/src/main/java/android/databinding/tool/ |
H A D | LayoutXmlProcessor.java | 4 * you may not use this file except in compliance with the License. 43 * and writes the information into an annotated class file for the annotation 83 for (File file : files) { 84 File parent = file.getParentFile(); 86 callback.processOtherRootFile(file); 88 callback.processLayoutFile(file); 90 callback.processOtherFile(parent, file); 98 for (File file : files) { 99 File parent = file.getParentFile(); 101 callback.processRemovedOtherRootFile(file); 267 generateExportFileName(File file) argument 336 getOriginalFileFor(File file) argument 357 added(File file) argument 360 removed(File file) argument 363 changed(File file) argument 418 processLayoutFile(File file) argument 421 processOtherFile(File parentFolder, File file) argument 422 processRemovedLayoutFile(File file) argument 423 processRemovedOtherFile(File parentFolder, File file) argument 429 processOtherRootFile(File file) argument 431 processRemovedOtherRootFile(File file) argument [all...] |
/frameworks/support/v17/tests/ |
H A D | generatev4.py | 6 # you may not use this file except in compliance with the License. 30 file = open('src/android/support/v17/leanback/app/{}Fragment.java'.format(w), 'r') variable 33 outfile.write("/* This file is auto-generated from {}Fragment.java. DO NOT MODIFY. */\n\n".format(w)) 35 for line in file: 41 file.close() 49 file = open('src/android/support/v17/leanback/app/{}FragmentTest.java'.format(w), 'r') variable 52 outfile.write("/* This file is auto-generated from {}FrgamentTest.java. DO NOT MODIFY. */\n\n".format(w)) 54 for line in file: 62 file.close() 67 file variable [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/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/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | MediaStoreSaver.java | 5 * you may not use this file except in compliance with the License. 48 File file = null; 57 file = File.createTempFile(imageName, suffix, dir); 58 FileOutputStream fOut = new FileOutputStream(file); 60 System.out.println("saved image: " + file.getAbsolutePath()); 69 MediaStorageScan(mContext, file); 70 return file.getAbsolutePath(); 76 private static void MediaStorageScan(Context context, final File file) { argument 77 final Uri fileUri = Uri.fromFile(file);
|
/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/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. 124 final File file = new File(getContext().getCacheDir(), rootId); 125 if (file.mkdir()) { 126 Log.i(TAG, "Created new root directory @ " + file.getPath()); 128 final RootInfo rootInfo = new RootInfo(file, getSize(rootId)); 169 final StubDocument file = mStorage.get(documentId); 170 if (file == null) { 173 includeDocument(result, file); 181 return FileUtils.contains(parentDocument.file, childDocument.file); 618 removeChildrenRecursively(File file) argument 725 RootInfo(File file, long capacity) argument 746 public final File file; field in class:StubProvider.StubDocument 754 StubDocument(File file, String mimeType, List<String> streamTypes, int flags, StubDocument parent) argument 765 StubDocument(File file, RootInfo rootInfo) argument 775 createRootDocument(File file, RootInfo rootInfo) argument 779 createRegularDocument( File file, String mimeType, StubDocument parent) argument 790 createDocumentWithFlags( File file, String mimeType, StubDocument parent, int flags, List<String> streamTypes) argument 796 createVirtualDocument( File file, String mimeType, List<String> streamTypes, StubDocument parent) argument 817 getDocumentIdForFile(File file) argument [all...] |
/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. 46 private static final String TEST_FILE = "file.test"; 63 File file = buildPath(mContext.getFilesDir(), "file.test"); 64 assertEquals("content://authority/tag/file.test", 65 strat.getUriForFile(file).toString()); 67 file = buildPath(mContext.getFilesDir(), "subdir", "file.test"); 68 assertEquals("content://authority/tag/subdir/file.test", 69 strat.getUriForFile(file) 327 stageFileAndGetUri(File file, byte[] data) argument [all...] |
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/ |
H A D | MediaStoreSaver.java | 5 * you may not use this file except in compliance with the License. 49 File file = new File(dir, imageName + n + ".png"); 51 FileOutputStream fOut = new FileOutputStream(file); 53 System.out.println("saved image: " + file.getAbsolutePath()); 62 MediaStorageScan(mContext, file); 63 return file.getAbsolutePath(); 68 private static void MediaStorageScan(Context context, final File file) { argument 69 final Uri fileUri = Uri.fromFile(file);
|
/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/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...] |