Home
last modified time | relevance | path

Searched refs:getBaseFile (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/notification/
DNotificationHistoryDatabase.java182 Slog.e(TAG, "error reading " + file.getBaseFile().getAbsolutePath(), e); in readNotificationHistory()
208 Slog.e(TAG, "error reading " + file.getBaseFile().getAbsolutePath(), e); in readNotificationHistory()
245 currentOldestFile.getBaseFile().getName()); in prune()
247 Slog.d(TAG, "File " + currentOldestFile.getBaseFile().getName() in prune()
274 if (af != null && filePath.equals(af.getBaseFile().getAbsolutePath())) { in removeFilePathFromHistory()
283 Slog.d(TAG, "Removed " + file.getBaseFile().getName()); in deleteFile()
287 removeFilePathFromHistory(file.getBaseFile().getAbsolutePath()); in deleteFile()
310 Slog.e(TAG, "Cannot open " + file.getBaseFile().getAbsolutePath(), e); in readLocked()
341 + file.getBaseFile().getAbsolutePath()); in run()
378 + af.getBaseFile().getAbsolutePath(), e); in run()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationHistoryDatabaseTest.java235 when(af.getBaseFile()).thenReturn(new File(mRootDir, "af")); in testReadNotificationHistory_withNumFilterDoesNotReadExtraFiles()
239 when(af2.getBaseFile()).thenReturn(new File(mRootDir, "af2")); in testReadNotificationHistory_withNumFilterDoesNotReadExtraFiles()
256 when(af.getBaseFile()).thenReturn(new File(mRootDir, "af")); in testRemoveNotificationRunnable()
279 when(af.getBaseFile()).thenReturn(new File(mRootDir, "af")); in testRemoveNotificationRunnable_noChanges()
302 when(af.getBaseFile()).thenReturn(new File(mRootDir, "af")); in testRemoveConversationRunnable()
325 when(af.getBaseFile()).thenReturn(new File(mRootDir, "af")); in testRemoveConversationRunnable_noChanges()
348 when(af.getBaseFile()).thenReturn(new File(mRootDir, "af")); in testRemoveChannelRunnable()
371 when(af.getBaseFile()).thenReturn(new File(mRootDir, "af")); in testRemoveChannelRunnable_noChanges()
398 when(af.getBaseFile()).thenReturn(file); in testWriteBufferRunnable()
410 when(af.getBaseFile()).thenReturn(new File(mRootDir, "af" + i)); in testRemoveFilePathFromHistory_hasMatch()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DMonotonicClock.java99 Log.e(TAG, "Cannot load monotonic clock from " + mFile.getBaseFile(), e); in read()
119 Log.e(TAG, "Cannot write monotonic clock to " + mFile.getBaseFile(), e); in write()
DBatteryStatsHistory.java243 return atomicFile.getBaseFile().toString(); in toString()
336 names.add(historyFile.atomicFile.getBaseFile().getName()); in getFileNames()
429 Slog.e(TAG, "Error reading file " + file.getBaseFile().getPath(), e); in writeToParcel()
461 ret += (int) mHistoryFiles.get(i).atomicFile.getBaseFile().length(); in getSize()
733 Slog.d(TAG, "activeHistoryFile:" + mActiveFile.getBaseFile().getPath()); in setActiveFile()
757 mActiveFile.getBaseFile().createNewFile(); in startNextFileLocked()
759 Slog.e(TAG, "Could not create history file: " + mActiveFile.getBaseFile()); in startNextFileLocked()
952 Slog.d(TAG, "readFileToParcel:" + file.getBaseFile().getPath() in readFileToParcel()
956 Slog.e(TAG, "Error reading file " + file.getBaseFile().getPath(), e); in readFileToParcel()
1102 + mActiveFile.getBaseFile().getPath() in readSummary()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/
DUserWakeupStore.java327 + userWakeupFile.getBaseFile()); in readUserIdList()
343 + userWakeupFile.getBaseFile()); in readUserIdList()
389 pw.println(file.getBaseFile().getAbsolutePath()); in dump()
/frameworks/base/services/companion/java/com/android/server/companion/devicepresence/
DObservableUuidStore.java132 + file.getBaseFile().getPath()); in writeObservableUuidToStore()
206 + "file=" + file.getBaseFile().getPath()); in readObservableUuidFromStore()
211 if (!file.getBaseFile().exists()) { in readObservableUuidFromStore()
/frameworks/base/services/tests/servicestests/src/com/android/server/locales/
DSystemAppUpdateTrackerTest.java233 assertTrue(!mStoragefile.getBaseFile().isFile()); in testOnPackageUpdatedFinished_notSystemApp_doesNothing()
251 assertTrue(!mStoragefile.getBaseFile().isFile()); in testOnPackageUpdatedFinished_noInstaller_doesNothing()
256 assertTrue(mStoragefile.getBaseFile().isFile()); in verifyStorageFileContents()
/frameworks/base/services/companion/java/com/android/server/companion/datatransfer/
DSystemDataTransferRequestStore.java215 + "file=" + file.getBaseFile().getPath()); in readRequestsFromStore()
220 if (!file.getBaseFile().exists()) { in readRequestsFromStore()
291 + file.getBaseFile().getPath()); in writeRequestsToStore()
/frameworks/base/services/core/java/com/android/server/
DEntropyMixer.java157 Slog.e(TAG, "Error reading " + seedFile.getBaseFile(), e); in readSeedFile()
226 Slog.e(TAG, "Error writing " + seedFile.getBaseFile(), e); in writeNewSeed()
DSystemUpdateManagerService.java139 Slog.i(TAG, "No existing info file " + mFile.getBaseFile()); in loadSystemUpdateInfoLocked()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsDatabase.java233 if (files.valueAt(i).getBaseFile().getPath().endsWith(CHECKED_IN_SUFFIX)) { in checkinDailyFiles()
261 file.getBaseFile().getPath() + CHECKED_IN_SUFFIX); in checkinDailyFiles()
262 if (!file.getBaseFile().renameTo(checkedInFile)) { in checkinDailyFiles()
265 Slog.e(TAG, "Failed to mark file " + file.getBaseFile().getPath() in checkinDailyFiles()
722 if (file.getBaseFile().getName().endsWith(CHECKED_IN_SUFFIX)) { in onTimeChanged()
726 final File newFile = new File(file.getBaseFile().getParentFile(), newName); in onTimeChanged()
728 file.getBaseFile().renameTo(newFile); in onTimeChanged()
876 Slog.d(TAG, "Reading stat file " + f.getBaseFile().getAbsolutePath()); in queryUsageStats()
1013 return parseBeginTime(file.getBaseFile()); in parseBeginTime()
/frameworks/base/services/companion/java/com/android/server/companion/utils/
DDataStoreUtils.java99 if (!file.getBaseFile().exists()) { in fileToByteArray()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsHistoryTest.java280 mReadFiles.add(file.getBaseFile().getName()); in unconstrainedIteration()
322 mReadFiles.add(file.getBaseFile().getName()); in constrainedIteration()
375 assertEquals(expectedFile.getPath(), history.getActiveFile().getBaseFile().getPath()); in verifyActiveFile()
393 final File file = history.getActiveFile().getBaseFile(); in createActiveFile()
/frameworks/base/services/core/java/com/android/server/power/
DLowPowerStandbyController.java472 Slog.d(TAG, "Loading policy from " + file.getBaseFile()); in loadPolicy()
529 Slog.e(TAG, "Failed to read policy file " + file.getBaseFile(), e); in loadPolicy()
551 Slog.d(TAG, "Saving policy to " + file.getBaseFile()); in savePolicy()
560 file.getBaseFile().mkdirs(); in savePolicy()
585 Slog.e(TAG, "Failed to write policy to file " + file.getBaseFile(), e); in savePolicy()
/frameworks/base/core/java/android/util/
DAtomicFile.java98 public File getBaseFile() { in getBaseFile() method in AtomicFile
/frameworks/base/services/core/java/com/android/server/locales/
DSystemAppUpdateTracker.java108 if (!mUpdatedAppsFile.getBaseFile().exists()) { in loadUpdatedSystemApps()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageUsage.java60 FileUtils.setPermissions(file.getBaseFile().getPath(), in writeInternal()
DResilientAtomicFile.java79 public File getBaseFile() { in getBaseFile() method in ResilientAtomicFile
DShortcutPackageItem.java184 Slog.e(TAG, "Failed to write to file " + file.getBaseFile(), e); in saveToFileLocked()
DShortcutLauncher.java324 Slog.e(TAG, "Failed to read file " + file.getBaseFile(), e); in loadFromFile()
/frameworks/base/services/core/java/com/android/server/am/
DProcessStatsService.java343 return mFile.getBaseFile(); in getCurrentFile()
459 String currentFile = mFile.getBaseFile().getPath(); in getCommittedFilesLF()
1262 String fileStr = file.getBaseFile().getPath();
1309 String fileStr = file.getBaseFile().getPath();
1336 file.getBaseFile().renameTo(new File(
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceTest.java93 assertThat(atomicFile.getBaseFile().exists()).isTrue(); in testWriteReadApplicationRestrictions()
/frameworks/base/services/core/java/com/android/server/appop/
DLegacyAppOpStateParser.java91 Slog.i(TAG, "No existing app ops " + file.getBaseFile() + "; starting empty"); in readState()
/frameworks/base/core/java/android/content/pm/
DRegisteredServicesCache.java125 if (file.getBaseFile().exists()) { in findOrCreateUserLocked()
724 boolean oldFileExists = oldFile.getBaseFile().exists(); in migrateIfNecessaryLocked()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DFusedPrintersProvider.java707 mLastReadHistoryTimestamp != mStatePersistFile.getBaseFile().lastModified(); in isHistoryChanged()
863 mLastReadHistoryTimestamp = mStatePersistFile.getBaseFile().lastModified(); in doReadPrinterHistory()

12