Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DFastPairAccountKeyStorageTest.java83 private FastPairAccountKeyStorage mFastPairAccountKeyStorage; field in FastPairAccountKeyStorageTest
225 mFastPairAccountKeyStorage = new FastPairAccountKeyStorage(mMockContext, TEST_SIZE); in testCreateWithValidSize_storageCreated()
226 assertThat(mFastPairAccountKeyStorage).isNotNull(); in testCreateWithValidSize_storageCreated()
227 assertThat(mFastPairAccountKeyStorage.capacity()).isEqualTo(TEST_SIZE); in testCreateWithValidSize_storageCreated()
232 mFastPairAccountKeyStorage = in testCreateWithSizeTooSmall_throwsException()
238 mFastPairAccountKeyStorage = new FastPairAccountKeyStorage(mMockContext, TEST_SIZE); in testAddKeyWhileStorageEmpty_keyAdded()
241 mFastPairAccountKeyStorage.add(new AccountKey(TEST_ACCOUNT_KEY_1)); in testAddKeyWhileStorageEmpty_keyAdded()
245 List<AccountKey> returnedKeys = mFastPairAccountKeyStorage.getAllAccountKeys(); in testAddKeyWhileStorageEmpty_keyAdded()
252 mFastPairAccountKeyStorage = new FastPairAccountKeyStorage(mMockContext, TEST_SIZE); in testAddKeyWhileStorageAtMax_keyAddedAndLruDropped()
255 mFastPairAccountKeyStorage.add(new AccountKey(TEST_ACCOUNT_KEY_1)); in testAddKeyWhileStorageAtMax_keyAddedAndLruDropped()
[all …]
/packages/services/Car/service/src/com/android/car/bluetooth/
DFastPairProvider.java59 private final FastPairAccountKeyStorage mFastPairAccountKeyStorage; field in FastPairProvider
104 mFastPairAccountKeyStorage.load();
177 mFastPairAccountKeyStorage = new FastPairAccountKeyStorage(mContext, 5); in FastPairProvider()
180 mGattServerCallbacks, mAutomaticAcceptance, mFastPairAccountKeyStorage); in FastPairProvider()
238 mFastPairAdvertiser.advertiseAccountKeys(mFastPairAccountKeyStorage.getAllAccountKeys(), in advertiseAccountKeys()
276 mFastPairAccountKeyStorage.dump(writer); in dump()
DFastPairGattServer.java105 private final FastPairAccountKeyStorage mFastPairAccountKeyStorage; field in FastPairGattServer
411 mFastPairAccountKeyStorage = Objects.requireNonNull(fastPairAccountKeyStorage); in FastPairGattServer()
694 List<AccountKey> storedAccountKeys = mFastPairAccountKeyStorage.getAllAccountKeys(); in processKeyBasedPairing()
974 mFastPairAccountKeyStorage.add(receivedKey); in processAccountKey()