/libcore/ojluni/src/test/java/lang/invoke/VarHandles/ |
D | VarHandleTestByteArrayAsShort.java | 135 for (ByteArrayViewSource<?> bav : bavss) { in accessTestCaseProvider() 137 if (vh.matches(bav)) { in accessTestCaseProvider() 138 if (bav instanceof ByteArraySource) { in accessTestCaseProvider() 139 ByteArraySource bas = (ByteArraySource) bav; in accessTestCaseProvider() 142 "read write", bav, vh, h -> testArrayReadWrite(bas, h), in accessTestCaseProvider() 145 "null array", bav, vh, h -> testArrayNPE(bas, h), in accessTestCaseProvider() 148 "unsupported", bav, vh, h -> testArrayUnsupported(bas, h), in accessTestCaseProvider() 151 … "index out of bounds", bav, vh, h -> testArrayIndexOutOfBounds(bas, h), in accessTestCaseProvider() 154 … "misaligned access", bav, vh, h -> testArrayMisalignedAccess(bas, h), in accessTestCaseProvider() 158 ByteBufferSource bbs = (ByteBufferSource) bav; in accessTestCaseProvider() [all …]
|
D | VarHandleTestByteArrayAsChar.java | 135 for (ByteArrayViewSource<?> bav : bavss) { in accessTestCaseProvider() 137 if (vh.matches(bav)) { in accessTestCaseProvider() 138 if (bav instanceof ByteArraySource) { in accessTestCaseProvider() 139 ByteArraySource bas = (ByteArraySource) bav; in accessTestCaseProvider() 142 "read write", bav, vh, h -> testArrayReadWrite(bas, h), in accessTestCaseProvider() 145 "null array", bav, vh, h -> testArrayNPE(bas, h), in accessTestCaseProvider() 148 "unsupported", bav, vh, h -> testArrayUnsupported(bas, h), in accessTestCaseProvider() 151 … "index out of bounds", bav, vh, h -> testArrayIndexOutOfBounds(bas, h), in accessTestCaseProvider() 154 … "misaligned access", bav, vh, h -> testArrayMisalignedAccess(bas, h), in accessTestCaseProvider() 158 ByteBufferSource bbs = (ByteBufferSource) bav; in accessTestCaseProvider() [all …]
|
D | VarHandleTestByteArrayAsFloat.java | 135 for (ByteArrayViewSource<?> bav : bavss) { in accessTestCaseProvider() 137 if (vh.matches(bav)) { in accessTestCaseProvider() 138 if (bav instanceof ByteArraySource) { in accessTestCaseProvider() 139 ByteArraySource bas = (ByteArraySource) bav; in accessTestCaseProvider() 142 "read write", bav, vh, h -> testArrayReadWrite(bas, h), in accessTestCaseProvider() 145 "null array", bav, vh, h -> testArrayNPE(bas, h), in accessTestCaseProvider() 148 "unsupported", bav, vh, h -> testArrayUnsupported(bas, h), in accessTestCaseProvider() 151 … "index out of bounds", bav, vh, h -> testArrayIndexOutOfBounds(bas, h), in accessTestCaseProvider() 154 … "misaligned access", bav, vh, h -> testArrayMisalignedAccess(bas, h), in accessTestCaseProvider() 158 ByteBufferSource bbs = (ByteBufferSource) bav; in accessTestCaseProvider() [all …]
|
D | VarHandleTestByteArrayAsDouble.java | 135 for (ByteArrayViewSource<?> bav : bavss) { in accessTestCaseProvider() 137 if (vh.matches(bav)) { in accessTestCaseProvider() 138 if (bav instanceof ByteArraySource) { in accessTestCaseProvider() 139 ByteArraySource bas = (ByteArraySource) bav; in accessTestCaseProvider() 142 "read write", bav, vh, h -> testArrayReadWrite(bas, h), in accessTestCaseProvider() 145 "null array", bav, vh, h -> testArrayNPE(bas, h), in accessTestCaseProvider() 148 "unsupported", bav, vh, h -> testArrayUnsupported(bas, h), in accessTestCaseProvider() 151 … "index out of bounds", bav, vh, h -> testArrayIndexOutOfBounds(bas, h), in accessTestCaseProvider() 154 … "misaligned access", bav, vh, h -> testArrayMisalignedAccess(bas, h), in accessTestCaseProvider() 158 ByteBufferSource bbs = (ByteBufferSource) bav; in accessTestCaseProvider() [all …]
|
D | VarHandleTestByteArrayAsLong.java | 135 for (ByteArrayViewSource<?> bav : bavss) { in accessTestCaseProvider() 137 if (vh.matches(bav)) { in accessTestCaseProvider() 138 if (bav instanceof ByteArraySource) { in accessTestCaseProvider() 139 ByteArraySource bas = (ByteArraySource) bav; in accessTestCaseProvider() 142 "read write", bav, vh, h -> testArrayReadWrite(bas, h), in accessTestCaseProvider() 145 "null array", bav, vh, h -> testArrayNPE(bas, h), in accessTestCaseProvider() 148 "unsupported", bav, vh, h -> testArrayUnsupported(bas, h), in accessTestCaseProvider() 151 … "index out of bounds", bav, vh, h -> testArrayIndexOutOfBounds(bas, h), in accessTestCaseProvider() 154 … "misaligned access", bav, vh, h -> testArrayMisalignedAccess(bas, h), in accessTestCaseProvider() 158 ByteBufferSource bbs = (ByteBufferSource) bav; in accessTestCaseProvider() [all …]
|
D | VarHandleTestByteArrayAsInt.java | 135 for (ByteArrayViewSource<?> bav : bavss) { in accessTestCaseProvider() 137 if (vh.matches(bav)) { in accessTestCaseProvider() 138 if (bav instanceof ByteArraySource) { in accessTestCaseProvider() 139 ByteArraySource bas = (ByteArraySource) bav; in accessTestCaseProvider() 142 "read write", bav, vh, h -> testArrayReadWrite(bas, h), in accessTestCaseProvider() 145 "null array", bav, vh, h -> testArrayNPE(bas, h), in accessTestCaseProvider() 148 "unsupported", bav, vh, h -> testArrayUnsupported(bas, h), in accessTestCaseProvider() 151 … "index out of bounds", bav, vh, h -> testArrayIndexOutOfBounds(bas, h), in accessTestCaseProvider() 154 … "misaligned access", bav, vh, h -> testArrayMisalignedAccess(bas, h), in accessTestCaseProvider() 158 ByteBufferSource bbs = (ByteBufferSource) bav; in accessTestCaseProvider() [all …]
|
D | X-VarHandleTestByteArrayView.java.template | 167 for (ByteArrayViewSource<?> bav : bavss) { 169 if (vh.matches(bav)) { 170 if (bav instanceof ByteArraySource) { 171 ByteArraySource bas = (ByteArraySource) bav; 174 "read write", bav, vh, h -> testArrayReadWrite(bas, h), 177 "null array", bav, vh, h -> testArrayNPE(bas, h), 180 "unsupported", bav, vh, h -> testArrayUnsupported(bas, h), 183 … "index out of bounds", bav, vh, h -> testArrayIndexOutOfBounds(bas, h), 186 … "misaligned access", bav, vh, h -> testArrayMisalignedAccess(bas, h), 190 ByteBufferSource bbs = (ByteBufferSource) bav; [all …]
|
D | VarHandleBaseByteArrayTest.java | 169 boolean matches(ByteArrayViewSource<?> bav) { in matches() argument 170 return s.coordinateTypes().get(0).isAssignableFrom(bav.s.getClass()); in matches()
|