/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | Identity2Test.java | 204 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 …]
|
D | IdentityScope2Test.java | 184 IdentityScopeSubclass sub = new IdentityScopeSubclass("test", in test_addIdentityLjava_security_Identity() local 188 sub.addIdentity(id); in test_addIdentityLjava_security_Identity() 192 sub.addIdentity(id2); in test_addIdentityLjava_security_Identity() 203 IdentityScopeSubclass sub = new IdentityScopeSubclass("test", in test_removeIdentityLjava_security_Identity() local 207 sub.addIdentity(id); in test_removeIdentityLjava_security_Identity() 208 sub.removeIdentity(id); in test_removeIdentityLjava_security_Identity() 210 sub.removeIdentity(id); in test_removeIdentityLjava_security_Identity() 220 IdentityScopeSubclass sub = new IdentityScopeSubclass("test", in test_identities() local 224 sub.addIdentity(id); in test_identities() 225 Enumeration<Identity> en = sub.identities(); in test_identities() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | ConcurrentModTest.java | 44 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 …]
|
D | AbstractListTest.java | 418 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 …]
|
D | CollectionsTest.java | 1069 ArrayList sub = new ArrayList(); in test_indexOfSubList2() local 1070 sub.add(Integer.valueOf(1)); in test_indexOfSubList2() 1071 sub.add(Integer.valueOf(2)); in test_indexOfSubList2() 1072 sub.add(Integer.valueOf(3)); in test_indexOfSubList2() 1079 src.addAll(sub); in test_indexOfSubList2() 1080 src.addAll(sub); in test_indexOfSubList2() 1081 src.addAll(sub); in test_indexOfSubList2() 1088 sub = new ArrayList(src.subList(3, 11)); in test_indexOfSubList2() 1091 .indexOfSubList(src, sub)); in test_indexOfSubList2() 1093 sub = new ArrayList(src.subList(6, 11)); in test_indexOfSubList2() [all …]
|
D | TreeMapTest.java | 352 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/ojluni/src/test/java/util/SequencedCollection/ |
D | Basic.java | 295 var sub = list.subList(2, 5); in applyMode() local 296 return reverseSub(mode) ? sub.reversed() : sub; in applyMode() 668 var sub = applyMode(mode, list); in testSubListGet() local 669 assertEquals(sub.getFirst(), isReversed(mode) ? "e" : "c"); in testSubListGet() 670 assertEquals(sub.getLast(), isReversed(mode) ? "c" : "e"); in testSubListGet() 676 var sub = applyMode(mode, list); in testSubListAddFirst() local 677 var refSub = new ArrayList<>(sub); in testSubListAddFirst() 680 sub.addFirst("x"); in testSubListAddFirst() 683 checkContents(sub, refSub); in testSubListAddFirst() 690 var sub = applyMode(mode, list); in testSubListAddLast() local [all …]
|
/libcore/support/src/test/java/tests/support/ |
D | Support_StringWriter.java | 173 String sub = str.substring(offset, offset + count); in write() local 175 buf.append(sub); in write()
|
/libcore/tools/docs/crypto/ |
D | update_crypto_support.py | 113 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/ |
D | ListFactories.java | 338 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/ojluni/src/test/java/lang/ref/ |
D | BasicTest.java | 56 Object sub = new Sub(); field in BasicTest 92 rp2 = new PhantomReference(s.sub, q); in test()
|
/libcore/ojluni/src/main/java/java/util/ |
D | ArrayDeque.java | 255 static final int sub(int i, int j, int modulus) { in sub() method in ArrayDeque 618 final int front = sub(i, h = head, capacity); in delete() 620 final int back = sub(t = tail, i, capacity) - 1; in delete() 656 return sub(tail, head, elements.length); in size() 733 if (es[cursor] == null || sub(tail, cursor, es.length) != r) in forEachRemaining() 774 if (es[cursor] == null || sub(cursor, head, es.length) + 1 != r) in forEachRemaining() 838 return ((n = sub(getFence(), i = cursor, es.length) >> 1) <= 0) in trySplit() 876 return sub(getFence(), cursor, elements.length); in estimateSize() 970 final long[] deathRow = nBits(sub(end, beg, capacity)); in bulkRemoveModified()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldTreeMapTest.java | 426 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/lang/invoke/ |
D | JavaDocExamplesTest.java | 105 static int sub(int x, int y) { return x - y; } in sub() method in JavaDocExamplesTest 219 MethodHandle sub = SUB_2;// ... {int x, int y => x-y} ...; in testPermuteArguments() local 220 assert(sub.type().equals(intfn2)); in testPermuteArguments() 221 MethodHandle sub1 = permuteArguments(sub, intfn2, 0, 1); in testPermuteArguments() 222 MethodHandle rsub = permuteArguments(sub, intfn2, 1, 0); in testPermuteArguments()
|
/libcore/ojluni/src/test/java/util/HexFormat/ |
D | HexFormatTest.java | 461 byte[] sub = Arrays.copyOfRange(expected, low, high); in testFormatHexRangeAppendable() 463 System.out.println("sub : " + Arrays.toString(sub)); in testFormatHexRangeAppendable() 466 assertEquals(actual, sub, "format/parse cycle failed, mismatch: " + mismatch); in testFormatHexRangeAppendable()
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | LambdaTestHelpers.java | 434 private static <T> List<T> sub(List<T> l, int index) { 443 for (List<T> perm : perm(sub(l, i))) {
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | LambdaTestHelpers.java | 447 private static <T> List<T> sub(List<T> l, int index) { 456 for (List<T> perm : perm(sub(l, i))) {
|
/libcore/tools/expected_upstream/ |
D | ojluni_merge_to_main.py | 546 modified = REGEX_LICENSE_AND_IMPORT.sub(replacement, src, count=1)
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | CopyOnWriteArrayList.java | 2077 var sub = base.subList(size - toIndex, size - fromIndex); in subList() local 2078 return new Reversed<>(sub, lock); in subList()
|
/libcore/ |
D | JavaLibrary.bp | 24 // libcore has some sub-directories that follow a common structure: 1124 // dist and which end up in one of the sub-directories of prebuilts/sdk.
|