/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | CollationKeyTest.java | 33 CollationKey key1 = collator.getCollationKey("abc"); in test_compareToLjava_text_CollationKey() local 35 assertEquals("Should be equal", 0, key1.compareTo(key2)); in test_compareToLjava_text_CollationKey() 46 CollationKey key1 = collator.getCollationKey("abc"); in test_compareToLjava_lang_Object() local 48 assertEquals("Should be equal", 0, key1.compareTo(key2)); in test_compareToLjava_lang_Object() 57 CollationKey key1 = collator.getCollationKey("abc"); in test_equalsLjava_lang_Object() local 59 assertTrue("Should be equal", key1.equals(key2)); in test_equalsLjava_lang_Object() 80 CollationKey key1 = collator.getCollationKey("abc"); in test_hashCode() local 82 assertTrue("Should be equal", key1.hashCode() == key2.hashCode()); in test_hashCode() 93 CollationKey key1 = collator.getCollationKey("abc"); in failing_test_toByteArray() local 94 byte[] bytes = key1.toByteArray(); in failing_test_toByteArray()
|
D | RuleBasedCollatorTest.java | 85 CollationKey key1 = coll.getCollationKey(source); in testGetCollationKey() local 86 assertEquals(source, key1.getSourceString()); in testGetCollationKey() 90 assertTrue(key1.compareTo(key2) > 0); in testGetCollationKey()
|
/libcore/luni/src/test/java/tests/security/spec/ |
D | EncodedKeySpec2Test.java | 63 private boolean isEqual(Key key1, Key key2) { in isEqual() argument 64 if (key1 instanceof DSAPublicKey && key2 instanceof DSAPublicKey) { in isEqual() 65 DSAPublicKey dsa1 = ((DSAPublicKey) key1); in isEqual() 72 } else if (key1 instanceof DSAPrivateKey in isEqual() 74 DSAPrivateKey dsa1 = ((DSAPrivateKey) key1); in isEqual()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
D | DESedeKeySpecTest.java | 121 byte[] key1 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, in testGetKey() 124 ks = new DESedeKeySpec(key1, 2); in testGetKey() 131 + "as specified in a constructor.", key1, res); in testGetKey() 133 System.arraycopy(key1, 2, exp, 0, 24); in testGetKey()
|
D | DESKeySpecTest.java | 177 byte[] key1 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0}; in testGetKey() 179 ks = new DESKeySpec(key1, 2); in testGetKey() 186 + "as specified in a constructor.", key1, res); in testGetKey() 188 System.arraycopy(key1, 2, exp, 0, 8); in testGetKey()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | OldCollationKeyTest.java | 31 CollationKey key1 = collator.getCollationKey("abc"); in test_toByteArray() local 32 byte[] bytes = key1.toByteArray(); in test_toByteArray()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | SelectorTest.java | 333 SelectionKey key1 = ssc.register(selector, SelectionKey.OP_ACCEPT); 335 assertTrue(keys.contains(key1)); 341 assertTrue(keys.contains(key1)); 344 key1.cancel(); 345 assertTrue(keys.contains(key1)); 348 assertFalse(keys.contains(key1)); 414 SelectionKey key1 = sc.register(selector, SelectionKey.OP_WRITE); 415 assertEquals(key, key1); 421 assertEquals(key, key1);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | SortedMapTestBase.java | 207 int key1 = rnd.nextInt(N / 2) + N / 2; in testSubMap() local 209 ref.comparator().compare(key0, key1) > 0) { in testSubMap() 212 key0 = key1; in testSubMap() 213 key1 = tmp; in testSubMap() 215 checkSubMap(ref.subMap(key0, key1), map.subMap(key0, key1)); in testSubMap()
|
D | IdentityHashMapTest.java | 1063 String key1 = "key1"; in test_replaceAll() local 1067 map.put(key1, "1"); in test_replaceAll() 1073 assertEquals("key11", map.get(key1)); in test_replaceAll()
|
D | TreeMapTest.java | 277 Integer key1 = 1; in test_getLjava_lang_Object() local 279 assertNull(tm.put(key1, o)); in test_getLjava_lang_Object() 283 assertSame(tm.get(key1), tm.get(key2)); in test_getLjava_lang_Object() 284 assertSame(o, tm.put(key1, o2)); in test_getLjava_lang_Object() 285 assertSame(o2, tm.get(key1)); in test_getLjava_lang_Object()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | ExemptionMechanismTest.java | 139 Key key1 = new MyExemptionMechanismSpi().new tmpKey("Proba", in testIsCryptoAllowed() local 141 assertFalse(em.isCryptoAllowed(key1)); in testIsCryptoAllowed() 143 em.init(key1); in testIsCryptoAllowed()
|