Home
last modified time | relevance | path

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

/libcore/luni/src/main/native/
Dlibcore_io_Memory.cpp45 template <typename T> static T cast(jlong address) { in cast() function
106 return *cast<const jbyte*>(srcAddress); in Memory_peekByte()
110 env->SetByteArrayRegion(dst, dstOffset, byteCount, cast<const jbyte*>(srcAddress)); in Memory_peekByteArray()
126 const SWAP_TYPE* src = cast<const SWAP_TYPE*>(srcAddress); \
129 const SCALAR_TYPE* src = cast<const SCALAR_TYPE*>(srcAddress); \
159 *cast<jbyte*>(dstAddress) = value; in Memory_pokeByte()
163 env->GetByteArrayRegion(src, offset, length, cast<jbyte*>(dstAddress)); in Memory_pokeByteArray()
180 SWAP_FN(cast<SWAP_TYPE*>(dstAddress), src, count); \
182 … env->Get ## JNI_NAME ## ArrayRegion(src, srcOffset, count, cast<SCALAR_TYPE*>(dstAddress)); \
211 return get_unaligned<jshort>(cast<const jshort*>(srcAddress)); in Memory_peekShortNative()
[all …]
/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/sun/misc/
DService.java299 return service.cast(c.newInstance()); in next()
/libcore/ojluni/src/main/java/java/util/
DServiceLoader.java376 S p = service.cast(c.newInstance()); in next()
/libcore/ojluni/src/main/java/sun/util/logging/
DPlatformLogger.java232 DefaultLoggerProxy lp = DefaultLoggerProxy.class.cast(this.loggerProxy); in redirectToJavaLoggerProxy()
/libcore/ojluni/src/main/java/java/lang/
DClass.java2306 public T cast(Object obj) { in cast() method in Class