Home
last modified time | relevance | path

Searched refs:javaVm (Results 1 – 3 of 3) sorted by relevance

/aosp_15_r20/libcore/luni/src/test/native/
H A Dlibcore_java_lang_ThreadTest.cpp26 static JavaVM* javaVm = nullptr; variable
43 if (javaVm->AttachCurrentThread(&env, &args) != JNI_OK) { in TestThreadNaming()
73 if (javaVm->DetachCurrentThread() != JNI_OK) { in TestThreadNaming()
136 javaVm = vm; in JNI_OnLoad()
/aosp_15_r20/frameworks/native/services/sensorservice/hidl/
H A DSensorManager.cpp146 std::thread pollThread{[&stopThread = mStopThread, looper = mLooper, javaVm = mJavaVm] { in getLooper()
166 if (javaVm->AttachCurrentThread(&env, &args) != JNI_OK) { in getLooper()
187 if (javaVm->DetachCurrentThread() != JNI_OK) { in getLooper()
/aosp_15_r20/frameworks/native/services/sensorservice/aidl/
H A DSensorManager.cpp215 std::thread pollThread{[&stopThread = mStopThread, looper = mLooper, javaVm = mJavaVm] { in getLooper()
231 if (javaVm->AttachCurrentThread(&env, &args) != JNI_OK) { in getLooper()
252 if (javaVm->DetachCurrentThread() != JNI_OK) { in getLooper()