Home
last modified time | relevance | path

Searched refs:atomicFile (Results 1 – 4 of 4) 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.writeApplicationRestrictionsLP(bundle, atomicFile); in testWriteReadApplicationRestrictions()
59 assertTrue(atomicFile.getBaseFile().exists()); in testWriteReadApplicationRestrictions()
62 bundle = UserManagerService.readApplicationRestrictionsLP(atomicFile); in testWriteReadApplicationRestrictions()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskSnapshotPersister.java310 final AtomicFile atomicFile = new AtomicFile(file); in writeProto() local
313 fos = atomicFile.startWrite(); in writeProto()
315 atomicFile.finishWrite(fos); in writeProto()
317 atomicFile.failWrite(fos); in writeProto()
/frameworks/base/services/core/java/com/android/server/am/
DTaskPersister.java760 AtomicFile atomicFile = null; in run() local
762 atomicFile = new AtomicFile(new File( in run()
765 file = atomicFile.startWrite(); in run()
768 atomicFile.finishWrite(file); in run()
771 atomicFile.failWrite(file); in run()
774 "Unable to open " + atomicFile + " for persisting. " + e); in run()
/frameworks/base/core/java/android/content/pm/
DRegisteredServicesCache.java716 AtomicFile atomicFile = createFileForUser(userId); in writePersistentServicesLocked() local
719 fos = atomicFile.startWrite(); in writePersistentServicesLocked()
733 atomicFile.finishWrite(fos); in writePersistentServicesLocked()
737 atomicFile.failWrite(fos); in writePersistentServicesLocked()