Searched refs:mEnv (Results 1 – 5 of 5) sorted by relevance
/libnativehelper/header_only_include/nativehelper/ |
D | scoped_primitive_array.h | 43 : 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 …]
|
D | scoped_local_ref.h | 29 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;
|
D | scoped_bytes.h | 33 : 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;
|
D | scoped_local_frame.h | 25 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/ |
D | JNIHelp.cpp | 35 : 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
|