/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsDatabase.java | 24 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 …]
|
D | AppIdleHistory.java | 34 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/ |
D | ConfigurationTest.java | 22 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/ |
D | BatteryStatsHistory.java | 69 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()
|
D | AtomicFile.java | 45 public final class AtomicFile { class 50 public AtomicFile(File baseName) { in AtomicFile() method in AtomicFile
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | AbstractStatsBase.java | 21 import android.util.AtomicFile; 56 protected AtomicFile getFile() { in getFile() 60 return new AtomicFile(fname); in getFile()
|
D | PackageUsage.java | 25 import android.util.AtomicFile; 56 AtomicFile file = getFile(); in writeInternal() 94 AtomicFile file = getFile(); in readInternal()
|
D | CompilerStats.java | 20 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/ |
D | AdditionalSubtypeUtils.java | 26 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/ |
D | UserManagerServiceTest.java | 27 import android.util.AtomicFile; 56 AtomicFile atomicFile = new AtomicFile(restrictionsFile); in testWriteReadApplicationRestrictions()
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | FileUpdater.java | 24 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/ |
D | WatchlistSettings.java | 20 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/ |
D | FaceUserState.java | 22 import android.util.AtomicFile; 95 AtomicFile destination = new AtomicFile(mFile); in doWriteState()
|
/frameworks/base/core/java/android/util/ |
D | AtomicFile.java | 48 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/ |
D | FingerprintUserState.java | 22 import android.util.AtomicFile; 96 AtomicFile destination = new AtomicFile(mFile); in doWriteState()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ProcessStatsService.java | 28 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/ |
D | TransferOwnershipMetadataManager.java | 25 import android.util.AtomicFile; 82 final AtomicFile atomicFile = new AtomicFile(transferOwnershipMetadataFile); in saveMetadataFile()
|
/frameworks/base/services/core/java/com/android/server/slice/ |
D | SlicePermissionManager.java | 27 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/ |
D | SystemUpdateManagerService.java | 39 import android.util.AtomicFile; 72 private final AtomicFile mFile; 79 mFile = new AtomicFile(new File(Environment.getDataSystemDirectory(), INFO_FILE)); in SystemUpdateManagerService()
|
D | SensorPrivacyService.java | 31 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/ |
D | PersistentDataStore.java | 27 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/ |
D | EventResultPersister.java | 25 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/ |
D | PackageStatusStorage.java | 26 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/ |
D | CompanionDeviceManagerService.java | 62 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/ |
D | RegisteredServicesCache.java | 33 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()
|