Home
last modified time | relevance | path

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

/libnativehelper/include/nativehelper/
DScopedPrimitiveArray.h30 : mEnv(env), mJavaArray(NULL), mRawArray(NULL) {} \
32 : mEnv(env), mJavaArray(javaArray), mRawArray(NULL) { \
34 jniThrowNullPointerException(mEnv, NULL); \
36 mRawArray = mEnv->Get ## NAME ## ArrayElements(mJavaArray, NULL); \
41 mEnv->Release ## NAME ## ArrayElements(mJavaArray, mRawArray, JNI_ABORT); \
46 mRawArray = mEnv->Get ## NAME ## ArrayElements(mJavaArray, NULL); \
51 size_t size() const { return mEnv->GetArrayLength(mJavaArray); } \
53 JNIEnv* const mEnv; \
78 : mEnv(env), mJavaArray(NULL), mRawArray(NULL) {} \
80 : mEnv(env), mJavaArray(javaArray), mRawArray(NULL) { \
[all …]
DScopedBytes.h32 : mEnv(env), mObject(object), mByteArray(NULL), mPtr(NULL) in ScopedBytes()
35 jniThrowNullPointerException(mEnv, NULL); in ScopedBytes()
36 } else if (mEnv->IsInstanceOf(mObject, JniConstants::byteArrayClass)) { in ScopedBytes()
38 mPtr = mEnv->GetByteArrayElements(mByteArray, NULL); in ScopedBytes()
40 mPtr = reinterpret_cast<jbyte*>(mEnv->GetDirectBufferAddress(mObject)); in ScopedBytes()
46 mEnv->ReleaseByteArrayElements(mByteArray, mPtr, readOnly ? JNI_ABORT : 0); in ~ScopedBytes()
51 JNIEnv* const mEnv;
DScopedLocalFrame.h24 ScopedLocalFrame(JNIEnv* env) : mEnv(env) { in ScopedLocalFrame()
25 mEnv->PushLocalFrame(128); in ScopedLocalFrame()
29 mEnv->PopLocalFrame(NULL); in ~ScopedLocalFrame()
33 JNIEnv* const mEnv;
DScopedLocalRef.h29 ScopedLocalRef(JNIEnv* env, T localRef) : mEnv(env), mLocalRef(localRef) { in ScopedLocalRef()
39 mEnv->DeleteLocalRef(mLocalRef);
56 JNIEnv* const mEnv;
/libnativehelper/
DJNIHelp.cpp42 : mEnv(env), mLocalRef(localRef) in scoped_local_ref()
52 (*mEnv)->DeleteLocalRef(reinterpret_cast<JNIEnv*>(mEnv), mLocalRef); in reset()
62 C_JNIEnv* const mEnv; member in scoped_local_ref