Home
last modified time | relevance | path

Searched refs:jbyte (Results 1 – 25 of 27) sorted by relevance

12

/art/openjdkjvmti/
Dti_ddms.cc49 const jbyte* data_in, in HandleChunk()
52 /*out*/jbyte** data_out) { in HandleChunk()
66 art::ArrayRef<const jbyte> data_arr(data_in, length_in); in HandleChunk()
78 JvmtiUniquePtr<jbyte[]> ret = AllocJvmtiUniquePtr<jbyte[]>(env, out_data.size(), &error); in HandleChunk()
Dti_ddms.h45 const jbyte* data_in,
48 /*out*/ jbyte** data_out);
Devents.h102 const jbyte* data);
/art/test/115-native-bridge/
Dnativebridge.cc145 static jbyte trampoline_Java_Main_byteMethod(JNIEnv* env, jclass klass, jbyte b1, jbyte b2, in trampoline_Java_Main_byteMethod()
146 jbyte b3, jbyte b4, jbyte b5, jbyte b6, in trampoline_Java_Main_byteMethod()
147 jbyte b7, jbyte b8, jbyte b9, jbyte b10) { in trampoline_Java_Main_byteMethod()
148 using FnPtr_t = jbyte(*)(JNIEnv*, jclass, jbyte, jbyte, jbyte, jbyte, jbyte, jbyte, jbyte, jbyte, in trampoline_Java_Main_byteMethod()
149 jbyte, jbyte); in trampoline_Java_Main_byteMethod()
/art/runtime/native/
Dlibcore_util_CharsetUtils.cc44 const jbyte* src = &bytes[offset]; in CharsetUtils_asciiBytesToChars()
79 return static_cast<jbyte>(dchecked_integral_cast<uint8_t>((c > maxValidChar) ? '?' : c)); in charsToBytes()
116 auto count_length = [&utf8_length]([[maybe_unused]] jbyte c) ALWAYS_INLINE { ++utf8_length; }; in CharsetUtils_toUtf8Bytes()
132 auto store_data = [&data](jbyte c) ALWAYS_INLINE { *data++ = c; }; in CharsetUtils_toUtf8Bytes()
Djdk_internal_misc_Unsafe.cc296 [[maybe_unused]] JNIEnv* env, jobject, jlong address, jlong bytes, jbyte value) { in Unsafe_setMemory()
300 static jbyte Unsafe_getByteJ([[maybe_unused]] JNIEnv* env, jobject, jlong address) { in Unsafe_getByteJ()
301 return *reinterpret_cast<jbyte*>(address); in Unsafe_getByteJ()
304 static void Unsafe_putByteJB([[maybe_unused]] JNIEnv* env, jobject, jlong address, jbyte value) { in Unsafe_putByteJB()
305 *reinterpret_cast<jbyte*>(address) = value; in Unsafe_putByteJB()
396 static jbyte Unsafe_getByte(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getByte()
402 static void Unsafe_putByte(JNIEnv* env, jobject, jobject javaObj, jlong offset, jbyte newValue) { in Unsafe_putByte()
Dsun_misc_Unsafe.cc250 [[maybe_unused]] JNIEnv* env, jobject, jlong address, jlong bytes, jbyte value) { in Unsafe_setMemory()
254 static jbyte Unsafe_getByteJ([[maybe_unused]] JNIEnv* env, jobject, jlong address) { in Unsafe_getByteJ()
255 return *reinterpret_cast<jbyte*>(address); in Unsafe_getByteJ()
258 static void Unsafe_putByteJB([[maybe_unused]] JNIEnv* env, jobject, jlong address, jbyte value) { in Unsafe_putByteJB()
259 *reinterpret_cast<jbyte*>(address) = value; in Unsafe_putByteJB()
436 static jbyte Unsafe_getByte(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getByte()
442 static void Unsafe_putByte(JNIEnv* env, jobject, jobject javaObj, jlong offset, jbyte newValue) { in Unsafe_putByte()
Dorg_apache_harmony_dalvik_ddmc_DdmVmInternal.cc202 env->SetByteArrayRegion(result, 0, bytes.size(), reinterpret_cast<const jbyte*>(&bytes[0])); in DdmVmInternal_getThreadStats()
Dlibcore_io_Memory.cc98 env->SetByteArrayRegion(dst, dstOffset, byteCount, cast<const jbyte*>(srcAddress)); in Memory_peekByteArray()
Djava_lang_StringFactory.cc199 jbyte* d = byte_array->GetData(); in StringFactory_newStringFromUtf8Bytes()
Djava_lang_reflect_Field.cc241 static jbyte Field_getByte(JNIEnv* env, jobject javaField, jobject javaObj) { in Field_getByte()
451 static void Field_setByte(JNIEnv* env, jobject javaField, jobject javaObj, jbyte b) { in Field_setByte()
Ddalvik_system_DexFile.cc296 jbyte* destination = reinterpret_cast<jbyte*>(dex_data.Begin()); in DexFile_openInMemoryDexFilesNative()
/art/test/1940-ddms-ext/
Dddm_ext.cc34 const jbyte* data_in,
37 jbyte** data_out);
41 DdmCallbackData(jint type, jint size, jbyte* data) : type_(type), data_(data, data + size) {} in DdmCallbackData()
43 std::vector<jbyte> data_;
92 jbyte* out_data; in Java_art_Test1940_processChunk()
159 static void JNICALL PublishCB(jvmtiEnv* jvmti, jint type, jint size, jbyte* bytes) { in PublishCB()
/art/test/004-JniTest/
Djni_test.cc230 jbyte byte_returns[kByteReturnSize] = { 0, 1, 2, 127, -1, -2, -128 };
232 extern "C" jbyte JNICALL Java_Main_byteMethod(JNIEnv*, jclass, jbyte b1, jbyte b2, in Java_Main_byteMethod()
233 jbyte b3, jbyte b4, jbyte b5, jbyte b6, in Java_Main_byteMethod()
234 jbyte b7, jbyte b8, jbyte b9, jbyte b10) { in Java_Main_byteMethod()
247 CHECK_LT(b1, static_cast<jbyte>(kByteReturnSize)); in Java_Main_byteMethod()
634 …env->SetByteArrayRegion(byte_array, 0, byte_array_length, reinterpret_cast<const jbyte*>(test_arra… in Java_Main_testNewStringObject()
/art/dt_fd_forward/
Ddt_fd_forward.cc538 jbyte* ReadRemaining() { in ReadRemaining()
542 jbyte* out = nullptr; in ReadRemaining()
548 out = reinterpret_cast<jbyte*>(transport_->Alloc(rem)); in ReadRemaining()
550 jbyte* ret = HandleResult(res, static_cast<jbyte*>(nullptr), [&] { return out; }); in ReadRemaining()
558 jbyte ReadByte() { in ReadByte()
562 jbyte out; in ReadByte()
564 return HandleResult(res, static_cast<jbyte>(-1), [&] { return NetworkToHost(out); }); in ReadByte()
634 void PushByte(jbyte data) { in PushByte()
/art/test/1901-get-bytecodes/
Dbytecodes.cc57 jbyte* bytes = env->GetByteArrayElements(out, /* is_copy */ nullptr); in Java_art_Test1901_getBytecodes()
/art/test/ti-agent/
Dscoped_primitive_array.h90 INSTANTIATE_SCOPED_PRIMITIVE_ARRAY_RO(jbyte, Byte);
140 INSTANTIATE_SCOPED_PRIMITIVE_ARRAY_RW(jbyte, Byte);
Dredefinition_helper.cc318 reinterpret_cast<jbyte*>(trans.class_bytes.data())); in Java_art_Redefinition_addCommonTransformationResult()
325 reinterpret_cast<jbyte*>(trans.dex_bytes.data())); in Java_art_Redefinition_addCommonTransformationResult()
/art/runtime/verifier/
Dreg_type_cache-inl.h91 const ConstantType& result = FromCat1Const(std::numeric_limits<jbyte>::min(), false); in ByteConstant()
116 const ConstantType& result = FromCat1Const(std::numeric_limits<jbyte>::max(), false); in PosByteConstant()
/art/runtime/jni/
Djni_internal.cc667 static jclass DefineClass(JNIEnv*, const char*, jobject, const jbyte*, jsize) { in DefineClass() argument
1066 static jbyte CallByteMethod(JNIEnv* env, jobject obj, jmethodID mid, ...) { in CallByteMethod()
1077 static jbyte CallByteMethodV(JNIEnv* env, jobject obj, jmethodID mid, va_list args) { in CallByteMethodV()
1084 static jbyte CallByteMethodA(JNIEnv* env, jobject obj, jmethodID mid, const jvalue* args) { in CallByteMethodA()
1322 static jbyte CallNonvirtualByteMethod(JNIEnv* env, jobject obj, jclass, jmethodID mid, ...) { in CallNonvirtualByteMethod()
1333 static jbyte CallNonvirtualByteMethodV(JNIEnv* env, jobject obj, jclass, jmethodID mid, in CallNonvirtualByteMethodV()
1341 static jbyte CallNonvirtualByteMethodA(JNIEnv* env, jobject obj, jclass, jmethodID mid, in CallNonvirtualByteMethodA()
1628 static jbyte GetByteField(JNIEnv* env, jobject obj, jfieldID fid) { in GetByteField()
1660 static jbyte GetStaticByteField(JNIEnv* env, jclass, jfieldID fid) { in GetStaticByteField()
1692 static void SetByteField(JNIEnv* env, jobject obj, jfieldID fid, jbyte v) { in SetByteField()
[all …]
Djni_internal_test.cc406 reinterpret_cast<jbyte*>(elements), 0); in ReleasePrimitiveArrayElementsOfWrongType()
447 jbyte* elements = env_->GetByteArrayElements(array, &is_copy); in ReleasePrimitiveArrayElementsOfWrongType()
492 reinterpret_cast<jbyte*>(elements)); in GetPrimitiveArrayRegionElementsOfWrongType()
550 reinterpret_cast<jbyte*>(elements)); in SetPrimitiveArrayRegionElementsOfWrongType()
856 DoCall(Byte, B, jbyte, 128); in TEST_F()
857 DoCall(Byte, B, jbyte, -129); in TEST_F()
896 DoGoodCall(Byte, B, jbyte, 128); in TEST_F()
897 DoGoodCall(Byte, B, jbyte, -129); in TEST_F()
1231 GetByteArrayElements, ReleaseByteArrayElements, jbyte, "[B"); in TEST_F()
Dcheck_jni.cc171 jbyte B;
1278 if (b < std::numeric_limits<jbyte>::min() || in CheckByte()
1279 b > std::numeric_limits<jbyte>::max()) { in CheckByte()
1884 static jclass DefineClass(JNIEnv* env, const char* name, jobject loader, const jbyte* buf, in DefineClass()
2320 FIELD_ACCESSORS(jbyte, Byte, Primitive::kPrimByte, B, I) in FIELD_ACCESSORS()
2434 CALL(jbyte, Byte, Primitive::kPrimByte, B) in CALL()
2687 PRIMITIVE_ARRAY_FUNCTIONS(jbyte, Byte, Primitive::kPrimByte) in PRIMITIVE_ARRAY_FUNCTIONS()
3684 reinterpret_cast<jbyte*>(elems), mode); in ReleasePrimitiveArrayElements()
3737 reinterpret_cast<jbyte*>(buf)); in GetPrimitiveArrayRegion()
3788 reinterpret_cast<const jbyte*>(buf)); in SetPrimitiveArrayRegion()
/art/runtime/
Ddebugger.h88 const ArrayRef<const jbyte>& data,
Ddebugger.cc187 const ArrayRef<const jbyte>& data, in DdmHandleChunk()
1089 env->SetByteArrayRegion(result, 0, bytes.size(), reinterpret_cast<const jbyte*>(&bytes[0])); in GetRecentAllocations()
/art/adbconnection/
Dadbconnection.cc906 art::ArrayRef<const jbyte>(reinterpret_cast<const jbyte*>(ddm_data), in HandleDataWithoutAgent()

12