/frameworks/base/keystore/tests/src/android/security/keystore2/ |
D | AndroidKeyStoreSpiTest.java | 108 AndroidKeyStoreKey key2 = new AndroidKeyStoreKey(descriptor(), 2, new Authorization[0], in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode() local 116 assertThat("Identity should yield true", key2.equals(key2)); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode() 118 key2.hashCode(), key2.hashCode()); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode() 119 assertThat("Different keys should differ", !key1.equals(key2)); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode() 121 key1.hashCode(), key2.hashCode()); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode() 129 assertThat("anything.equal(null) should yield false", !key2.equals(null)); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode() 136 AndroidKeyStorePublicKey key2 = makePrivateKeyObject("myCert2", "myChain1"); in testKeystorePublicKeysAdhereToContractBetweenEqualsAndHashCode() local 143 assertThat("Identity should yield true", key2.equals(key2)); in testKeystorePublicKeysAdhereToContractBetweenEqualsAndHashCode() 145 key2.hashCode(), key2.hashCode()); in testKeystorePublicKeysAdhereToContractBetweenEqualsAndHashCode() 149 assertThat("Different keys should differ", !key1.equals(key2)); in testKeystorePublicKeysAdhereToContractBetweenEqualsAndHashCode() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | KeyEventTest.java | 153 KeyEvent key2 = KeyEvent.CREATOR.createFromParcel(parcel); in testParcelUnparcel() local 156 compareKeys(key1, key2); in testParcelUnparcel() 162 KeyEvent key2 = new KeyEvent(key1); in testConstructor() local 163 compareKeys(key1, key2); in testConstructor() 171 private static void compareKeys(KeyEvent key1, KeyEvent key2) { in compareKeys() argument 172 assertEquals(key1.getId(), key2.getId()); in compareKeys() 173 assertEquals(key1.getDownTime(), key2.getDownTime()); in compareKeys() 174 assertEquals(key1.getEventTime(), key2.getEventTime()); in compareKeys() 175 assertEquals(key1.getAction(), key2.getAction()); in compareKeys() 176 assertEquals(key1.getKeyCode(), key2.getKeyCode()); in compareKeys() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/pipeline/ |
D | MediaSessionBasedFilterTest.kt | 270 val key2 = "KEY_2" in remoteAndLocalHaveDifferentKeys_localLoadedEventFiltered() constant 283 filter.onMediaDataLoaded(key2, null, mediaData2) in remoteAndLocalHaveDifferentKeys_localLoadedEventFiltered() 289 eq(key2), in remoteAndLocalHaveDifferentKeys_localLoadedEventFiltered() 297 verify(mediaListener).onMediaDataRemoved(eq(key2)) in remoteAndLocalHaveDifferentKeys_localLoadedEventFiltered() 304 val key2 = "KEY_2" in remoteAndLocalHaveDifferentKeys_remoteSessionWithoutNotification() constant 317 filter.onMediaDataLoaded(key2, null, mediaData2) in remoteAndLocalHaveDifferentKeys_remoteSessionWithoutNotification() 322 .onMediaDataLoaded(eq(key2), eq(null), eq(mediaData2), eq(true), eq(0), eq(false)) in remoteAndLocalHaveDifferentKeys_remoteSessionWithoutNotification() 371 val key2 = "KEY_2" in doNotFilterDuringKeyMigration() constant 383 filter.onMediaDataLoaded(key2, key1, mediaData2) in doNotFilterDuringKeyMigration() 388 .onMediaDataLoaded(eq(key2), eq(key1), eq(mediaData2), eq(true), eq(0), eq(false)) in doNotFilterDuringKeyMigration() [all …]
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/storage/ |
D | TertiaryKeysTableTest.java | 91 TertiaryKey key2 = generateTertiaryKey(alias2, PACKAGE_NAME); in addKey_havingSamePackageNameButDifferentAlias_doesNotReplaceOldKey() local 94 long primaryKey2 = mTertiaryKeysTable.addKey(key2); in addKey_havingSamePackageNameButDifferentAlias_doesNotReplaceOldKey() 101 assertTertiaryKeysEqual(mTertiaryKeysTable.getKey(alias2, PACKAGE_NAME).get(), key2); in addKey_havingSamePackageNameButDifferentAlias_doesNotReplaceOldKey() local 133 TertiaryKey key2 = generateTertiaryKey(SECONDARY_ALIAS, package2); in getAllKeys_withMatchingKeys_returnsAllKeysWrappedWithSecondary() local 134 mTertiaryKeysTable.addKey(key2); in getAllKeys_withMatchingKeys_returnsAllKeysWrappedWithSecondary() 145 assertTertiaryKeysEqual(keysByPackageName.get(package2), key2); in getAllKeys_withMatchingKeys_returnsAllKeysWrappedWithSecondary() local
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/ |
D | InitializeRecoverableSecondaryKeyTaskTest.java | 123 RecoverableKeyStoreSecondaryKey key2 = mTask.run(); in testRun_doesNotGenerateANewKeyIfOneIsAvailable() local 125 assertThat(key1.getAlias()).isEqualTo(key2.getAlias()); in testRun_doesNotGenerateANewKeyIfOneIsAvailable() 126 assertThat(key2.getSecretKey()).isEqualTo(key2.getSecretKey()); in testRun_doesNotGenerateANewKeyIfOneIsAvailable()
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/keys/ |
D | TertiaryKeyGeneratorTest.java | 69 SecretKey key2 = mTertiaryKeyGenerator.generate(); in generate_generatesNewKeys() local 71 assertThat(key1).isNotEqualTo(key2); in generate_generatesNewKeys()
|
D | TertiaryKeyStoreTest.java | 172 SecretKey key2 = generateAesKey(); in getAll_returnsAllKeysSaved() local 176 mTertiaryKeyStore.save(package2, key2); in getAll_returnsAllKeysSaved() 181 assertThat(keys).containsExactly(package1, key1, package2, key2, package3, key3); in getAll_returnsAllKeysSaved()
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/ |
D | CryptoSettingsTest.java | 191 String key2 = "key2"; in clearAllSettingsForBackup_clearsStateForBackup() local 194 setAliasIsInRecoveryController(key2); in clearAllSettingsForBackup_clearsStateForBackup() 196 mCryptoSettings.setNextSecondaryAlias(key2); in clearAllSettingsForBackup_clearsStateForBackup()
|
/frameworks/av/camera/ |
D | CameraParameters2.cpp | 150 status_t CameraParameters2::compareSetOrder(const char *key1, const char *key2, in compareSetOrder() argument 155 } else if (key2 == NULL) { in compareSetOrder() 164 ssize_t index2 = mMap.indexOfKey(String8(key2)); in compareSetOrder() 169 ALOGW("%s: Key2 (%s) was not set", __FUNCTION__, key2); in compareSetOrder()
|
/frameworks/base/tools/obbtool/ |
D | mkobb.sh | 117 hidden_prompt "Encryption key (again): " key2 119 if [ "${key}x" != "${key2}x" ]; then \
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiNetworkScoreCacheTest.java | 135 WifiKey key2 = new WifiKey("\"ssid2\"", BSSID); in updateScoresShouldAddNewNetwork() local 136 ScoredNetwork network2 = buildScoredNetwork(key2, mockRssiCurve); in updateScoresShouldAddNewNetwork()
|
/frameworks/av/camera/include/camera/ |
D | CameraParameters2.h | 60 status_t compareSetOrder(const char *key1, const char *key2,
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardPinBasedInputView.java | 166 mButtons[2] = findViewById(R.id.key2); in onFinishInflate()
|
D | KeyguardPINView.java | 153 findViewById(R.id.key1), findViewById(R.id.key2), in onFinishInflate()
|
/frameworks/av/services/audiopolicy/service/ |
D | AudioPolicyService.cpp | 2599 String8 key2; in insertCommand_l() local 2601 param2.getAt(k, key2, value2); in insertCommand_l() 2602 if (key2 == key) { in insertCommand_l() 2603 param2.remove(key2); in insertCommand_l() 2604 ALOGV("Filtering out parameter %s", key2.string()); in insertCommand_l()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/ |
D | RecoverableKeyStoreDbTest.java | 121 WrappedKey key2 = new WrappedKey( in insertKey_allowsTwoUidsToHaveSameAlias() local 128 mRecoverableKeyStoreDb.insertKey(userId, /*uid=*/ 2, alias, key2); in insertKey_allowsTwoUidsToHaveSameAlias()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/widget/ |
D | PeopleSpaceWidgetManagerTest.java | 1484 PeopleTileKey key2 = SharedPreferencesHelper.getPeopleTileKey(sp2); in testRemapWidgetFiles_crossMapping() local 1485 assertThat(key2.getShortcutId()).isEqualTo(OTHER_SHORTCUT_ID); in testRemapWidgetFiles_crossMapping() 1486 assertThat(key2.getPackageName()).isEqualTo(TEST_PACKAGE_B); in testRemapWidgetFiles_crossMapping()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
D | NotifCollectionTest.java | 1592 String key2 = mNoMan.postNotif(buildNotif(TEST_PACKAGE, 2, "myTag")).key; in testMissingRanking() local 1594 NotificationEntry entry2 = mCollectionListener.getEntry(key2); in testMissingRanking()
|