Home
last modified time | relevance | path

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

123

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyStoreTest.java538 keyStore.getKey(null, null); in test_KeyStore_getKey()
549 keyStore.getKey(null, null); in test_KeyStore_getKey()
558 keyStore.getKey(null, PASSWORD_KEY); in test_KeyStore_getKey()
567 assertNull(keyStore.getKey("", null)); in test_KeyStore_getKey()
568 assertNull(keyStore.getKey("", PASSWORD_KEY)); in test_KeyStore_getKey()
572 assertNull(keyStore.getKey(ALIAS_PRIVATE, PASSWORD_KEY)); in test_KeyStore_getKey()
575 assertPrivateKey(keyStore.getKey(ALIAS_PRIVATE, PASSWORD_KEY)); in test_KeyStore_getKey()
578 assertPrivateKey(keyStore.getKey(ALIAS_NO_PASSWORD_PRIVATE, null)); in test_KeyStore_getKey()
581 assertSecretKey(keyStore.getKey(ALIAS_SECRET, PASSWORD_KEY)); in test_KeyStore_getKey()
583 assertNull(keyStore.getKey(ALIAS_SECRET, PASSWORD_KEY)); in test_KeyStore_getKey()
[all …]
DBlockCipherTestBase.java318 init(Cipher.DECRYPT_MODE, getKey()); in testInitRequiresIvInDecryptMode()
324 init(Cipher.DECRYPT_MODE, getKey(), (SecureRandom) null); in testInitRequiresIvInDecryptMode()
330 init(Cipher.DECRYPT_MODE, getKey(), (AlgorithmParameterSpec) null, null); in testInitRequiresIvInDecryptMode()
336 init(Cipher.DECRYPT_MODE, getKey(), (AlgorithmParameterSpec) null, null); in testInitRequiresIvInDecryptMode()
342 init(Cipher.DECRYPT_MODE, getKey(), (AlgorithmParameters) null, null); in testInitRequiresIvInDecryptMode()
348 init(Cipher.DECRYPT_MODE, getKey(), (AlgorithmParameters) null, null); in testInitRequiresIvInDecryptMode()
373 SecretKey key = getKey(); in testIvGeneratedAndUsedWhenEncryptingWithoutExplicitIv()
406 init(Cipher.ENCRYPT_MODE, getKey()); in testGeneratedIvSurvivesReset()
427 init(Cipher.ENCRYPT_MODE, getKey(), generatedParams); in testGeneratedIvSurvivesReset()
438 init(Cipher.ENCRYPT_MODE, getKey()); in testGeneratedIvDoesNotSurviveReinitialization()
[all …]
DAndroidKeyStoreTest.java1176 Key key = mKeyStore.getKey(TEST_ALIAS_1, null); in testKeyStore_GetKey_NoPassword_Unencrypted_Success()
1197 assertNull("Certificate entries should return null", mKeyStore.getKey(TEST_ALIAS_1, null)); in testKeyStore_GetKey_Certificate_Unencrypted_Failure()
1203 assertNull("A non-existent entry should return null", mKeyStore.getKey(TEST_ALIAS_1, null)); in testKeyStore_GetKey_NonExistent_Unencrypted_Failure()
1750 Key key = mKeyStore.getKey(TEST_ALIAS_1, null); in testKeyStore_SetKeyEntry_ReplacedChain_Unencrypted_Success()
1784 Key key1 = mKeyStore.getKey(TEST_ALIAS_2, null); in testKeyStore_SetKeyEntry_ReplacedChain_DifferentPrivateKey_Unencrypted_Failure()
1944 PrivateKey privateKey = (PrivateKey) ks.getKey(alias, null); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
2102 PrivateKey keystorePrivateKey2 = (PrivateKey) mKeyStore.getKey(entryName2, null); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2103 PrivateKey keystorePrivateKey1 = (PrivateKey) mKeyStore.getKey(entryName1, null); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2200 PrivateKey keystorePrivateKey2 = (PrivateKey) mKeyStore.getKey(entryName2, null); in testKeyStore_LargeNumberOfKeysSupported_EC()
2201 PrivateKey keystorePrivateKey1 = (PrivateKey) mKeyStore.getKey(entryName1, null); in testKeyStore_LargeNumberOfKeysSupported_EC()
[all …]
DTestUtils.java272 Integer expectedCount = expectedFreq.get(actualEntry.getKey()); in assertContentsInAnyOrder()
275 extraneousFreq.put(actualEntry.getKey(), diff); in assertContentsInAnyOrder()
282 Integer actualCount = actualFreq.get(expectedEntry.getKey()); in assertContentsInAnyOrder()
285 missingFreq.put(expectedEntry.getKey(), diff); in assertContentsInAnyOrder()
344 T value = entry.getKey(); in frequencyTableToValues()
414 (PrivateKey) keyStore.getKey(alias, null)); in importIntoAndroidKeyStore()
426 return new ImportedKey(alias, key, (SecretKey) keyStore.getKey(alias, null)); in importIntoAndroidKeyStore()
/cts/tests/tests/text/src/android/text/cts/
DAnnotationTest.java61 assertEquals(KEY1, mAnnotation.getKey()); in testGetKey()
63 assertEquals(KEY2, mAnnotation.getKey()); in testGetKey()
81 assertEquals(out.getKey(), mAnnotation.getKey()); in testWriteToParcel()
/cts/tests/tests/car/src/android/car/cts/
DCarUiProviderTest.java137 loadedClass.getDeclaredMethod(method.getKey(), method.getValue()); in checkCompatibilityApi()
139 missingApis.add(method.getKey()); in checkCompatibilityApi()
/cts/tests/sensor/src/android/hardware/cts/helpers/
DSensorStats.java126 String key = statsEntry.getKey() + DELIMITER + valueEntry.getKey(); in flatten()
/cts/tests/tests/text/src/android/text/method/cts/
DKeyListenerTestCase.java61 protected static KeyEvent getKey(int keycode, int metaState) { in getKey() method in KeyListenerTestCase
DBaseKeyListenerTest.java56 final KeyEvent event = getKey(KeyEvent.KEYCODE_DEL, modifiers); in verifyBackspace()
566 final KeyEvent delKeyEvent = getKey(KeyEvent.KEYCODE_DEL, in executeAltBackspace()
572 final KeyEvent delKeyEvent = getKey(KeyEvent.KEYCODE_DEL, in executeCtrlBackspace()
578 final KeyEvent delKeyEvent = getKey(KeyEvent.KEYCODE_FORWARD_DEL, in executeCtrlForwardDelete()
/cts/hostsidetests/incident/src/com/android/server/cts/
DNotificationTest.java42 if (record.getKey().contains("android")) { in testNotificationRecords()
DProtoDumpTestCase.java139 errorBuilder.append(resultEntry.getKey().toString()); in runDeviceTests()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DVintfDeviceInfo.java60 store.addResult("version", e.getKey()); in collectDeviceInfo()
/cts/tests/tests/security/src/android/security/cts/
DIsolatedService.java47 cachedServices.add(serviceEntry.getKey()); in getServicesCachedInServiceManager()
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/
DTestRunHandler.java84 sb.append(String.format("%s%s%d\n", entry.getKey(), MAP_DELIMITER, entry.getValue())); in mapToString()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DMockListener.java279 mNotifications.put(sbn.getKey(), notification); in onNotificationPosted()
280 mNotificationKeys.put(sbn.getTag(), sbn.getKey()); in onNotificationPosted()
291 mNotifications.remove(sbn.getKey()); in onNotificationRemoved()
308 mNotifications.remove(sbn.getKey()); in onNotificationRemoved()
/cts/tests/tests/util/src/android/util/cts/
DArrayMapTest.java173 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/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/
DBaseShortcutManagerHostTest.java147 testRunner.addInstrumentationArg(param.getKey(), param.getValue()); in runDeviceTestsAsUser()
170 final String message = "Test " + testEntry.getKey() + ": " + testResult.getStatus(); in printTestResult()
/cts/tests/tests/preference2/src/android/preference2/cts/
DPreferenceTest.java116 String key = mPreference.getKey(); in testGetKey()
128 assertEquals(key, mPreference.getKey()); in testSetKey()
/cts/common/util/src/com/android/compatibility/common/util/
DMultipartForm.java135 writeFormField(writer, formValue.getKey(), formValue.getValue()); in getContentBody()
/cts/hostsidetests/media/bitstreams/src/android/media/cts/bitstreams/
DReportProcessor.java141 instrTest.addInstrumentationArg(e.getKey(), e.getValue()); in runDeviceTest()
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/suite/
DModuleRepoSuite.java111 config.injectOptionValue(entry.getKey(), value); in loadConfigs()
124 config.injectOptionValue(entry.getKey(), value); in loadConfigs()
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/
DDeviceInfoCollector.java102 entry.getKey(), nullToEmpty(device.getProperty(entry.getValue()))); in setUp()
/cts/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/
DValidateTestsAbi.java111 fail(String.format("apk %s only has %s abi when it should have %s", apk.getKey(), in testApksAbis()
/cts/tests/core/runner/src/com/android/cts/core/runner/support/
DTestNgRunner.java138 errorMessage.append("\n\n=== "). append(failureEntry.getKey()).append(" ===\n"); in extractException()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DScreenLockBoundKeysTest.java146 SecretKey secretKey = (SecretKey) keyStore.getKey(KEY_NAME, null); in tryEncrypt()

123