Searched refs:atomicFile (Results 1 – 8 of 8) sorted by relevance
56 AtomicFile atomicFile = new AtomicFile(restrictionsFile); in testWriteReadApplicationRestrictions() local58 UserManagerService.writeApplicationRestrictionsLAr(bundle, atomicFile); in testWriteReadApplicationRestrictions()59 assertTrue(atomicFile.getBaseFile().exists()); in testWriteReadApplicationRestrictions()62 bundle = UserManagerService.readApplicationRestrictionsLAr(atomicFile); in testWriteReadApplicationRestrictions()
82 final AtomicFile atomicFile = new AtomicFile(transferOwnershipMetadataFile); in saveMetadataFile() local85 stream = atomicFile.startWrite(); in saveMetadataFile()96 atomicFile.finishWrite(stream); in saveMetadataFile()102 atomicFile.failWrite(stream); in saveMetadataFile()
14071 final AtomicFile atomicFile = new AtomicFile(parametersFile); in saveTransferOwnershipBundleLocked() local14074 stream = atomicFile.startWrite(); in saveTransferOwnershipBundleLocked()14082 atomicFile.finishWrite(stream); in saveTransferOwnershipBundleLocked()14087 atomicFile.failWrite(stream); in saveTransferOwnershipBundleLocked()
372 final AtomicFile atomicFile = new AtomicFile(file); in writeProto() local375 fos = atomicFile.startWrite(); in writeProto()377 atomicFile.finishWrite(fos); in writeProto()379 atomicFile.failWrite(fos); in writeProto()
561 AtomicFile atomicFile = null; in process() local569 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()
363 final AtomicFile atomicFile = new AtomicFile(launchParamFile); in process() local367 stream = atomicFile.startWrite(); in process()372 atomicFile.failWrite(stream); in process()376 atomicFile.finishWrite(stream); in process()
382 AtomicFile atomicFile = new AtomicFile(getFile(mUserId), "roles-" + mUserId); in writeFile() local385 out = atomicFile.startWrite(); in writeFile()396 atomicFile.finishWrite(out); in writeFile()401 atomicFile.failWrite(out); in writeFile()
761 AtomicFile atomicFile = createFileForUser(userId); in writePersistentServicesLocked() local764 fos = atomicFile.startWrite(); in writePersistentServicesLocked()778 atomicFile.finishWrite(fos); in writePersistentServicesLocked()782 atomicFile.failWrite(fos); in writePersistentServicesLocked()