| 88 | } |
| 89 | |
| 90 | void *GetFieldMethod(JNIEnv *env, jobject field) { |
| 91 | if (ArtMethodEnv.api_level >= __ANDROID_API_Q__) { |
| 92 | jclass fieldClass = env->FindClass("java/lang/reflect/Field"); |
| 93 | jmethodID getArtField = env->GetMethodID(fieldClass, "getArtField", "()J"); |
| 94 | return reinterpret_cast<void *>(env->CallLongMethod(field, getArtField)); |
| 95 | } else { |
| 96 | return env->FromReflectedField(field); |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | __attribute__((section (".mytext"))) JNICALL void native_offset |
| 101 | (JNIEnv *env, jclass obj) { |
nothing calls this directly
no outgoing calls
no test coverage detected