Home
last modified time | relevance | path

Searched refs:cast (Results 1 – 17 of 17) sorted by relevance

/libcore/luni/src/main/native/
Dlibcore_io_Memory.cpp48 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/
DAnnotatedElement.java358 return annotationClass.cast(annotation); in getDeclaredAnnotation()
/libcore/ojluni/src/main/java/sun/invoke/util/
DWrapper.java438 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/
DGenericExceptionsTest.java96 return expectedType.cast(array[0]); in getOnlyValue()
/libcore/luni/src/test/java/libcore/java/lang/
DClassCastExceptionTest.java29 String.class.cast(o); in testClassCast()
DOldClassTest.java1026 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/
DAclEntry.java165 type.cast(e); in checkSet()
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandle.java1417 x = type.leadingReferenceParameter().cast(x); // throw CCE if needed in bindTo()
DMethodHandles.java143 return expected.cast(directTarget.getMemberInternal()); in reflectAs()
2819 ptypes[pos + i].cast(values[i]); in insertArguments()
DTransformers.java747 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/
DServiceLoader.java388 S p = service.cast(c.newInstance()); in nextService()
/libcore/ojluni/annotations/mmodule/java/lang/
DClass.annotated.java166 public T cast(java.lang.Object obj) { throw new RuntimeException("Stub!"); } in cast() method in Class
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DClass.annotated.java157 @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/
DClass.java350 public T cast(java.lang.Object obj) { in cast() method in Class
/libcore/ojluni/src/main/java/sun/util/logging/
DPlatformLogger.java227 DefaultLoggerProxy lp = DefaultLoggerProxy.class.cast(this.loggerProxy); in redirectToJavaLoggerProxy()
/libcore/ojluni/src/main/java/java/lang/
DClass.java2475 public T cast(Object obj) { in cast() method in Class
/libcore/api/
Dcurrent.txt2828 method @Nullable public T cast(@Nullable Object);