Home
last modified time | relevance | path

Searched refs:sub (Results 1 – 12 of 12) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DIdentity2Test.java204 IdentitySubclass sub = new IdentitySubclass("test", scope); in test_getScope() local
205 IdentityScope returnedScope = sub.getScope(); in test_getScope()
213 IdentitySubclass sub = new IdentitySubclass("test", in test_getPublicKey() local
215 sub.setPublicKey(getPubKey()); in test_getPublicKey()
216 PublicKey returnedPubKey = sub.getPublicKey(); in test_getPublicKey()
225 IdentitySubclass sub = new IdentitySubclass(name, in test_getName() local
227 assertEquals("Wrong Name returned", name, sub.getName()); in test_getName()
235 IdentitySubclass sub = new IdentitySubclass("test", in test_getInfo() local
237 sub.setInfo(info); in test_getInfo()
238 assertEquals("Wrong Info returned", info, sub.getInfo()); in test_getInfo()
[all …]
DIdentityScope2Test.java183 IdentityScopeSubclass sub = new IdentityScopeSubclass("test", in test_addIdentityLjava_security_Identity() local
187 sub.addIdentity(id); in test_addIdentityLjava_security_Identity()
191 sub.addIdentity(id2); in test_addIdentityLjava_security_Identity()
202 IdentityScopeSubclass sub = new IdentityScopeSubclass("test", in test_removeIdentityLjava_security_Identity() local
206 sub.addIdentity(id); in test_removeIdentityLjava_security_Identity()
207 sub.removeIdentity(id); in test_removeIdentityLjava_security_Identity()
209 sub.removeIdentity(id); in test_removeIdentityLjava_security_Identity()
219 IdentityScopeSubclass sub = new IdentityScopeSubclass("test", in test_identities() local
223 sub.addIdentity(id); in test_identities()
224 Enumeration<Identity> en = sub.identities(); in test_identities()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DConcurrentModTest.java44 List sub = al.subList(1, 3); in testGet() local
45 assertEquals(2, sub.size()); in testGet()
47 assertTrue(((Double) sub.get(1)).doubleValue() <= 3.0); in testGet()
48 assertTrue(((Double) sub.get(1)).doubleValue() > 2.0); in testGet()
54 sub.get(1); in testGet()
88 List sub = al.subList(1, 3); in testSet() local
89 assertEquals(2, sub.size()); in testSet()
91 assertTrue(((Double) sub.get(1)).doubleValue() <= 3.0); in testSet()
92 assertTrue(((Double) sub.get(1)).doubleValue() > 2.0); in testSet()
98 sub.set(1, two); in testSet()
[all …]
DAbstractListTest.java418 List<Integer> sub = holder.subList(0, holder.size()); in test_subListII2() local
421 sub.size(); in test_subListII2()
426 sub.add(12); in test_subListII2()
431 sub.add(0, 11); in test_subListII2()
436 sub.clear(); in test_subListII2()
441 sub.contains(11); in test_subListII2()
446 sub.get(9); in test_subListII2()
451 sub.indexOf(10); in test_subListII2()
456 sub.isEmpty(); in test_subListII2()
461 sub.iterator(); in test_subListII2()
[all …]
DCollectionsTest.java1064 ArrayList sub = new ArrayList(); in test_indexOfSubList2() local
1065 sub.add(new Integer(1)); in test_indexOfSubList2()
1066 sub.add(new Integer(2)); in test_indexOfSubList2()
1067 sub.add(new Integer(3)); in test_indexOfSubList2()
1074 src.addAll(sub); in test_indexOfSubList2()
1075 src.addAll(sub); in test_indexOfSubList2()
1076 src.addAll(sub); in test_indexOfSubList2()
1083 sub = new ArrayList(src.subList(3, 11)); in test_indexOfSubList2()
1086 .indexOfSubList(src, sub)); in test_indexOfSubList2()
1088 sub = new ArrayList(src.subList(6, 11)); in test_indexOfSubList2()
[all …]
DTreeMapTest.java352 SortedMap<Integer, Integer> intMap, sub; in test_headMapLjava_lang_Object() local
358 sub = intMap.headMap(-1); in test_headMapLjava_lang_Object()
359 assertEquals("size should be zero", sub.size(), 0); in test_headMapLjava_lang_Object()
360 assertTrue("submap should be empty", sub.isEmpty()); in test_headMapLjava_lang_Object()
362 sub.firstKey(); in test_headMapLjava_lang_Object()
376 sub.lastKey(); in test_headMapLjava_lang_Object()
386 sub = intMap.headMap(-1); in test_headMapLjava_lang_Object()
387 assertEquals("size should be zero", sub.size(), 0); in test_headMapLjava_lang_Object()
388 assertTrue("submap should be empty", sub.isEmpty()); in test_headMapLjava_lang_Object()
390 sub.firstKey(); in test_headMapLjava_lang_Object()
[all …]
/libcore/support/src/test/java/tests/support/
DSupport_StringWriter.java173 String sub = str.substring(offset, offset + count); in write() local
175 buf.append(sub); in write()
/libcore/tools/docs/crypto/
Dupdate_crypto_support.py113 name = re.sub('WITH', 'with', name, flags=re.I)
114 name = re.sub('DESEDE', 'DESede', name, flags=re.I)
115 name = re.sub('HMAC', 'Hmac', name, flags=re.I)
/libcore/luni/src/test/java/libcore/java/util/
DOldTreeMapTest.java426 SortedMap<String, String> sub = map.subMap("1", "3"); in test_subMapLjava_lang_ObjectLjava_lang_Object() local
427 assertEquals("2", sub.lastKey()); in test_subMapLjava_lang_ObjectLjava_lang_Object()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DLambdaTestHelpers.java435 private static <T> List<T> sub(List<T> l, int index) {
444 for (List<T> perm : perm(sub(l, i))) {
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DLambdaTestHelpers.java434 private static <T> List<T> sub(List<T> l, int index) {
443 for (List<T> perm : perm(sub(l, i))) {
/libcore/ojluni/src/main/java/sun/misc/
DFDBigInt.java317 sub( FDBigInt other ){ in sub() method in FDBigInt