/frameworks/rs/script_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 128 writeTypeSpecification(GeneratedFile* file, const TypeSpecification& spec) argument 196 writeTypeComment(GeneratedFile* file, const Type& type) argument 201 writeFunctionPermutation(GeneratedFile* file, const FunctionSpecification& spec, const FunctionPermutation& permutation) argument 283 writeFunctionComment(GeneratedFile* file, const Function& function) argument 309 writeFunctionSpecification(GeneratedFile* file, const FunctionSpecification& spec) argument 320 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.cpp | 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/support/frameworks/support/samples/SupportLeanbackDemos/ |
H A D | generatev4.py | 6 # you may not use this file except in compliance with the License. 23 tofile.write("/* This file is auto-generated from {}.java. DO NOT MODIFY. */\n\n".format(name)) 26 return line.replace('<?xml version="1.0" encoding="utf-8"?>', '<?xml version="1.0" encoding="utf-8"?>\n<!-- This file is auto-generated from {}.xml. DO NOT MODIFY. -->\n'.format(name)) 28 file = open('src/com/example/android/leanback/GuidedStepActivity.java', 'r') variable 31 for line in file: 38 file.close() 41 file = open('src/com/example/android/leanback/GuidedStepHalfScreenActivity.java', 'r') variable 44 for line in file: 52 file.close() 55 file variable 75 file = open('src/com/example/android/leanback/BrowseActivity.java', 'r') variable 87 file = open('res/layout/browse.xml', 'r') variable 97 file = open('src/com/example/android/leanback/DetailsFragment.java', 'r') variable 111 file = open('src/com/example/android/leanback/NewDetailsFragment.java', 'r') variable 130 file = open('src/com/example/android/leanback/DetailsActivity.java', 'r') variable 144 file = open('src/com/example/android/leanback/SearchDetailsActivity.java', 'r') variable 154 file = open('src/com/example/android/leanback/SearchFragment.java', 'r') variable 164 file = open('src/com/example/android/leanback/SearchActivity.java', 'r') variable 178 file = open('res/layout/search.xml', 'r') variable 187 file = open('src/com/example/android/leanback/VerticalGridFragment.java', 'r') variable 198 file = open('src/com/example/android/leanback/VerticalGridActivity.java', 'r') variable 212 file = open('res/layout/vertical_grid.xml', 'r') variable 222 file = open('src/com/example/android/leanback/ErrorFragment.java', 'r') variable 231 file = open('src/com/example/android/leanback/BrowseErrorActivity.java', 'r') variable 247 file = open('src/com/example/android/leanback/RowsFragment.java', 'r') variable 257 file = open('src/com/example/android/leanback/RowsActivity.java', 'r') variable 272 file = open('res/layout/rows.xml', 'r') variable 281 file = open('src/com/example/android/leanback/PlaybackFragment.java', 'r') variable 291 file = open('src/com/example/android/leanback/PlaybackActivity.java', 'r') variable 303 file = open('res/layout/playback_activity.xml', 'r') variable 312 file = open('src/com/example/android/leanback/PlaybackTransportControlFragment.java', 'r') variable 323 file = open('src/com/example/android/leanback/PlaybackTransportControlActivity.java', 'r') variable 335 file = open('res/layout/playback_transportcontrol_activity.xml', 'r') variable 346 file = open('src/com/example/android/leanback/PlaybackOverlayFragment.java', 'r') variable 358 file = open('src/com/example/android/leanback/PlaybackControlHelper.java', 'r') variable 369 file = open('src/com/example/android/leanback/PlaybackOverlayActivity.java', 'r') variable 381 file = open('res/layout/playback_controls.xml', 'r') variable 390 file = open('src/com/example/android/leanback/OnboardingActivity.java', 'r') variable 404 file = open('src/com/example/android/leanback/OnboardingDemoFragment.java', 'r') variable 417 file = open('src/com/example/android/leanback/SampleVideoFragment.java', 'r') variable 429 file = open('src/com/example/android/leanback/VideoActivity.java', 'r') variable [all...] |
/frameworks/support/samples/SupportLeanbackDemos/ |
H A D | generatev4.py | 6 # you may not use this file except in compliance with the License. 23 tofile.write("/* This file is auto-generated from {}.java. DO NOT MODIFY. */\n\n".format(name)) 26 return line.replace('<?xml version="1.0" encoding="utf-8"?>', '<?xml version="1.0" encoding="utf-8"?>\n<!-- This file is auto-generated from {}.xml. DO NOT MODIFY. -->\n'.format(name)) 28 file = open('src/com/example/android/leanback/GuidedStepActivity.java', 'r') variable 31 for line in file: 38 file.close() 41 file = open('src/com/example/android/leanback/GuidedStepHalfScreenActivity.java', 'r') variable 44 for line in file: 52 file.close() 55 file variable 75 file = open('src/com/example/android/leanback/BrowseActivity.java', 'r') variable 87 file = open('res/layout/browse.xml', 'r') variable 97 file = open('src/com/example/android/leanback/DetailsFragment.java', 'r') variable 111 file = open('src/com/example/android/leanback/NewDetailsFragment.java', 'r') variable 130 file = open('src/com/example/android/leanback/DetailsActivity.java', 'r') variable 144 file = open('src/com/example/android/leanback/SearchDetailsActivity.java', 'r') variable 154 file = open('src/com/example/android/leanback/SearchFragment.java', 'r') variable 164 file = open('src/com/example/android/leanback/SearchActivity.java', 'r') variable 178 file = open('res/layout/search.xml', 'r') variable 187 file = open('src/com/example/android/leanback/VerticalGridFragment.java', 'r') variable 198 file = open('src/com/example/android/leanback/VerticalGridActivity.java', 'r') variable 212 file = open('res/layout/vertical_grid.xml', 'r') variable 222 file = open('src/com/example/android/leanback/ErrorFragment.java', 'r') variable 231 file = open('src/com/example/android/leanback/BrowseErrorActivity.java', 'r') variable 247 file = open('src/com/example/android/leanback/RowsFragment.java', 'r') variable 257 file = open('src/com/example/android/leanback/RowsActivity.java', 'r') variable 272 file = open('res/layout/rows.xml', 'r') variable 281 file = open('src/com/example/android/leanback/PlaybackFragment.java', 'r') variable 291 file = open('src/com/example/android/leanback/PlaybackActivity.java', 'r') variable 303 file = open('res/layout/playback_activity.xml', 'r') variable 312 file = open('src/com/example/android/leanback/PlaybackTransportControlFragment.java', 'r') variable 323 file = open('src/com/example/android/leanback/PlaybackTransportControlActivity.java', 'r') variable 335 file = open('res/layout/playback_transportcontrol_activity.xml', 'r') variable 346 file = open('src/com/example/android/leanback/PlaybackOverlayFragment.java', 'r') variable 358 file = open('src/com/example/android/leanback/PlaybackControlHelper.java', 'r') variable 369 file = open('src/com/example/android/leanback/PlaybackOverlayActivity.java', 'r') variable 381 file = open('res/layout/playback_controls.xml', 'r') variable 390 file = open('src/com/example/android/leanback/OnboardingActivity.java', 'r') variable 404 file = open('src/com/example/android/leanback/OnboardingDemoFragment.java', 'r') variable 417 file = open('src/com/example/android/leanback/SampleVideoFragment.java', 'r') variable 429 file = open('src/com/example/android/leanback/VideoActivity.java', 'r') variable [all...] |
/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/native/libs/vr/libdvrcommon/include/private/dvr/ |
H A D | benchmark.h | 26 // Btrace will either output to standard atrace, or to a file if specified. 32 static inline void Btrace(FILE* file, const char* name, 34 static inline void Btrace(FILE* file, const char* name); 40 static inline void BtraceData(FILE* file, const char* name, 42 static inline void BtraceData(FILE* file, const char* name, int64_t data); 55 static inline void Btrace(FILE* file, const char* name, argument 57 fprintf(file, "#btrace#%s|%" PRId64 "\n", name, nanoseconds_monotonic); 60 static inline void Btrace(FILE* file, const char* name) { argument 61 Btrace(file, name, android::dvr::GetSystemClockNs()); 76 static inline void BtraceData(FILE* file, cons argument 82 BtraceData(FILE* file, const char* name, int64_t data) argument [all...] |
/frameworks/compile/slang/lit-tests/ |
H A D | rs-filecheck-wrapper.sh | 14 $FILECHECK -input-file $OUTDIR/bc32/$FILECHECK_INPUTFILE $SOURCEFILE $@ 15 $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/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/SystemUI/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/tests/java_api/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/rs/tests/java_api/SSHealingBrush/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/base/tools/aapt2/cmd/ |
H A D | Dump.cpp | 5 * you may not use this file except in compliance with the License. 36 std::unique_ptr<ResourceFile> file = local 38 if (!file) { 39 context->GetDiagnostics()->Warn(DiagMessage() << "failed to read compiled file"); 43 std::cout << "Resource: " << file->name << "\n" 44 << "Config: " << file->config << "\n" 45 << "Source: " << file->source << "\n"; 54 io::IFile* file = zip->FindFile("resources.arsc.flat"); local 55 if (file) { 56 std::unique_ptr<io::IData> data = file 96 Maybe<android::FileMap> file = file::MmapPath(file_path, &err); local [all...] |
/frameworks/support/core-utils/tests/java/android/support/v4/content/ |
H A D | FileProviderTest.java | 5 * you may not use this file except in compliance with the License. 56 private static final String TEST_FILE = "file.test"; 74 File file = buildPath(mContext.getFilesDir(), "file.test"); 75 assertEquals("content://authority/tag/file.test", 76 strat.getUriForFile(file).toString()); 78 file = buildPath(mContext.getFilesDir(), "subdir", "file.test"); 79 assertEquals("content://authority/tag/subdir/file.test", 80 strat.getUriForFile(file) 367 stageFileAndGetUri(File file, byte[] data) argument [all...] |
/frameworks/support/v17/leanback/tests/ |
H A D | generatev4.py | 6 # you may not use this file except in compliance with the License. 34 file = open('java/android/support/v17/leanback/app/{}Fragment.java'.format(w), 'r') variable 38 outfile.write("/* This file is auto-generated from {}Fragment.java. DO NOT MODIFY. */\n\n".format(w)) 40 for line in file: 47 file.close() 57 file = open('java/android/support/v17/leanback/app/{}FragmentTestBase.java'.format(w), 'r') variable 61 outfile.write("/* This file is auto-generated from {}FrgamentTestBase.java. DO NOT MODIFY. */\n\n".format(w)) 63 for line in file: 73 file.close() 83 file variable 114 file = open('java/android/support/v17/leanback/app/{}FragmentTestActivity.java'.format(w), 'r') variable 132 file = open('java/android/support/v17/leanback/widget/ParallaxIntEffectTest.java', 'r') variable 152 file = open('java/android/support/v17/leanback/widget/ParallaxIntTest.java', 'r') variable 172 file = open('java/android/support/v17/leanback/app/PlaybackControlGlueTest.java', 'r') variable [all...] |
/frameworks/base/core/java/com/android/internal/content/ |
H A D | FileSystemProvider.java | 5 * you may not use this file except in compliance with the License. 54 * A helper class for {@link android.provider.DocumentsProvider} to perform file operations on local 73 protected abstract String getDocIdForFile(File file) throws FileNotFoundException; argument 132 final File file = FileUtils.buildUniqueFile(parent, mimeType, displayName); 135 if (!file.mkdir()) { 136 throw new IllegalStateException("Failed to mkdir " + file); 138 childId = getDocIdForFile(file); 142 if (!file.createNewFile()) { 143 throw new IllegalStateException("Failed to touch " + file); 145 childId = getDocIdForFile(file); 374 includeFile(MatrixCursor result, String docId, File file) argument 421 getTypeForFile(File file) argument 450 startObserving(File file, Uri notifyUri) argument 465 stopObserving(File file) argument 490 DirectoryObserver(File file, ContentResolver resolver, Uri notifyUri) argument 514 DirectoryCursor(String[] columnNames, String docId, File file) argument [all...] |