Home
last modified time | relevance | path

Searched refs:mEnv (Results 1 – 5 of 5) sorted by relevance

/libnativehelper/header_only_include/nativehelper/
Dscoped_primitive_array.h43 : mEnv(env), mJavaArray(NULL), mRawArray(NULL), mSize(0) {} \
45 : mEnv(env) { \
50 jniThrowNullPointerException(mEnv, NULL); \
57 mEnv->Release ## NAME ## ArrayElements(mJavaArray, mRawArray, JNI_ABORT); \
62 mSize = mEnv->GetArrayLength(mJavaArray); \
64 mEnv->Get ## NAME ## ArrayRegion(mJavaArray, 0, mSize, mBuffer); \
67 mRawArray = mEnv->Get ## NAME ## ArrayElements(mJavaArray, NULL); \
76 JNIEnv* const mEnv; \
103 : mEnv(env), mJavaArray(NULL), mRawArray(NULL) {} \
105 : mEnv(env), mJavaArray(javaArray), mRawArray(NULL) { \
[all …]
Dscoped_local_ref.h29 ScopedLocalRef(JNIEnv* env, T localRef) : mEnv(env), mLocalRef(localRef) { in ScopedLocalRef()
32 ScopedLocalRef(ScopedLocalRef&& s) noexcept : mEnv(s.mEnv), mLocalRef(s.release()) { in ScopedLocalRef()
35 explicit ScopedLocalRef(JNIEnv* env) : mEnv(env), mLocalRef(nullptr) { in ScopedLocalRef()
45 mEnv->DeleteLocalRef(mLocalRef);
70 mEnv = s.mEnv;
85 JNIEnv* mEnv;
Dscoped_bytes.h33 : mEnv(env), mObject(object), mByteArray(NULL), mPtr(NULL) in ScopedBytes()
36 jniThrowNullPointerException(mEnv, NULL); in ScopedBytes()
39 if (mEnv->IsInstanceOf(mObject, byteArrayClass)) { in ScopedBytes()
41 mPtr = mEnv->GetByteArrayElements(mByteArray, NULL); in ScopedBytes()
43 mPtr = reinterpret_cast<jbyte*>(mEnv->GetDirectBufferAddress(mObject)); in ScopedBytes()
45 mEnv->DeleteLocalRef(byteArrayClass); in ScopedBytes()
51 mEnv->ReleaseByteArrayElements(mByteArray, mPtr, readOnly ? JNI_ABORT : 0); in ~ScopedBytes()
56 JNIEnv* const mEnv;
Dscoped_local_frame.h25 explicit ScopedLocalFrame(JNIEnv* env) : mEnv(env) { in ScopedLocalFrame()
26 mEnv->PushLocalFrame(128); in ScopedLocalFrame()
30 mEnv->PopLocalFrame(NULL); in ~ScopedLocalFrame()
34 JNIEnv* const mEnv;
/libnativehelper/
DJNIHelp.cpp35 : mEnv(env), mLocalRef(localRef) in scoped_local_ref()
45 (*mEnv)->DeleteLocalRef(reinterpret_cast<JNIEnv*>(mEnv), mLocalRef); in reset()
55 C_JNIEnv* const mEnv; member in scoped_local_ref