Home
last modified time | relevance | path

Searched defs:file (Results 1 – 25 of 379) sorted by relevance

12345678910>>...16

/aosp14/frameworks/base/core/tests/coretests/src/android/os/
H A DMemoryFileTest.java75 MemoryFile file = new MemoryFile("MemoryFileTest", 1000000); in testRun() local
106 MemoryFile file = new MemoryFile("MemoryFileTest", 10); in testOutputStreamAdvances() local
127 MemoryFile file = new MemoryFile("MemoryFileTest", testString.length); in readIndexOutOfBoundsException() local
172 MemoryFile file = new MemoryFile("MemoryFileTest", testString.length); in testReadEOF() local
194 MemoryFile file = new MemoryFile("MemoryFileTest", 1000000); in testCloseClose() local
204 MemoryFile file = new MemoryFile("MemoryFileTest", 1000000); in testCloseRead() local
219 MemoryFile file = new MemoryFile("MemoryFileTest", 1000000); in testCloseWrite() local
234 MemoryFile file = new MemoryFile("MemoryFileTest", 1000000); in testCloseAllowPurging() local
253 MemoryFile file = new MemoryFile("MemoryFileTest", 5000000); in testCloseLeak() local
/aosp14/system/core/libprocessgroup/cgrouprc/
H A Dcgroup_file.cpp82 static auto* file = LoadRcFile(); in GetInstance() local
87 auto file = GetInstance(); in ACgroupFile_getVersion() local
93 auto file = GetInstance(); in ACgroupFile_getControllerCount() local
99 auto file = GetInstance(); in ACgroupFile_getController() local
/aosp14/frameworks/base/services/core/java/com/android/server/graphics/fonts/
H A DOtfFontFileParser.java40 public String getPostScriptName(File file) throws IOException { in getPostScriptName()
50 public String buildFontFileName(File file) throws IOException { in buildFontFileName()
75 public long getRevision(File file) throws IOException { in getRevision()
85 public void tryToCreateTypeface(File file) throws Throwable { in tryToCreateTypeface()
118 private static ByteBuffer mmap(File file) throws IOException { in mmap()
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/utils/
H A DRandomAccessFileUtils.java30 private static RandomAccessFile getRandomAccessFile(File file) throws FileNotFoundException { in getRandomAccessFile()
35 public static void writeBoolean(File file, boolean b) { in writeBoolean()
44 public static boolean readBoolean(File file, boolean def) { in readBoolean()
/aosp14/frameworks/base/core/java/com/android/internal/content/
H A DFileSystemProvider.java153 File file = getFileForDocId(documentId); in getDocumentMetadata() local
276 updateMediaStore(getContext(), file); in createDocument() local
335 private static void updateMediaStore(@NonNull Context context, File file) { in updateMediaStore()
351 final File file = getFileForDocId(docId); in deleteDocument() local
455 final File file = pending.poll(); in querySearchDocuments() local
487 private String getDocumentType(final String documentId, final File file) in getDocumentType()
508 final File file = getFileForDocId(documentId); in openDocument() local
559 private boolean matchSearchQueryArguments(File file, Bundle queryArgs) { in matchSearchQueryArguments()
591 final File file = getFileForDocId(documentId); in openDocumentThumbnail() local
722 private void stopObserving(File file, DirectoryCursor cursor) { in stopObserving()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DOriginInfo.java47 static OriginInfo fromExistingFile(File file) { in fromExistingFile()
51 static OriginInfo fromStagedFile(File file) { in fromStagedFile()
55 private OriginInfo(File file, boolean staged, boolean existing) { in OriginInfo()
H A DApkChecksums.java193 public static boolean isDigestOrDigestSignatureFile(File file) { in isDigestOrDigestSignatureFile()
318 final File file = filesToChecksum.get(i).second; in getChecksums() local
346 final File file = filesToChecksum.get(i).second; in processRequiredChecksums() local
387 private static void getAvailableApkChecksums(String split, File file, in getAvailableApkChecksums()
420 private static void getInstallerChecksums(String split, File file, in getInstallerChecksums()
528 private static boolean needToWait(File file, in needToWait()
569 private static void getRequiredApkChecksums(String split, File file, in getRequiredApkChecksums()
681 static byte[] verityHashForFile(File file, byte[] rootHash) { in verityHashForFile()
764 String split, File file, int required, int type) { in calculateChecksumIfRequested()
776 private static byte[] getApkChecksum(File file, int type) { in getApkChecksum()
[all …]
/aosp14/frameworks/base/tools/aapt2/java/
H A DProguardRules.h54 inline void AddManifestClass(const UsageLocation& file, const std::string& class_name) { in AddManifestClass()
58 inline void AddConditionalClass(const UsageLocation& file, in AddConditionalClass()
63 inline void AddMethod(const UsageLocation& file, const NameAndSignature& name_and_signature) { in AddMethod()
67 inline void AddReference(const UsageLocation& file, const ResourceName& resource_name) { in AddReference()
H A DProguardRules.cpp42 BaseVisitor(const ResourceFile& file, KeepSet* keep_set) : BaseVisitor(file, keep_set, "...") { in BaseVisitor()
45 BaseVisitor(const ResourceFile& file, KeepSet* keep_set, const std::string& ctor_signature) in BaseVisitor()
112 LayoutVisitor(const ResourceFile& file, KeepSet* keep_set) in LayoutVisitor()
152 MenuVisitor(const ResourceFile& file, KeepSet* keep_set) : BaseVisitor(file, keep_set) { in MenuVisitor()
184 XmlResourceVisitor(const ResourceFile& file, KeepSet* keep_set) : BaseVisitor(file, keep_set) { in XmlResourceVisitor()
211 NavigationVisitor(const ResourceFile& file, KeepSet* keep_set, const std::string& package) in NavigationVisitor()
234 TransitionVisitor(const ResourceFile& file, KeepSet* keep_set) : BaseVisitor(file, keep_set) { in TransitionVisitor()
257 ManifestVisitor(const ResourceFile& file, KeepSet* keep_set, bool main_dex_only) in ManifestVisitor()
/aosp14/system/core/fs_mgr/libfiemap/
H A Dsplit_fiemap_writer.cpp156 for (const auto& file : files) { in Open() local
195 for (const auto& file : files) { in RemoveSplitFiles() local
207 for (const auto& file : files_) { in HasPinnedExtents() local
217 for (const auto& file : files_) { in extents() local
227 FiemapWriter* file = files_[cursor_index_].get(); in Write() local
281 for (const auto& file : files_) { in Flush() local
310 void SplitFiemap::AddFile(FiemapUniquePtr&& file) { in AddFile()
H A Dutility.cpp79 std::string GetDevicePathForFile(SplitFiemap* file) { in GetDevicePathForFile()
92 std::string JoinPaths(const std::string& dir, const std::string& file) { in JoinPaths()
151 bool FilesystemHasReliablePinning(const std::string& file, bool* supported) { in FilesystemHasReliablePinning()
/aosp14/frameworks/base/core/java/com/android/internal/util/
H A DFileRotator.java118 final File file = new File( in FileRotator() local
128 final File file = new File( in FileRotator() local
163 final File file = new File(mBasePath, name); in dumpAll() local
238 final File file = new File(mBasePath, name); in rewriteSingle() local
312 final File file = new File(mBasePath, name); in readMatching() local
371 final File file = new File(mBasePath, name); in maybeRotate() local
379 final File file = new File(mBasePath, name); in maybeRotate() local
385 private static void readFile(File file, Reader reader) throws IOException { in readFile()
395 private static void writeFile(File file, Writer writer) throws IOException { in writeFile()
/aosp14/frameworks/base/core/tests/coretests/src/android/os/storage/
H A DStorageManagerIntegrationTest.java38 final File file = createObbFile(OBB_FILE_1, R.raw.obb_file1); in testMountSingleObb() local
90 final File file = createObbFile(OBB_FILE_2_UNSIGNED, R.raw.obb_file2_nosign); in testMountUnsignedObb() local
105 … final File file = createObbFile(OBB_FILE_3_BAD_PACKAGENAME, R.raw.obb_file3_bad_packagename); in testMountBadPackageNameObb() local
115 final File file = createObbFile(OBB_FILE_1, R.raw.obb_file1); in testRemountObb() local
/aosp14/frameworks/base/tests/HugeBackup/src/com/android/hugebackup/
H A DHugeBackupActivity.java95 RandomAccessFile file; in populateUI() local
165 void writeDataToFileLocked(RandomAccessFile file, in writeDataToFileLocked()
188 RandomAccessFile file = new RandomAccessFile(mDataFile, "rw"); in recordNewUIState() local
/aosp14/frameworks/base/core/tests/coretests/src/android/graphics/
H A DFontFileUtilTest.java54 final File file = new File(ctx.getCacheDir(), prefix + i); in getTempFile() local
67 File file = getTempFile(); in mmap() local
81 private static ByteBuffer mmap(File file) { in mmap()
90 private static boolean copyToFile(File file, InputStream is) { in copyToFile()
/aosp14/system/core/fs_mgr/liblp/
H A Dimages.cpp61 bool IsEmptySuperImage(const std::string& file) { in IsEmptySuperImage()
126 bool WriteToImageFile(const std::string& file, const LpMetadata& input) { in WriteToImageFile()
173 SparsePtr file(sparse_file_new(block_size_, block_device.size), sparse_file_destroy); in ImageBuilder() local
186 bool ImageBuilder::Export(const std::string& file) { in Export()
227 bool ImageBuilder::AddData(sparse_file* file, const std::string& blob, uint64_t sector) { in AddData()
314 const std::string& file) { in AddPartitionImage()
450 int ImageBuilder::OpenImageFile(const std::string& file) { in OpenImageFile()
480 bool WriteToImageFile(const std::string& file, const LpMetadata& metadata, uint32_t block_size, in WriteToImageFile()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/backup/
H A DBackupHelper.kt91 val file = UserFileManagerImpl.createFile( regex
122 val file = Environment.buildPath(context.filesDir, data.key) regex
145 val file = UserFileManagerImpl.createFile( regex
/aosp14/frameworks/base/services/core/java/com/android/server/power/stats/
H A DBatteryUsageStatsStore.java135 File file = makeSnapshotFilename(stats.getStatsEndTimestamp()); in storeBatteryUsageStats() local
183 File file = makeSnapshotFilename(timestamp); in loadBatteryUsageStats() local
276 private void writeXmlFileLocked(BatteryUsageStats stats, File file) throws IOException { in writeXmlFileLocked()
286 private BatteryUsageStats readXmlFileLocked(File file) in readXmlFileLocked()
315 File file = entry.getKey(); in removeOldSnapshotsLocked() local
/aosp14/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
H A DMutexFileProvider.java49 public void onReleaseRequested(File file); in onReleaseRequested()
52 public MutexFileProvider(File file) throws IOException { in MutexFileProvider()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/settings/
H A DFakeLocationSettings.java37 protected LocationUserSettingsStore createUserSettingsStore(int userId, File file) { in createUserSettingsStore()
43 FakeLocationUserSettingsStore(int userId, File file) { in FakeLocationUserSettingsStore()
/aosp14/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
H A DBandwidthTestUtil.java52 public static int parseIntValueFromFile(File file) { in parseIntValueFromFile()
94 public static boolean DownloadFromUrl(String targetUrl, File file) { in DownloadFromUrl()
127 File file) { in postFileToServer()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/graphics/fonts/
H A DUpdatableFontDirTest.java77 public String getPostScriptName(File file) throws IOException { in getPostScriptName()
83 public String buildFontFileName(File file) throws IOException { in buildFontFileName()
89 public long getRevision(File file) throws IOException { in getRevision()
95 public void tryToCreateTypeface(File file) throws Throwable { in tryToCreateTypeface()
483 File file = new File(mPreinstalledFontDirs.get(0), "foo.ttf"); in installFontFile_systemFontHasPSNameDifferentFromFileName() local
636 File file = new File(mPreinstalledFontDirs.get(0), "test.ttf"); in installFontFile_preinstalled_downgrade() local
997 File file = File.createTempFile("font", "ttf", mCacheDir); in newFontUpdateRequest() local
1026 private static PersistentSystemFontConfig.Config readConfig(File file) throws Exception { in readConfig()
1035 File file) throws IOException { in writeConfig()
/aosp14/frameworks/base/drm/java/android/drm/
H A DDrmUtils.java42 File file = new File(path); in readBytes() local
47 /* package */ static byte[] readBytes(File file) throws IOException { in readBytes()
81 File file = new File(path); in removeFile() local
/aosp14/frameworks/base/tools/aapt2/io/
H A DFileStream_test.cpp34 TemporaryFile file; in TEST() local
89 TemporaryFile file; in TEST() local
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
H A DDomainVerificationPersistenceTest.kt113 val file = tempFolder.newFile().writeXml { regex
132 val file = tempFolder.newFile().writeXml { regex
161 val file = tempFolder.newFile().writeXml { regex

12345678910>>...16