Home
last modified time | relevance | path

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

/libcore/luni/src/main/native/
Dlibcore_io_Memory.cpp47 template <typename T> static T cast(jlong address) { in cast() function
108 return *cast<const jbyte*>(srcAddress); in Memory_peekByte()
112 env->SetByteArrayRegion(dst, dstOffset, byteCount, cast<const jbyte*>(srcAddress)); in Memory_peekByteArray()
128 const SWAP_TYPE* src = cast<const SWAP_TYPE*>(srcAddress); \
131 const SCALAR_TYPE* src = cast<const SCALAR_TYPE*>(srcAddress); \
161 *cast<jbyte*>(dstAddress) = value; in Memory_pokeByte()
165 env->GetByteArrayRegion(src, offset, length, cast<jbyte*>(dstAddress)); in Memory_pokeByteArray()
182 SWAP_FN(cast<SWAP_TYPE*>(dstAddress), src, count); /*NOLINT*/ \
184 …env->Get ## JNI_NAME ## ArrayRegion(src, srcOffset, count, cast<SCALAR_TYPE*>(dstAddress)); /*NOLI…
213 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.java966 Object o = PublicTestClass.class.cast(new ExtendTestClass()); in test_cast()
970 ExtendTestClass.class.cast(new PublicTestClass()); in test_cast()
977 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.java169 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.java155 @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.java2444 public T cast(Object obj) { in cast() method in Class