Searched refs:AccountKey (Results 1 – 8 of 8) sorted by relevance
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/ |
D | FastPairAccountKeyStorageTest.java | 20 import static com.android.car.bluetooth.FastPairAccountKeyStorage.AccountKey; 144 private void setPersistedKeys(List<AccountKey> keys) { in setPersistedKeys() 150 for (AccountKey key : keys) { in setPersistedKeys() 157 private void assertPersistedKeys(List<AccountKey> expected) { in assertPersistedKeys() 162 for (AccountKey key : expected) { in assertPersistedKeys() 172 AccountKey key = new AccountKey(TEST_ACCOUNT_KEY_1); in testAccountKeyCreateFromBytes_succeeds() 181 AccountKey key = new AccountKey(new BigInteger(TEST_ACCOUNT_KEY_1).toString()); in testAccountKeyCreateFromString_succeeds() 190 AccountKey key = new AccountKey(TEST_ACCOUNT_KEY_1); in testAccountKeyHashCodeSameKey_hashCodeMatches() 191 AccountKey keyCopy = new AccountKey(TEST_ACCOUNT_KEY_1); in testAccountKeyHashCodeSameKey_hashCodeMatches() 197 AccountKey key = new AccountKey(TEST_ACCOUNT_KEY_1); in testAccountKeyHashCodeDifferentKey_hashCodeDoesntMatch() [all …]
|
D | FastPairAdvertiserTest.java | 22 import static com.android.car.bluetooth.FastPairAccountKeyStorage.AccountKey; 95 private static final List<AccountKey> TEST_ACCOUNT_KEYS = new ArrayList<AccountKey>(List.of( 96 new AccountKey(TEST_ACCOUNT_KEY_1), 97 new AccountKey(TEST_ACCOUNT_KEY_2) 99 private static final List<AccountKey> TEST_EMPTY_ACCOUNT_KEYS = new ArrayList<>();
|
D | FastPairGattServerTest.java | 20 import static com.android.car.bluetooth.FastPairAccountKeyStorage.AccountKey; 258 private void setAvailableAccountKeys(List<AccountKey> keys) { in setAvailableAccountKeys() 546 setAvailableAccountKeys(List.of(new AccountKey(TEST_VALID_ACCOUNT_KEY))); in testProcessKeyBasedPairingRequestUsingAccountKey_responseValid() 757 verify(mMockFastPairAccountKeyStorage).add(eq(new AccountKey(TEST_VALID_ACCOUNT_KEY))); in testProcessAccountKeyRequestWithValidKey_keyAdded()
|
/packages/services/Car/service/src/com/android/car/bluetooth/ |
D | FastPairAccountKeyStorage.java | 72 public static class AccountKey { class in FastPairAccountKeyStorage 75 AccountKey(byte[] key) { in AccountKey() method in FastPairAccountKeyStorage.AccountKey 79 AccountKey(String key) { in AccountKey() method in FastPairAccountKeyStorage.AccountKey 104 if (!(obj instanceof AccountKey)) { in equals() 107 AccountKey other = (AccountKey) obj; in equals() 121 private final LinkedHashSet<AccountKey> mKeys; 131 mKeys = new LinkedHashSet<AccountKey>(mStorageSize); in FastPairAccountKeyStorage() 145 public boolean add(@NonNull AccountKey key) { in add() 164 public boolean remove(@NonNull AccountKey key) { in remove() 177 public List<AccountKey> getAllAccountKeys() { in getAllAccountKeys() [all …]
|
D | FastPairGattServer.java | 18 import static com.android.car.bluetooth.FastPairAccountKeyStorage.AccountKey; 694 List<AccountKey> storedAccountKeys = mFastPairAccountKeyStorage.getAllAccountKeys(); in processKeyBasedPairing() 695 for (AccountKey key : storedAccountKeys) { in processKeyBasedPairing() 751 private AccountKey calculateAntiSpoofing(byte[] localPrivateKey, byte[] remotePublicKey) { in calculateAntiSpoofing() 785 return new AccountKey(AESAntiSpoofingKey); in calculateAntiSpoofing() 970 AccountKey receivedKey = new AccountKey(decodedAccountKey); in processAccountKey()
|
D | FastPairAdvertiser.java | 19 import static com.android.car.bluetooth.FastPairAccountKeyStorage.AccountKey; 176 public void advertiseAccountKeys(List<AccountKey> accountKeys, Callbacks callback) { in advertiseAccountKeys() 218 byte[] getAccountKeyFilter(List<AccountKey> keys, byte salt) { in getAccountKeyFilter() 227 for (AccountKey key : keys) { in getAccountKeyFilter()
|
/packages/apps/Dialer/java/com/android/contacts/common/model/ |
D | ContactLoader.java | 598 final HashSet<AccountKey> accountsSeen = new HashSet<>(); in loadGroupMetaData() 603 final AccountKey accountKey = new AccountKey(accountName, accountType, dataSet); in loadGroupMetaData() 976 private static class AccountKey { class in ContactLoader 982 public AccountKey(String accountName, String accountType, String dataSet) { in AccountKey() method in ContactLoader.AccountKey 995 if (!(obj instanceof AccountKey)) { in equals() 998 final AccountKey other = (AccountKey) obj; in equals()
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | ContactLoader.java | 738 static private class AccountKey { class in ContactLoader 743 public AccountKey(String accountName, String accountType, String dataSet) { in AccountKey() method in ContactLoader.AccountKey 756 if (!(obj instanceof AccountKey)) { in equals() 759 final AccountKey other = (AccountKey) obj; in equals() 773 final HashSet<AccountKey> accountsSeen = new HashSet<>(); in loadGroupMetaData() 778 final AccountKey accountKey = new AccountKey(accountName, accountType, dataSet); in loadGroupMetaData()
|