Home
last modified time | relevance | path

Searched refs:VmDetacher (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/jni/
Dcore_jni_helpers.h73 struct VmDetacher { struct
74 VmDetacher(JavaVM* vm) : mVm(vm) {} in VmDetacher() argument
75 ~VmDetacher() { mVm->DetachCurrentThread(); } in ~VmDetacher() argument
80 static thread_local VmDetacher detacher(jvm);
/frameworks/base/services/incremental/
DServiceWrappers.cpp483 struct VmDetacher { in getOrAttachJniEnv() struct
484 VmDetacher(JavaVM* vm) : mVm(vm) {} in getOrAttachJniEnv() argument
485 ~VmDetacher() { mVm->DetachCurrentThread(); } in getOrAttachJniEnv() argument
490 static thread_local VmDetacher detacher(jvm); in getOrAttachJniEnv()