Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceTest.java54 AtomicFile atomicFile = new AtomicFile(restrictionsFile); in testWriteReadApplicationRestrictions() local
56 UserManagerService.writeApplicationRestrictionsLP(bundle, atomicFile); in testWriteReadApplicationRestrictions()
57 assertTrue(atomicFile.getBaseFile().exists()); in testWriteReadApplicationRestrictions()
60 bundle = UserManagerService.readApplicationRestrictionsLP(atomicFile); in testWriteReadApplicationRestrictions()
/frameworks/base/services/core/java/com/android/server/am/
DTaskPersister.java725 AtomicFile atomicFile = null; in run() local
727 atomicFile = new AtomicFile(new File( in run()
731 file = atomicFile.startWrite(); in run()
734 atomicFile.finishWrite(file); in run()
738 atomicFile.failWrite(file); in run()
741 "Unable to open " + atomicFile + " for persisting. " + e); in run()
/frameworks/base/core/java/android/content/pm/
DRegisteredServicesCache.java670 AtomicFile atomicFile = createFileForUser(userId); in writePersistentServicesLocked() local
673 fos = atomicFile.startWrite(); in writePersistentServicesLocked()
687 atomicFile.finishWrite(fos); in writePersistentServicesLocked()
691 atomicFile.failWrite(fos); in writePersistentServicesLocked()