Home
last modified time | relevance | path

Searched refs:mid (Results 1 – 25 of 32) sorted by relevance

12

/art/runtime/jni/
Djni_internal.cc600 jmethodID mid = env->GetMethodID(exception_class, "<init>", signature); in ThrowNewException() local
601 if (mid == nullptr) { in ThrowNewException()
609 env, reinterpret_cast<jthrowable>(env->NewObjectA(exception_class, mid, args))); in ThrowNewException()
707 static jobject ToReflectedMethod(JNIEnv* env, jclass, jmethodID mid, jboolean) { in ToReflectedMethod() argument
708 CHECK_NON_NULL_ARGUMENT(mid); in ToReflectedMethod()
710 ArtMethod* m = jni::DecodeArtMethod(mid); in ToReflectedMethod()
806 jmethodID mid = env->GetMethodID(exception_class.get(), "printStackTrace", "()V"); in ExceptionDescribe() local
807 if (mid == nullptr) { in ExceptionDescribe()
811 env->CallVoidMethod(exception.get(), mid); in ExceptionDescribe()
935 static jobject NewObject(JNIEnv* env, jclass java_class, jmethodID mid, ...) { in NewObject() argument
[all …]
Dcheck_jni.cc408 jmethodID mid, Primitive::Type type, InvokeType invoke) in CheckMethodAndSig() argument
410 ArtMethod* m = CheckMethodID(mid); in CheckMethodAndSig()
480 bool CheckStaticMethod(ScopedObjectAccess& soa, jclass java_class, jmethodID mid) in CheckStaticMethod() argument
482 ArtMethod* m = CheckMethodID(mid); in CheckStaticMethod()
502 bool CheckVirtualMethod(ScopedObjectAccess& soa, jobject java_object, jmethodID mid) in CheckVirtualMethod() argument
504 ArtMethod* m = CheckMethodID(mid); in CheckVirtualMethod()
676 bool CheckConstructor(jmethodID mid) REQUIRES_SHARED(Locks::mutator_lock_) { in CheckConstructor() argument
677 ArtMethod* method = jni::DecodeArtMethod(mid); in CheckConstructor()
683 AbortF("expected a constructor but %s: %p", method->PrettyMethod().c_str(), mid); in CheckConstructor()
1107 jmethodID mid = arg.m; in TracePossibleHeapValue() local
[all …]
Djni_internal.h72 static bool IsIndexId(jmethodID mid) { in IsIndexId() argument
73 return kEnableIndexIds && ((reinterpret_cast<uintptr_t>(mid) % 2) != 0); in IsIndexId()
/art/libdexfile/dex/
Ddex_file.cc377 int32_t mid = (hi + lo) / 2; in FindFieldId() local
378 const FieldId& field = GetFieldId(mid); in FindFieldId()
380 lo = mid + 1; in FindFieldId()
382 hi = mid - 1; in FindFieldId()
385 lo = mid + 1; in FindFieldId()
387 hi = mid - 1; in FindFieldId()
390 lo = mid + 1; in FindFieldId()
392 hi = mid - 1; in FindFieldId()
419 int32_t mid = (hi + lo) / 2; in FindMethodIdByIndex() local
420 const MethodId& method = GetMethodId(mid); in FindMethodIdByIndex()
[all …]
/art/test/044-proxy/
Dnative_proxy.cc27 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/
DInstances.java76 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()
DSite.java419 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/1976-hello-structural-static-methods/
Dstructural_transform_methods.cc49 jmethodID mid = reinterpret_cast<jmethodID>(static_cast<intptr_t>(mid_val)); in Java_art_Test1976_callNativeMethods() local
56 env->ToReflectedMethod(m_class, mid, true)); in Java_art_Test1976_callNativeMethods()
57 env->CallStaticVoidMethod(m_class, mid); in Java_art_Test1976_callNativeMethods()
/art/tools/bisection_search/
Dbisection_search.py247 mid = (start + end) // 2
248 if test(mid):
249 start = mid + 1
251 end = mid
287 lambda mid: testable.Test(all_methods[0:mid]))
297 lambda mid: testable.Test([faulty_method],
298 FilterPasses(all_passes, mid)))
/art/test/642-fp-callees/
Dfp_callees.cc29 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/test/907-get-loaded-classes/
Dget_loaded_classes.cc39 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/runtime/
Dreflection.h67 MethodType mid,
75 MethodType mid,
85 MethodType mid,
95 MethodType mid,
Dnative_bridge_art_interface.cc35 static const char* GetMethodShorty(JNIEnv* env, jmethodID mid) { in GetMethodShorty() argument
37 ArtMethod* m = jni::DecodeArtMethod(mid); in GetMethodShorty()
Dreflection.cc563 jmethodID mid, in InvokeWithVarArgs() argument
565 DCHECK(mid != nullptr) << "Called with null jmethodID"; in InvokeWithVarArgs()
566 return InvokeWithVarArgs(soa, obj, jni::DecodeArtMethod(mid), args); in InvokeWithVarArgs()
604 jmethodID mid, in InvokeWithJValues() argument
606 DCHECK(mid != nullptr) << "Called with null jmethodID"; in InvokeWithJValues()
607 return InvokeWithJValues(soa, obj, jni::DecodeArtMethod(mid), args); in InvokeWithJValues()
647 jmethodID mid, in InvokeVirtualOrInterfaceWithJValues() argument
649 DCHECK(mid != nullptr) << "Called with null jmethodID"; in InvokeVirtualOrInterfaceWithJValues()
650 return InvokeVirtualOrInterfaceWithJValues(soa, obj, jni::DecodeArtMethod(mid), args); in InvokeVirtualOrInterfaceWithJValues()
691 jmethodID mid, in InvokeVirtualOrInterfaceWithVarArgs() argument
[all …]
Dart_method.cc245 const dex::MethodId& mid = dex_file->GetMethodId(GetDexMethodIndex()); in HasSameNameAndSignature() local
248 return mid.name_idx_ == mid2.name_idx_ && mid.proto_idx_ == mid2.proto_idx_; in HasSameNameAndSignature()
252 if (!DexFile::StringEquals(dex_file, mid.name_idx_, dex_file2, mid2.name_idx_)) { in HasSameNameAndSignature()
255 return dex_file->GetMethodSignature(mid) == dex_file2->GetMethodSignature(mid2); in HasSameNameAndSignature()
298 const dex::MethodId& mid = dexfile->GetMethodId(dex_method_idx); in FindDexMethodIndexInOtherDexFile() local
300 DCHECK_STREQ(dexfile->GetMethodName(mid), other_dexfile.GetMethodName(name_and_sig_mid)); in FindDexMethodIndexInOtherDexFile()
301 DCHECK_EQ(dexfile->GetMethodSignature(mid), other_dexfile.GetMethodSignature(name_and_sig_mid)); in FindDexMethodIndexInOtherDexFile()
305 std::string_view mid_declaring_class_descriptor = dexfile->GetTypeDescriptorView(mid.class_idx_); in FindDexMethodIndexInOtherDexFile()
Dintern_table.cc340 auto mid = tables_.begin() + num_searched_frozen_tables; in Find() local
341 for (Table::InternalTable& table : MakeIterationRange(tables_.begin(), mid)) { in Find()
346 for (Table::InternalTable& table : ReverseRange(MakeIterationRange(mid, tables_.end()))) { in Find()
/art/runtime/mirror/
Dclass.cc695 uint32_t mid = (begin + end) >> 1; in BinarySearch() local
696 auto cmp_result = cmp(mid); in BinarySearch()
698 return {true, mid, begin, end}; in BinarySearch()
701 begin = mid + 1u; in BinarySearch()
703 end = mid; in BinarySearch()
722 uint32_t mid; in ClassMemberBinarySearch() local
723 std::tie(success, mid, begin, end) = BinarySearch(begin, end, name_cmp); in ClassMemberBinarySearch()
728 auto second_cmp_result = second_cmp(mid); in ClassMemberBinarySearch()
730 return {true, mid}; in ClassMemberBinarySearch()
736 auto name_idx = get_name_idx(mid); in ClassMemberBinarySearch()
[all …]
/art/libnativeloader/
Dnative_loader_test.h60 inf->CallObjectMethodV = [](JNIEnv*, jobject obj, jmethodID mid, va_list) -> jobject { in CreateJNINativeInterface()
61 if (strcmp("getParent", reinterpret_cast<const char*>(mid)) == 0) { in CreateJNINativeInterface()
/art/dalvikvm/
Ddalvikvm.cc46 jmethodID mid = env->GetMethodID(method_class, "getModifiers", "()I"); in IsMethodPublic() local
47 if (mid == nullptr) { in IsMethodPublic()
51 int modifiers = env->CallIntMethod(reflected.get(), mid); in IsMethodPublic()
/art/test/570-checker-osr-locals/smali/
DWeirdLoop.smali27 goto :mid
32 :mid
/art/test/904-object-allocation/
Dtracking.cc42 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/
Dnativebridge.cc73 jmethodID mid = nullptr; in trampoline_JNI_OnLoad() local
75 mid = env->GetStaticMethodID(klass, methods[i].name, nb_method->signature); in trampoline_JNI_OnLoad()
77 mid = env->GetMethodID(klass, methods[i].name, nb_method->signature); in trampoline_JNI_OnLoad()
79 if (mid != nullptr) { in trampoline_JNI_OnLoad()
80 const char* shorty = gNativeBridgeArtCallbacks->getMethodShorty(env, mid); in trampoline_JNI_OnLoad()
/art/runtime/interpreter/
Dinterpreter_common.h480 int mid = (lo + hi) / 2; in DoSparseSwitch() local
481 int32_t foundVal = keys[mid]; in DoSparseSwitch()
483 hi = mid - 1; in DoSparseSwitch()
485 lo = mid + 1; in DoSparseSwitch()
487 return entries[mid]; in DoSparseSwitch()
/art/runtime/interpreter/mterp/
Dnterp.cc802 int mid = (lo + hi) >> 1; in NterpDoSparseSwitch() local
804 int32_t foundVal = keys[mid]; in NterpDoSparseSwitch()
806 hi = mid - 1; in NterpDoSparseSwitch()
808 lo = mid + 1; in NterpDoSparseSwitch()
810 return entries[mid]; in NterpDoSparseSwitch()
/art/libnativebridge/include/nativebridge/
Dnative_bridge.h454 const char* (*getMethodShorty)(JNIEnv* env, jmethodID mid);

12