Home
last modified time | relevance | path

Searched refs:jvmti_env (Results 1 – 8 of 8) sorted by relevance

/cts/hostsidetests/jvmti/attaching/app/jni/
Dcts_agent.cpp57 jvmtiError ret = jvmti_env->SetEventNotificationMode(JVMTI_DISABLE,
60 if (JvmtiErrorToException(env, jvmti_env, ret)) {
63 ret = jvmti_env->SetEventNotificationMode(JVMTI_DISABLE,
66 JvmtiErrorToException(env, jvmti_env, ret);
74 jvmtiError ret = jvmti_env->SetEventCallbacks(&callbacks, sizeof(callbacks));
75 if (JvmtiErrorToException(env, jvmti_env, ret)) {
79 ret = jvmti_env->SetEventNotificationMode(JVMTI_ENABLE,
82 if (JvmtiErrorToException(env, jvmti_env, ret)) {
85 ret = jvmti_env->SetEventNotificationMode(JVMTI_ENABLE,
88 JvmtiErrorToException(env, jvmti_env, ret);
[all …]
/cts/hostsidetests/jvmti/base/jni/
Dtagging.cpp32 jvmtiError ret = jvmti_env->SetTag(obj, tag); in Java_android_jvmti_cts_JniBindings_setTag()
33 JvmtiErrorToException(env, jvmti_env, ret); in Java_android_jvmti_cts_JniBindings_setTag()
39 jvmtiError ret = jvmti_env->GetTag(obj, &tag); in Java_android_jvmti_cts_JniBindings_getTag()
40 if (JvmtiErrorToException(env, jvmti_env, ret)) { in Java_android_jvmti_cts_JniBindings_getTag()
68 jvmtiError ret = jvmti_env->GetObjectsWithTags(scoped_array.size(), in Java_android_jvmti_cts_JvmtiTaggingTest_getTaggedObjects()
73 if (JvmtiErrorToException(env, jvmti_env, ret)) { in Java_android_jvmti_cts_JvmtiTaggingTest_getTaggedObjects()
90 CheckJvmtiError(jvmti_env, Deallocate(jvmti_env, result_object_array)); in Java_android_jvmti_cts_JvmtiTaggingTest_getTaggedObjects()
102 CheckJvmtiError(jvmti_env, Deallocate(jvmti_env, result_tag_array)); in Java_android_jvmti_cts_JvmtiTaggingTest_getTaggedObjects()
Dcts_logging.cpp32 env, jvmti_env, "com.android.art.misc.set_verbose_flag_ext"); in Java_android_jvmti_cts_JvmtiRunTestBasedTest_setupExtraLogging()
35 JvmtiErrorToException(env, jvmti_env, jvmti_env->SetVerboseFlag(JVMTI_VERBOSE_OTHER, true)); in Java_android_jvmti_cts_JvmtiRunTestBasedTest_setupExtraLogging()
43 JvmtiErrorToException(env, jvmti_env, set_flag_ext(jvmti_env, data.c_str(), true)); in Java_android_jvmti_cts_JvmtiRunTestBasedTest_setupExtraLogging()
Dcts_agent.cpp64 if (vm->GetEnv(reinterpret_cast<void**>(&jvmti_env), JVMTI_VERSION_1_0) != 0) { in Agent_OnLoad()
68 SetStandardCapabilities(jvmti_env); in Agent_OnLoad()
79 if (vm->GetEnv(reinterpret_cast<void**>(&jvmti_env), JVMTI_VERSION_1_0) != 0) { in Agent_OnAttach()
83 SetStandardCapabilities(jvmti_env); in Agent_OnAttach()
84 InformMainAttach(jvmti_env, env, kMainClass, kMainClassStartup); in Agent_OnAttach()
Dredefine.cpp41 jvmtiError res =jvmti_env->Allocate(def.class_byte_count, in Java_android_jvmti_cts_JvmtiRedefineClassesTest_redefineClass()
49 res = jvmti_env->RedefineClasses(1, &def); in Java_android_jvmti_cts_JvmtiRedefineClassesTest_redefineClass()
55 return jvmti_env->RetransformClasses(1, &target); in Java_android_jvmti_cts_JvmtiRedefineClassesTest_retransformClass()
138 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->SetEventCallbacks(&cb, sizeof(cb)))) { in Java_android_jvmti_cts_JvmtiRedefineClassesTest_setTransformationEvent()
142 jvmti_env, in Java_android_jvmti_cts_JvmtiRedefineClassesTest_setTransformationEvent()
143 jvmti_env->SetEventNotificationMode( in Java_android_jvmti_cts_JvmtiRedefineClassesTest_setTransformationEvent()
Dtracking.cpp88 jvmtiError ret = jvmti_env->SetEventCallbacks(&callbacks, sizeof(callbacks)); in Java_android_jvmti_cts_JvmtiTrackingTest_setupObjectAllocCallback()
89 JvmtiErrorToException(env, jvmti_env, ret); in Java_android_jvmti_cts_JvmtiTrackingTest_setupObjectAllocCallback()
94 jvmtiError ret = jvmti_env->SetEventNotificationMode( in Java_android_jvmti_cts_JvmtiTrackingTest_enableAllocationTracking()
103 jvmti_env->GetCurrentThread(&curr_thread); in Java_android_jvmti_cts_JvmtiTrackingTest_enableAllocationTracking()
112 JvmtiErrorToException(env, jvmti_env, ret); in Java_android_jvmti_cts_JvmtiTrackingTest_enableAllocationTracking()
/cts/hostsidetests/jdwptunnel/sampleapps/ddmsapp/agent/
Dddms_agent.cc28 static jvmtiEnv* jvmti_env; variable
33 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(t)); in Dealloc()
53 if (jvmti_env->GetExtensionFunctions(&n_ext, &infos) != JVMTI_ERROR_NONE) { in GetExtension()
74 vm->GetEnv(reinterpret_cast<void**>(&jvmti_env), JVMTI_VERSION_1_0); in Agent_OnAttach()
84 return disable_ext(jvmti_env); in Java_android_jdwptunnel_sampleapp_ddms_DdmsSampleDeviceActivity_ForceNoHiddenapi()
/cts/tests/signature/api-check/src/jni/
Dclassdescriptors.cpp32 static jvmtiEnv* jvmti_env; variable
37 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(t)); in Dealloc()
91 jint jvmError = vm->GetEnv(reinterpret_cast<void**>(&jvmti_env), JVMTI_VERSION_1_2); in Agent_OnAttach()
107 jvmtiError error = get_descriptor_list(jvmti_env, loader, &cnt, &classes); in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassloaderDescriptors()
135 jvmtiError err = jvmti_env->GetExtensionFunctions(&functionInfosCount, &functionInfos); in Java_android_signature_cts_api_BootClassPathClassesProvider_initialize()
169 error = (getFields != JNI_FALSE) ? jvmti_env->GetClassFields(klass, &count, fids.GetPtr()) in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassMemberNamesAndTypes()
170 : jvmti_env->GetClassMethods(klass, &count, mids.GetPtr()); in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassMemberNamesAndTypes()
193 ? jvmti_env->GetFieldName(klass, fids.Get()[i], name.GetPtr(), type.GetPtr(), nullptr) in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassMemberNamesAndTypes()
194 : jvmti_env->GetMethodName(mids.Get()[i], name.GetPtr(), type.GetPtr(), nullptr); in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassMemberNamesAndTypes()