Searched refs:atomicFile (Results 1 – 4 of 4) sorted by relevance
56 AtomicFile atomicFile = new AtomicFile(restrictionsFile); in testWriteReadApplicationRestrictions() local58 UserManagerService.writeApplicationRestrictionsLP(bundle, atomicFile); in testWriteReadApplicationRestrictions()59 assertTrue(atomicFile.getBaseFile().exists()); in testWriteReadApplicationRestrictions()62 bundle = UserManagerService.readApplicationRestrictionsLP(atomicFile); in testWriteReadApplicationRestrictions()
310 final AtomicFile atomicFile = new AtomicFile(file); in writeProto() local313 fos = atomicFile.startWrite(); in writeProto()315 atomicFile.finishWrite(fos); in writeProto()317 atomicFile.failWrite(fos); in writeProto()
760 AtomicFile atomicFile = null; in run() local762 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()
716 AtomicFile atomicFile = createFileForUser(userId); in writePersistentServicesLocked() local719 fos = atomicFile.startWrite(); in writePersistentServicesLocked()733 atomicFile.finishWrite(fos); in writePersistentServicesLocked()737 atomicFile.failWrite(fos); in writePersistentServicesLocked()