/art/runtime/jni/ |
D | jni_internal.cc | 583 jmethodID mid = env->GetMethodID(exception_class, "<init>", signature); in ThrowNewException() local 584 if (mid == nullptr) { in ThrowNewException() 592 env, reinterpret_cast<jthrowable>(env->NewObjectA(exception_class, mid, args))); in ThrowNewException() 689 static jobject ToReflectedMethod(JNIEnv* env, jclass, jmethodID mid, jboolean) { in ToReflectedMethod() argument 690 CHECK_NON_NULL_ARGUMENT(mid); in ToReflectedMethod() 692 ArtMethod* m = jni::DecodeArtMethod(mid); in ToReflectedMethod() 789 jmethodID mid = env->GetMethodID(exception_class.get(), "printStackTrace", "()V"); in ExceptionDescribe() local 790 if (mid == nullptr) { in ExceptionDescribe() 794 env->CallVoidMethod(exception.get(), mid); in ExceptionDescribe() 916 static jobject NewObject(JNIEnv* env, jclass java_class, jmethodID mid, ...) { in NewObject() argument [all …]
|
D | check_jni.cc | 387 jmethodID mid, Primitive::Type type, InvokeType invoke) in CheckMethodAndSig() argument 389 ArtMethod* m = CheckMethodID(mid); in CheckMethodAndSig() 459 bool CheckStaticMethod(ScopedObjectAccess& soa, jclass java_class, jmethodID mid) in CheckStaticMethod() argument 461 ArtMethod* m = CheckMethodID(mid); in CheckStaticMethod() 481 bool CheckVirtualMethod(ScopedObjectAccess& soa, jobject java_object, jmethodID mid) in CheckVirtualMethod() argument 483 ArtMethod* m = CheckMethodID(mid); in CheckVirtualMethod() 655 bool CheckConstructor(jmethodID mid) REQUIRES_SHARED(Locks::mutator_lock_) { in CheckConstructor() argument 656 ArtMethod* method = jni::DecodeArtMethod(mid); in CheckConstructor() 662 AbortF("expected a constructor but %s: %p", method->PrettyMethod().c_str(), mid); in CheckConstructor() 1050 jmethodID mid = arg.m; in TracePossibleHeapValue() local [all …]
|
D | jni_internal_test.cc | 297 jmethodID mid = env_->GetMethodID(c, "<init>", "()V"); in GetFromReflectedMethod_ToReflectedMethodBadArgumentTest() local 298 ASSERT_NE(mid, nullptr); in GetFromReflectedMethod_ToReflectedMethodBadArgumentTest() 301 jobject method = env_->ToReflectedMethod(nullptr, mid, JNI_FALSE); in GetFromReflectedMethod_ToReflectedMethodBadArgumentTest() 313 mid = env_->FromReflectedMethod(method); in GetFromReflectedMethod_ToReflectedMethodBadArgumentTest() 314 ASSERT_EQ(mid, nullptr); in GetFromReflectedMethod_ToReflectedMethodBadArgumentTest() 986 jmethodID mid = env_->GetMethodID(c, "<init>", "()V"); in TEST_F() local 987 ASSERT_NE(mid, nullptr); in TEST_F() 989 jobject method = env_->ToReflectedMethod(c, mid, JNI_FALSE); in TEST_F() 994 env_->DeleteLocalRef(env_->ToReflectedMethod(c, mid, JNI_FALSE)); in TEST_F() 1010 mid = env_->GetMethodID(c, "length", "()I"); in TEST_F() [all …]
|
/art/libdexfile/dex/ |
D | dex_file.cc | 249 int32_t mid = (hi + lo) / 2; in FindFieldId() local 250 const FieldId& field = GetFieldId(mid); in FindFieldId() 252 lo = mid + 1; in FindFieldId() 254 hi = mid - 1; in FindFieldId() 257 lo = mid + 1; in FindFieldId() 259 hi = mid - 1; in FindFieldId() 262 lo = mid + 1; in FindFieldId() 264 hi = mid - 1; in FindFieldId() 284 int32_t mid = (hi + lo) / 2; in FindMethodId() local 285 const MethodId& method = GetMethodId(mid); in FindMethodId() [all …]
|
/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/tools/ahat/src/main/com/android/ahat/heapdump/ |
D | Instances.java | 76 int mid = start + ((end - start) / 2); in get() local 77 T midInst = mInstances.get(mid); in get() 82 end = mid; in get() 84 start = mid + 1; in get()
|
D | Site.java | 419 int mid = start + ((end - start) / 2); in findSite() local 420 Site midSite = mChildren.get(mid); in findSite() 422 end = mid; in findSite() 423 } else if (mid + 1 == end) { in findSite() 427 } else if (id < mChildren.get(mid + 1).mId) { in findSite() 432 start = mid + 1; in findSite()
|
/art/test/642-fp-callees/ |
D | fp_callees.cc | 29 jmethodID mid = env->GetStaticMethodID(cls, "caller", "(IIJ)V"); in Java_Main_holdFpTemporaries() local 30 CHECK(mid != nullptr); in Java_Main_holdFpTemporaries() 44 env->CallStaticVoidMethod(cls, mid, 1, 1, 1L); in Java_Main_holdFpTemporaries()
|
/art/tools/bisection_search/ |
D | bisection_search.py | 249 mid = (start + end) // 2 250 if test(mid): 251 start = mid + 1 253 end = mid 289 lambda mid: testable.Test(all_methods[0:mid])) 299 lambda mid: testable.Test([faulty_method], 300 FilterPasses(all_passes, mid)))
|
/art/runtime/ |
D | reflection.h | 65 jmethodID mid, 71 jmethodID mid, 77 jmethodID mid, 83 jmethodID mid,
|
D | native_bridge_art_interface.cc | 35 static const char* GetMethodShorty(JNIEnv* env, jmethodID mid) { in GetMethodShorty() argument 37 ArtMethod* m = jni::DecodeArtMethod(mid); in GetMethodShorty()
|
D | art_method.cc | 184 const dex::MethodId& mid = dex_file->GetMethodId(GetDexMethodIndex()); in HasSameNameAndSignature() local 187 return mid.name_idx_ == mid2.name_idx_ && mid.proto_idx_ == mid2.proto_idx_; in HasSameNameAndSignature() 191 if (!DexFile::StringEquals(dex_file, mid.name_idx_, dex_file2, mid2.name_idx_)) { in HasSameNameAndSignature() 194 return dex_file->GetMethodSignature(mid) == dex_file2->GetMethodSignature(mid2); in HasSameNameAndSignature() 237 const dex::MethodId& mid = dexfile->GetMethodId(dex_method_idx); in FindDexMethodIndexInOtherDexFile() local 239 DCHECK_STREQ(dexfile->GetMethodName(mid), other_dexfile.GetMethodName(name_and_sig_mid)); in FindDexMethodIndexInOtherDexFile() 240 DCHECK_EQ(dexfile->GetMethodSignature(mid), other_dexfile.GetMethodSignature(name_and_sig_mid)); in FindDexMethodIndexInOtherDexFile() 244 const char* mid_declaring_class_descriptor = dexfile->StringByTypeIdx(mid.class_idx_); in FindDexMethodIndexInOtherDexFile()
|
D | reflection.cc | 505 jmethodID mid = soa.Env()->GetMethodID(exception_class, "<init>", "(Ljava/lang/Throwable;)V"); in InvokeMethodImpl() local 506 CHECK(mid != nullptr); in InvokeMethodImpl() 507 jobject exception_instance = soa.Env()->NewObject(exception_class, mid, th.get()); in InvokeMethodImpl() 521 JValue InvokeWithVarArgs(const ScopedObjectAccessAlreadyRunnable& soa, jobject obj, jmethodID mid, in InvokeWithVarArgs() argument 532 ArtMethod* method = jni::DecodeArtMethod(mid); in InvokeWithVarArgs() 553 JValue InvokeWithJValues(const ScopedObjectAccessAlreadyRunnable& soa, jobject obj, jmethodID mid, in InvokeWithJValues() argument 563 ArtMethod* method = jni::DecodeArtMethod(mid); in InvokeWithJValues() 585 jobject obj, jmethodID mid, const jvalue* args) { in InvokeVirtualOrInterfaceWithJValues() argument 595 ArtMethod* method = FindVirtualMethod(receiver, jni::DecodeArtMethod(mid)); in InvokeVirtualOrInterfaceWithJValues() 617 jobject obj, jmethodID mid, va_list args) { in InvokeVirtualOrInterfaceWithVarArgs() argument [all …]
|
D | well_known_classes.cc | 190 jmethodID mid = is_static ? env->GetStaticMethodID(c, name, signature) : in CacheMethod() local 192 if (mid == nullptr) { in CacheMethod() 202 return mid; in CacheMethod()
|
/art/test/907-get-loaded-classes/ |
D | get_loaded_classes.cc | 39 jmethodID mid = jni_env->GetMethodID(class_class.get(), "getName", "()Ljava/lang/String;"); in GetClassName() local 40 return reinterpret_cast<jstring>(jni_env->CallObjectMethod(cls, mid)); in GetClassName()
|
/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/904-object-allocation/ |
D | tracking.cc | 42 jmethodID mid = jni_env->GetMethodID(class_class.get(), "getName", "()Ljava/lang/String;"); in GetClassName() local 44 jni_env, reinterpret_cast<jstring>(jni_env->CallObjectMethod(cls, mid))); in GetClassName()
|
/art/test/115-native-bridge/ |
D | nativebridge.cc | 72 jmethodID mid = nullptr; in trampoline_JNI_OnLoad() local 74 mid = env->GetStaticMethodID(klass, methods[i].name, nb_method->signature); in trampoline_JNI_OnLoad() 76 mid = env->GetMethodID(klass, methods[i].name, nb_method->signature); in trampoline_JNI_OnLoad() 78 if (mid != nullptr) { in trampoline_JNI_OnLoad() 79 const char* shorty = gNativeBridgeArtCallbacks->getMethodShorty(env, mid); in trampoline_JNI_OnLoad()
|
/art/runtime/interpreter/ |
D | interpreter_common.h | 551 int mid = (lo + hi) / 2; in DoSparseSwitch() local 552 int32_t foundVal = keys[mid]; in DoSparseSwitch() 554 hi = mid - 1; in DoSparseSwitch() 556 lo = mid + 1; in DoSparseSwitch() 558 return entries[mid]; in DoSparseSwitch()
|
/art/runtime/interpreter/mterp/ |
D | mterp.cc | 99 int mid = (lo + hi) >> 1; in MterpDoSparseSwitch() local 101 int32_t foundVal = keys[mid]; in MterpDoSparseSwitch() 103 hi = mid - 1; in MterpDoSparseSwitch() 105 lo = mid + 1; in MterpDoSparseSwitch() 107 return entries[mid]; in MterpDoSparseSwitch()
|
/art/runtime/native/ |
D | java_lang_Class.cc | 350 auto mid = (low + high) / 2; in FindFieldByName() local 351 ArtField& field = fields->At(mid); in FindFieldByName() 366 low = mid + 1; in FindFieldByName() 368 high = mid; in FindFieldByName()
|
/art/runtime/mirror/ |
D | class.cc | 824 size_t mid = (low + high) / 2; in FindFieldByNameAndType() local 825 ArtField& field = fields->At(mid); in FindFieldByNameAndType() 836 low = mid + 1; in FindFieldByNameAndType() 838 high = mid; in FindFieldByNameAndType()
|
/art/tools/hiddenapi/ |
D | hiddenapi_test.cc | 214 const dex::MethodId& mid = dex_file.GetMethodId(method.GetIndex()); in GetMethodHiddenFlags() local 215 if (strcmp(name, dex_file.GetMethodName(mid)) == 0) { in GetMethodHiddenFlags()
|
/art/tools/dmtracedump/ |
D | tracedump.cc | 979 int32_t mid = (hi + lo) / 2; in lookupMethod() local 981 int64_t id = pKeys->methods[mid].methodId; in lookupMethod() 983 return &pKeys->methods[mid]; in lookupMethod() 985 lo = mid + 1; in lookupMethod() 987 hi = mid - 1; in lookupMethod()
|
/art/compiler/utils/mips64/ |
D | assembler_mips64.cc | 3531 int16_t mid = Low16Bits(tmp); in AdjustBaseOffsetAndElementSizeShift() local 3539 if (mid != 0) { in AdjustBaseOffsetAndElementSizeShift() 3540 Daddiu(AT, AT, mid); in AdjustBaseOffsetAndElementSizeShift()
|