/libcore/luni/src/main/native/ |
D | libcore_io_Memory.cpp | 48 template <typename T> static T cast(jlong address) { in cast() function 109 return *cast<const jbyte*>(srcAddress); in Memory_peekByte() 113 env->SetByteArrayRegion(dst, dstOffset, byteCount, cast<const jbyte*>(srcAddress)); in Memory_peekByteArray() 129 const SWAP_TYPE* src = cast<const SWAP_TYPE*>(srcAddress); \ 132 const SCALAR_TYPE* src = cast<const SCALAR_TYPE*>(srcAddress); \ 162 *cast<jbyte*>(dstAddress) = value; in Memory_pokeByte() 166 env->GetByteArrayRegion(src, offset, length, cast<jbyte*>(dstAddress)); in Memory_pokeByteArray() 183 SWAP_FN(cast<SWAP_TYPE*>(dstAddress), src, count); /*NOLINT*/ \ 185 …env->Get ## JNI_NAME ## ArrayRegion(src, srcOffset, count, cast<SCALAR_TYPE*>(dstAddress)); /*NOLI… 214 return get_unaligned<jshort>(cast<const jshort*>(srcAddress)); in Memory_peekShortNative() [all …]
|
/libcore/ojluni/src/main/java/java/lang/reflect/ |
D | AnnotatedElement.java | 358 return annotationClass.cast(annotation); in getDeclaredAnnotation()
|
/libcore/ojluni/src/main/java/sun/invoke/util/ |
D | Wrapper.java | 438 public <T> T cast(Object x, Class<T> type) { in cast() method in Wrapper 459 type.cast(x); in convert() 466 return wtype.cast(x); in convert() 589 arrayType().cast(a); // throw NPE or CCE if bad type in copyArrayUnboxing() 598 arrayType().cast(a); // throw NPE or CCE if bad type in copyArrayBoxing()
|
/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 | 1026 Object o = PublicTestClass.class.cast(new ExtendTestClass()); in test_cast() 1030 ExtendTestClass.class.cast(new PublicTestClass()); in test_cast() 1037 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/src/main/java/java/lang/invoke/ |
D | MethodHandle.java | 1417 x = type.leadingReferenceParameter().cast(x); // throw CCE if needed in bindTo()
|
D | MethodHandles.java | 143 return expected.cast(directTarget.getMemberInternal()); in reflectAs() 2819 ptypes[pos + i].cast(values[i]); in insertArguments()
|
D | Transformers.java | 747 Array.set(arityArray, i, elementType.cast(o)); in referenceArray() 2272 writer.putNextReference(to.cast(boxed), to); in box() 2302 writer.putNextReference(to.cast(ref), to); in explicitCast()
|
/libcore/ojluni/src/main/java/java/util/ |
D | ServiceLoader.java | 388 S p = service.cast(c.newInstance()); in nextService()
|
/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/annotations/sdk/nullability/java/lang/ |
D | Class.annotated.java | 157 @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 | 350 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/main/java/java/lang/ |
D | Class.java | 2475 public T cast(Object obj) { in cast() method in Class
|
/libcore/api/ |
D | current.txt | 2828 method @Nullable public T cast(@Nullable Object);
|