Searched refs:mEnv (Results 1 – 5 of 5) sorted by relevance
/libnativehelper/include/nativehelper/ |
D | ScopedPrimitiveArray.h | 42 : mEnv(env), mJavaArray(NULL), mRawArray(NULL), mSize(0) {} \ 44 : mEnv(env) { \ 49 jniThrowNullPointerException(mEnv, NULL); \ 56 mEnv->Release ## NAME ## ArrayElements(mJavaArray, mRawArray, JNI_ABORT); \ 61 mSize = mEnv->GetArrayLength(mJavaArray); \ 63 mEnv->Get ## NAME ## ArrayRegion(mJavaArray, 0, mSize, mBuffer); \ 66 mRawArray = mEnv->Get ## NAME ## ArrayElements(mJavaArray, NULL); \ 75 JNIEnv* const mEnv; \ 102 : mEnv(env), mJavaArray(NULL), mRawArray(NULL) {} \ 104 : mEnv(env), mJavaArray(javaArray), mRawArray(NULL) { \ [all …]
|
D | ScopedLocalFrame.h | 24 explicit ScopedLocalFrame(JNIEnv* env) : mEnv(env) { in ScopedLocalFrame() 25 mEnv->PushLocalFrame(128); in ScopedLocalFrame() 29 mEnv->PopLocalFrame(NULL); in ~ScopedLocalFrame() 33 JNIEnv* const mEnv;
|
D | ScopedBytes.h | 32 : 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;
|
D | ScopedLocalRef.h | 29 ScopedLocalRef(JNIEnv* env, T localRef) : mEnv(env), mLocalRef(localRef) { in ScopedLocalRef() 39 mEnv->DeleteLocalRef(mLocalRef); 56 JNIEnv* const mEnv;
|
/libnativehelper/ |
D | JNIHelp.cpp | 44 : mEnv(env), mLocalRef(localRef) in scoped_local_ref() 54 (*mEnv)->DeleteLocalRef(reinterpret_cast<JNIEnv*>(mEnv), mLocalRef); in reset() 64 C_JNIEnv* const mEnv; member in scoped_local_ref
|