Home
last modified time | relevance | path

Searched refs:atomicFile (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceTest.java56 AtomicFile atomicFile = new AtomicFile(restrictionsFile); in testWriteReadApplicationRestrictions() local
58 UserManagerService.writeApplicationRestrictionsLAr(bundle, atomicFile); in testWriteReadApplicationRestrictions()
59 assertTrue(atomicFile.getBaseFile().exists()); in testWriteReadApplicationRestrictions()
62 bundle = UserManagerService.readApplicationRestrictionsLAr(atomicFile); in testWriteReadApplicationRestrictions()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DTransferOwnershipMetadataManager.java82 final AtomicFile atomicFile = new AtomicFile(transferOwnershipMetadataFile); in saveMetadataFile() local
85 stream = atomicFile.startWrite(); in saveMetadataFile()
96 atomicFile.finishWrite(stream); in saveMetadataFile()
102 atomicFile.failWrite(stream); in saveMetadataFile()
DDevicePolicyManagerService.java14071 final AtomicFile atomicFile = new AtomicFile(parametersFile); in saveTransferOwnershipBundleLocked() local
14074 stream = atomicFile.startWrite(); in saveTransferOwnershipBundleLocked()
14082 atomicFile.finishWrite(stream); in saveTransferOwnershipBundleLocked()
14087 atomicFile.failWrite(stream); in saveTransferOwnershipBundleLocked()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskSnapshotPersister.java372 final AtomicFile atomicFile = new AtomicFile(file); in writeProto() local
375 fos = atomicFile.startWrite(); in writeProto()
377 atomicFile.finishWrite(fos); in writeProto()
379 atomicFile.failWrite(fos); in writeProto()
DTaskPersister.java561 AtomicFile atomicFile = null; in process() local
569 atomicFile = new AtomicFile(new File(userTasksDir, in process()
571 file = atomicFile.startWrite(); in process()
574 atomicFile.finishWrite(file); in process()
577 atomicFile.failWrite(file); in process()
580 "Unable to open " + atomicFile + " for persisting. " + e); in process()
DLaunchParamsPersister.java363 final AtomicFile atomicFile = new AtomicFile(launchParamFile); in process() local
367 stream = atomicFile.startWrite(); in process()
372 atomicFile.failWrite(stream); in process()
376 atomicFile.finishWrite(stream); in process()
/frameworks/base/services/core/java/com/android/server/role/
DRoleUserState.java382 AtomicFile atomicFile = new AtomicFile(getFile(mUserId), "roles-" + mUserId); in writeFile() local
385 out = atomicFile.startWrite(); in writeFile()
396 atomicFile.finishWrite(out); in writeFile()
401 atomicFile.failWrite(out); in writeFile()
/frameworks/base/core/java/android/content/pm/
DRegisteredServicesCache.java761 AtomicFile atomicFile = createFileForUser(userId); in writePersistentServicesLocked() local
764 fos = atomicFile.startWrite(); in writePersistentServicesLocked()
778 atomicFile.finishWrite(fos); in writePersistentServicesLocked()
782 atomicFile.failWrite(fos); in writePersistentServicesLocked()