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 …]
/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/ojluni/src/test/java/util/List/
DListFactories.java338 List<Integer> sub = orig.subList(0, 3); in copyOfSubList() local
339 List<Integer> copy = List.copyOf(sub); in copyOfSubList()
341 assertNotSame(sub, copy); in copyOfSubList()
347 List<Integer> sub = orig.subList(0, 3).subList(0, 2); in copyOfSubSubList() local
348 List<Integer> copy = List.copyOf(sub); in copyOfSubSubList()
350 assertNotSame(sub, copy); in copyOfSubSubList()
/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/
DJavaLibrary.bp24 // libcore has some sub-directories that follow a common structure:
957 // dist and which end up in one of the sub-directories of prebuilts/sdk.