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()
718 private final AtomicFile mAtomicFile; field in WifiConfigStore.StoreFile738 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()
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()
694 private final AtomicFile mAtomicFile; field in DisplayWindowSettings.AtomicFileStorage704 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()