Home
last modified time | relevance | path

Searched refs:startWrite (Results 1 – 25 of 46) sorted by relevance

12

/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/
DThreadPersistentSettingsTest.java74 when(mAtomicFile.startWrite()).thenReturn(fos); in setUp()
123 verify(mAtomicFile).startWrite(); in put_ThreadFeatureEnabledTrue_returnsTrue()
133 verify(mAtomicFile).startWrite(); in put_ThreadFeatureEnabledFalse_returnsFalse()
144 verify(mAtomicFile).startWrite(); in put_ThreadCountryCodeString_returnsString()
155 verify(mAtomicFile).startWrite(); in put_ThreadCountryCodeNull_returnsNull()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/
DUwbSettingsStoreTest.java81 when(mAtomicFile.startWrite()).thenReturn(fos); in setUp()
102 verify(mAtomicFile).startWrite(); in testSetterGetter()
136 verify(mAtomicFile, never()).startWrite(); in testLoadFromStore()
155 verify(mAtomicFile, times(1)).startWrite(); in testMigrationWhenStoreFileEmptyOrNotFound()
173 verify(mAtomicFile, never()).startWrite(); in testNoMigrationLoadFromStoreWhenStoreFileEmptyOrNotFound()
/packages/services/Car/service/src/com/android/car/telemetry/util/
DIoUtils.java78 try (FileOutputStream fos = atomicFile.startWrite()) { in writeBundle()
113 try (FileOutputStream fos = atomicFile.startWrite()) { in writeProto()
/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DRegisteredServicesCacheTest.java379 when(mOtherSettingsFile.startWrite()).thenReturn(mockFileOutputStream); in testInitialize_filesDontExist()
389 verify(mOtherSettingsFile).startWrite(); in testInitialize_filesDontExist()
581 when(mDynamicSettingsFile.startWrite()).thenReturn(mockFileOutputStream); in testSetOffhostSecureElement_existingService_correctUid_nonNullSE()
582 when(mOtherSettingsFile.startWrite()).thenReturn(new MockFileOutputStream()); in testSetOffhostSecureElement_existingService_correctUid_nonNullSE()
592 verify(mDynamicSettingsFile).startWrite(); in testSetOffhostSecureElement_existingService_correctUid_nonNullSE()
665 when(mDynamicSettingsFile.startWrite()).thenReturn(mockFileOutputStream); in testResetOffhostSecureElement_existingService_correctUid()
666 when(mOtherSettingsFile.startWrite()).thenReturn(new MockFileOutputStream()); in testResetOffhostSecureElement_existingService_correctUid()
677 verify(mDynamicSettingsFile).startWrite(); in testResetOffhostSecureElement_existingService_correctUid()
953 when(mDynamicSettingsFile.startWrite()).thenReturn(mockFileOutputStream); in testRegisterAidGroupForService_existingService_correctUid()
954 when(mOtherSettingsFile.startWrite()).thenReturn(new MockFileOutputStream()); in testRegisterAidGroupForService_existingService_correctUid()
[all …]
DRegisteredNfcFServicesCacheTest.java174 when(mAtomicFile.startWrite()).thenReturn(mFos); in setUp()
725 when(mAtomicFile.startWrite()).thenThrow(IOException.class); in testWriteDynamicSystemCodeNfcid2LockedWithInvalidSerializer_ReturnsFalse()
741 verify(mAtomicFile).startWrite(); in testWriteDynamicSystemCodeNfcid2LockedWithNoServices_ReturnsTrue()
754 verify(mAtomicFile).startWrite(); in testWriteDynamicSystemCodeNfcid2LockedWithServices_ReturnsTrue()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DWatchdogStorageUnitTest.java104 assertWithMessage("Start write on clean db").that(mService.startWrite()).isFalse(); in testStartWrite()
108 assertWithMessage("Start write on a dirty DB").that(mService.startWrite()).isTrue(); in testStartWrite()
113 assertWithMessage("Start write again").that(mService.startWrite()).isFalse(); in testStartWrite()
120 assertWithMessage("Start database write").that(mService.startWrite()).isTrue(); in testStartWriteAndMarkDirty()
126 assertWithMessage("Start write again").that(mService.startWrite()).isTrue(); in testStartWriteAndMarkDirty()
133 assertWithMessage("Start database write").that(mService.startWrite()).isTrue(); in testStartWriteTwice()
134 assertWithMessage("Start database write twice").that(mService.startWrite()) in testStartWriteTwice()
148 assertWithMessage("Start database write").that(mService.startWrite()).isTrue(); in testMarkSuccessfulWriteWithNoWriteInProgress()
/packages/modules/Uwb/service/java/com/android/server/uwb/util/
DFileUtils.java69 out = file.startWrite(); in writeToAtomicFile()
/packages/modules/Connectivity/service-t/src/com/android/server/net/
DPersistentInt.java93 fout = mFile.startWrite(); in set()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DStubProvider.java378 return startWrite(document); in openDocument()
381 return startWrite(document, true); in openDocument()
448 private ParcelFileDescriptor startWrite(final StubDocument document) in startWrite() method in StubProvider
450 return startWrite(document, false); in startWrite()
453 private ParcelFileDescriptor startWrite(final StubDocument document, boolean append) in startWrite() method in StubProvider
/packages/modules/AppSearch/service/java/com/android/server/appsearch/appsindexer/
DAppsIndexerSettings.java108 fos = atomicFile.startWrite(); in writeBundle()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/
DContactsIndexerSettings.java141 fos = atomicFile.startWrite(); in writeBundle()
/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainStateStorage.java83 stream = file.startWrite(); in saveCredentialManagementApp()
/packages/modules/Connectivity/service-t/src/com/android/server/ethernet/
DEthernetConfigStore.java73 fos = dst.startWrite(); in writeLegacyIpConfigToApexPath()
/packages/modules/DeviceLock/service/java/com/android/server/devicelock/
DDeviceLockPersistentStore.java91 try (FileOutputStream fileOutputStream = atomicFile.startWrite()) { in writeState()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DBasePermissionEventStorage.kt118 dbFile.startWrite() in writeData()
/packages/apps/Nfc/src/com/android/nfc/
DNfcEventLog.java80 out = mLogFile.startWrite(); in writeLogFile()
/packages/modules/OnDevicePersonalization/systemservice/java/com/android/server/ondevicepersonalization/
DBooleanFileDataStore.java169 out = mAtomicFile.startWrite(); in writeToFile()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DPersistedItemArray.java74 fos = file.startWrite(); in write()
/packages/services/Car/service/src/com/android/car/garagemode/
DGarageModeRecorder.java169 try (FileOutputStream outStream = mGarageModeRecorderFile.startWrite()) { in writeToSessionFile()
/packages/apps/Nfc/tests/unit/src/com/android/nfc/
DNfcEventLogTest.java64 when(mLogFile.startWrite()).thenReturn(mFileOutputStream); in setUp()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/signals/
DEncoderPersistenceDao.java185 fos = atomicFile.startWrite(); in writeDataToFile()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/
DGrantTimeXmlHelper.java66 outputStream = atomicFile.startWrite(); in serializeGrantTimes()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DRegisteredServicesCache.java172 FileOutputStream startWrite() throws IOException { in startWrite() method in RegisteredServicesCache.SettingsFile
173 return mFile.startWrite(); in startWrite()
861 fos = mDynamicSettingsFile.startWrite(); in writeDynamicSettingsLocked()
905 fos = mOthersFile.startWrite(); in writeOthersLocked()
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DThreadPersistentSettings.java270 out = file.startWrite(); in writeToAtomicFile()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/viewmodel/
DBannerController.java427 fos = atomicLastCloudProviderDataFile.startWrite(); in updateCloudProviderDataFile()

12