Searched refs:mAtomicFile (Results 1 – 6 of 6) sorted by relevance
78 private final AtomicFile mAtomicFile; field in SensorPrivacyService.SensorPrivacyServiceImpl87 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 …]
72 private final AtomicFile mAtomicFile; field in PersistentDataStore94 … mAtomicFile = 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()
648 private final AtomicFile mAtomicFile; field in WifiConfigStore.StoreFile667 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()
70 private final AtomicFile mAtomicFile; field in PersistentDataStore79 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()
698 private final AtomicFile mAtomicFile; field in PersistentDataStore.Injector701 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()
688 private final AtomicFile mAtomicFile; field in DisplayWindowSettings.AtomicFileStorage692 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()