Home
last modified time | relevance | path

Searched refs:getKey (Results 1 – 25 of 122) sorted by relevance

12345

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyStoreTest.java542 keyStore.getKey(null, null); in test_KeyStore_getKey()
553 keyStore.getKey(null, null); in test_KeyStore_getKey()
562 keyStore.getKey(null, PASSWORD_KEY); in test_KeyStore_getKey()
571 assertNull(keyStore.getKey("", null)); in test_KeyStore_getKey()
572 assertNull(keyStore.getKey("", PASSWORD_KEY)); in test_KeyStore_getKey()
576 assertNull(keyStore.getKey(ALIAS_PRIVATE, PASSWORD_KEY)); in test_KeyStore_getKey()
579 assertPrivateKey(keyStore.getKey(ALIAS_PRIVATE, PASSWORD_KEY)); in test_KeyStore_getKey()
582 assertPrivateKey(keyStore.getKey(ALIAS_NO_PASSWORD_PRIVATE, null)); in test_KeyStore_getKey()
585 assertSecretKey(keyStore.getKey(ALIAS_SECRET, PASSWORD_KEY)); in test_KeyStore_getKey()
587 assertNull(keyStore.getKey(ALIAS_SECRET, PASSWORD_KEY)); in test_KeyStore_getKey()
[all …]
DBlockCipherTestBase.java320 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 …]
DAndroidKeyStoreTest.java1190 Key key = mKeyStore.getKey(TEST_ALIAS_1, null); in testKeyStore_GetKey_NoPassword_Unencrypted_Success()
1211 assertNull("Certificate entries should return null", mKeyStore.getKey(TEST_ALIAS_1, null)); in testKeyStore_GetKey_Certificate_Unencrypted_Failure()
1217 assertNull("A non-existent entry should return null", mKeyStore.getKey(TEST_ALIAS_1, null)); in testKeyStore_GetKey_NonExistent_Unencrypted_Failure()
1724 Key key = mKeyStore.getKey(TEST_ALIAS_1, null); in testKeyStore_SetKeyEntry_ReplacedChain_Unencrypted_Success()
1758 Key key1 = mKeyStore.getKey(TEST_ALIAS_2, null); in testKeyStore_SetKeyEntry_ReplacedChain_DifferentPrivateKey_Unencrypted_Failure()
1811 final Key key2 = mKeyStore.getKey(TEST_ALIAS_1, null); in testKeyStore_SetKeyEntry_ReplacedWithSameGeneratedSecretKey()
1955 PrivateKey privateKey = (PrivateKey) ks.getKey(alias, null); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
2109 PrivateKey keystorePrivateKey2 = (PrivateKey) mKeyStore.getKey(entryName2, null); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2110 PrivateKey keystorePrivateKey1 = (PrivateKey) mKeyStore.getKey(entryName1, null); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2182 PrivateKey keystorePrivateKey2 = (PrivateKey) mKeyStore.getKey(entryName2, null); in testKeyStore_LargeNumberOfKeysSupported_EC()
[all …]
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/
DNotificationAssistantServiceTest.java122 mNotificationListenerService.mRankingMap.getRanking(sbn.getKey(), out); in testOnNotificationEnqueued()
135 mNotificationListenerService.mRankingMap.getRanking(sbn.getKey(), out); in testOnNotificationEnqueued()
155 mNotificationListenerService.mRankingMap.getRanking(sbn.getKey(), out); in testAdjustNotification_userSentimentKey()
163 Adjustment adjustment = new Adjustment(sbn.getPackageName(), sbn.getKey(), signals, "", in testAdjustNotification_userSentimentKey()
169 mNotificationListenerService.mRankingMap.getRanking(sbn.getKey(), out); in testAdjustNotification_userSentimentKey()
186 mNotificationListenerService.mRankingMap.getRanking(sbn.getKey(), out); in testAdjustNotification_importanceKey()
194 Adjustment adjustment = new Adjustment(sbn.getPackageName(), sbn.getKey(), signals, "", in testAdjustNotification_importanceKey()
200 mNotificationListenerService.mRankingMap.getRanking(sbn.getKey(), out); in testAdjustNotification_importanceKey()
224 mNotificationListenerService.mRankingMap.getRanking(sbn1.getKey(), out1); in testAdjustNotifications_rankingScoreKey()
225 mNotificationListenerService.mRankingMap.getRanking(sbn2.getKey(), out2); in testAdjustNotifications_rankingScoreKey()
[all …]
DAdjustmentTest.java57 assertEquals(ADJ_KEY, mAdjustment.getKey()); in testGetKey()
85 assertEquals(mAdjustment.getKey(), unparceled.getKey()); in testParcelling()
DTestNotificationAssistant.java82 snoozedKey = statusBarNotification.getKey(); in onNotificationSnoozedUntilContext()
96 rankingMap.getRanking(sbn.getKey(), ranking); in onNotificationEnqueued()
99 return new Adjustment(sbn.getPackageName(), sbn.getKey(), signals, "", in onNotificationEnqueued()
/cts/tests/tests/text/src/android/text/cts/
DAnnotationTest.java62 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/
DAdjustmentTest.java51 assertEquals(ADJ_KEY, mAdjustment.getKey()); in testGetKey()
79 assertEquals(mAdjustment.getKey(), unparceled.getKey()); in testParcelling()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DExtractedTextTest.java106 assertEquals(EXPECTED_TEXT_ANNOTATION.getKey(), textAnnotation.getKey()); in assertTestInstance()
118 assertEquals(EXPECTED_HINT_ANNOTATION.getKey(), hintAnnotation.getKey()); in assertTestInstance()
/cts/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/queries/
DPersistableBundleQueryHelper.java60 if (!keyQueries.getValue().matches(value, keyQueries.getKey())) { in matches()
84 queryStrings.add(query.getValue().describeQuery(fieldName + "." + query.getKey())); in describeQuery()
DBundleQueryHelper.java58 if (!keyQueries.getValue().matches(value, keyQueries.getKey())) { in matches()
85 queryStrings.add(query.getValue().describeQuery(fieldName + "." + query.getKey())); in describeQuery()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DMockListener.java171 mNotifications.put(sbn.getKey(), notification); in onNotificationPosted()
172 mNotificationKeys.put(sbn.getTag(), sbn.getKey()); in onNotificationPosted()
183 mNotifications.remove(sbn.getKey()); in onNotificationRemoved()
201 mNotifications.remove(sbn.getKey()); in onNotificationRemoved()
/cts/common/device-side/bedstead/remoteframeworkclasses/src/types/main/java/com/android/bedstead/remoteframeworkclasses/
DAccountManagerFutureWrapper.java73 merger.onResult(result.getKey(), result.getValue().getResult()); in groupResults()
75 merger.missingResult(result.getKey()); in groupResults()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DApexSignatureVerificationTest.java129 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/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DPolicy.java143 .collect(Collectors.toMap(Map.Entry::getKey, Policy::addGeneratedStates));
256 b.get(i.getValue()).add(i.getKey());
265 if (hasFlag(policy.dpc(), entry.getKey() | CAN_BE_DELEGATED)) {
294 annotations.addAll(annotation.getKey().apply(enterprisePolicy));
347 annotations.addAll(annotation.getKey().apply(enterprisePolicy));
377 if ((appliedByFlag.getKey() & allFlags) == 0) {
441 if ((appliedByFlag.getKey() & allFlags) == appliedByFlag.getKey()) {
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DApnSettingTest.java64 assertEquals(e.getValue(), ApnSetting.getApnTypeString(e.getKey())); in testIntToString()
71 assertEquals((int) e.getValue(), ApnSetting.getApnTypeInt(e.getKey())); in testStringToInt()
/cts/tests/framework/base/biometrics/src/android/server/biometrics/fingerprint/
DFingerprintServiceTest.java132 Log.w(TAG, "Cleaning up for sensor: " + sensorEntry.getKey() in cleanup()
133 + ", user: " + userEntry.getKey()); in cleanup()
135 mFingerprintManager.createTestSession(sensorEntry.getKey()); in cleanup()
136 session.cleanupInternalState(userEntry.getKey()); in cleanup()
/cts/tests/tests/notificationlegacy/notificationlegacy20/src/android/app/notification/legacy20/cts/
DLegacyNotificationManager20Test.java114 mListener.cancelNotifications(new String[]{ sbn.getKey() }); in testNotificationListener_cancelNotifications()
206 Log.d(TAG, "Found " + sbn.getKey()); in checkNotificationExistence()
230 Log.d(TAG, "Found " + sbn.getKey()); in findPostedNotification()
/cts/hostsidetests/media/bitstreams/src/android/media/cts/bitstreams/
DReportProcessor.java131 mMetrics.put(e.getKey(), e.getValue().getMeasurements().getSingleString()); in testEnded()
160 instrTest.addInstrumentationArg(e.getKey(), e.getValue()); in runDeviceTest()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/biometrics/
DUtils.java82 SecretKey secretKey = (SecretKey) keyStore.getKey(keyName, null); in initCipher()
111 SecretKey secretKey = (SecretKey) keyStore.getKey(keyName, null); in initMac()
/cts/tests/camera/src/android/hardware/camera2/cts/
DConcurrentCameraTest.java119 CameraTestInfo info = mCameraTestInfos.get(deviceSample.getKey()); in testMandatoryConcurrentStreamCombination()
120 assertTrue("CameraTestInfo not found for camera id " + deviceSample.getKey(), in testMandatoryConcurrentStreamCombination()
125 TestSample testSample = new TestSample(deviceSample.getKey(), info.mStaticInfo, in testMandatoryConcurrentStreamCombination()
128 openDevice(deviceSample.getKey()); in testMandatoryConcurrentStreamCombination()
/cts/tests/tests/view/src/android/view/cts/input/
DInputEventTest.java108 final int axis = entry.getKey(); in testAxisFromToString()
109 String axisToString = MotionEvent.axisToString(entry.getKey()); in testAxisFromToString()
/cts/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/
DUtils.java94 errorBuilder.append(resultEntry.getKey().toString()); in runDeviceTests()
122 mMetrics.put(e.getKey(), e.getValue().getMeasurements().getSingleString()); in testEnded()
/cts/tests/tests/time/shell_utils/common/android/app/time/cts/shell/
DDeviceConfigShellHelper.java168 put(namespace, entryToAdd.getKey(), entryToAdd.getValue()); in putAll()
174 delete(namespace, entryToDelete.getKey()); in deleteAll()
/cts/tests/sensor/src/android/hardware/cts/helpers/
DSensorStats.java132 String key = statsEntry.getKey() + DELIMITER + valueEntry.getKey(); in flatten()

12345