Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 2505) sorted by relevance

12345678910>>...101

/frameworks/rs/script_api/
DGenerateDocumentation.cpp35 static void writeHeader(GeneratedFile* file, const string& title, in writeHeader() argument
38 *file in writeHeader()
49 *file << " <meta name=\"description\" content=\""; in writeHeader()
54 if (i) *file << " "; in writeHeader()
55 *file << desc[i]; in writeHeader()
57 *file << "…\">\n"; in writeHeader()
59 *file << "</head>\n\n" in writeHeader()
61 *file << "<div class='renderscript'>\n"; in writeHeader()
64 static void writeFooter(GeneratedFile* file) { in writeFooter() argument
65 *file << "</div>\n"; in writeFooter()
[all …]
DGenerateHeaderFiles.cpp45 static void writeVersionGuardStart(GeneratedFile* file, VersionInfo info, unsigned int finalVersion… in writeVersionGuardStart() argument
47 *file << "#ifndef __LP64__\n"; in writeVersionGuardStart()
49 *file << "#ifdef __LP64__\n"; in writeVersionGuardStart()
64 *file << "#if !defined(RS_VERSION) || " << checkMaxVersion.str() << "\n"; in writeVersionGuardStart()
67 *file << "#if (defined(RS_VERSION) && (RS_VERSION >= " << info.minVersion << ")"; in writeVersionGuardStart()
69 *file << " && " << checkMaxVersion.str(); in writeVersionGuardStart()
71 *file << ")\n"; in writeVersionGuardStart()
75 static void writeVersionGuardEnd(GeneratedFile* file, VersionInfo info) { in writeVersionGuardEnd() argument
77 *file << "#endif\n"; in writeVersionGuardEnd()
80 *file << "#endif\n"; in writeVersionGuardEnd()
[all …]
DGenerateStubsWhiteList.cpp412 GeneratedFile file; in generateWhiteListFile() local
413 if (!file.start(".", "RSStubsWhiteList.cpp")) { in generateWhiteListFile()
417 file.writeNotices(); in generateWhiteListFile()
418 file << "#include \"RSStubsWhiteList.h\"\n\n"; in generateWhiteListFile()
419 file << "std::array<std::string_view, " << allManglings.size() << "> stubList = {\n"; in generateWhiteListFile()
421 file << "\"" << e << "\",\n"; in generateWhiteListFile()
423 file << "};\n"; in generateWhiteListFile()
443 static const string addVariable(GeneratedFile* file, unsigned int* variableNumber) { in addVariable() argument
448 *file << "char " << name << "[200];\n"; in addVariable()
456 static void generateTestCall(GeneratedFile* file, ostringstream* calls, in generateTestCall() argument
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DMemoryFileTest.java57 for (MemoryFile file : files) { in testPurge()
59 file.readBytes(testString, 0, 0, testString.length); in testPurge()
75 MemoryFile file = new MemoryFile("MemoryFileTest", 1000000); in testRun() local
80 file.writeBytes(testString, 0, 2000, testString.length); in testRun()
81 file.readBytes(buffer, 2000, 0, testString.length); in testRun()
87 OutputStream os = file.getOutputStream(); in testRun()
90 InputStream is = file.getInputStream(); in testRun()
101 file.close(); in testRun()
106 MemoryFile file = new MemoryFile("MemoryFileTest", 10); in testOutputStreamAdvances() local
108 OutputStream os = file.getOutputStream(); in testOutputStreamAdvances()
[all …]
/frameworks/av/drm/common/
DReadWriteUtils.cpp36 FILE* file = NULL; in readBytes() local
37 file = fopen(filePath.string(), "r"); in readBytes()
40 if (NULL != file) { in readBytes()
41 int fd = fileno(file); in readBytes()
52 fclose(file); in readBytes()
58 FILE* file = NULL; in readBytes() local
59 file = fopen(filePath.string(), "r"); in readBytes()
62 if (NULL != file) { in readBytes()
63 int fd = fileno(file); in readBytes()
73 fclose(file); in readBytes()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DOWNERS13 per-file ApexManager.java = dariofreni@google.com
14 per-file StagingManager.java = dariofreni@google.com
17 per-file AbstractStatsBase.java = agampe@google.com, calin@google.com, ngeoffray@google.com
18 per-file BackgroundDexOptService.java = agampe@google.com, calin@google.com, ngeoffray@google.com
19 per-file CompilerStats.java = agampe@google.com, calin@google.com, ngeoffray@google.com
20 per-file DynamicCodeLoggingService.java = alanstokes@google.com, agampe@google.com, calin@google.co…
21 per-file InstructionSets.java = agampe@google.com, calin@google.com, ngeoffray@google.com
22 per-file OtaDexoptService.java = agampe@google.com, calin@google.com, ngeoffray@google.com
23 per-file OtaDexoptShellCommand.java = agampe@google.com, calin@google.com, ngeoffray@google.com
24 per-file PackageDexOptimizer.java = agampe@google.com, calin@google.com, ngeoffray@google.com
[all …]
/frameworks/base/core/java/com/android/internal/content/
DFileSystemProvider.java60 import java.nio.file.FileSystems;
61 import java.nio.file.FileVisitResult;
62 import java.nio.file.FileVisitor;
63 import java.nio.file.Files;
64 import java.nio.file.Path;
65 import java.nio.file.attribute.BasicFileAttributes;
104 protected abstract String getDocIdForFile(File file) throws FileNotFoundException; in getDocIdForFile() argument
143 File file = getFileForDocId(documentId); in getDocumentMetadata() local
145 if (!file.exists()) { in getDocumentMetadata()
154 final Path path = FileSystems.getDefault().getPath(file.getAbsolutePath()); in getDocumentMetadata()
[all …]
/frameworks/base/tools/aapt2/cmd/
DConvert.cpp52 virtual bool SerializeFile(FileReference* file, IArchiveWriter* writer) = 0;
95 bool SerializeFile(FileReference* file, IArchiveWriter* writer) override { in SerializeFile() argument
96 if (file->type == ResourceFile::Type::kProtoXml) { in SerializeFile()
97 unique_ptr<io::InputStream> in = file->file->OpenInputStream(); in SerializeFile()
100 << "failed to open file " << *file->path); in SerializeFile()
108 << "failed to parse proto XML " << *file->path); in SerializeFile()
117 << *file->path << ": " << error); in SerializeFile()
121 if (!SerializeXml(xml.get(), *file->path, false /*utf16*/, writer, in SerializeFile()
122 file->file->WasCompressed() ? ArchiveEntry::kCompress : 0u)) { in SerializeFile()
124 << "failed to serialize to binary XML: " << *file->path); in SerializeFile()
[all …]
DLink_test.cpp110 auto file = zip->FindFile("assets/testtxt"); in TEST_F() local
111 ASSERT_THAT(file, Ne(nullptr)); in TEST_F()
112 EXPECT_TRUE(file->WasCompressed()); in TEST_F()
114 file = zip->FindFile("assets/testtxt2"); in TEST_F()
115 ASSERT_THAT(file, Ne(nullptr)); in TEST_F()
116 EXPECT_FALSE(file->WasCompressed()); in TEST_F()
118 file = zip->FindFile("assets/test.txt"); in TEST_F()
119 ASSERT_THAT(file, Ne(nullptr)); in TEST_F()
120 EXPECT_FALSE(file->WasCompressed()); in TEST_F()
122 file = zip->FindFile("assets/test.hello.txt"); in TEST_F()
[all …]
/frameworks/base/core/java/android/os/
DOWNERS2 per-file ExternalVibration.aidl = michaelwr@google.com
3 per-file ExternalVibration.java = michaelwr@google.com
4 per-file IExternalVibrationController.aidl = michaelwr@google.com
5 per-file IExternalVibratorService.aidl = michaelwr@google.com
6 per-file IVibratorService.aidl = michaelwr@google.com
7 per-file NullVibrator.java = michaelwr@google.com
8 per-file SystemVibrator.java = michaelwr@google.com
9 per-file VibrationEffect.aidl = michaelwr@google.com
10 per-file VibrationEffect.java = michaelwr@google.com
11 per-file Vibrator.java = michaelwr@google.com
[all …]
/frameworks/base/tools/aapt/
DSourcePos.cpp19 String8 file; member
26 ErrorPos(const String8& file, int line, const String8& error, Level level);
40 :file(that.file), in ErrorPos()
48 :file(f), in ErrorPos()
58 this->file = rhs.file; in operator =()
81 if (!this->file.isEmpty()) { in print()
83 … fprintf(to, "%s:%d: %s%s\n", this->file.string(), this->line, type, this->error.string()); in print()
85 fprintf(to, "%s: %s%s\n", this->file.string(), type, this->error.string()); in print()
95 : file(f), line(l) in SourcePos()
100 : file(that.file), line(that.line) in SourcePos()
[all …]
/frameworks/compile/mclinker/include/mcld/LD/
DDiagCommonKinds.inc3 "can not open input file `%0': %1",
4 "can not open input file `%0' : %1")
7 "cannot open output file `%0': %1",
8 "cannot open output file `%0': %1")
16 "Empty input file `%0' : %1",
17 "Empty input file `%0' : %1")
20 "cannot recognize the format of file `%0'.\n object format or given "
22 "cannot recognize the format of file `%0'.\n object format or given "
38 "unsupported output file format: `%0'",
39 "unsupported output file format: `%0'")
[all …]
/frameworks/base/services/robotests/backup/src/android/app/backup/
DBackupUtilsTest.java52 BackupUtils.isFileSpecifiedInPathList(file("a/b.txt"), paths(file("a/b.txt"))); in testIsFileSpecifiedInPathList_whenFileAndPathListHasIt()
61 BackupUtils.isFileSpecifiedInPathList(file("a/b.txt"), paths(directory("a"))); in testIsFileSpecifiedInPathList_whenFileAndPathListHasItsDirectory()
69 BackupUtils.isFileSpecifiedInPathList(file("a/b.txt"), paths(file("a/c.txt"))); in testIsFileSpecifiedInPathList_whenFileAndPathListHasOtherFile()
76 boolean isSpecified = BackupUtils.isFileSpecifiedInPathList(file("a/b.txt"), paths()); in testIsFileSpecifiedInPathList_whenFileAndPathListEmpty()
108 BackupUtils.isFileSpecifiedInPathList(file("a/b.txt"), paths(directory("c"))); in testIsFileSpecifiedInPathList_whenFileAndPathListDoesntContainDirectory()
117 BackupUtils.isFileSpecifiedInPathList(file("a/b.txt"), paths(directory("a/b"))); in testIsFileSpecifiedInPathList_whenFileAndPathListHasDirectoryWhoseNameIsPrefix()
127 file("name/subname.txt"), paths(directory("nam"))); in testIsFileSpecifiedInPathList_whenFileAndPathListHasDirectoryWhoseNameIsPrefix2()
138 file("a/b.txt"), paths(directory("b"), directory("a"))); in testIsFileSpecifiedInPathList_whenFileAndPathListContainsFirstNotRelatedAndSecondContainingDirectory()
160 file("a/b.txt"), paths(directory("b"), file("a/b.txt"))); in testIsFileSpecifiedInPathList_whenFileAndPathListContainsFirstNotRelatedFileAndSecondSameFile()
165 private File file(String path) throws IOException { in file() method in BackupUtilsTest
[all …]
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DFileUpdater.java140 final String file = fileValues.keyAt(i); in writeFiles() local
144 Slog.d(TAG, "Scheduling write: '" + value + "' to '" + file + "'"); in writeFiles()
147 mPendingWrites.put(file, value); in writeFiles()
212 final String file = writes.keyAt(i); in handleWriteOnHandler() local
216 if (!ensureDefaultLoaded(file)) { in handleWriteOnHandler()
223 injectWriteToFile(file, value); in handleWriteOnHandler()
225 removePendingWrite(file); in handleWriteOnHandler()
235 private void removePendingWrite(String file) { in removePendingWrite() argument
237 mPendingWrites.remove(file); in removePendingWrite()
263 private boolean ensureDefaultLoaded(String file) { in ensureDefaultLoaded() argument
[all …]
/frameworks/base/data/keyboards/
Dkeyboards.mk19 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)))
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
Dbenchmark.h32 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, in Btrace() argument
57 fprintf(file, "#btrace#%s|%" PRId64 "\n", name, nanoseconds_monotonic); in Btrace()
60 static inline void Btrace(FILE* file, const char* name) { in Btrace() argument
61 Btrace(file, name, android::dvr::GetSystemClockNs()); in Btrace()
76 static inline void BtraceData(FILE* file, const char* name, in BtraceData() argument
78 fprintf(file, "#btrace#%s|%" PRId64 "|%" PRId64 "\n", name, data, in BtraceData()
[all …]
/frameworks/base/packages/SystemUI/scripts/
Dnew_merge.py17 path, file = os.path.split(program)
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)
99 file = path[path.rfind('/') + 1:]
[all …]
/frameworks/base/core/java/android/view/
DOWNERS2 per-file Display.java = michaelwr@google.com, santoscordon@google.com
3 per-file DisplayInfo.java = michaelwr@google.com, santoscordon@google.com
6 per-file HapticFeedbackConstants.java = michaelwr@google.com, santoscordon@google.com
9 per-file IInputMonitorHost.aidl = michaelwr@google.com, svv@google.com
10 per-file Input*.java = michaelwr@google.com, svv@google.com
11 per-file Input*.aidl = michaelwr@google.com, svv@google.com
12 per-file KeyEvent.java = michaelwr@google.com, svv@google.com
13 per-file MotionEvent.java = michaelwr@google.com, svv@google.com
14 per-file PointerIcon.java = michaelwr@google.com, svv@google.com
15 per-file SimulatedDpad.java = michaelwr@google.com, svv@google.com
/frameworks/base/core/jni/
DOWNERS2 per-file *Camera*,*camera* = cychen@google.com, epeev@google.com, etalvala@google.com
3 per-file *Camera*,*camera* = shuzhenwang@google.com, yinchiayeh@google.com, zhijunhe@google.com
6 per-file android_net_* = codewiz@google.com, jchalard@google.com, lorenzo@google.com, reminv@google…
9 per-file android_hardware_display_* = michaelwr@google.com, santoscordon@google.com
12 per-file android_hardware_input* = michaelwr@google.com, svv@google.com
13 per-file android_view_Input* = michaelwr@google.com, svv@google.com
14 per-file android_view_KeyCharacterMap.* = michaelwr@google.com, svv@google.com
15 per-file android_view_*KeyEvent.* = michaelwr@google.com, svv@google.com
16 per-file android_view_*MotionEvent.* = michaelwr@google.com, svv@google.com
17 per-file android_view_PointerIcon.* = michaelwr@google.com, svv@google.com
[all …]
/frameworks/base/services/core/java/com/android/server/pm/permission/
DOWNERS2 per-file DefaultPermissionGrantPolicy.java = hackbod@android.com
3 per-file DefaultPermissionGrantPolicy.java = jsharkey@android.com
4 per-file DefaultPermissionGrantPolicy.java = svetoslavganov@google.com
5 per-file DefaultPermissionGrantPolicy.java = toddke@google.com
6 per-file DefaultPermissionGrantPolicy.java = yamasani@google.com
7 per-file DefaultPermissionGrantPolicy.java = patb@google.com
8 per-file DefaultPermissionGrantPolicy.java = eugenesusla@google.com
9 per-file DefaultPermissionGrantPolicy.java = moltmann@google.com
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationHistoryDatabase.java43 import java.nio.file.FileSystems;
44 import java.nio.file.Files;
45 import java.nio.file.attribute.BasicFileAttributes;
137 for (File file : files) { in indexFilesLocked()
138 mHistoryFiles.addLast(new AtomicFile(file)); in indexFilesLocked()
196 for (AtomicFile file : mHistoryFiles) { in readNotificationHistory()
199 file, notifications, new NotificationHistoryFilter.Builder().build()); in readNotificationHistory()
201 Slog.e(TAG, "error reading " + file.getBaseFile().getAbsolutePath(), e); in readNotificationHistory()
214 for (AtomicFile file : mHistoryFiles) { in readNotificationHistory()
216 readLocked(file, notifications, in readNotificationHistory()
[all …]
/frameworks/layoutlib/bridge/tests/src/com/android/ide/common/resources/deprecated/
DResourceFolder.java66 public ResourceFile processFile(IAbstractFile file, ResourceDeltaKind kind, in processFile() argument
69 ResourceFile resFile = getFile(file, context); in processFile()
75 resFile = createResourceFile(file); in processFile()
87 private ResourceFile createResourceFile(IAbstractFile file) { in createResourceFile() argument
96 SdkUtils.endsWithIgnoreCase(file.getName(), SdkConstants.DOT_XML)) { in createResourceFile()
99 resFile = new IdGeneratingResourceFile(file, this, primaryType); in createResourceFile()
101 resFile = new SingleResourceFile(file, this); in createResourceFile()
104 resFile = new MultiResourceFile(file, this); in createResourceFile()
133 private ResourceFile getFile(IAbstractFile file, ScanningContext context) { in getFile() argument
134 assert mFolder.equals(file.getParentFolder()); in getFile()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DFileRotator.java116 final File file = new File( in FileRotator() local
120 backupFile.renameTo(file); in FileRotator()
126 final File file = new File( in FileRotator() local
131 file.delete(); in FileRotator()
161 final File file = new File(mBasePath, name); in dumpAll() local
162 final FileInputStream is = new FileInputStream(file); in dumpAll()
236 final File file = new File(mBasePath, name); in rewriteSingle() local
241 if (file.exists()) { in rewriteSingle()
243 readFile(file, rewriter); in rewriteSingle()
250 file.renameTo(backupFile); in rewriteSingle()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DRandomAccessFileUtils.java30 private static RandomAccessFile getRandomAccessFile(File file) throws FileNotFoundException { in getRandomAccessFile() argument
31 return new RandomAccessFile(file, "rwd"); in getRandomAccessFile()
35 public static void writeBoolean(File file, boolean b) { in writeBoolean() argument
36 try (RandomAccessFile af = getRandomAccessFile(file)) { in writeBoolean()
39 Slog.w(TAG, "Error writing file:" + file.getAbsolutePath(), e); in writeBoolean()
44 public static boolean readBoolean(File file, boolean def) { in readBoolean() argument
45 try (RandomAccessFile af = getRandomAccessFile(file)) { in readBoolean()
48 Slog.w(TAG, "Error reading file:" + file.getAbsolutePath(), e); in readBoolean()
/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/
DHostUtils.kt24 internal fun SystemPreparer.pushApk(file: String, partition: Partition) = in <lambda>()
25 pushResourceFile(file, HostUtils.makePathForApk(file, partition).toString()) in <lambda>()
48 fun makePathForApk(file: File, partition: Partition) = in makePathForApk()
50 .resolve(file.nameWithoutExtension) in makePathForApk()
51 .resolve(file.name) in makePathForApk()
53 fun copyResourceToHostFile(javaResourceName: String, file: File): File { in makePathForApk()
55 FileOutputStream(file).use { output -> in makePathForApk()
59 return file in makePathForApk()

12345678910>>...101