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.java648 private final AtomicFile mAtomicFile; field in WifiConfigStore.StoreFile
667 mAtomicFile = new AtomicFile(file); in StoreFile()
668 mFileName = mAtomicFile.getBaseFile().getAbsolutePath(); in StoreFile()
679 return mAtomicFile.exists(); in exists()
693 bytes = mAtomicFile.readFully(); in readRawData()
734 out = mAtomicFile.startWrite(); in writeBufferedRawData()
737 mAtomicFile.finishWrite(out); in writeBufferedRawData()
740 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.java688 private final AtomicFile mAtomicFile; field in DisplayWindowSettings.AtomicFileStorage
692 mAtomicFile = new AtomicFile(new File(folder, "display_settings.xml"), "wm-displays"); in AtomicFileStorage()
697 return mAtomicFile.openRead(); in openRead()
702 return mAtomicFile.startWrite(); in startWrite()
712 mAtomicFile.finishWrite(fos); in finishWrite()
714 mAtomicFile.failWrite(fos); in finishWrite()