/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | KeyStoreTest.java | 541 keyStore.getKey(null, null); in test_KeyStore_getKey() 552 keyStore.getKey(null, null); in test_KeyStore_getKey() 561 keyStore.getKey(null, PASSWORD_KEY); in test_KeyStore_getKey() 570 assertNull(keyStore.getKey("", null)); in test_KeyStore_getKey() 571 assertNull(keyStore.getKey("", PASSWORD_KEY)); in test_KeyStore_getKey() 575 assertNull(keyStore.getKey(ALIAS_PRIVATE, PASSWORD_KEY)); in test_KeyStore_getKey() 578 assertPrivateKey(keyStore.getKey(ALIAS_PRIVATE, PASSWORD_KEY)); in test_KeyStore_getKey() 581 assertPrivateKey(keyStore.getKey(ALIAS_NO_PASSWORD_PRIVATE, null)); in test_KeyStore_getKey() 584 assertSecretKey(keyStore.getKey(ALIAS_SECRET, PASSWORD_KEY)); in test_KeyStore_getKey() 586 assertNull(keyStore.getKey(ALIAS_SECRET, PASSWORD_KEY)); in test_KeyStore_getKey() [all …]
|
D | BlockCipherTestBase.java | 320 init(Cipher.DECRYPT_MODE, getKey()); in testInitRequiresIvInDecryptMode() 326 init(Cipher.DECRYPT_MODE, getKey(), (SecureRandom) null); in testInitRequiresIvInDecryptMode() 332 init(Cipher.DECRYPT_MODE, getKey(), (AlgorithmParameterSpec) null, null); in testInitRequiresIvInDecryptMode() 338 init(Cipher.DECRYPT_MODE, getKey(), (AlgorithmParameterSpec) null, null); in testInitRequiresIvInDecryptMode() 344 init(Cipher.DECRYPT_MODE, getKey(), (AlgorithmParameters) null, null); in testInitRequiresIvInDecryptMode() 350 init(Cipher.DECRYPT_MODE, getKey(), (AlgorithmParameters) null, null); in testInitRequiresIvInDecryptMode() 375 SecretKey key = getKey(); in testIvGeneratedAndUsedWhenEncryptingWithoutExplicitIv() 408 init(Cipher.ENCRYPT_MODE, getKey()); in testGeneratedIvSurvivesReset() 429 init(Cipher.ENCRYPT_MODE, getKey(), generatedParams); in testGeneratedIvSurvivesReset() 440 init(Cipher.ENCRYPT_MODE, getKey()); in testGeneratedIvDoesNotSurviveReinitialization() [all …]
|
D | AndroidKeyStoreTest.java | 1186 Key key = mKeyStore.getKey(TEST_ALIAS_1, null); in testKeyStore_GetKey_NoPassword_Unencrypted_Success() 1207 assertNull("Certificate entries should return null", mKeyStore.getKey(TEST_ALIAS_1, null)); in testKeyStore_GetKey_Certificate_Unencrypted_Failure() 1213 assertNull("A non-existent entry should return null", mKeyStore.getKey(TEST_ALIAS_1, null)); in testKeyStore_GetKey_NonExistent_Unencrypted_Failure() 1720 Key key = mKeyStore.getKey(TEST_ALIAS_1, null); in testKeyStore_SetKeyEntry_ReplacedChain_Unencrypted_Success() 1754 Key key1 = mKeyStore.getKey(TEST_ALIAS_2, null); in testKeyStore_SetKeyEntry_ReplacedChain_DifferentPrivateKey_Unencrypted_Failure() 1914 PrivateKey privateKey = (PrivateKey) ks.getKey(alias, null); in testKeyStore_Encrypting_RSA_NONE_NOPADDING() 2074 PrivateKey keystorePrivateKey2 = (PrivateKey) mKeyStore.getKey(entryName2, null); in testKeyStore_LargeNumberOfKeysSupported_RSA() 2075 PrivateKey keystorePrivateKey1 = (PrivateKey) mKeyStore.getKey(entryName1, null); in testKeyStore_LargeNumberOfKeysSupported_RSA() 2172 PrivateKey keystorePrivateKey2 = (PrivateKey) mKeyStore.getKey(entryName2, null); in testKeyStore_LargeNumberOfKeysSupported_EC() 2173 PrivateKey keystorePrivateKey1 = (PrivateKey) mKeyStore.getKey(entryName1, null); in testKeyStore_LargeNumberOfKeysSupported_EC() [all …]
|
D | ImportWrappedKeyTest.java | 117 Key key = keyStore.getKey(ALIAS, null); in testKeyStore_ImportWrappedKey() 180 Key key = keyStore.getKey(ALIAS, null); in testKeyStore_ImportWrappedKey_3DES() 217 Key key = keyStore.getKey(ALIAS, null); in testKeyStore_ImportWrappedKey_3DES_StrongBox() 257 Key key = keyStore.getKey(ALIAS, null); in testKeyStore_ImportWrappedKey_AES_StrongBox()
|
D | TestUtils.java | 293 Integer expectedCount = expectedFreq.get(actualEntry.getKey()); in assertContentsInAnyOrder() 296 extraneousFreq.put(actualEntry.getKey(), diff); in assertContentsInAnyOrder() 303 Integer actualCount = actualFreq.get(expectedEntry.getKey()); in assertContentsInAnyOrder() 306 missingFreq.put(expectedEntry.getKey(), diff); in assertContentsInAnyOrder() 365 T value = entry.getKey(); in frequencyTableToValues() 435 (PrivateKey) keyStore.getKey(alias, null)); in importIntoAndroidKeyStore() 447 return new ImportedKey(alias, key, (SecretKey) keyStore.getKey(alias, null)); in importIntoAndroidKeyStore()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | IpSecManagerTest.java | 75 private static final byte[] AEAD_KEY = getKey(288); 617 IpSecAlgorithm auth = new IpSecAlgorithm(IpSecAlgorithm.AUTH_HMAC_MD5, getKey(128), 96); in testIkeOverUdpEncapSocket() 668 IpSecAlgorithm auth = new IpSecAlgorithm(IpSecAlgorithm.AUTH_HMAC_MD5, getKey(128), 96); in testInterfaceCountersUdp4() 675 IpSecAlgorithm auth = new IpSecAlgorithm(IpSecAlgorithm.AUTH_HMAC_MD5, getKey(128), 96); in testInterfaceCountersUdp6() 682 IpSecAlgorithm auth = new IpSecAlgorithm(IpSecAlgorithm.AUTH_HMAC_MD5, getKey(128), 96); in testInterfaceCountersUdp4UdpEncap() 689 IpSecAlgorithm auth = new IpSecAlgorithm(IpSecAlgorithm.AUTH_HMAC_MD5, getKey(128), 96); in testAesCbcHmacMd5Tcp4() 697 IpSecAlgorithm auth = new IpSecAlgorithm(IpSecAlgorithm.AUTH_HMAC_MD5, getKey(128), 96); in testAesCbcHmacMd5Tcp6() 705 IpSecAlgorithm auth = new IpSecAlgorithm(IpSecAlgorithm.AUTH_HMAC_MD5, getKey(128), 96); in testAesCbcHmacMd5Udp4() 713 IpSecAlgorithm auth = new IpSecAlgorithm(IpSecAlgorithm.AUTH_HMAC_MD5, getKey(128), 96); in testAesCbcHmacMd5Udp6() 721 IpSecAlgorithm auth = new IpSecAlgorithm(IpSecAlgorithm.AUTH_HMAC_SHA1, getKey(160), 96); in testAesCbcHmacSha1Tcp4() [all …]
|
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/ |
D | NotificationAssistantServiceTest.java | 115 mNotificationListenerService.mRankingMap.getRanking(sbn.getKey(), out); in testOnNotificationEnqueued() 128 mNotificationListenerService.mRankingMap.getRanking(sbn.getKey(), out); in testOnNotificationEnqueued() 149 mNotificationListenerService.mRankingMap.getRanking(sbn.getKey(), out); in testAdjustNotification_userSentimentKey() 157 Adjustment adjustment = new Adjustment(sbn.getPackageName(), sbn.getKey(), signals, "", in testAdjustNotification_userSentimentKey() 163 mNotificationListenerService.mRankingMap.getRanking(sbn.getKey(), out); in testAdjustNotification_userSentimentKey() 183 mNotificationListenerService.mRankingMap.getRanking(sbn.getKey(), out); in testAdjustNotification_importanceKey() 191 Adjustment adjustment = new Adjustment(sbn.getPackageName(), sbn.getKey(), signals, "", in testAdjustNotification_importanceKey() 197 mNotificationListenerService.mRankingMap.getRanking(sbn.getKey(), out); in testAdjustNotification_importanceKey() 221 mNotificationListenerService.mRankingMap.getRanking(sbn.getKey(), out); in testAdjustNotification_smartActionKey() 235 Adjustment adjustment = new Adjustment(sbn.getPackageName(), sbn.getKey(), signals, "", in testAdjustNotification_smartActionKey() [all …]
|
D | AdjustmentTest.java | 57 assertEquals(ADJ_KEY, mAdjustment.getKey()); in testGetKey() 85 assertEquals(mAdjustment.getKey(), unparceled.getKey()); in testParcelling()
|
D | TestNotificationAssistant.java | 78 return new Adjustment(sbn.getPackageName(), sbn.getKey(), signals, "", in onNotificationEnqueued()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | AnnotationTest.java | 62 assertEquals(KEY1, mAnnotation.getKey()); in testGetKey() 64 assertEquals(KEY2, mAnnotation.getKey()); in testGetKey() 82 assertEquals(out.getKey(), mAnnotation.getKey()); in testWriteToParcel()
|
/cts/tests/app/src/android/app/cts/ |
D | PersonTest.java | 46 assertEquals(TEST_KEY, person.getKey()); in testPerson_builder() 56 assertNull(person.getKey()); in testPerson_builder_defaults() 77 assertEquals(TEST_KEY, result.getKey()); in testToBuilder() 100 assertEquals(person.getKey(), result.getKey()); in testPerson_parcelable()
|
D | AdjustmentTest.java | 51 assertEquals(ADJ_KEY, mAdjustment.getKey()); in testGetKey() 79 assertEquals(mAdjustment.getKey(), unparceled.getKey()); in testParcelling()
|
D | NotificationManagerTest.java | 271 Log.d(TAG, "Found " + sbn.getKey()); in findPostedNotification() 308 assertTrue(sbn.getKey() + " is unexpectedly not autogrouped", in assertOnlySomeNotificationsAutogrouped() 316 assertTrue(sbn.getKey() + " is unexpectedly autogrouped,", in assertOnlySomeNotificationsAutogrouped() 318 assertTrue(sbn.getKey() + " has an unusual group key", in assertOnlySomeNotificationsAutogrouped() 435 Log.d(TAG, "Found " + sbn.getKey() + " Bubble? " + isBubble); in checkNotificationExistence() 989 + sbn.getKey()); in testNotify() 1338 assertEquals(sbn.getKey(), outRanking.getKey()); in testKeyChannelGroupOverrideImportanceExplanation_ranking() 2239 mListener.setNotificationsShown(new String[]{ sbn1.getKey() }); in testNotificationListener_setNotificationsShown() 2245 mListener.setNotificationsShown(new String[]{ sbn2.getKey() }); in testNotificationListener_setNotificationsShown() 2336 mListener.getActiveNotifications(new String[]{ sbn2.getKey(), sbn1.getKey() }); in testNotificationListener_getActiveNotifications() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | MockListener.java | 162 mNotifications.put(sbn.getKey(), notification); in onNotificationPosted() 163 mNotificationKeys.put(sbn.getTag(), sbn.getKey()); in onNotificationPosted() 174 mNotifications.remove(sbn.getKey()); in onNotificationRemoved() 192 mNotifications.remove(sbn.getKey()); in onNotificationRemoved()
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | ApexSignatureVerificationTest.java | 129 assertWithMessage("apex:" + entry.getKey() + " do not contain pubkey").that( in testApexIncludePubKey() 172 final String testSrcDirPath = TEST_APEX_SOURCE_DIR_PREFIX + entry.getKey(); in extractApexFiles() 179 mExtractedTestDirMap.put(entry.getKey(), apexDir); in extractApexFiles() 233 final File localTempFile = File.createTempFile(entry.getKey(), "", mBasePath); in pullApexFiles() 238 mLocalApexFileMap.put(entry.getKey(), localTempFile); in pullApexFiles()
|
/cts/tests/tests/notificationlegacy/notificationlegacy20/src/android/app/notification/legacy20/cts/ |
D | LegacyNotificationManager20Test.java | 123 mListener.cancelNotifications(new String[]{ sbn.getKey() }); in testNotificationListener_cancelNotifications() 215 Log.d(TAG, "Found " + sbn.getKey()); in checkNotificationExistence() 239 Log.d(TAG, "Found " + sbn.getKey()); in findPostedNotification()
|
/cts/hostsidetests/media/bitstreams/src/android/media/cts/bitstreams/ |
D | ReportProcessor.java | 131 mMetrics.put(e.getKey(), e.getValue().getMeasurements().getSingleString()); in testEnded() 160 instrTest.addInstrumentationArg(e.getKey(), e.getValue()); in runDeviceTest()
|
/cts/tests/sensor/src/android/hardware/cts/helpers/ |
D | SensorStats.java | 131 String key = statsEntry.getKey() + DELIMITER + valueEntry.getKey(); in flatten()
|
/cts/tests/signature/lib/common/src/android/signature/cts/ |
D | AbstractApiChecker.java | 206 e.getKey(), e.getValue())) in checkConstructorCompliance() 247 e.getKey(), e.getValue())) in checkMethodCompliance()
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
D | ComparisonReport.java | 140 pWriter.printf("%d,%s,%s\n", j++, test.getKey(), test.getValue()); in writeComparsionReport() 155 " <Entry include=\"%s\"/>\n", test.getKey().replaceFirst("\\.", " ")); in writeComparsionReport()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | ArrayMapTest.java | 173 Object gotValue = array.get(entry.getKey()); in compareMaps() 176 + " at key " + entry.getKey()); in compareMaps() 245 Object value = entry.getKey(); in validateArrayMap() 320 Log.e("test", " " + entry.getKey() + " -> " + entry.getValue()); in dump() 582 return entryOf(entry.getKey(), entry.getValue());
|
/cts/hostsidetests/appsecurity/test-apps/AuthBoundKeyApp/src/com/android/cts/authboundkey/ |
D | AuthBoundKeyAppTest.java | 64 SecretKey secretKey = (SecretKey) keyStore.getKey(KEY_NAME, null); in testUseKey()
|
/cts/tests/tests/preference/src/android/preference/cts/ |
D | PreferenceTest.java | 114 String key = mPreference.getKey(); in testGetKey() 126 assertEquals(key, mPreference.getKey()); in testSetKey()
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | VintfDeviceInfo.java | 59 store.addResult("version", e.getKey()); in collectDeviceInfo()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | BaseKeyListenerTest.java | 57 final KeyEvent event = getKey(KeyEvent.KEYCODE_DEL, modifiers); in verifyBackspace() 567 final KeyEvent delKeyEvent = getKey(KeyEvent.KEYCODE_DEL, in executeAltBackspace() 573 final KeyEvent delKeyEvent = getKey(KeyEvent.KEYCODE_DEL, in executeCtrlBackspace() 579 final KeyEvent delKeyEvent = getKey(KeyEvent.KEYCODE_FORWARD_DEL, in executeCtrlForwardDelete()
|