Home
last modified time | relevance | path

Searched refs:AtomicFile (Results 1 – 25 of 84) sorted by relevance

1234

/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsDatabase.java24 import android.util.AtomicFile;
109 final TimeSparseArray<AtomicFile>[] mSortedStatFiles;
165 for (TimeSparseArray<AtomicFile> files : mSortedStatFiles) { in init()
200 final TimeSparseArray<AtomicFile> files = in checkinDailyFiles()
234 final AtomicFile file = files.valueAt(i); in checkinDailyFiles()
247 files.setValueAt(i, new AtomicFile(checkedInFile)); in checkinDailyFiles()
283 final AtomicFile af = new AtomicFile(f); in indexFilesLocked()
497 readLocked(new AtomicFile(files[j]), stats, version); in continueUpgradeLocked()
498 writeLocked(new AtomicFile(new File(mIntervalDirs[i], in continueUpgradeLocked()
519 for (TimeSparseArray<AtomicFile> files : mSortedStatFiles) { in onTimeChanged()
[all …]
DAppIdleHistory.java34 import android.util.AtomicFile;
193 AtomicFile screenOnTimeFile = new AtomicFile(getScreenOnTimeFile()); in writeScreenOnTime()
524 AtomicFile appIdleFile = new AtomicFile(getUserFile(userId)); in readAppIdleTimes()
595 AtomicFile appIdleFile = new AtomicFile(getUserFile(userId)); in writeAppIdleTimes()
/frameworks/base/core/tests/coretests/src/android/content/res/
DConfigurationTest.java22 import android.util.AtomicFile;
108 final AtomicFile af = new AtomicFile(f); in writeToProto()
124 final AtomicFile afRead = new AtomicFile(f); in readFromProto()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsHistory.java69 private AtomicFile mActiveFile;
176 private AtomicFile getFile(int num) { in getFile()
177 return new AtomicFile( in getFile()
284 AtomicFile file = getFile(mFileNumbers.get(mCurrentFileIndex++)); in getNextParcel()
333 public boolean readFileToParcel(Parcel out, AtomicFile file) { in readFileToParcel()
377 AtomicFile file = getFile(mFileNumbers.get(i)); in writeToParcel()
428 public AtomicFile getActiveFile() { in getActiveFile()
DAtomicFile.java45 public final class AtomicFile { class
50 public AtomicFile(File baseName) { in AtomicFile() method in AtomicFile
/frameworks/base/services/core/java/com/android/server/pm/
DAbstractStatsBase.java21 import android.util.AtomicFile;
56 protected AtomicFile getFile() { in getFile()
60 return new AtomicFile(fname); in getFile()
DPackageUsage.java25 import android.util.AtomicFile;
56 AtomicFile file = getFile(); in writeInternal()
94 AtomicFile file = getFile(); in readInternal()
DCompilerStats.java20 import android.util.AtomicFile;
262 AtomicFile file = getFile(); in writeInternal()
285 AtomicFile file = getFile(); in readInternal()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DAdditionalSubtypeUtils.java26 import android.util.AtomicFile;
93 private static AtomicFile getAdditionalSubtypeFile(File inputMethodDir) { in getAdditionalSubtypeFile()
95 return new AtomicFile(subtypeFile, "input-subtypes"); in getAdditionalSubtypeFile()
119 final AtomicFile subtypesFile = getAdditionalSubtypeFile(inputMethodDir); in save()
139 final AtomicFile subtypesFile = getAdditionalSubtypeFile(inputMethodDir); in save()
204 final AtomicFile subtypesFile = getAdditionalSubtypeFile(getInputMethodDir(userId)); in load()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceTest.java27 import android.util.AtomicFile;
56 AtomicFile atomicFile = new AtomicFile(restrictionsFile); in testWriteReadApplicationRestrictions()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DFileUpdater.java24 import android.util.AtomicFile;
311 final AtomicFile file = new AtomicFile(injectDefaultValuesFilename()); in saveDefaultValuesLocked()
341 final AtomicFile file = new AtomicFile(injectDefaultValuesFilename()); in loadDefaultValuesLocked()
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DWatchlistSettings.java20 import android.util.AtomicFile;
62 private final AtomicFile mXmlFile;
80 mXmlFile = new AtomicFile(xmlFile, "net-watchlist"); in WatchlistSettings()
/frameworks/base/services/core/java/com/android/server/biometrics/face/
DFaceUserState.java22 import android.util.AtomicFile;
95 AtomicFile destination = new AtomicFile(mFile); in doWriteState()
/frameworks/base/core/java/android/util/
DAtomicFile.java48 public class AtomicFile { class
58 public AtomicFile(File baseName) { in AtomicFile() method in AtomicFile
66 public AtomicFile(File baseName, String commitTag) { in AtomicFile() method in AtomicFile
/frameworks/base/services/core/java/com/android/server/biometrics/fingerprint/
DFingerprintUserState.java22 import android.util.AtomicFile;
96 AtomicFile destination = new AtomicFile(mFile); in doWriteState()
/frameworks/base/services/core/java/com/android/server/am/
DProcessStatsService.java28 import android.util.AtomicFile;
75 AtomicFile mFile;
83 AtomicFile mPendingWriteFile;
258 mPendingWriteFile = new AtomicFile(mFile.getBaseFile()); in writeStateLocked()
283 mFile = new AtomicFile(new File(mBaseDir, STATE_FILE_PREFIX in updateFile()
291 AtomicFile file; in performWriteState()
325 boolean readLocked(ProcessStats stats, AtomicFile file) { in readLocked()
651 AtomicFile file = new AtomicFile(new File(files.get(i)));
1071 AtomicFile file = new AtomicFile(new File(files.get(lastIndex)));
1116 AtomicFile file = new AtomicFile(new File(files.get(i)));
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DTransferOwnershipMetadataManager.java25 import android.util.AtomicFile;
82 final AtomicFile atomicFile = new AtomicFile(transferOwnershipMetadataFile); in saveMetadataFile()
/frameworks/base/services/core/java/com/android/server/slice/
DSlicePermissionManager.java27 import android.util.AtomicFile;
309 AtomicFile file = getFile(fileName); in getParser()
317 private AtomicFile getFile(String fileName) { in getFile()
321 return new AtomicFile(new File(mSliceDir, fileName)); in getFile()
328 AtomicFile file = getFile(persistable.getFileName()); in handlePersist()
/frameworks/base/services/core/java/com/android/server/
DSystemUpdateManagerService.java39 import android.util.AtomicFile;
72 private final AtomicFile mFile;
79 mFile = new AtomicFile(new File(Environment.getDataSystemDirectory(), INFO_FILE)); in SystemUpdateManagerService()
DSensorPrivacyService.java31 import android.util.AtomicFile;
78 private final AtomicFile mAtomicFile;
87 mAtomicFile = new AtomicFile(sensorPrivacyFile); in SensorPrivacyServiceImpl()
/frameworks/base/services/core/java/com/android/server/tv/
DPersistentDataStore.java27 import android.util.AtomicFile;
72 private final AtomicFile mAtomicFile;
94 … mAtomicFile = new AtomicFile(new File(userDir, "tv-input-manager-state.xml"), "tv-input-state"); in PersistentDataStore()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DEventResultPersister.java25 import android.util.AtomicFile;
56 private final AtomicFile mResultsFile;
139 mResultsFile = new AtomicFile(resultFile); in EventResultPersister()
/frameworks/base/services/core/java/com/android/server/timezone/
DPackageStatusStorage.java26 import android.util.AtomicFile;
81 private final AtomicFile mPackageStatusFile;
84 …mPackageStatusFile = new AtomicFile(new File(storageDir, "package-status.xml"), "timezone-status"); in PackageStatusStorage()
/frameworks/base/services/companion/java/com/android/server/companion/
DCompanionDeviceManagerService.java62 import android.util.AtomicFile;
119 private final ConcurrentMap<Integer, AtomicFile> mUidToStorage = new ConcurrentHashMap<>();
534 final AtomicFile file = getStorageFileForUser(userId);
576 private AtomicFile getStorageFileForUser(int uid) {
578 new AtomicFile(new File(
591 final AtomicFile file = getStorageFileForUser(userId);
/frameworks/base/core/java/android/content/pm/
DRegisteredServicesCache.java33 import android.util.AtomicFile;
124 AtomicFile file = createFileForUser(user.id); in findOrCreateUserLocked()
712 AtomicFile oldFile = new AtomicFile(new File(syncDir, mInterfaceName + ".xml")); in migrateIfNecessaryLocked()
761 AtomicFile atomicFile = createFileForUser(userId); in writePersistentServicesLocked()
804 private AtomicFile createFileForUser(int userId) { in createFileForUser()
807 return new AtomicFile(userFile); in createFileForUser()

1234