Searched refs:cast (Results 1 – 8 of 8) sorted by relevance
/libcore/luni/src/main/native/ |
D | libcore_io_Memory.cpp | 45 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/ |
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 | 966 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/ |
D | Service.java | 299 return service.cast(c.newInstance()); in next()
|
/libcore/ojluni/src/main/java/java/util/ |
D | ServiceLoader.java | 376 S p = service.cast(c.newInstance()); in next()
|
/libcore/ojluni/src/main/java/sun/util/logging/ |
D | PlatformLogger.java | 232 DefaultLoggerProxy lp = DefaultLoggerProxy.class.cast(this.loggerProxy); in redirectToJavaLoggerProxy()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Class.java | 2306 public T cast(Object obj) { in cast() method in Class
|