Home
last modified time | relevance | path

Searched refs:jni (Results 1 – 25 of 81) sorted by relevance

1234

/art/tools/jvmti-agents/ti-fast/
Dtifast.cc76 …jni_fun(VMInit, EVENT(VM_INIT), (jvmtiEnv* jvmti, JNIEnv* jni, jthread thread), (jvmti, jni, jthre…
77 jni_fun(VMDeath, EVENT(VM_DEATH), (jvmtiEnv* jvmti, JNIEnv* jni), (jvmti, jni)) \
78 …ThreadStart, EVENT(THREAD_START), (jvmtiEnv* jvmti, JNIEnv* jni, jthread thread), (jvmti, jni, jth…
79 …fun(ThreadEnd, EVENT(THREAD_END), (jvmtiEnv* jvmti, JNIEnv* jni, jthread thread), (jvmti, jni, jth…
80 …IEnv* jni, jclass klass, jobject obj1, const char* c1, jobject obj2, jint i1, const unsigned char*…
81 …ssLoad, EVENT(CLASS_LOAD), (jvmtiEnv* jvmti, JNIEnv* jni, jthread thread, jclass klass), (jvmti, j…
82 …are, EVENT(CLASS_PREPARE), (jvmtiEnv* jvmti, JNIEnv* jni, jthread thread, jclass klass), (jvmti, j…
83 jni_fun(VMStart, EVENT(VM_START), (jvmtiEnv* jvmti, JNIEnv* jni), (jvmti, jni)) \
84 …Env* jvmti, JNIEnv* jni, jthread thread, jmethodID meth1, jlocation loc1, jobject obj, jmethodID m…
85 …ION_CATCH), (jvmtiEnv* jvmti, JNIEnv* jni, jthread thread, jmethodID meth, jlocation loc, jobject …
[all …]
/art/runtime/
Dreflection_test.cc142 InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), nullptr); in InvokeNopMethod()
154 JValue result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityByteMethod()
158 result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityByteMethod()
162 result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityByteMethod()
167 result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityByteMethod()
180 JValue result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityIntMethod()
184 result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityIntMethod()
188 result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityIntMethod()
192 result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityIntMethod()
205 JValue result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityDoubleMethod()
[all …]
Dreference_table.h32 namespace jni {
68 friend class jni::LocalReferenceTable; // For Dump.
/art/test/928-jni-table/
DAndroid.bp3 // Build rules for ART run-test `928-jni-table`.
16 name: "art-run-test-928-jni-table",
21 ":art-run-test-928-jni-table-expected-stdout",
22 ":art-run-test-928-jni-table-expected-stderr",
28 name: "art-run-test-928-jni-table-expected-stdout",
29 out: ["art-run-test-928-jni-table-expected-stdout.txt"],
36 name: "art-run-test-928-jni-table-expected-stderr",
37 out: ["art-run-test-928-jni-table-expected-stderr.txt"],
/art/test/2036-jni-filechannel/
DAndroid.bp3 // Build rules for ART run-test `2036-jni-filechannel`.
16 name: "art-run-test-2036-jni-filechannel",
21 ":art-run-test-2036-jni-filechannel-expected-stdout",
22 ":art-run-test-2036-jni-filechannel-expected-stderr",
28 name: "art-run-test-2036-jni-filechannel-expected-stdout",
29 out: ["art-run-test-2036-jni-filechannel-expected-stdout.txt"],
36 name: "art-run-test-2036-jni-filechannel-expected-stderr",
37 out: ["art-run-test-2036-jni-filechannel-expected-stderr.txt"],
/art/test/136-daemon-jni-shutdown/
DAndroid.bp3 // Build rules for ART run-test `136-daemon-jni-shutdown`.
16 name: "art-run-test-136-daemon-jni-shutdown",
21 ":art-run-test-136-daemon-jni-shutdown-expected-stdout",
22 ":art-run-test-136-daemon-jni-shutdown-expected-stderr",
28 name: "art-run-test-136-daemon-jni-shutdown-expected-stdout",
29 out: ["art-run-test-136-daemon-jni-shutdown-expected-stdout.txt"],
36 name: "art-run-test-136-daemon-jni-shutdown-expected-stderr",
37 out: ["art-run-test-136-daemon-jni-shutdown-expected-stderr.txt"],
/art/test/179-nonvirtual-jni/
DAndroid.bp3 // Build rules for ART run-test `179-nonvirtual-jni`.
16 name: "art-run-test-179-nonvirtual-jni",
21 ":art-run-test-179-nonvirtual-jni-expected-stdout",
22 ":art-run-test-179-nonvirtual-jni-expected-stderr",
28 name: "art-run-test-179-nonvirtual-jni-expected-stdout",
29 out: ["art-run-test-179-nonvirtual-jni-expected-stdout.txt"],
36 name: "art-run-test-179-nonvirtual-jni-expected-stderr",
37 out: ["art-run-test-179-nonvirtual-jni-expected-stderr.txt"],
/art/test/667-jit-jni-stub/
DAndroid.bp3 // Build rules for ART run-test `667-jit-jni-stub`.
16 name: "art-run-test-667-jit-jni-stub",
21 ":art-run-test-667-jit-jni-stub-expected-stdout",
22 ":art-run-test-667-jit-jni-stub-expected-stderr",
28 name: "art-run-test-667-jit-jni-stub-expected-stdout",
29 out: ["art-run-test-667-jit-jni-stub-expected-stdout.txt"],
36 name: "art-run-test-667-jit-jni-stub-expected-stderr",
37 out: ["art-run-test-667-jit-jni-stub-expected-stderr.txt"],
/art/test/169-threadgroup-jni/
DAndroid.bp3 // Build rules for ART run-test `169-threadgroup-jni`.
16 name: "art-run-test-169-threadgroup-jni",
21 ":art-run-test-169-threadgroup-jni-expected-stdout",
22 ":art-run-test-169-threadgroup-jni-expected-stderr",
28 name: "art-run-test-169-threadgroup-jni-expected-stdout",
29 out: ["art-run-test-169-threadgroup-jni-expected-stdout.txt"],
36 name: "art-run-test-169-threadgroup-jni-expected-stderr",
37 out: ["art-run-test-169-threadgroup-jni-expected-stderr.txt"],
/art/test/647-jni-get-field-id/
DAndroid.bp3 // Build rules for ART run-test `647-jni-get-field-id`.
16 name: "art-run-test-647-jni-get-field-id",
21 ":art-run-test-647-jni-get-field-id-expected-stdout",
22 ":art-run-test-647-jni-get-field-id-expected-stderr",
28 name: "art-run-test-647-jni-get-field-id-expected-stdout",
29 out: ["art-run-test-647-jni-get-field-id-expected-stdout.txt"],
36 name: "art-run-test-647-jni-get-field-id-expected-stderr",
37 out: ["art-run-test-647-jni-get-field-id-expected-stderr.txt"],
/art/test/1972-jni-id-swap-indices/
DAndroid.bp3 // Build rules for ART run-test `1972-jni-id-swap-indices`.
16 name: "art-run-test-1972-jni-id-swap-indices",
21 ":art-run-test-1972-jni-id-swap-indices-expected-stdout",
22 ":art-run-test-1972-jni-id-swap-indices-expected-stderr",
28 name: "art-run-test-1972-jni-id-swap-indices-expected-stdout",
29 out: ["art-run-test-1972-jni-id-swap-indices-expected-stdout.txt"],
36 name: "art-run-test-1972-jni-id-swap-indices-expected-stderr",
37 out: ["art-run-test-1972-jni-id-swap-indices-expected-stderr.txt"],
/art/test/2012-structural-redefinition-failures-jni-id/
DAndroid.bp3 // Build rules for ART run-test `2012-structural-redefinition-failures-jni-id`.
16 name: "art-run-test-2012-structural-redefinition-failures-jni-id",
21 ":art-run-test-2012-structural-redefinition-failures-jni-id-expected-stdout",
22 ":art-run-test-2012-structural-redefinition-failures-jni-id-expected-stderr",
28 name: "art-run-test-2012-structural-redefinition-failures-jni-id-expected-stdout",
29 out: ["art-run-test-2012-structural-redefinition-failures-jni-id-expected-stdout.txt"],
36 name: "art-run-test-2012-structural-redefinition-failures-jni-id-expected-stderr",
37 out: ["art-run-test-2012-structural-redefinition-failures-jni-id-expected-stderr.txt"],
/art/test/1973-jni-id-swap-pointer/
DAndroid.bp3 // Build rules for ART run-test `1973-jni-id-swap-pointer`.
16 name: "art-run-test-1973-jni-id-swap-pointer",
21 ":art-run-test-1973-jni-id-swap-pointer-expected-stdout",
22 ":art-run-test-1973-jni-id-swap-pointer-expected-stderr",
28 name: "art-run-test-1973-jni-id-swap-pointer-expected-stdout",
29 out: ["art-run-test-1973-jni-id-swap-pointer-expected-stdout.txt"],
36 name: "art-run-test-1973-jni-id-swap-pointer-expected-stderr",
37 out: ["art-run-test-1973-jni-id-swap-pointer-expected-stderr.txt"],
/art/openjdkjvmti/
Dti_object.cc89 art::JNIEnvExt* jni = self->GetJniEnv(); in GetObjectMonitorUsage() local
100 jni->AddLocalReference<jthread>(info.owner_->GetPeerFromOtherThread()) : nullptr; in GetObjectMonitorUsage()
105 notify_wait.push_back(jni->AddLocalReference<jthread>(thd->GetPeerFromOtherThread())); in GetObjectMonitorUsage()
106 wait.push_back(jni->AddLocalReference<jthread>(thd->GetPeerFromOtherThread())); in GetObjectMonitorUsage()
118 wait.push_back(jni->AddLocalReference<jthread>(peer)); in GetObjectMonitorUsage()
Dti_field.cc145 art::ArtField* art_field = art::jni::DecodeArtField(field); in GetFieldName()
218 art::ArtField* art_field = art::jni::DecodeArtField(field); in GetFieldDeclaringClass()
241 art::ArtField* art_field = art::jni::DecodeArtField(field); in GetFieldModifiers()
264 art::ArtField* art_field = art::jni::DecodeArtField(field); in IsFieldSynthetic()
280 auto res_pair = env->modify_watched_fields.insert(art::jni::DecodeArtField(field)); in SetFieldModificationWatch()
297 auto pos = env->modify_watched_fields.find(art::jni::DecodeArtField(field)); in ClearFieldModificationWatch()
314 auto res_pair = env->access_watched_fields.insert(art::jni::DecodeArtField(field)); in SetFieldAccessWatch()
331 auto pos = env->access_watched_fields.find(art::jni::DecodeArtField(field)); in ClearFieldAccessWatch()
/art/runtime/jni/
Djni_env_ext.h82 jni::LRTSegmentState PushLocalReferenceFrame() { in PushLocalReferenceFrame()
85 void PopLocalReferenceFrame(jni::LRTSegmentState previous_state) { in PopLocalReferenceFrame()
171 jni::LocalReferenceTable locals_;
176 std::vector<jni::LRTSegmentState> stacked_local_ref_cookies_;
206 friend jni::LocalReferenceTable* GetLocalReferenceTable(ScopedObjectAccess& soa);
225 const jni::LRTSegmentState saved_local_ref_cookie_;
/art/test/1985-structural-redefine-stack-scope/
Dstack_scope.cc52 ReflectiveHandle<ArtField> rf(fhs.NewHandle(jni::DecodeArtField(fid))); in Java_Main_NativeFieldScopeCheck()
53 ReflectiveHandle<ArtField> bf(bhs.NewHandle(jni::DecodeArtField(fid))); in Java_Main_NativeFieldScopeCheck()
78 CHECK_EQ(fid, jni::EncodeArtField(rf)); in Java_Main_NativeFieldScopeCheck()
/art/tools/jvmti-agents/jit-load/
Djitload.cc127 JNIEnv* jni = nullptr; in Agent_OnAttach() local
129 CHECK_CALL_SUCCESS(vm->GetEnv(reinterpret_cast<void**>(&jni), JNI_VERSION_1_6)); in Agent_OnAttach()
133 VmInitCb(jvmti, jni, thr); in Agent_OnAttach()
135 jni->DeleteLocalRef(thr); in Agent_OnAttach()
/art/tools/jvmti-agents/simple-profile/
Dsimple_profile.cc79 void FinishInitialization(jvmtiEnv* jvmti, JNIEnv* jni, jthread cur);
80 void Shutdown(jvmtiEnv* jvmti, JNIEnv* jni);
83 void DoDump(jvmtiEnv* jvmti, JNIEnv* jni, const std::unordered_map<jmethodID, uint64_t>& copy);
158 void SimpleProfileData::Shutdown(jvmtiEnv* jvmti, JNIEnv* jni) { in Shutdown() argument
170 DoDump(jvmti, jni, std::move(copy)); in Shutdown()
195 [](jvmtiEnv* jvmti, JNIEnv* jni, [[maybe_unused]] void* unused_data) { in FinishInitialization() argument
197 data->RunDumpLoop(jvmti, jni); in FinishInitialization()
323 JNIEnv* jni, in DoDump() argument
329 ScopedMethodInfo smi(jvmti, jni, meth); in DoDump()
479 callbacks.ThreadEnd = [](jvmtiEnv* env, JNIEnv* jni, [[maybe_unused]] jthread thr) { in AgentStart() argument
[all …]
/art/tools/jvmti-agents/ti-alloc-sample/
Dti_alloc_sample.cc277 JNIEnv* jni, in formatAllocation() argument
281 ScopedThreadInfo sti(jvmti, jni, thr.thread); in formatAllocation()
295 static std::string formatMethod(jvmtiEnv* jvmti, JNIEnv* jni, jmethodID method_id) { in formatMethod() argument
296 ScopedMethodInfo smi(jvmti, jni, method_id); in formatMethod()
311 JNIEnv* jni, in logVMObjectAlloc() argument
329 jni, in logVMObjectAlloc()
345 record += ";" + formatMethod(jvmti, jni, stack_frames[i].method); in logVMObjectAlloc()
/art/libnativeloader/
DTEST_MAPPING4 "path": "cts/tests/tests/jni"
/art/test/913-heaps/
Dexpected-stdout.txt44 root@root --(jni-global)--> 1@1000 [size=16, length=-1]
45 root@root --(jni-local[id=1,tag=3000,depth=0,method=followReferences])--> 1@1000 [size=16, length=-…
107 root@root --(jni-global)--> 1@1000 [size=16, length=-1]
108 root@root --(jni-local[id=1,tag=3000,depth=0,method=followReferences])--> 1@1000 [size=16, length=-…
169 root@root --(jni-global)--> 1@1000 [size=16, length=-1]
170 root@root --(jni-local[id=1,tag=3000,depth=0,method=followReferences])--> 1@1000 [size=16, length=-…
235 root@root --(jni-global)--> 1@1000 [size=16, length=-1]
236 root@root --(jni-local[id=1,tag=3000,depth=0,method=followReferences])--> 1@1000 [size=16, length=-…
352 root@root --(jni-global)--> 1@1000 [size=16, length=-1]
353 root@root --(jni-local[id=1,tag=3000,depth=0,method=followReferences])--> 1@1000 [size=16, length=-…
/art/test/1974-resize-array/
Dexpected-stdout.txt58 Test jni-ref
63 Test weak jni-ref
68 Test jni local ref
/art/tools/jvmti-agents/simple-force-redefine/
Dforceredefine.cc213 static void AgentMain(jvmtiEnv* jvmti, JNIEnv* jni, [[maybe_unused]] void* arg) { in AgentMain() argument
224 RedefineClass(jvmti, jni, klass_name); in AgentMain()
296 JNIEnv* jni = nullptr; in AgentStart() local
297 vm->GetEnv(reinterpret_cast<void**>(&jni), JNI_VERSION_1_2); in AgentStart()
300 CbVmInit(jvmti, jni, thr); in AgentStart()
/art/test/1976-hello-structural-static-methods/
Dexpected-stdout.txt11 Running jni
43 Running jni with old ids
49 Running jni with new ids

1234