Home
last modified time | relevance | path

Searched refs:persistedState (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Permission/tests/apex/java/com/android/permission/persistence/
DRuntimePermissionsPersistenceTest.kt88 val persistedState = persistence.readForUser(user) in testWriteRead() constant
90 checkPersistedState(persistedState!!) in testWriteRead()
101 val persistedState = persistence.readForUser(user) in testWriteCorruptReadFromReserveCopy() constant
103 checkPersistedState(persistedState!!) in testWriteCorruptReadFromReserveCopy()
110 val persistedState = persistence.readForUser(user) in testDelete() constant
112 assertThat(persistedState).isNull() in testDelete()
115 private fun checkPersistedState(persistedState: RuntimePermissionsState) { in checkPersistedState()
116 assertThat(persistedState).isEqualTo(state) in checkPersistedState()
117 assertThat(persistedState.version).isEqualTo(state.version) in checkPersistedState()
118 assertThat(persistedState.fingerprint).isEqualTo(state.fingerprint) in checkPersistedState()
[all …]
/packages/modules/Permission/tests/apex/java/com/android/role/persistence/
DRolesPersistenceTest.kt90 val persistedState = persistence.readForUser(user) in testWriteRead() constant
92 assertThat(persistedState).isEqualTo(state) in testWriteRead()
101 val persistedState = persistence.readForUser(user) in testWriteCorruptReadFromReserveCopy() constant
103 assertThat(persistedState).isEqualTo(state) in testWriteCorruptReadFromReserveCopy()
110 val persistedState = persistence.readForUser(user) in testDelete() constant
112 assertThat(persistedState).isNull() in testDelete()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DBluetoothPowerPolicyTest.java178 private void persistBluetoothSetting(int persistedState) { in persistBluetoothSetting() argument
180 persistedState); in persistBluetoothSetting() local
DBluetoothDeviceConnectionPolicyTest.java215 private void persistBluetoothSetting(int persistedState) { in persistBluetoothSetting() argument
217 persistedState); in persistBluetoothSetting() local