/libcore/ojluni/src/test/java/util/Map/ |
D | InPlaceOpsCollisions.java | 46 public void testPutIfAbsent(String desc, Supplier<Map<Object, Object>> ms, Object val) { in testPutIfAbsent() argument 56 String.format("putIfAbsent: (%s[%d]) retVal", desc, i)); in testPutIfAbsent() 58 String.format("putIfAbsent: get(%s[%d])", desc, i)); in testPutIfAbsent() 60 String.format("putIfAbsent: containsValue(%s[%d])", desc, i)); in testPutIfAbsent() 63 String.format("putIfAbsent: (%s[%d]) retVal", desc, i)); in testPutIfAbsent() 65 String.format("putIfAbsent: get(%s[%d])", desc, i)); in testPutIfAbsent() 67 String.format("putIfAbsent: !containsValue(%s[%d])", desc, i)); in testPutIfAbsent() 70 String.format("insertion: containsKey(%s[%d])", desc, i)); in testPutIfAbsent() 77 public void testRemoveMapping(String desc, Supplier<Map<Object, Object>> ms, Object val) { in testRemoveMapping() argument 87 String.format("removeMapping: retVal(%s[%d])", desc, i)); in testRemoveMapping() [all …]
|
D | MapWithCollisionsProviders.java | 184 private static <T> Object[] createCase(String desc, Map<T, T> m, T[] keys, T val) { in createCase() argument 185 return new Object[]{desc, createMap(m, keys), val}; in createCase() 188 private static <T> Collection<Object[]> makeMapsMoreTypes(String desc, in makeMapsMoreTypes() argument 192 cases.add(createCase("Hashtable with " + desc, in makeMapsMoreTypes() 194 cases.add(createCase("IdentityHashMap with " + desc, in makeMapsMoreTypes() 196 cases.add(createCase("TreeMap with " + desc, in makeMapsMoreTypes() 198 cases.add(createCase("WeakHashMap with " + desc, in makeMapsMoreTypes() 200 cases.add(createCase("ConcurrentHashMap with " + desc, in makeMapsMoreTypes() 202 cases.add(createCase("ConcurrentSkipListMap with " + desc, in makeMapsMoreTypes() 207 private static <T> Collection<Object[]> makeMapsHashMap(String desc, in makeMapsHashMap() argument [all …]
|
D | Collisions.java | 46 public void testIntegerIteration(String desc, Supplier<Map<IntKey, IntKey>> ms, IntKey val) { in testIntegerIteration() argument 77 public void testStringIteration(String desc, Supplier<Map<String, String>> ms, String val) { in testStringIteration() argument 113 public void testRemove(String desc, Supplier<Map<Object, Object>> ms, Object val) { in testRemove() argument 120 String.format("remove: %s[%d]%s", desc, i, each)); in testRemove() 128 public void testKeysIteratorRemove(String desc, Supplier<Map<Object, Object>> ms, Object val) { in testKeysIteratorRemove() argument 143 … public void testValuesIteratorRemove(String desc, Supplier<Map<Object, Object>> ms, Object val) { in testValuesIteratorRemove() argument 158 … public void testEntriesIteratorRemove(String desc, Supplier<Map<Object, Object>> ms, Object val) { in testEntriesIteratorRemove() argument
|
/libcore/ojluni/src/main/java/java/lang/constant/ |
D | DynamicConstantDesc.java | 289 private static ConstantDesc canonicalizeNull(DynamicConstantDesc<?> desc) { in canonicalizeNull() argument 290 if (desc.bootstrapArgs.length != 0) in canonicalizeNull() 291 return desc; in canonicalizeNull() 295 private static ConstantDesc canonicalizeEnum(DynamicConstantDesc<?> desc) { in canonicalizeEnum() argument 296 if (desc.bootstrapArgs.length != 0 in canonicalizeEnum() 297 || desc.constantName == null) in canonicalizeEnum() 298 return desc; in canonicalizeEnum() 299 return EnumDesc.of(desc.constantType, desc.constantName); in canonicalizeEnum() 302 private static ConstantDesc canonicalizePrimitiveClass(DynamicConstantDesc<?> desc) { in canonicalizePrimitiveClass() argument 303 if (desc.bootstrapArgs.length != 0 in canonicalizePrimitiveClass() [all …]
|
D | DirectMethodHandleDescImpl.java | 187 DirectMethodHandleDescImpl desc = (DirectMethodHandleDescImpl) o; 188 return kind == desc.kind && 189 Objects.equals(owner, desc.owner) && 190 Objects.equals(name, desc.name) && 191 Objects.equals(invocationType, desc.invocationType);
|
/libcore/tools/openjdk-analyzer/src/libcore/tools/analyzer/openjdk/ |
D | SignaturesCollector.java | 126 node.fields.forEach(fieldNode -> addClass(Type.getType(fieldNode.desc).getInternalName())); in addClassesFromClassNode() 130 addClass(Type.getReturnType(method.desc).getInternalName()); in addClassesFromClassNode() 131 Arrays.stream(Type.getArgumentTypes(method.desc)) in addClassesFromClassNode() 238 public boolean containsField(String owner, String name, String desc) { in containsField() argument 239 return contains(new Field(owner, name, desc)); in containsField() 242 public boolean containsMethod(String owner, String name, String desc) { in containsMethod() argument 243 return contains(new Method(owner, name, desc)); in containsMethod() 268 private final String desc; field in SignaturesCollector.Field 270 private Field(String owner, String name, String desc) { in Field() argument 273 this.desc = desc; in Field() [all …]
|
D | Main.java | 204 return node.name + node.desc; in toApiSignature() 229 .filter(a -> "Ldalvik/annotation/codegen/CovariantReturnType;".equals(a.desc)) in getImpliedMethods() 243 String desc = Type.getMethodDescriptor(returnType, in getImpliedMethods() 244 Type.getArgumentTypes(node.desc)); in getImpliedMethods() 247 return new MethodNode(node.access, node.name, desc, null, in getImpliedMethods() 272 .anyMatch(anno ->"Ljava/lang/Deprecated;".equals(anno.desc)); in isDeprecated() 278 .anyMatch(anno ->"Ljava/lang/Deprecated;".equals(anno.desc)); in isDeprecated() 311 w.println(" " + node.name + ": " + node.desc); in printFields() 428 printedMethod += method.name + method.desc; in printInsn()
|
D | DependencyAnalyzer.java | 145 methods.sort(Comparator.comparing(n -> n.name + n.desc)); in analyze() 321 … .noneMatch(m -> i.getName().equals(m.name) && i.getDesc().equals(m.desc)); in test() 326 … .noneMatch(f -> i.getName().equals(f.name) && i.getDesc().equals(f.desc)); in test() 631 String desc = member.getDesc().replace(newPrefix, oldPrefix); in test() local 635 if (mSignatures.containsMethod(owner, name, desc)) { in test() 639 if (mSignatures.containsField(owner, name, desc)) { in test()
|
/libcore/ojluni/src/main/java/java/io/ |
D | ObjectOutputStream.java | 687 protected void writeClassDescriptor(ObjectStreamClass desc) in writeClassDescriptor() argument 690 desc.writeNonProxy(this); in writeClassDescriptor() 1157 ObjectStreamClass desc; in writeObject0() local 1179 desc = ObjectStreamClass.lookup(cl, true); in writeObject0() 1180 if (desc.hasWriteReplaceMethod() && in writeObject0() 1181 (obj = desc.invokeWriteReplace(obj)) != null && in writeObject0() 1185 desc = ObjectStreamClass.lookup(cl, true); in writeObject0() 1193 desc = ObjectStreamClass.lookup(cl, true); in writeObject0() 1230 writeArray(obj, desc, unshared); in writeObject0() 1232 writeEnum((Enum<?>) obj, desc, unshared); in writeObject0() local [all …]
|
D | SerialCallbackContext.java | 41 private final ObjectStreamClass desc; field in SerialCallbackContext 48 public SerialCallbackContext(Object obj, ObjectStreamClass desc) { in SerialCallbackContext() argument 50 this.desc = desc; in SerialCallbackContext() 60 return desc; in getDesc()
|
D | ObjectInputStream.java | 680 protected Class<?> resolveClass(ObjectStreamClass desc) in resolveClass() argument 683 String name = desc.getName(); in resolveClass() 889 ObjectStreamClass desc = new ObjectStreamClass(); in readClassDescriptor() local 890 desc.readNonProxy(this); in readClassDescriptor() 891 return desc; in readClassDescriptor() 1589 ObjectStreamClass desc = readClassDesc(false); in readClass() local 1590 Class<?> cl = desc.forClass(); in readClass() 1593 ClassNotFoundException resolveEx = desc.getResolveException(); in readClass() 1656 ObjectStreamClass desc = new ObjectStreamClass(); in readProxyDesc() local 1657 int descHandle = handles.assign(unshared ? unsharedMarker : desc); in readProxyDesc() [all …]
|
D | SyncFailedException.java | 46 public SyncFailedException(String desc) { in SyncFailedException() argument 47 super(desc); in SyncFailedException()
|
D | ObjectStreamClass.java | 1226 final ObjectStreamClass desc; field in ObjectStreamClass.ClassDataSlot 1230 ClassDataSlot(ObjectStreamClass desc, boolean hasData) { in ClassDataSlot() argument 1231 this.desc = desc; in ClassDataSlot() 1425 ObjectStreamClass desc = new ObjectStreamClass(); in getVariantFor() local 1427 desc.initProxy(cl, null, superDesc); in getVariantFor() 1429 desc.initNonProxy(this, cl, null, superDesc); in getVariantFor() 1431 return desc; in getVariantFor() 2698 static MethodHandle deserializationCtr(ObjectStreamClass desc) { in deserializationCtr() argument 2700 MethodHandle mh = desc.deserializationCtr; in deserializationCtr() 2702 mh = desc.deserializationCtrs.get(desc.getFields(false)); in deserializationCtr() [all …]
|
/libcore/ojluni/src/main/java/java/util/regex/ |
D | PatternSyntaxException.java | 41 private final String desc; field in PatternSyntaxException 58 public PatternSyntaxException(String desc, String regex, int index) { in PatternSyntaxException() argument 59 this.desc = desc; in PatternSyntaxException() 80 return desc; in getDescription() 101 sb.append(desc); in getMessage()
|
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/ |
D | VarHandleBaseTest.java | 300 final String desc; field in VarHandleBaseTest.VarHandleToMethodHandle 304 VarHandleToMethodHandle(String desc, boolean isExact, in VarHandleToMethodHandle() argument 306 this.desc = desc; in VarHandleToMethodHandle() 317 return desc; in toString() 393 final String desc; field in VarHandleBaseTest.AccessTestCase 397 AccessTestCase(String desc, AccessTestAction<T> ata, boolean loop) { in AccessTestCase() argument 398 this.desc = desc; in AccessTestCase() 415 return desc; in toString() 422 VarHandleAccessTestCase(String desc, VarHandle vh, AccessTestAction<VarHandle> ata) { in VarHandleAccessTestCase() argument 423 this(desc, vh, ata, true); in VarHandleAccessTestCase() [all …]
|
D | VarHandleBaseByteArrayTest.java | 183 …VarHandleSourceAccessTestCase(String desc, ByteArrayViewSource<?> bs, VarHandleSource vhs, AccessT… in VarHandleSourceAccessTestCase() argument 184 this(desc, bs, vhs, ata, true); in VarHandleSourceAccessTestCase() 187 …VarHandleSourceAccessTestCase(String desc, ByteArrayViewSource<?> bs, VarHandleSource vhs, AccessT… in VarHandleSourceAccessTestCase() argument 188 super(vhs + " -> " + bs + " " + desc, ata, loop); in VarHandleSourceAccessTestCase()
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | AnnotationFactory.java | 60 AnnotationMember[] desc = cache.get(annotationType); in getElementsDescription() local 61 if (desc != null) { in getElementsDescription() 62 return desc; in getElementsDescription() 69 AnnotationMember[] desc = new AnnotationMember[declaredMethods.length]; in getElementsDescription() local 75 desc[i] = new AnnotationMember(name, element.getDefaultValue(), type, element); in getElementsDescription() 77 desc[i] = new AnnotationMember(name, t, type, element); in getElementsDescription() 81 cache.put(annotationType, desc); in getElementsDescription() 83 return desc; in getElementsDescription()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | DeflaterTest.java | 963 private void helper_end_test(Deflater defl, String desc) { in helper_end_test() argument 971 fail("defl.getTotalOut() can still be used after " + desc in helper_end_test() 972 + " is called in test_" + desc); in helper_end_test() 978 fail("defl.getTotalIn() can still be used after " + desc in helper_end_test() 979 + " is called in test_" + desc); in helper_end_test() 985 fail("defl.getAdler() can still be used after " + desc in helper_end_test() 986 + " is called in test_" + desc); in helper_end_test() 993 fail("defl.setDictionary() can still be used after " + desc in helper_end_test() 994 + " is called in test_" + desc); in helper_end_test() 1000 fail("defl.getTotalIn() can still be used after " + desc in helper_end_test() [all …]
|
/libcore/ojluni/src/test/java/lang/constant/ |
D | DynamicConstantDescTest.java | 130 ConstantDesc desc = DynamicConstantDesc.ofCanonical(boostrapMethodForEnumConstant(), in call() local 133 if (desc == null) { in call() 136 if (!MyEnum.A.equals(desc.resolveConstantDesc(MethodHandles.lookup()))) { in call() 137 … throw new Exception("DynamicConstantDesc.ofCanonical returned unexpected result " + desc); in call() 139 return desc; in call()
|
/libcore/ojluni/annotations/hiddenapi/java/io/ |
D | ObjectOutputStream.java | 95 protected void writeClassDescriptor(java.io.ObjectStreamClass desc) throws java.io.IOException { in writeClassDescriptor() argument 203 private void writeClassDesc(java.io.ObjectStreamClass desc, boolean unshared) in writeClassDesc() argument 212 private void writeProxyDesc(java.io.ObjectStreamClass desc, boolean unshared) in writeProxyDesc() argument 217 private void writeNonProxyDesc(java.io.ObjectStreamClass desc, boolean unshared) in writeNonProxyDesc() argument 227 java.lang.Object array, java.io.ObjectStreamClass desc, boolean unshared) in writeArray() argument 232 private void writeEnum(java.lang.Enum<?> en, java.io.ObjectStreamClass desc, boolean unshared) in writeEnum() argument 238 java.lang.Object obj, java.io.ObjectStreamClass desc, boolean unshared) in writeOrdinaryObject() argument 247 private void writeSerialData(java.lang.Object obj, java.io.ObjectStreamClass desc) in writeSerialData() argument 252 private void defaultWriteFields(java.lang.Object obj, java.io.ObjectStreamClass desc) in defaultWriteFields() argument 639 PutFieldImpl(java.io.ObjectStreamClass desc) { in PutFieldImpl() argument [all …]
|
D | ObjectInputStream.java | 72 protected java.lang.Class<?> resolveClass(java.io.ObjectStreamClass desc) in resolveClass() argument 245 private void readExternalData(java.io.Externalizable obj, java.io.ObjectStreamClass desc) in readExternalData() argument 250 private void readSerialData(java.lang.Object obj, java.io.ObjectStreamClass desc) in readSerialData() argument 259 private void defaultReadFields(java.lang.Object obj, java.io.ObjectStreamClass desc) in defaultReadFields() argument 621 GetFieldImpl(java.io.ObjectStreamClass desc) { in GetFieldImpl() argument 678 private final java.io.ObjectStreamClass desc; field in ObjectInputStream.GetFieldImpl 681 desc = null;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | ObjectInputStream2Test.java | 178 protected Class resolveClass(ObjectStreamClass desc) in resolveClass() argument 180 if (desc.getName().endsWith("ObjectInputStream2Test$TestClass1")) { in resolveClass() 183 return super.resolveClass(desc); in resolveClass()
|
D | ObjectStreamFieldTest.java | 372 protected void writeClassDescriptor(ObjectStreamClass desc) in writeClassDescriptor() argument 374 descs = desc; in writeClassDescriptor()
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ |
D | ObjectInputStreamTest.java | 1023 public void writeClassDescriptor(ObjectStreamClass desc) in writeClassDescriptor() argument 1037 public void writeClassDescriptor(ObjectStreamClass desc) in writeClassDescriptor() argument 1039 super.writeClassDescriptor(desc); in writeClassDescriptor() 1066 protected Class resolveClass(ObjectStreamClass desc) in resolveClass() argument 1068 if (desc.getName().equals( in resolveClass() 1072 return super.resolveClass(desc); in resolveClass() 1143 ObjectStreamClass desc = ObjectStreamClass in test_readClassDescriptor() local 1145 oos.writeClassDescriptor(desc); in test_readClassDescriptor() 1154 assertEquals(desc.getClass(), obj.getClass()); in test_readClassDescriptor()
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | MethodType.java | 1160 String desc = methodDescriptor; 1161 if (desc == null) { 1162 desc = BytecodeDescriptor.unparse(this); 1163 methodDescriptor = desc; 1165 return desc;
|