Searched refs:atomicFile (Results 1 – 3 of 3) sorted by relevance
54 AtomicFile atomicFile = new AtomicFile(restrictionsFile); in testWriteReadApplicationRestrictions() local56 UserManagerService.writeApplicationRestrictionsLP(bundle, atomicFile); in testWriteReadApplicationRestrictions()57 assertTrue(atomicFile.getBaseFile().exists()); in testWriteReadApplicationRestrictions()60 bundle = UserManagerService.readApplicationRestrictionsLP(atomicFile); in testWriteReadApplicationRestrictions()
725 AtomicFile atomicFile = null; in run() local727 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()
670 AtomicFile atomicFile = createFileForUser(userId); in writePersistentServicesLocked() local673 fos = atomicFile.startWrite(); in writePersistentServicesLocked()687 atomicFile.finishWrite(fos); in writePersistentServicesLocked()691 atomicFile.failWrite(fos); in writePersistentServicesLocked()