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

1234567891011>>

/frameworks/base/tools/hiddenapi/
H A Dchecksorted_sha.sh4 git show --name-only --pretty=format: $1 | grep "config/hiddenapi-.*txt" | while read file; do
5 diff <(git show $1:$file) <(git show $1:$file | $LOCAL_DIR/sort_api.sh ) || {
6 echo -e "\e[1m\e[31m$file $1 is not sorted or contains duplicates. To sort it correctly:\e[0m"
7 echo -e "\e[33m${LOCAL_DIR}/sort_api.sh $2/frameworks/base/$file\e[0m"
/frameworks/rs/script_api/
H A DGenerateHeaderFiles.cpp5 * 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 DGenerateDocumentation.cpp5 * you may not use this file except in compliance with the License.
35 static void writeHeader(GeneratedFile* file, const string& title, argument
38 *file
49 *file << " <meta name=\"description\" content=\"";
54 if (i) *file << " ";
55 *file << desc[i];
57 *file << "…\">\n";
59 *file << "</head>\n\n"
61 *file << "<div class='renderscript'>\n";
64 static void writeFooter(GeneratedFile* file) { argument
203 generateHtmlParagraphs(GeneratedFile* file, const vector<string>& description) argument
229 writeSummaryTableStart(GeneratedFile* file, const string& label, bool labelIsHeading) argument
239 writeSummaryTableEnd(GeneratedFile* file) argument
275 writeSummaryTable(GeneratedFile* file, const ostringstream* entries, const char* name, DeprecatedSelector deprecatedSelector, bool labelAsHeader) argument
289 writeSummaryTables(GeneratedFile* file, const map<string, Constant*>& constants, const map<string, Type*>& types, const map<string, Function*>& functions, DeprecatedSelector deprecatedSelector, bool labelAsHeader) argument
312 writeHtmlVersionTag(GeneratedFile* file, VersionInfo info, bool addSpacing) argument
351 writeDetailedTypeSpecification(GeneratedFile* file, const TypeSpecification* spec) argument
408 writeDetailedConstantSpecification(GeneratedFile* file, ConstantSpecification* c) argument
416 writeOverviewForFile(GeneratedFile* file, const SpecFile& specFile) argument
432 GeneratedFile file; local
455 GeneratedFile file; local
472 writeDeprecatedWarning(GeneratedFile* file, Definition* definition) argument
486 writeDetailedConstant(GeneratedFile* file, Constant* constant) argument
525 writeDetailedType(GeneratedFile* file, Type* type) argument
554 writeDetailedFunction(GeneratedFile* file, Function* function) argument
624 GeneratedFile file; local
685 generateSnippet(GeneratedFile* file, const string& fileName, const string& title) argument
697 GeneratedFile file; local
[all...]
/frameworks/wilhelm/src/
H A Dassert.cpp5 * 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/base/tools/stringslint/
H A Dstringslint_sha.sh3 git show --name-only --pretty=format: $1 | grep values/strings.xml | while read file; do
4 python $LOCAL_DIR/stringslint.py <(git show $1:$file) <(git show $1^:$file)
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/
H A Dgeneratev4.py6 # 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/main/java/com/example/android/leanback/GuidedStepActivity.java', 'r') variable
31 for line in file:
38 file.close()
41 file = open('src/main/java/com/example/android/leanback/GuidedStepHalfScreenActivity.java', 'r') variable
44 for line in file:
52 file.close()
55 file variable
75 file = open('src/main/java/com/example/android/leanback/BrowseActivity.java', 'r') variable
87 file = open('src/main/res/layout/browse.xml', 'r') variable
97 file = open('src/main/java/com/example/android/leanback/DetailsFragment.java', 'r') variable
111 file = open('src/main/java/com/example/android/leanback/NewDetailsFragment.java', 'r') variable
130 file = open('src/main/java/com/example/android/leanback/DetailsActivity.java', 'r') variable
144 file = open('src/main/java/com/example/android/leanback/SearchDetailsActivity.java', 'r') variable
154 file = open('src/main/java/com/example/android/leanback/SearchFragment.java', 'r') variable
164 file = open('src/main/java/com/example/android/leanback/SearchActivity.java', 'r') variable
178 file = open('src/main/res/layout/search.xml', 'r') variable
187 file = open('src/main/java/com/example/android/leanback/VerticalGridFragment.java', 'r') variable
198 file = open('src/main/java/com/example/android/leanback/VerticalGridActivity.java', 'r') variable
212 file = open('src/main/res/layout/vertical_grid.xml', 'r') variable
222 file = open('src/main/java/com/example/android/leanback/ErrorFragment.java', 'r') variable
231 file = open('src/main/java/com/example/android/leanback/BrowseErrorActivity.java', 'r') variable
247 file = open('src/main/java/com/example/android/leanback/RowsFragment.java', 'r') variable
257 file = open('src/main/java/com/example/android/leanback/RowsActivity.java', 'r') variable
272 file = open('src/main/res/layout/rows.xml', 'r') variable
281 file = open('src/main/java/com/example/android/leanback/PlaybackFragment.java', 'r') variable
291 file = open('src/main/java/com/example/android/leanback/PlaybackActivity.java', 'r') variable
303 file = open('src/main/res/layout/playback_activity.xml', 'r') variable
312 file = open('src/main/java/com/example/android/leanback/PlaybackTransportControlFragment.java', 'r') variable
323 file = open('src/main/java/com/example/android/leanback/PlaybackTransportControlActivity.java', 'r') variable
335 file = open('src/main/res/layout/playback_transportcontrol_activity.xml', 'r') variable
344 file = open('src/main/res/layout/playback_controls.xml', 'r') variable
353 file = open('src/main/java/com/example/android/leanback/OnboardingActivity.java', 'r') variable
367 file = open('src/main/java/com/example/android/leanback/OnboardingDemoFragment.java', 'r') variable
380 file = open('src/main/java/com/example/android/leanback/SampleVideoFragment.java', 'r') variable
392 file = open('src/main/java/com/example/android/leanback/VideoActivity.java', 'r') variable
[all...]
/frameworks/support/samples/SupportLeanbackDemos/
H A Dgeneratev4.py6 # 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/main/java/com/example/android/leanback/GuidedStepActivity.java', 'r') variable
31 for line in file:
38 file.close()
41 file = open('src/main/java/com/example/android/leanback/GuidedStepHalfScreenActivity.java', 'r') variable
44 for line in file:
52 file.close()
55 file variable
75 file = open('src/main/java/com/example/android/leanback/BrowseActivity.java', 'r') variable
87 file = open('src/main/res/layout/browse.xml', 'r') variable
97 file = open('src/main/java/com/example/android/leanback/DetailsFragment.java', 'r') variable
111 file = open('src/main/java/com/example/android/leanback/NewDetailsFragment.java', 'r') variable
130 file = open('src/main/java/com/example/android/leanback/DetailsActivity.java', 'r') variable
144 file = open('src/main/java/com/example/android/leanback/SearchDetailsActivity.java', 'r') variable
154 file = open('src/main/java/com/example/android/leanback/SearchFragment.java', 'r') variable
164 file = open('src/main/java/com/example/android/leanback/SearchActivity.java', 'r') variable
178 file = open('src/main/res/layout/search.xml', 'r') variable
187 file = open('src/main/java/com/example/android/leanback/VerticalGridFragment.java', 'r') variable
198 file = open('src/main/java/com/example/android/leanback/VerticalGridActivity.java', 'r') variable
212 file = open('src/main/res/layout/vertical_grid.xml', 'r') variable
222 file = open('src/main/java/com/example/android/leanback/ErrorFragment.java', 'r') variable
231 file = open('src/main/java/com/example/android/leanback/BrowseErrorActivity.java', 'r') variable
247 file = open('src/main/java/com/example/android/leanback/RowsFragment.java', 'r') variable
257 file = open('src/main/java/com/example/android/leanback/RowsActivity.java', 'r') variable
272 file = open('src/main/res/layout/rows.xml', 'r') variable
281 file = open('src/main/java/com/example/android/leanback/PlaybackFragment.java', 'r') variable
291 file = open('src/main/java/com/example/android/leanback/PlaybackActivity.java', 'r') variable
303 file = open('src/main/res/layout/playback_activity.xml', 'r') variable
312 file = open('src/main/java/com/example/android/leanback/PlaybackTransportControlFragment.java', 'r') variable
323 file = open('src/main/java/com/example/android/leanback/PlaybackTransportControlActivity.java', 'r') variable
335 file = open('src/main/res/layout/playback_transportcontrol_activity.xml', 'r') variable
344 file = open('src/main/res/layout/playback_controls.xml', 'r') variable
353 file = open('src/main/java/com/example/android/leanback/OnboardingActivity.java', 'r') variable
367 file = open('src/main/java/com/example/android/leanback/OnboardingDemoFragment.java', 'r') variable
380 file = open('src/main/java/com/example/android/leanback/SampleVideoFragment.java', 'r') variable
392 file = open('src/main/java/com/example/android/leanback/VideoActivity.java', 'r') variable
[all...]
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/util/
H A DAtomicFileTest.kt5 * you may not use this file except in compliance with the License.
34 private lateinit var file: AtomicFile
37 file = AtomicFile(temporaryFolder.newFile())
41 file.tryWrite {
44 val bytes = file.openRead().use { it.readBytes() }
49 val os = file.startWrite()
51 file.finishWrite(os)
55 file.tryWrite {
61 val bytes = file.openRead().use { it.readBytes() }
66 file
[all...]
/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.
50 // This will fail if the process runs out of file descriptors before
56 for (MemoryFile file : files) {
58 file.readBytes(testString, 0, 0, testString.length);
74 MemoryFile file = new MemoryFile("MemoryFileTest", 1000000);
79 file.writeBytes(testString, 0, 2000, testString.length);
80 file.readBytes(buffer, 2000, 0, testString.length);
86 OutputStream os = file.getOutputStream();
89 InputStream is = file.getInputStream();
100 file
[all...]
/frameworks/support/app-toolkit/buildSrc/
H A Djetify.gradle5 * you may not use this file except in compliance with the License.
17 def jetifierBin = file("${standaloneProject.buildDir}/install/jetifier-standalone/bin/jetifier-standalone")
74 inputs.file project.tasks['stripArchive'].archivePath
76 outputs.file "${rootProject.ext.distDir}/top-of-tree-m2repository-dejetified-${project.ext.buildNumber}.zip"
/frameworks/support/buildSrc/
H A Djetify.gradle5 * you may not use this file except in compliance with the License.
17 def jetifierBin = file("${standaloneProject.buildDir}/install/jetifier-standalone/bin/jetifier-standalone")
74 inputs.file project.tasks['stripArchive'].archivePath
76 outputs.file "${rootProject.ext.distDir}/top-of-tree-m2repository-dejetified-${project.ext.buildNumber}.zip"
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
H A Dbenchmark.h26 // 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 Drs-filecheck-wrapper.sh14 $FILECHECK -input-file $OUTDIR/bc32/$FILECHECK_INPUTFILE $SOURCEFILE $@
15 $FILECHECK -input-file $OUTDIR/bc64/$FILECHECK_INPUTFILE $SOURCEFILE $@
/frameworks/support/jetifier/jetifier/processor/src/main/kotlin/com/android/tools/build/jetifier/processor/transform/
H A DTransformer.kt5 * you may not use this file except in compliance with the License.
27 * Returns whether this instance can process the given file.
29 fun canTransform(file: ArchiveFile): Boolean
32 * Runs transformation of the given file.
34 fun runTransform(file: ArchiveFile)
/frameworks/support/jetifier/jetifier/processor/src/main/kotlin/com/android/tools/build/jetifier/processor/transform/bytecode/
H A DByteCodeTransformer.kt5 * you may not use this file except in compliance with the License.
32 override fun canTransform(file: ArchiveFile) = file.isClassFile()
34 override fun runTransform(file: ArchiveFile) {
35 val reader = ClassReader(file.data)
42 file.setNewDataSilently(writer.toByteArray())
46 file.setNewData(writer.toByteArray())
47 file.updateRelativePath(remapper.rewritePath(file.relativePath))
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
H A DNinePatchInputStream.java5 * you may not use this file except in compliance with the License.
31 public NinePatchInputStream(File file) throws FileNotFoundException { argument
32 super(file);
/frameworks/support/core/ktx/src/main/java/androidx/core/text/
H A DString.kt5 * you may not use this file except in compliance with the License.
17 @file:Suppress("NOTHING_TO_INLINE") // Aliases to public API.
/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/data-binding/compilerCommon/src/main/java/android/databinding/tool/
H A DLayoutXmlProcessor.java4 * 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 DUsageStatsXml.java5 * 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/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/jetifier/jetifier/processor/src/main/kotlin/com/android/tools/build/jetifier/processor/transform/metainf/
H A DMetaInfTransformer.kt5 * you may not use this file except in compliance with the License.
44 override fun canTransform(file: ArchiveFile): Boolean {
46 && file.relativePath.toString().contains(META_INF_DIR, ignoreCase = true)
47 && file.fileName.endsWith(VERSION_FILE_SUFFIX, ignoreCase = true)
50 override fun runTransform(file: ArchiveFile) {
51 val sb = StringBuilder(file.data.toString(StandardCharsets.UTF_8))
64 file.setNewData(to.toByteArray())

Completed in 1987 milliseconds

1234567891011>>