/art/runtime/ |
D | jni_internal.cc | 269 jmethodID mid = env->GetMethodID(exception_class, "<init>", signature); in ThrowNewException() local 270 if (mid == nullptr) { in ThrowNewException() 278 env, reinterpret_cast<jthrowable>(env->NewObjectA(exception_class, mid, args))); in ThrowNewException() 378 static jobject ToReflectedMethod(JNIEnv* env, jclass, jmethodID mid, jboolean) { in ToReflectedMethod() argument 379 CHECK_NON_NULL_ARGUMENT(mid); in ToReflectedMethod() 381 ArtMethod* m = soa.DecodeMethod(mid); in ToReflectedMethod() 475 jmethodID mid = env->GetMethodID(exception_class.get(), "printStackTrace", "()V"); in ExceptionDescribe() local 476 if (mid == nullptr) { in ExceptionDescribe() 480 env->CallVoidMethod(exception.get(), mid); in ExceptionDescribe() 603 static jobject NewObject(JNIEnv* env, jclass java_class, jmethodID mid, ...) { in NewObject() argument [all …]
|
D | check_jni.cc | 201 jmethodID mid, Primitive::Type type, InvokeType invoke) in CheckMethodAndSig() argument 203 ArtMethod* m = CheckMethodID(soa, mid); in CheckMethodAndSig() 271 bool CheckStaticMethod(ScopedObjectAccess& soa, jclass java_class, jmethodID mid) in CheckStaticMethod() argument 273 ArtMethod* m = CheckMethodID(soa, mid); in CheckStaticMethod() 292 bool CheckVirtualMethod(ScopedObjectAccess& soa, jobject java_object, jmethodID mid) in CheckVirtualMethod() argument 294 ArtMethod* m = CheckMethodID(soa, mid); in CheckVirtualMethod() 463 bool CheckConstructor(ScopedObjectAccess& soa, jmethodID mid) in CheckConstructor() argument 465 ArtMethod* method = soa.DecodeMethod(mid); in CheckConstructor() 471 AbortF("expected a constructor but %s: %p", PrettyMethod(method).c_str(), mid); in CheckConstructor() 827 jmethodID mid = arg.m; in TracePossibleHeapValue() local [all …]
|
D | dex_file.cc | 544 int32_t mid = (hi + lo) / 2; in FindFieldId() local 545 const DexFile::FieldId& field = GetFieldId(mid); in FindFieldId() 547 lo = mid + 1; in FindFieldId() 549 hi = mid - 1; in FindFieldId() 552 lo = mid + 1; in FindFieldId() 554 hi = mid - 1; in FindFieldId() 557 lo = mid + 1; in FindFieldId() 559 hi = mid - 1; in FindFieldId() 579 int32_t mid = (hi + lo) / 2; in FindMethodId() local 580 const DexFile::MethodId& method = GetMethodId(mid); in FindMethodId() [all …]
|
D | reflection.h | 48 JValue InvokeWithVarArgs(const ScopedObjectAccessAlreadyRunnable& soa, jobject obj, jmethodID mid, 52 JValue InvokeWithJValues(const ScopedObjectAccessAlreadyRunnable& soa, jobject obj, jmethodID mid, 57 jobject obj, jmethodID mid, jvalue* args) 61 jobject obj, jmethodID mid, va_list args)
|
D | reflection.cc | 437 JValue InvokeWithVarArgs(const ScopedObjectAccessAlreadyRunnable& soa, jobject obj, jmethodID mid, in InvokeWithVarArgs() argument 448 ArtMethod* method = soa.DecodeMethod(mid); in InvokeWithVarArgs() 452 method = soa.DecodeMethod(WellKnownClasses::StringInitToStringFactoryMethodID(mid)); in InvokeWithVarArgs() 468 JValue InvokeWithJValues(const ScopedObjectAccessAlreadyRunnable& soa, jobject obj, jmethodID mid, in InvokeWithJValues() argument 478 ArtMethod* method = soa.DecodeMethod(mid); in InvokeWithJValues() 482 method = soa.DecodeMethod(WellKnownClasses::StringInitToStringFactoryMethodID(mid)); in InvokeWithJValues() 499 jobject obj, jmethodID mid, jvalue* args) { in InvokeVirtualOrInterfaceWithJValues() argument 509 ArtMethod* method = FindVirtualMethod(receiver, soa.DecodeMethod(mid)); in InvokeVirtualOrInterfaceWithJValues() 513 method = soa.DecodeMethod(WellKnownClasses::StringInitToStringFactoryMethodID(mid)); in InvokeVirtualOrInterfaceWithJValues() 530 jobject obj, jmethodID mid, va_list args) { in InvokeVirtualOrInterfaceWithVarArgs() argument [all …]
|
D | art_method.cc | 99 const DexFile::MethodId& mid = dex_file->GetMethodId(method1->GetDexMethodIndex()); in HasSameNameAndSignature() local 102 return mid.name_idx_ == mid2.name_idx_ && mid.proto_idx_ == mid2.proto_idx_; in HasSameNameAndSignature() 106 if (!DexFileStringEquals(dex_file, mid.name_idx_, dex_file2, mid2.name_idx_)) { in HasSameNameAndSignature() 109 return dex_file->GetMethodSignature(mid) == dex_file2->GetMethodSignature(mid2); in HasSameNameAndSignature() 155 const DexFile::MethodId& mid = dexfile->GetMethodId(dex_method_idx); in FindDexMethodIndexInOtherDexFile() local 157 DCHECK_STREQ(dexfile->GetMethodName(mid), other_dexfile.GetMethodName(name_and_sig_mid)); in FindDexMethodIndexInOtherDexFile() 158 DCHECK_EQ(dexfile->GetMethodSignature(mid), other_dexfile.GetMethodSignature(name_and_sig_mid)); in FindDexMethodIndexInOtherDexFile() 162 const char* mid_declaring_class_descriptor = dexfile->StringByTypeIdx(mid.class_idx_); in FindDexMethodIndexInOtherDexFile()
|
D | native_bridge_art_interface.cc | 33 static const char* GetMethodShorty(JNIEnv* env, jmethodID mid) { in GetMethodShorty() argument 35 ArtMethod* m = soa.DecodeMethod(mid); in GetMethodShorty()
|
D | scoped_thread_state_change.h | 161 ArtMethod* DecodeMethod(jmethodID mid) const SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in DecodeMethod() argument 164 return reinterpret_cast<ArtMethod*>(mid); in DecodeMethod()
|
D | well_known_classes.cc | 187 jmethodID mid = is_static ? env->GetStaticMethodID(c, name, signature) : in CacheMethod() local 189 if (mid == nullptr) { in CacheMethod() 199 return mid; in CacheMethod()
|
D | jni_internal_test.cc | 292 jmethodID mid = env_->GetMethodID(c, "<init>", "()V"); in GetFromReflectedMethod_ToReflectedMethodBadArgumentTest() local 293 ASSERT_NE(mid, nullptr); in GetFromReflectedMethod_ToReflectedMethodBadArgumentTest() 296 jobject method = env_->ToReflectedMethod(nullptr, mid, JNI_FALSE); in GetFromReflectedMethod_ToReflectedMethodBadArgumentTest() 308 mid = env_->FromReflectedMethod(method); in GetFromReflectedMethod_ToReflectedMethodBadArgumentTest() 309 ASSERT_EQ(mid, nullptr); in GetFromReflectedMethod_ToReflectedMethodBadArgumentTest() 843 jmethodID mid = env_->GetMethodID(c, "<init>", "()V"); in TEST_F() local 844 ASSERT_NE(mid, nullptr); in TEST_F() 846 jobject method = env_->ToReflectedMethod(c, mid, JNI_FALSE); in TEST_F() 850 env_->DeleteLocalRef(env_->ToReflectedMethod(c, mid, JNI_FALSE)); in TEST_F() 864 mid = env_->GetMethodID(c, "length", "()I"); in TEST_F() [all …]
|
D | thread.cc | 277 jmethodID mid = WellKnownClasses::java_lang_Thread_run; in CreateCallback() local 279 InvokeVirtualOrInterfaceWithJValues(soa, ref.get(), mid, nullptr); in CreateCallback()
|
D | debugger.cc | 1404 static ArtMethod* FromMethodId(JDWP::MethodId mid) in FromMethodId() argument 1406 return reinterpret_cast<ArtMethod*>(static_cast<uintptr_t>(mid)); in FromMethodId()
|
/art/runtime/verifier/ |
D | dex_gc_map.cc | 38 int mid = (hi + lo) / 2; in FindBitMap() local 39 int mid_pc = GetDexPc(mid); in FindBitMap() 41 lo = mid + 1; in FindBitMap() 43 hi = mid - 1; in FindBitMap() 45 return GetBitMap(mid); in FindBitMap()
|
/art/test/044-proxy/ |
D | native_proxy.cc | 27 jmethodID mid = env->GetMethodID(native_inf_class, "callback", "()V"); in Java_NativeProxy_nativeCall() local 28 CHECK(mid != nullptr); in Java_NativeProxy_nativeCall() 29 env->CallVoidMethod(inf_ref, mid); in Java_NativeProxy_nativeCall()
|
/art/dalvikvm/ |
D | dalvikvm.cc | 45 jmethodID mid = env->GetMethodID(method_class, "getModifiers", "()I"); in IsMethodPublic() local 46 if (mid == nullptr) { in IsMethodPublic() 50 int modifiers = env->CallIntMethod(reflected.get(), mid); in IsMethodPublic()
|
/art/test/115-native-bridge/ |
D | nativebridge.cc | 70 jmethodID mid = nullptr; in trampoline_JNI_OnLoad() local 72 mid = env->GetStaticMethodID(klass, methods[i].name, nb_method->signature); in trampoline_JNI_OnLoad() 74 mid = env->GetMethodID(klass, methods[i].name, nb_method->signature); in trampoline_JNI_OnLoad() 76 if (mid != nullptr) { in trampoline_JNI_OnLoad() 77 const char* shorty = gNativeBridgeArtCallbacks->getMethodShorty(env, mid); in trampoline_JNI_OnLoad()
|
/art/runtime/interpreter/ |
D | interpreter_common.h | 337 int mid = (lo + hi) / 2; in DoSparseSwitch() local 338 int32_t foundVal = keys[mid]; in DoSparseSwitch() 340 hi = mid - 1; in DoSparseSwitch() 342 lo = mid + 1; in DoSparseSwitch() 344 return entries[mid]; in DoSparseSwitch()
|
D | interpreter_common.cc | 487 jmethodID mid = soa.EncodeMethod(called_method); in DoCall() local 488 called_method = soa.DecodeMethod(WellKnownClasses::StringInitToStringFactoryMethodID(mid)); in DoCall()
|
/art/runtime/native/ |
D | java_lang_Class.cc | 198 auto mid = (low + high) / 2; in FindFieldByName() local 199 ArtField* const field = &fields[mid]; in FindFieldByName() 204 low = mid + 1; in FindFieldByName() 206 high = mid; in FindFieldByName()
|