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* mEnv; \
79 : mEnv(env), mJavaArray(NULL), mRawArray(NULL) {} \
81 : 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* mEnv;
DScopedLocalFrame.h24 ScopedLocalFrame(JNIEnv* env) : mEnv(env) { in ScopedLocalFrame()
25 mEnv->PushLocalFrame(128); in ScopedLocalFrame()
29 mEnv->PopLocalFrame(NULL); in ~ScopedLocalFrame()
33 JNIEnv* mEnv;
DScopedLocalRef.h28 ScopedLocalRef(JNIEnv* env, T localRef) : mEnv(env), mLocalRef(localRef) { in ScopedLocalRef()
38 mEnv->DeleteLocalRef(mLocalRef);
55 JNIEnv* mEnv;
/libnativehelper/
DJNIHelp.cpp37 : mEnv(env), mLocalRef(localRef) in scoped_local_ref()
47 (*mEnv)->DeleteLocalRef(reinterpret_cast<JNIEnv*>(mEnv), mLocalRef); in reset()
57 C_JNIEnv* mEnv; member in scoped_local_ref