Home
last modified time | relevance | path

Searched refs:key1 (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContacts_SettingsTest.java33 String key1 = "key 1"; in testAccessSetting() local
37 Settings.setSetting(mContentResolver, "account", key1, value1); in testAccessSetting()
39 assertEquals(value1, Settings.getSetting(mContentResolver, "account", key1)); in testAccessSetting()
43 Settings.setSetting(mContentResolver, "account", key1, value2); in testAccessSetting()
44 assertEquals(value2, Settings.getSetting(mContentResolver, "account", key1)); in testAccessSetting()
/cts/tests/tests/database/src/android/database/cts/
DDatabaseUtilsTest.java426 String key1 = DatabaseUtils.getCollationKey("abc"); in testCollationKey() local
430 assertTrue(key1.equals(key2)); in testCollationKey()
431 assertFalse(key1.equals(key3)); in testCollationKey()
433 key1 = DatabaseUtils.getHexCollationKey("abc"); in testCollationKey()
437 assertTrue(key1.equals(key2)); in testCollationKey()
438 assertFalse(key1.equals(key3)); in testCollationKey()
/cts/tests/tests/keystore/src/android/keystore/cts/
DAndroidKeyStoreTest.java1793 Key key1 = mKeyStore.getKey(TEST_ALIAS_2, null); in testKeyStore_SetKeyEntry_ReplacedChain_DifferentPrivateKey_Unencrypted_Failure() local
1798 mKeyStore.setKeyEntry(TEST_ALIAS_1, key1, null, new Certificate[] { cert }); in testKeyStore_SetKeyEntry_ReplacedChain_DifferentPrivateKey_Unencrypted_Failure()
2258 SecretKey key1 = new TransparentSecretKey( in testKeyStore_LargeNumberOfKeysSupported_AES() local
2276 mKeyStore.setEntry(entryName1, new KeyStore.SecretKeyEntry(key1), protectionParams); in testKeyStore_LargeNumberOfKeysSupported_AES()
2311 cipher.init(Cipher.DECRYPT_MODE, key1, cipherParams); in testKeyStore_LargeNumberOfKeysSupported_AES()
2348 SecretKey key1 = new TransparentSecretKey( in testKeyStore_LargeNumberOfKeysSupported_HMAC() local
2364 mKeyStore.setEntry(entryName1, new KeyStore.SecretKeyEntry(key1), protectionParams); in testKeyStore_LargeNumberOfKeysSupported_HMAC()
2394 Mac mac = Mac.getInstance(key1.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_HMAC()
DBlockCipherTestBase.java536 SecretKey key1 = importKey(katKeyBytes); in assertKeyDoesNotSurviveReinitialization() local
537 init(opmode, key1, getKatAlgorithmParameterSpec()); in assertKeyDoesNotSurviveReinitialization()