/art/runtime/ |
D | jni_internal.cc | 288 jmethodID mid = env->GetMethodID(exception_class, "<init>", signature); in ThrowNewException() local 289 if (mid == nullptr) { in ThrowNewException() 297 env, reinterpret_cast<jthrowable>(env->NewObjectA(exception_class, mid, args))); in ThrowNewException() 618 static jobject ToReflectedMethod(JNIEnv* env, jclass, jmethodID mid, jboolean) { in ToReflectedMethod() argument 619 CHECK_NON_NULL_ARGUMENT(mid); in ToReflectedMethod() 621 mirror::ArtMethod* m = soa.DecodeMethod(mid); in ToReflectedMethod() 743 jmethodID mid = env->GetMethodID(exception_class.get(), "printStackTrace", "()V"); in ExceptionDescribe() local 744 if (mid == nullptr) { in ExceptionDescribe() 748 env->CallVoidMethod(exception.get(), mid); in ExceptionDescribe() 885 static jobject NewObject(JNIEnv* env, jclass java_class, jmethodID mid, ...) { in NewObject() argument [all …]
|
D | method_helper.cc | 72 const DexFile::MethodId& mid = dexfile->GetMethodId(method->GetDexMethodIndex()); in FindDexMethodIndexInOtherDexFile() local 73 const char* mid_declaring_class_descriptor = dexfile->StringByTypeIdx(mid.class_idx_); in FindDexMethodIndexInOtherDexFile() 80 const char* mid_name = dexfile->GetMethodName(mid); in FindDexMethodIndexInOtherDexFile() 86 dexfile->GetMethodSignature(mid).ToString(), &other_return_type_idx, in FindDexMethodIndexInOtherDexFile() 111 const DexFile::MethodId& mid = dexfile->GetMethodId(dex_method_idx); in FindDexMethodIndexInOtherDexFile() local 113 DCHECK_STREQ(dexfile->GetMethodName(mid), other_dexfile.GetMethodName(name_and_sig_mid)); in FindDexMethodIndexInOtherDexFile() 114 DCHECK_EQ(dexfile->GetMethodSignature(mid), other_dexfile.GetMethodSignature(name_and_sig_mid)); in FindDexMethodIndexInOtherDexFile() 118 const char* mid_declaring_class_descriptor = dexfile->StringByTypeIdx(mid.class_idx_); in FindDexMethodIndexInOtherDexFile()
|
D | check_jni.cc | 281 void CheckSig(jmethodID mid, const char* expectedType, bool isStatic) in CheckSig() argument 283 mirror::ArtMethod* m = CheckMethodID(mid); in CheckSig() 329 void CheckStaticMethod(jclass java_class, jmethodID mid) in CheckStaticMethod() argument 331 mirror::ArtMethod* m = CheckMethodID(mid); in CheckStaticMethod() 349 void CheckVirtualMethod(jobject java_object, jmethodID mid) in CheckVirtualMethod() argument 351 mirror::ArtMethod* m = CheckMethodID(mid); in CheckVirtualMethod() 490 jmethodID mid = va_arg(ap, jmethodID); in Check() local 491 mirror::ArtMethod* m = reinterpret_cast<mirror::ArtMethod*>(mid); in Check() 494 StringAppendF(&msg, " (%p)", mid); in Check() 715 mirror::ArtMethod* CheckMethodID(jmethodID mid) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in CheckMethodID() argument [all …]
|
D | method_helper-inl.h | 31 const DexFile::MethodId& mid = dex_file->GetMethodId(GetMethod()->GetDexMethodIndex()); in HasSameNameAndSignature() local 35 return mid.name_idx_ == other_mid.name_idx_ && mid.proto_idx_ == other_mid.proto_idx_; in HasSameNameAndSignature() 40 if (!DexFileStringEquals(dex_file, mid.name_idx_, other_dex_file, other_mid.name_idx_)) { in HasSameNameAndSignature() 43 return dex_file->GetMethodSignature(mid) == other_dex_file->GetMethodSignature(other_mid); in HasSameNameAndSignature()
|
D | dex_file.cc | 492 int32_t mid = (hi + lo) / 2; in FindFieldId() local 493 const DexFile::FieldId& field = GetFieldId(mid); in FindFieldId() 495 lo = mid + 1; in FindFieldId() 497 hi = mid - 1; in FindFieldId() 500 lo = mid + 1; in FindFieldId() 502 hi = mid - 1; in FindFieldId() 505 lo = mid + 1; in FindFieldId() 507 hi = mid - 1; in FindFieldId() 527 int32_t mid = (hi + lo) / 2; in FindMethodId() local 528 const DexFile::MethodId& method = GetMethodId(mid); in FindMethodId() [all …]
|
D | reflection.h | 50 JValue InvokeWithVarArgs(const ScopedObjectAccessAlreadyRunnable& soa, jobject obj, jmethodID mid, 55 jmethodID mid, jvalue* args) 59 mirror::Object* receiver, jmethodID mid, jvalue* args) 63 jobject obj, jmethodID mid, va_list args)
|
D | reflection.cc | 420 JValue InvokeWithVarArgs(const ScopedObjectAccessAlreadyRunnable& soa, jobject obj, jmethodID mid, in InvokeWithVarArgs() argument 431 mirror::ArtMethod* method = soa.DecodeMethod(mid); in InvokeWithVarArgs() 443 jmethodID mid, jvalue* args) { in InvokeWithJValues() argument 452 mirror::ArtMethod* method = soa.DecodeMethod(mid); in InvokeWithJValues() 463 mirror::Object* receiver, jmethodID mid, jvalue* args) { in InvokeVirtualOrInterfaceWithJValues() argument 472 mirror::ArtMethod* method = FindVirtualMethod(receiver, soa.DecodeMethod(mid)); in InvokeVirtualOrInterfaceWithJValues() 483 jobject obj, jmethodID mid, va_list args) { in InvokeVirtualOrInterfaceWithVarArgs() argument 493 mirror::ArtMethod* method = FindVirtualMethod(receiver, soa.DecodeMethod(mid)); in InvokeVirtualOrInterfaceWithVarArgs() 593 jmethodID mid = soa.Env()->GetMethodID(exception_class, "<init>", "(Ljava/lang/Throwable;)V"); in InvokeMethod() local 594 jobject exception_instance = soa.Env()->NewObject(exception_class, mid, th); in InvokeMethod()
|
D | native_bridge_art_interface.cc | 28 const char* GetMethodShorty(JNIEnv* env, jmethodID mid) { in GetMethodShorty() argument 31 mirror::ArtMethod* m = soa.DecodeMethod(mid); in GetMethodShorty()
|
D | well_known_classes.cc | 134 …jmethodID mid = is_static ? env->GetStaticMethodID(c, name, signature) : env->GetMethodID(c, name,… in CacheMethod() local 135 if (mid == NULL) { in CacheMethod() 138 return mid; in CacheMethod()
|
D | scoped_thread_state_change.h | 162 mirror::ArtMethod* DecodeMethod(jmethodID mid) const in DecodeMethod() argument 167 mirror::ArtMethod* method = reinterpret_cast<mirror::ArtMethod*>(mid); in DecodeMethod()
|
D | jni_internal_test.cc | 411 jmethodID mid = env_->GetMethodID(c, "<init>", "()V"); in TEST_F() local 412 ASSERT_NE(mid, nullptr); in TEST_F() 414 jobject method = env_->ToReflectedMethod(c, mid, JNI_FALSE); in TEST_F() 418 env_->DeleteLocalRef(env_->ToReflectedMethod(c, mid, JNI_FALSE)); in TEST_F() 431 mid = env_->GetMethodID(c, "length", "()I"); in TEST_F() 432 ASSERT_NE(mid, nullptr); in TEST_F() 434 method = env_->ToReflectedMethod(c, mid, JNI_FALSE); in TEST_F()
|
D | thread.cc | 178 jmethodID mid = WellKnownClasses::java_lang_Thread_run; in CreateCallback() local 179 InvokeVirtualOrInterfaceWithJValues(soa, receiver, mid, nullptr); in CreateCallback()
|
D | debugger.cc | 1449 static mirror::ArtMethod* FromMethodId(JDWP::MethodId mid) in FromMethodId() argument 1452 return reinterpret_cast<mirror::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/dalvikvm/ |
D | dalvikvm.cc | 45 jmethodID mid = env->GetMethodID(method_class, "getModifiers", "()I"); in IsMethodPublic() local 46 if (mid == NULL) { in IsMethodPublic() 50 int modifiers = env->CallIntMethod(reflected.get(), mid); in IsMethodPublic()
|
/art/test/115-native-bridge/ |
D | nativebridge.cc | 67 jmethodID mid = nullptr; in trampoline_JNI_OnLoad() local 69 mid = env->GetStaticMethodID(klass, methods[i].name, nb_method->signature); in trampoline_JNI_OnLoad() 71 mid = env->GetMethodID(klass, methods[i].name, nb_method->signature); in trampoline_JNI_OnLoad() 73 if (mid != nullptr) { in trampoline_JNI_OnLoad() 74 const char* shorty = gNativeBridgeArtCallbacks->getMethodShorty(env, mid); in trampoline_JNI_OnLoad()
|
/art/runtime/interpreter/ |
D | interpreter_common.h | 324 int mid = (lo + hi) / 2; in DoSparseSwitch() local 325 int32_t foundVal = keys[mid]; in DoSparseSwitch() 327 hi = mid - 1; in DoSparseSwitch() 329 lo = mid + 1; in DoSparseSwitch() 331 return entries[mid]; in DoSparseSwitch()
|
/art/compiler/llvm/ |
D | gbc_expander.cc | 2714 int32_t mid = min + (max - min) / 2; in GetTryItemOffset() local 2717 art::DexFile::GetTryItems(*dex_compilation_unit_->GetCodeItem(), mid); in GetTryItemOffset() 2722 max = mid - 1; in GetTryItemOffset() 2724 min = mid + 1; in GetTryItemOffset() 2726 return mid; // found in GetTryItemOffset()
|