Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DIdentity2Test.java205 IdentitySubclass sub = new IdentitySubclass("test", scope); in test_getScope() local
206 IdentityScope returnedScope = sub.getScope(); in test_getScope()
214 IdentitySubclass sub = new IdentitySubclass("test", in test_getPublicKey() local
216 sub.setPublicKey(getPubKey()); in test_getPublicKey()
217 PublicKey returnedPubKey = sub.getPublicKey(); in test_getPublicKey()
226 IdentitySubclass sub = new IdentitySubclass(name, in test_getName() local
228 assertEquals("Wrong Name returned", name, sub.getName()); in test_getName()
236 IdentitySubclass sub = new IdentitySubclass("test", in test_getInfo() local
238 sub.setInfo(info); in test_getInfo()
239 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.java1062 ArrayList sub = new ArrayList(); in test_indexOfSubList2() local
1063 sub.add(new Integer(1)); in test_indexOfSubList2()
1064 sub.add(new Integer(2)); in test_indexOfSubList2()
1065 sub.add(new Integer(3)); in test_indexOfSubList2()
1072 src.addAll(sub); in test_indexOfSubList2()
1073 src.addAll(sub); in test_indexOfSubList2()
1074 src.addAll(sub); in test_indexOfSubList2()
1081 sub = new ArrayList(src.subList(3, 11)); in test_indexOfSubList2()
1084 .indexOfSubList(src, sub)); in test_indexOfSubList2()
1086 sub = new ArrayList(src.subList(6, 11)); in test_indexOfSubList2()
[all …]
DTreeMapTest.java350 SortedMap<Integer, Integer> intMap, sub; in test_headMapLjava_lang_Object() local
356 sub = intMap.headMap(-1); in test_headMapLjava_lang_Object()
357 assertEquals("size should be zero", sub.size(), 0); in test_headMapLjava_lang_Object()
358 assertTrue("submap should be empty", sub.isEmpty()); in test_headMapLjava_lang_Object()
360 sub.firstKey(); in test_headMapLjava_lang_Object()
374 sub.lastKey(); in test_headMapLjava_lang_Object()
384 sub = intMap.headMap(-1); in test_headMapLjava_lang_Object()
385 assertEquals("size should be zero", sub.size(), 0); in test_headMapLjava_lang_Object()
386 assertTrue("submap should be empty", sub.isEmpty()); in test_headMapLjava_lang_Object()
388 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/luni/src/main/java/java/io/
DStringWriter.java166 String sub = str.substring(offset, offset + count); in write() local
167 buf.append(sub); in write()
/libcore/luni/src/main/java/java/net/
DURLClassLoader.java404 URLHandler sub = subHandlers.get(url); in getSubHandler() local
405 if (sub != null) { in getSubHandler()
406 return sub; in getSubHandler()
410 sub = createURLJarHandler(url); in getSubHandler()
412 sub = createURLSubJarHandler(url); in getSubHandler()
414 sub = createURLHandler(url); in getSubHandler()
416 if (sub != null) { in getSubHandler()
417 subHandlers.put(url, sub); in getSubHandler()
419 return sub; in getSubHandler()
/libcore/luni/src/main/java/java/text/
DMessageFormat.java859 String sub = strings[i]; in parse() local
860 if (!string.startsWith(sub, offset)) { in parse()
864 offset += sub.length(); in parse()
892 String sub = strings[maxOffset + 1]; in parse() local
893 if (!string.startsWith(sub, offset)) { in parse()
897 offset += sub.length(); in parse()
/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()