/libcore/luni/src/main/native/ |
D | libcore_io_Memory.cpp | 48 template <typename T> static T cast(jlong address) { in cast() function 105 return *cast<const jbyte*>(srcAddress); in Memory_peekByte() 109 *cast<jbyte*>(dstAddress) = value; in Memory_pokeByte() 113 env->GetByteArrayRegion(src, offset, length, cast<jbyte*>(dstAddress)); in Memory_pokeByteArray() 130 SWAP_FN(cast<SWAP_TYPE*>(dstAddress), src, count); /*NOLINT*/ \ 132 …env->Get ## JNI_NAME ## ArrayRegion(src, srcOffset, count, cast<SCALAR_TYPE*>(dstAddress)); /*NOLI… 161 return get_unaligned<jshort>(cast<const jshort*>(srcAddress)); in Memory_peekShortNative() 165 put_unaligned<jshort>(cast<jshort*>(dstAddress), value); in Memory_pokeShortNative() 169 return get_unaligned<jint>(cast<const jint*>(srcAddress)); in Memory_peekIntNative() 173 put_unaligned<jint>(cast<jint*>(dstAddress), value); in Memory_pokeIntNative() [all …]
|
/libcore/ojluni/src/main/java/sun/invoke/util/ |
D | Wrapper.java | 494 public <T> T cast(Object x, Class<T> type) { in cast() method in Wrapper 515 type.cast(x); in convert() 522 return wtype.cast(x); in convert() 639 arrayType().cast(a); // throw NPE or CCE if bad type in copyArrayUnboxing() 648 arrayType().cast(a); // throw NPE or CCE if bad type in copyArrayBoxing()
|
/libcore/ojluni/src/main/java/java/lang/reflect/ |
D | AnnotatedElement.java | 374 return annotationClass.cast(annotation); in getDeclaredAnnotation()
|
D | RecordComponent.java | 225 return annotationClass.cast(declaredAnnotations().get(annotationClass)); in getAnnotation()
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | MethodHandleNatives.java | 541 return Eclass.cast(th); in initCauseFrom()
|
D | MethodHandle.java | 1526 x = type.leadingReferenceParameter().cast(x); // throw CCE if needed in bindTo()
|
D | Transformers.java | 818 Array.set(arityArray, i, elementType.cast(o)); in referenceArray() 2923 writer.putNextReference(to.cast(boxed), to); in box() 2956 writer.putNextReference(to.cast(ref), to); in explicitCast()
|
D | MethodHandles.java | 197 return expected.cast(directTarget.getMemberInternal()); in reflectAs() 3181 ptypes[pos + i].cast(values[i]); in insertArguments()
|
/libcore/ojluni/src/test/java/lang/invoke/ |
D | VarargsArrayTest.java | 201 arg = elemType.cast(arg); // just to make sure in makeTestArray() 210 arg = elem.cast(arg, elemType); in makeTestArray()
|
D | InvokeGenericTest.java | 144 return dst.cast(value); in castToWrapper()
|
D | MethodHandlesTest.java | 182 return dst.cast(value); in castToWrapper()
|
/libcore/ojluni/src/test/java/net/UnixDomainSocketAddress/ |
D | UnixDomainSocketAddressSerializationTest.java | 102 return cl.cast(o); in deserialize()
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | GenericExceptionsTest.java | 96 return expectedType.cast(array[0]); in getOnlyValue()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | ClassCastExceptionTest.java | 29 String.class.cast(o); in testClassCast()
|
D | OldClassTest.java | 1030 Object o = PublicTestClass.class.cast(new ExtendTestClass()); in test_cast() 1034 ExtendTestClass.class.cast(new PublicTestClass()); in test_cast() 1041 ExtendTestClass.class.cast(new String()); in test_cast()
|
/libcore/ojluni/src/main/java/java/nio/file/attribute/ |
D | AclEntry.java | 165 type.cast(e); in checkSet()
|
/libcore/ojluni/annotations/mmodule/java/lang/ |
D | Class.annotated.java | 166 public T cast(java.lang.Object obj) { throw new RuntimeException("Stub!"); } in cast() method in Class
|
/libcore/ojluni/src/test/java/lang/invoke/common/test/java/lang/invoke/lib/ |
D | Helper.java | 296 return dst.cast(value); in castToWrapper()
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | Class.annotated.java | 158 @libcore.util.Nullable public T cast(@libcore.util.Nullable java.lang.Object obj) { throw new Runti… in cast() method in Class
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Class.java | 348 public T cast(java.lang.Object obj) { in cast() method in Class
|
/libcore/ojluni/src/main/java/sun/util/logging/ |
D | PlatformLogger.java | 227 DefaultLoggerProxy lp = DefaultLoggerProxy.class.cast(this.loggerProxy); in redirectToJavaLoggerProxy()
|
/libcore/ojluni/src/test/java/nio/Buffer/ |
D | BulkPutBuffer.java | 287 return Boolean.class.cast(equals.invoke(dst, src)); in equals()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Class.java | 4191 public T cast(Object obj) { in cast() method in Class
|
/libcore/api/ |
D | current.txt | 3076 method @Nullable public T cast(@Nullable Object);
|