Home
last modified time | relevance | path

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

/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/util/
DTwoKeyHashMap.java128 public V remove(Object key1, Object key2) { in remove() argument
129 Entry<E, K, V> e = removeEntry(key1, key2); in remove()
141 public V put(E key1, K key2, V value) { in put() argument
142 if (key1 == null && key2 == null) { in put()
156 int hash = key1.hashCode() + key2.hashCode(); in put()
161 if (hash == e.hash && key1.equals(e.getKey1()) in put()
170 arr[index] = createEntry(hash, key1, key2, value, arr[index]); in put()
224 public boolean containsKey(Object key1, Object key2) { in containsKey() argument
225 return findEntry(key1, key2) != null; in containsKey()
235 public V get(Object key1, Object key2) { in get() argument
[all …]
/dalvik/libcore/text/src/test/java/org/apache/harmony/text/tests/java/text/
DCollationKeyTest.java46 CollationKey key1 = collator.getCollationKey("abc"); in test_compareToLjava_text_CollationKey() local
48 assertEquals("Should be equal", 0, key1.compareTo(key2)); in test_compareToLjava_text_CollationKey()
65 CollationKey key1 = collator.getCollationKey("abc"); in test_compareToLjava_lang_Object() local
67 assertEquals("Should be equal", 0, key1.compareTo(key2)); in test_compareToLjava_lang_Object()
82 CollationKey key1 = collator.getCollationKey("abc"); in test_equalsLjava_lang_Object() local
84 assertTrue("Should be equal", key1.equals(key2)); in test_equalsLjava_lang_Object()
117 CollationKey key1 = collator.getCollationKey("abc"); in test_hashCode() local
119 assertTrue("Should be equal", key1.hashCode() == key2.hashCode()); in test_hashCode()
135 CollationKey key1 = collator.getCollationKey("abc"); in test_toByteArray() local
136 byte[] bytes = key1.toByteArray(); in test_toByteArray()
DRuleBasedCollatorTest.java198 CollationKey key1 = coll.getCollationKey(source); in testGetCollationKey() local
199 assertEquals(source, key1.getSourceString()); in testGetCollationKey()
203 assertTrue(key1.compareTo(key2) > 0); in testGetCollationKey()
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/engines/
DDESedeEngine.java46 byte[] key1 = new byte[8], key2 = new byte[8], key3 = new byte[8]; in init()
57 System.arraycopy(keyMaster, 0, key1, 0, key1.length); in init()
61 workingKey1 = generateWorkingKey(encrypting, key1); in init()
67 System.arraycopy(keyMaster, 0, key1, 0, key1.length); in init()
70 workingKey1 = generateWorkingKey(encrypting, key1); in init()
/dalvik/libcore/security/src/test/java/tests/security/spec/
DEncodedKeySpec2Test.java75 private boolean isEqual(Key key1, Key key2) { in isEqual() argument
76 if (key1 instanceof DSAPublicKey && key2 instanceof DSAPublicKey) { in isEqual()
77 DSAPublicKey dsa1 = ((DSAPublicKey) key1); in isEqual()
84 } else if (key1 instanceof DSAPrivateKey in isEqual()
86 DSAPrivateKey dsa1 = ((DSAPrivateKey) key1); in isEqual()
/dalvik/vm/
DAtomicCache.c86 void dvmUpdateAtomicCache(u4 key1, u4 key2, u4 value, AtomicCacheEntry* pEntry, in dvmUpdateAtomicCache() argument
125 if (pEntry->key1 == 0) in dvmUpdateAtomicCache()
135 pEntry->key1 = key1; in dvmUpdateAtomicCache()
DAtomicCache.h35 u4 key1; member
109 if (pEntry->key1 == (u4)(_key1) && pEntry->key2 == (u4)(_key2)) { \
163 void dvmUpdateAtomicCache(u4 key1, u4 key2, u4 value, AtomicCacheEntry* pEntry,
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/macs/
DISO9797Alg3Mac.java139 KeyParameter key1; in init() local
144 key1 = new KeyParameter(keyvalue, 0, 8); in init()
146 this.lastKey3 = key1; in init()
150 key1 = new KeyParameter(keyvalue, 0, 8); in init()
160 cipher.init(true, key1); in init()
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
DDESedeKeySpecTest.java148 byte[] key1 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, in testGetKey()
151 ks = new DESedeKeySpec(key1, 2); in testGetKey()
158 + "as specified in a constructor.", key1, res); in testGetKey()
160 System.arraycopy(key1, 2, exp, 0, 24); in testGetKey()
DDESKeySpecTest.java204 byte[] key1 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0}; in testGetKey()
206 ks = new DESKeySpec(key1, 2); in testGetKey()
213 + "as specified in a constructor.", key1, res); in testGetKey()
215 System.arraycopy(key1, 2, exp, 0, 8); in testGetKey()
/dalvik/libcore/security/src/main/java/org/bouncycastle/asn1/x509/
DX509NameElementList.java21 private DERObjectIdentifier key1; field in X509NameElementList
95 key1 = key; in add()
165 case 1: return key1; in getKey()
/dalvik/libcore/security/src/main/java/org/bouncycastle/asn1/
DOrderedTable.java25 private DERObjectIdentifier key1; field in OrderedTable
80 key1 = key; in add()
160 case 1: return key1; in getKey()
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DExemptionMechanismTest.java167 Key key1 = new MyExemptionMechanismSpi().new tmpKey("Proba", in testIsCryptoAllowed() local
169 assertFalse(em.isCryptoAllowed(key1)); in testIsCryptoAllowed()
171 em.init(key1); in testIsCryptoAllowed()
/dalvik/libcore/luni/src/main/java/java/util/
DTreeMap.java1313 private int cmp(Comparable<K> object, K key1, K key2) { in cmp() argument
1315 object.compareTo(key2) : comparator.compare(key1, key2); in cmp()