Home
last modified time | relevance | path

Searched refs:mAtomicFile (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/core/java/com/android/server/sensorprivacy/
DAllSensorStateController.java53 private final AtomicFile mAtomicFile = field in AllSensorStateController
68 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()
DPersistedState.java74 private final AtomicFile mAtomicFile; field in PersistedState
83 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()
/frameworks/base/services/core/java/com/android/server/tv/
DPersistentDataStore.java68 private final AtomicFile mAtomicFile; field in PersistentDataStore
90mAtomicFile = 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()
/frameworks/base/services/core/java/com/android/server/input/
DPersistentDataStore.java591 private final AtomicFile mAtomicFile; field in PersistentDataStore.Injector
594 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()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayWindowSettingsProvider.java600 private final AtomicFile mAtomicFile; field in DisplayWindowSettingsProvider.AtomicFileStorage
603 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()
/frameworks/base/services/core/java/com/android/server/display/
DPersistentDataStore.java998 private final AtomicFile mAtomicFile; field in PersistentDataStore.Injector
1001 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()