Home
last modified time | relevance | path

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

12

/art/runtime/jni/
Djni_internal.cc421 jmethodID mid = env->GetMethodID(exception_class, "<init>", signature); in ThrowNewException() local
422 if (mid == nullptr) { in ThrowNewException()
430 env, reinterpret_cast<jthrowable>(env->NewObjectA(exception_class, mid, args))); in ThrowNewException()
528 static jobject ToReflectedMethod(JNIEnv* env, jclass, jmethodID mid, jboolean) { in ToReflectedMethod() argument
529 CHECK_NON_NULL_ARGUMENT(mid); in ToReflectedMethod()
531 ArtMethod* m = jni::DecodeArtMethod(mid); in ToReflectedMethod()
628 jmethodID mid = env->GetMethodID(exception_class.get(), "printStackTrace", "()V"); in ExceptionDescribe() local
629 if (mid == nullptr) { in ExceptionDescribe()
633 env->CallVoidMethod(exception.get(), mid); in ExceptionDescribe()
755 static jobject NewObject(JNIEnv* env, jclass java_class, jmethodID mid, ...) { in NewObject() argument
[all …]
Dcheck_jni.cc387 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 …]
Djni_internal.h72 static bool IsIndexId(jmethodID mid) { in IsIndexId() argument
73 return kEnableIndexIds && ((reinterpret_cast<uintptr_t>(mid) % 2) != 0); in IsIndexId()
Djni_internal_test.cc297 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/
Ddex_file.cc250 int32_t mid = (hi + lo) / 2; in FindFieldId() local
251 const FieldId& field = GetFieldId(mid); in FindFieldId()
253 lo = mid + 1; in FindFieldId()
255 hi = mid - 1; in FindFieldId()
258 lo = mid + 1; in FindFieldId()
260 hi = mid - 1; in FindFieldId()
263 lo = mid + 1; in FindFieldId()
265 hi = mid - 1; in FindFieldId()
285 int32_t mid = (hi + lo) / 2; in FindMethodId() local
286 const MethodId& method = GetMethodId(mid); in FindMethodId()
[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/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/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/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.cc552 jmethodID mid, in InvokeWithVarArgs() argument
554 DCHECK(mid != nullptr) << "Called with null jmethodID"; in InvokeWithVarArgs()
555 return InvokeWithVarArgs(soa, obj, jni::DecodeArtMethod(mid), args); in InvokeWithVarArgs()
593 jmethodID mid, in InvokeWithJValues() argument
595 DCHECK(mid != nullptr) << "Called with null jmethodID"; in InvokeWithJValues()
596 return InvokeWithJValues(soa, obj, jni::DecodeArtMethod(mid), args); in InvokeWithJValues()
636 jmethodID mid, in InvokeVirtualOrInterfaceWithJValues() argument
638 DCHECK(mid != nullptr) << "Called with null jmethodID"; in InvokeVirtualOrInterfaceWithJValues()
639 return InvokeVirtualOrInterfaceWithJValues(soa, obj, jni::DecodeArtMethod(mid), args); in InvokeVirtualOrInterfaceWithJValues()
680 jmethodID mid, in InvokeVirtualOrInterfaceWithVarArgs() argument
[all …]
Dart_method.cc193 const dex::MethodId& mid = dex_file->GetMethodId(GetDexMethodIndex()); in HasSameNameAndSignature() local
196 return mid.name_idx_ == mid2.name_idx_ && mid.proto_idx_ == mid2.proto_idx_; in HasSameNameAndSignature()
200 if (!DexFile::StringEquals(dex_file, mid.name_idx_, dex_file2, mid2.name_idx_)) { in HasSameNameAndSignature()
203 return dex_file->GetMethodSignature(mid) == dex_file2->GetMethodSignature(mid2); in HasSameNameAndSignature()
246 const dex::MethodId& mid = dexfile->GetMethodId(dex_method_idx); in FindDexMethodIndexInOtherDexFile() local
248 DCHECK_STREQ(dexfile->GetMethodName(mid), other_dexfile.GetMethodName(name_and_sig_mid)); in FindDexMethodIndexInOtherDexFile()
249 DCHECK_EQ(dexfile->GetMethodSignature(mid), other_dexfile.GetMethodSignature(name_and_sig_mid)); in FindDexMethodIndexInOtherDexFile()
253 const char* mid_declaring_class_descriptor = dexfile->StringByTypeIdx(mid.class_idx_); in FindDexMethodIndexInOtherDexFile()
Dwell_known_classes.cc209 jmethodID mid; in CacheMethod() local
213 mid = jni::EncodeArtMethod</*kEnableIndexIds*/ true>( in CacheMethod()
216 mid = jni::EncodeArtMethod</*kEnableIndexIds*/ false>( in CacheMethod()
220 if (mid == nullptr) { in CacheMethod()
230 return mid; in CacheMethod()
/art/dalvikvm/
Ddalvikvm.cc45 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/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.cc72 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/libnativebridge/include/nativebridge/
Dnative_bridge.h396 const char* (*getMethodShorty)(JNIEnv* env, jmethodID mid);
/art/runtime/interpreter/mterp/
Dmterp.cc99 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/interpreter/
Dinterpreter_common.h942 int mid = (lo + hi) / 2; in DoSparseSwitch() local
943 int32_t foundVal = keys[mid]; in DoSparseSwitch()
945 hi = mid - 1; in DoSparseSwitch()
947 lo = mid + 1; in DoSparseSwitch()
949 return entries[mid]; in DoSparseSwitch()
/art/libnativeloader/
Dnative_loader_test.cpp259 inf->CallObjectMethodV = [](JNIEnv*, jobject obj, jmethodID mid, va_list) -> jobject { in CreateJNINativeInterface() argument
260 if (strcmp("getParent", reinterpret_cast<const char*>(mid)) == 0) { in CreateJNINativeInterface()

12