/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() 373 static jobject ToReflectedMethod(JNIEnv* env, jclass, jmethodID mid, jboolean) { in ToReflectedMethod() argument 374 CHECK_NON_NULL_ARGUMENT(mid); in ToReflectedMethod() 376 ArtMethod* m = soa.DecodeMethod(mid); in ToReflectedMethod() 470 jmethodID mid = env->GetMethodID(exception_class.get(), "printStackTrace", "()V"); in ExceptionDescribe() local 471 if (mid == nullptr) { in ExceptionDescribe() 475 env->CallVoidMethod(exception.get(), mid); in ExceptionDescribe() 598 static jobject NewObject(JNIEnv* env, jclass java_class, jmethodID mid, ...) { in NewObject() argument [all …]
|
D | check_jni.cc | 314 jmethodID mid, Primitive::Type type, InvokeType invoke) in CheckMethodAndSig() argument 316 ArtMethod* m = CheckMethodID(soa, mid); in CheckMethodAndSig() 384 bool CheckStaticMethod(ScopedObjectAccess& soa, jclass java_class, jmethodID mid) in CheckStaticMethod() argument 386 ArtMethod* m = CheckMethodID(soa, mid); in CheckStaticMethod() 405 bool CheckVirtualMethod(ScopedObjectAccess& soa, jobject java_object, jmethodID mid) in CheckVirtualMethod() argument 407 ArtMethod* m = CheckMethodID(soa, mid); in CheckVirtualMethod() 576 bool CheckConstructor(ScopedObjectAccess& soa, jmethodID mid) in CheckConstructor() argument 578 ArtMethod* method = soa.DecodeMethod(mid); in CheckConstructor() 584 AbortF("expected a constructor but %s: %p", PrettyMethod(method).c_str(), mid); in CheckConstructor() 964 jmethodID mid = arg.m; in TracePossibleHeapValue() local [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 | art_method.cc | 110 const DexFile::MethodId& mid = dex_file->GetMethodId(GetDexMethodIndex()); in HasSameNameAndSignature() local 113 return mid.name_idx_ == mid2.name_idx_ && mid.proto_idx_ == mid2.proto_idx_; in HasSameNameAndSignature() 117 if (!DexFileStringEquals(dex_file, mid.name_idx_, dex_file2, mid2.name_idx_)) { in HasSameNameAndSignature() 120 return dex_file->GetMethodSignature(mid) == dex_file2->GetMethodSignature(mid2); in HasSameNameAndSignature() 166 const DexFile::MethodId& mid = dexfile->GetMethodId(dex_method_idx); in FindDexMethodIndexInOtherDexFile() local 168 DCHECK_STREQ(dexfile->GetMethodName(mid), other_dexfile.GetMethodName(name_and_sig_mid)); in FindDexMethodIndexInOtherDexFile() 169 DCHECK_EQ(dexfile->GetMethodSignature(mid), other_dexfile.GetMethodSignature(name_and_sig_mid)); in FindDexMethodIndexInOtherDexFile() 173 const char* mid_declaring_class_descriptor = dexfile->StringByTypeIdx(mid.class_idx_); in FindDexMethodIndexInOtherDexFile()
|
D | reflection.cc | 442 JValue InvokeWithVarArgs(const ScopedObjectAccessAlreadyRunnable& soa, jobject obj, jmethodID mid, in InvokeWithVarArgs() argument 453 ArtMethod* method = soa.DecodeMethod(mid); in InvokeWithVarArgs() 457 method = soa.DecodeMethod(WellKnownClasses::StringInitToStringFactoryMethodID(mid)); in InvokeWithVarArgs() 473 JValue InvokeWithJValues(const ScopedObjectAccessAlreadyRunnable& soa, jobject obj, jmethodID mid, in InvokeWithJValues() argument 483 ArtMethod* method = soa.DecodeMethod(mid); in InvokeWithJValues() 487 method = soa.DecodeMethod(WellKnownClasses::StringInitToStringFactoryMethodID(mid)); in InvokeWithJValues() 504 jobject obj, jmethodID mid, jvalue* args) { in InvokeVirtualOrInterfaceWithJValues() argument 514 ArtMethod* method = FindVirtualMethod(receiver, soa.DecodeMethod(mid)); in InvokeVirtualOrInterfaceWithJValues() 518 method = soa.DecodeMethod(WellKnownClasses::StringInitToStringFactoryMethodID(mid)); in InvokeVirtualOrInterfaceWithJValues() 535 jobject obj, jmethodID mid, va_list args) { in InvokeVirtualOrInterfaceWithVarArgs() argument [all …]
|
D | dex_file.cc | 560 int32_t mid = (hi + lo) / 2; in FindFieldId() local 561 const DexFile::FieldId& field = GetFieldId(mid); in FindFieldId() 563 lo = mid + 1; in FindFieldId() 565 hi = mid - 1; in FindFieldId() 568 lo = mid + 1; in FindFieldId() 570 hi = mid - 1; in FindFieldId() 573 lo = mid + 1; in FindFieldId() 575 hi = mid - 1; in FindFieldId() 595 int32_t mid = (hi + lo) / 2; in FindMethodId() local 596 const DexFile::MethodId& method = GetMethodId(mid); in FindMethodId() [all …]
|
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_REQUIRES(Locks::mutator_lock_) { in DecodeMethod() argument 164 return reinterpret_cast<ArtMethod*>(mid); in DecodeMethod()
|
D | well_known_classes.cc | 197 jmethodID mid = is_static ? env->GetStaticMethodID(c, name, signature) : in CacheMethod() local 199 if (mid == nullptr) { in CacheMethod() 209 return mid; in CacheMethod()
|
D | jni_internal_test.cc | 294 jmethodID mid = env_->GetMethodID(c, "<init>", "()V"); in GetFromReflectedMethod_ToReflectedMethodBadArgumentTest() local 295 ASSERT_NE(mid, nullptr); in GetFromReflectedMethod_ToReflectedMethodBadArgumentTest() 298 jobject method = env_->ToReflectedMethod(nullptr, mid, JNI_FALSE); in GetFromReflectedMethod_ToReflectedMethodBadArgumentTest() 310 mid = env_->FromReflectedMethod(method); in GetFromReflectedMethod_ToReflectedMethodBadArgumentTest() 311 ASSERT_EQ(mid, nullptr); in GetFromReflectedMethod_ToReflectedMethodBadArgumentTest() 898 jmethodID mid = env_->GetMethodID(c, "<init>", "()V"); in TEST_F() local 899 ASSERT_NE(mid, nullptr); in TEST_F() 901 jobject method = env_->ToReflectedMethod(c, mid, JNI_FALSE); in TEST_F() 905 env_->DeleteLocalRef(env_->ToReflectedMethod(c, mid, JNI_FALSE)); in TEST_F() 919 mid = env_->GetMethodID(c, "length", "()I"); in TEST_F() [all …]
|
D | thread.cc | 453 jmethodID mid = WellKnownClasses::java_lang_Thread_run; in CreateCallback() local 455 InvokeVirtualOrInterfaceWithJValues(soa, ref.get(), mid, nullptr); in CreateCallback()
|
D | debugger.cc | 1348 static ArtMethod* FromMethodId(JDWP::MethodId mid) in FromMethodId() argument 1350 return reinterpret_cast<ArtMethod*>(static_cast<uintptr_t>(mid)); in FromMethodId()
|
/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/mterp/ |
D | mterp.cc | 98 int mid = (lo + hi) >> 1; in MterpDoSparseSwitch() local 100 int32_t foundVal = keys[mid]; in MterpDoSparseSwitch() 102 hi = mid - 1; in MterpDoSparseSwitch() 104 lo = mid + 1; in MterpDoSparseSwitch() 106 return entries[mid]; in MterpDoSparseSwitch()
|
/art/runtime/interpreter/ |
D | interpreter_common.h | 892 int mid = (lo + hi) / 2; in DoSparseSwitch() local 893 int32_t foundVal = keys[mid]; in DoSparseSwitch() 895 hi = mid - 1; in DoSparseSwitch() 897 lo = mid + 1; in DoSparseSwitch() 899 return entries[mid]; in DoSparseSwitch()
|
D | interpreter_common.cc | 582 jmethodID mid = soa.EncodeMethod(called_method); in DoCallCommon() local 583 called_method = soa.DecodeMethod(WellKnownClasses::StringInitToStringFactoryMethodID(mid)); in DoCallCommon()
|
/art/runtime/native/ |
D | java_lang_Class.cc | 199 auto mid = (low + high) / 2; in FindFieldByName() local 200 ArtField& field = fields->At(mid); in FindFieldByName() 205 low = mid + 1; in FindFieldByName() 207 high = mid; in FindFieldByName()
|
/art/runtime/mirror/ |
D | class.cc | 639 size_t mid = (low + high) / 2; in FindFieldByNameAndType() local 640 ArtField& field = fields->At(mid); in FindFieldByNameAndType() 648 low = mid + 1; in FindFieldByNameAndType() 650 high = mid; in FindFieldByNameAndType()
|
/art/tools/dmtracedump/ |
D | tracedump.cc | 975 int32_t mid = (hi + lo) / 2; in lookupMethod() local 977 int64_t id = pKeys->methods[mid].methodId; in lookupMethod() 979 return &pKeys->methods[mid]; in lookupMethod() 981 lo = mid + 1; in lookupMethod() 983 hi = mid - 1; in lookupMethod()
|