Home
last modified time | relevance | path

Searched refs:mCarCompanionDeviceStorage (Results 1 – 3 of 3) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/trust/
DCarTrustAgentEnrollmentServiceTest.java77 private CarCompanionDeviceStorage mCarCompanionDeviceStorage; field in CarTrustAgentEnrollmentServiceTest
106 mCarCompanionDeviceStorage = new CarCompanionDeviceStorage(mContext); in setUp()
145 eq(Utils.uuidToBytes(mCarCompanionDeviceStorage.getUniqueId())), any(), eq(false), in testEncryptionHandshake()
237 SharedPreferences sharedPrefs = mCarCompanionDeviceStorage.getSharedPrefs(); in testOnEscrowTokenRemoved_removeOneTrustedDevice()
244 assertThat(mCarCompanionDeviceStorage.getUserHandleByTokenHandle(TEST_HANDLE1)).isEqualTo( in testOnEscrowTokenRemoved_removeOneTrustedDevice()
254 assertThat(mCarCompanionDeviceStorage.getUserHandleByTokenHandle(TEST_HANDLE2)).isEqualTo( in testOnEscrowTokenRemoved_removeOneTrustedDevice()
263 assertThat(mCarCompanionDeviceStorage in testOnEscrowTokenRemoved_removeOneTrustedDevice()
266 assertThat(mCarCompanionDeviceStorage.getUserHandleByTokenHandle(TEST_HANDLE2)).isEqualTo( in testOnEscrowTokenRemoved_removeOneTrustedDevice()
273 assertThat(mCarCompanionDeviceStorage in testGetUserHandleByTokenHandle_nonExistentHandle()
281 if (mCarCompanionDeviceStorage.saveEncryptionKey(DEVICE_ID, encryptionKey)) { in testEncryptionKeyStorage()
[all …]
/packages/services/Car/service/src/com/android/car/trust/
DCarTrustAgentUnlockService.java123 private final CarCompanionDeviceStorage mCarCompanionDeviceStorage; field in CarTrustAgentUnlockService
150 mCarCompanionDeviceStorage = new CarCompanionDeviceStorage(context); in CarTrustAgentUnlockService()
176 SharedPreferences.Editor editor = mCarCompanionDeviceStorage.getSharedPrefs().edit(); in setTrustedDeviceUnlockEnabled()
196 if (!mCarCompanionDeviceStorage.getSharedPrefs().getBoolean( in startUnlockAdvertising()
206 mCarTrustAgentBleManager.setUniqueId(mCarCompanionDeviceStorage.getUniqueId()); in startUnlockAdvertising()
298 mCarCompanionDeviceStorage.clearEncryptionKey(mClientDeviceId); in onUnlockDataReceived()
304 mCarCompanionDeviceStorage.saveEncryptionKey(mClientDeviceId, in onUnlockDataReceived()
346 || mCarCompanionDeviceStorage.getEncryptionKey(deviceId.toString()) == null) { in convertToDeviceId()
401 message, mCarCompanionDeviceStorage.getEncryptionKey(mClientDeviceId)); in processKeyExchangeHandshakeMessage()
453 mCarCompanionDeviceStorage.getUserHandleByTokenHandle(Utils.bytesToLong(handle)), in processCredentials()
DCarTrustAgentEnrollmentService.java121 private final CarCompanionDeviceStorage mCarCompanionDeviceStorage; field in CarTrustAgentEnrollmentService
175 mCarCompanionDeviceStorage = new CarCompanionDeviceStorage(context); in CarTrustAgentEnrollmentService()
212 if (!mCarCompanionDeviceStorage.getSharedPrefs() in startEnrollmentAdvertising()
301 int uid = mCarCompanionDeviceStorage.getSharedPrefs().getInt(String.valueOf(handle), in terminateEnrollmentHandshake()
365 SharedPreferences.Editor editor = mCarCompanionDeviceStorage.getSharedPrefs().edit(); in setTrustedDeviceEnrollmentEnabled()
400 Set<String> enrolledDeviceInfos = mCarCompanionDeviceStorage.getSharedPrefs().getStringSet( in getEnrolledDeviceInfosForUser()
483 SharedPreferences sharedPrefs = mCarCompanionDeviceStorage.getSharedPrefs(); in onEscrowTokenRemoved()
533 SharedPreferences sharedPrefs = mCarCompanionDeviceStorage.getSharedPrefs(); in onEscrowTokenActiveStateChanged()
717 UUID uniqueId = mCarCompanionDeviceStorage.getUniqueId(); in notifyDeviceIdReceived()
883 if (!mCarCompanionDeviceStorage.saveEncryptionKey(mClientDeviceId, in setEnrollmentHandshakeAccepted()