Searched refs:mAtomicFile (Results 1 – 6 of 6) sorted by relevance
53 private final AtomicFile mAtomicFile = field in AllSensorStateController68 if (!mAtomicFile.exists()) { in AllSensorStateController()71 try (FileInputStream inputStream = mAtomicFile.openRead()) { in AllSensorStateController()132 outputStream = mAtomicFile.startWrite(); in persist()139 mAtomicFile.finishWrite(outputStream); in persist()142 mAtomicFile.failWrite(outputStream); in persist()
74 private final AtomicFile mAtomicFile; field in PersistedState83 mAtomicFile = new AtomicFile(new File(Environment.getDataSystemDirectory(), fileName)); in PersistedState()88 AtomicFile file = mAtomicFile; in readState()287 outputStream = mAtomicFile.startWrite(); in persist()319 mAtomicFile.finishWrite(outputStream); in persist()322 mAtomicFile.failWrite(outputStream); in persist()
68 private final AtomicFile mAtomicFile; field in PersistentDataStore90 … mAtomicFile = new AtomicFile(new File(userDir, "tv-input-manager-state.xml"), "tv-input-state"); in PersistentDataStore()159 is = mAtomicFile.openRead(); in load()195 os = mAtomicFile.startWrite(); in save()204 mAtomicFile.finishWrite(os); in save()207 mAtomicFile.failWrite(os); in save()
591 private final AtomicFile mAtomicFile; field in PersistentDataStore.Injector594 mAtomicFile = new AtomicFile(new File("/data/system/input-manager-state.xml"), in Injector()599 return mAtomicFile.openRead(); in openRead()603 return mAtomicFile.startWrite(); in startWrite()608 mAtomicFile.finishWrite(fos); in finishWrite()610 mAtomicFile.failWrite(fos); in finishWrite()
600 private final AtomicFile mAtomicFile; field in DisplayWindowSettingsProvider.AtomicFileStorage603 mAtomicFile = atomicFile; in AtomicFileStorage()608 return mAtomicFile.openRead(); in openRead()613 return mAtomicFile.startWrite(); in startWrite()623 mAtomicFile.finishWrite(fos); in finishWrite()625 mAtomicFile.failWrite(fos); in finishWrite()
998 private final AtomicFile mAtomicFile; field in PersistentDataStore.Injector1001 mAtomicFile = new AtomicFile(new File("/data/system/display-manager-state.xml"), in Injector()1006 return mAtomicFile.openRead(); in openRead()1010 return mAtomicFile.startWrite(); in startWrite()1019 mAtomicFile.finishWrite(fos); in finishWrite()1021 mAtomicFile.failWrite(fos); in finishWrite()