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/
DSensorPrivacyService.java78 private final AtomicFile mAtomicFile; field in SensorPrivacyService.SensorPrivacyServiceImpl
87 mAtomicFile = new AtomicFile(sensorPrivacyFile); in SensorPrivacyServiceImpl()
105 outputStream = mAtomicFile.startWrite(); in setSensorPrivacy()
112 mAtomicFile.finishWrite(outputStream); in setSensorPrivacy()
115 mAtomicFile.failWrite(outputStream); in setSensorPrivacy()
151 if (!mAtomicFile.exists()) { in readPersistedSensorPrivacyEnabledLocked()
155 try (FileInputStream inputStream = mAtomicFile.openRead()) { in readPersistedSensorPrivacyEnabledLocked()
166 mAtomicFile.delete(); in readPersistedSensorPrivacyEnabledLocked()
180 outputStream = mAtomicFile.startWrite(); in persistSensorPrivacyState()
187 mAtomicFile.finishWrite(outputStream); in persistSensorPrivacyState()
[all …]
/frameworks/base/services/core/java/com/android/server/tv/
DPersistentDataStore.java72 private final AtomicFile mAtomicFile; field in PersistentDataStore
94mAtomicFile = new AtomicFile(new File(userDir, "tv-input-manager-state.xml"), "tv-input-state"); in PersistentDataStore()
163 is = mAtomicFile.openRead(); in load()
200 os = mAtomicFile.startWrite(); in save()
210 mAtomicFile.finishWrite(os); in save()
213 mAtomicFile.failWrite(os); in save()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigStore.java718 private final AtomicFile mAtomicFile; field in WifiConfigStore.StoreFile
738 mAtomicFile = new AtomicFile(file); in StoreFile()
750 return mAtomicFile.exists(); in exists()
771 bytes = mAtomicFile.readFully(); in readRawData()
800 out = mAtomicFile.startWrite(); in writeBufferedRawData()
803 mAtomicFile.finishWrite(out); in writeBufferedRawData()
806 mAtomicFile.failWrite(out); in writeBufferedRawData()
/frameworks/base/services/core/java/com/android/server/input/
DPersistentDataStore.java70 private final AtomicFile mAtomicFile; field in PersistentDataStore
79 mAtomicFile = new AtomicFile(new File("/data/system/input-manager-state.xml"), in PersistentDataStore()
212 is = mAtomicFile.openRead(); in load()
236 os = mAtomicFile.startWrite(); in save()
246 mAtomicFile.finishWrite(os); in save()
248 mAtomicFile.failWrite(os); in save()
/frameworks/base/services/core/java/com/android/server/display/
DPersistentDataStore.java698 private final AtomicFile mAtomicFile; field in PersistentDataStore.Injector
701 mAtomicFile = new AtomicFile(new File("/data/system/display-manager-state.xml"), in Injector()
706 return mAtomicFile.openRead(); in openRead()
710 return mAtomicFile.startWrite(); in startWrite()
719 mAtomicFile.finishWrite(fos); in finishWrite()
721 mAtomicFile.failWrite(fos); in finishWrite()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayWindowSettings.java694 private final AtomicFile mAtomicFile; field in DisplayWindowSettings.AtomicFileStorage
704 mAtomicFile = new AtomicFile(settingsFile, WM_DISPLAY_COMMIT_TAG); in AtomicFileStorage()
721 return mAtomicFile.openRead(); in openRead()
726 return mAtomicFile.startWrite(); in startWrite()
736 mAtomicFile.finishWrite(fos); in finishWrite()
738 mAtomicFile.failWrite(fos); in finishWrite()