/libnativehelper/include/nativehelper/ |
ScopedLocalFrame.h | 24 ScopedLocalFrame(JNIEnv* env) : mEnv(env) { 25 mEnv->PushLocalFrame(128); 29 mEnv->PopLocalFrame(NULL); 33 JNIEnv* const mEnv;
|
ScopedLocalRef.h | 29 ScopedLocalRef(JNIEnv* env, T localRef) : mEnv(env), mLocalRef(localRef) { 39 mEnv->DeleteLocalRef(mLocalRef); 56 JNIEnv* const mEnv;
|
ScopedBytes.h | 32 : mEnv(env), mObject(object), mByteArray(NULL), mPtr(NULL) 35 jniThrowNullPointerException(mEnv, NULL); 36 } else if (mEnv->IsInstanceOf(mObject, JniConstants::byteArrayClass)) { 38 mPtr = mEnv->GetByteArrayElements(mByteArray, NULL); 40 mPtr = reinterpret_cast<jbyte*>(mEnv->GetDirectBufferAddress(mObject)); 46 mEnv->ReleaseByteArrayElements(mByteArray, mPtr, readOnly ? JNI_ABORT : 0); 51 JNIEnv* const mEnv;
|
/external/conscrypt/src/compat/native/ |
NetFd.h | 26 : mEnv(env), mFileDescriptor(fileDescriptor), mFd(-1) 31 mFd = jniGetFDFromFileDescriptor(mEnv, mFileDescriptor); 34 jniThrowException(mEnv, "java/net/SocketException", "Socket closed"); 44 JNIEnv* mEnv;
|
ScopedLocalRef.h | 28 ScopedLocalRef(JNIEnv* env, T localRef) : mEnv(env), mLocalRef(localRef) { 38 mEnv->DeleteLocalRef(mLocalRef); 55 JNIEnv* mEnv;
|
JNIHelp.cpp | 36 : mEnv(env), mLocalRef(localRef) 46 (*mEnv)->DeleteLocalRef(reinterpret_cast<JNIEnv*>(mEnv), mLocalRef); 56 C_JNIEnv* mEnv;
|
/libcore/include/ |
ScopedIcuLocale.h | 26 ScopedIcuLocale(JNIEnv* env, jstring javaLocaleName) : mEnv(env) { 30 jniThrowNullPointerException(mEnv, "javaLocaleName == null"); 54 JNIEnv* const mEnv;
|
ScopedJavaUnicodeString.h | 28 ScopedJavaUnicodeString(JNIEnv* env, jstring s) : mEnv(env), mString(s) { 30 jniThrowNullPointerException(mEnv, NULL); 40 mEnv->ReleaseStringChars(mString, mChars); 57 JNIEnv* mEnv;
|
/libcore/luni/src/main/native/ |
NetFd.h | 26 : mEnv(env), mFileDescriptor(fileDescriptor), mFd(-1) 31 mFd = jniGetFDFromFileDescriptor(mEnv, mFileDescriptor); 34 jniThrowException(mEnv, "java/net/SocketException", "Socket closed"); 44 JNIEnv* mEnv;
|
java_util_regex_Matcher.cpp | 72 mEnv->ReleaseStringChars(mJavaInput, mChars); 74 maybeThrowIcuException(mEnv, "utext_close", mStatus); 86 ScopedIntArrayRW offsets(mEnv, javaOffsets); 99 mEnv = env; 107 JNIEnv* mEnv;
|
org_apache_harmony_xml_ExpatParser.cpp | 500 return internString(mEnv, mParsingContext, mUri); 509 return internString(mEnv, mParsingContext, mLocalName); 523 return internString(mEnv, mParsingContext, &qName[0]); 557 JNIEnv* mEnv; 571 mEnv = env; [all...] |
/packages/apps/Gallery2/jni_jpegstream/src/ |
stream_wrapper.h | 37 JNIEnv *mEnv;
|
/cts/tests/tests/effect/src/android/effect/cts/ |
EffectTest.java | 33 private GLEnv mEnv; 43 mEnv = new GLEnv(); 44 mEnv.makeCurrent(); 53 if (mEnv != null) { 54 mEnv.tearDown(); 102 int inputTexture = mEnv.bitmapToTexture(bitmap); 103 int outputTexture = mEnv.generateTexture(); 109 mEnv.releaseTexture(inputTexture); 110 mEnv.releaseTexture(outputTexture);
|
/frameworks/ex/framesequence/jni/ |
Stream.h | 77 mEnv(env), 86 JNIEnv* mEnv;
|
/frameworks/opt/net/wifi/service/jni/ |
jni_helper.h | 53 JNIEnv *mEnv;
|
/art/runtime/native/ |
libcore_util_CharsetUtils.cc | 44 : mEnv(env), mJavaArray(nullptr), mRawArray(nullptr), mSize(-1), mOffset(0) { 50 mEnv->ReleaseByteArrayElements(mJavaArray, mRawArray, 0); 68 jbyteArray newJavaArray = mEnv->NewByteArray(newSize); 72 jbyte* newRawArray = mEnv->GetByteArrayElements(newJavaArray, nullptr); 81 mEnv->ReleaseByteArrayElements(mJavaArray, mRawArray, JNI_ABORT); 82 mEnv->DeleteLocalRef(mJavaArray); 99 JNIEnv* mEnv;
|
dalvik_system_DexFile.cc | 119 NullableScopedUtfChars(JNIEnv* env, jstring s) : mEnv(env), mString(s) { 125 mEnv->ReleaseStringUTFChars(mString, mUtfChars); 143 JNIEnv* mEnv;
|
/cts/tests/tests/nativeopengl/standalone/jni/ |
GLTestHelper.cpp | 30 : mActivity(activity), mEnv(env) { 45 JNIEnv * mEnv; 56 mEnv->CallVoidMethod(mActivity, mSendStatusID, 57 mEnv->NewStringUTF(mMessageBuffer)); 64 mEnv->CallVoidMethod(mActivity, mSendStatusID, 65 mEnv->NewStringUTF(mMessageBuffer)); 76 mEnv->CallVoidMethod(mActivity, mSendStatusID, 77 mEnv->NewStringUTF(mMessageBuffer)); 88 mEnv->CallVoidMethod(mActivity, mSendStatusID, 89 mEnv->NewStringUTF(mMessageBuffer)) [all...] |
/frameworks/base/media/jni/ |
android_media_MediaScanner.cpp | 112 : mEnv(env), 145 mEnv->DeleteGlobalRef(mClient); 155 if ((pathStr = mEnv->NewStringUTF(path)) == NULL) { 156 mEnv->ExceptionClear(); 160 mEnv->CallVoidMethod(mClient, mScanFileMethodID, pathStr, lastModified, 163 mEnv->DeleteLocalRef(pathStr); 164 return checkAndClearExceptionFromCallback(mEnv, "scanFile"); 171 if ((nameStr = mEnv->NewStringUTF(name)) == NULL) { 172 mEnv->ExceptionClear(); 188 valueStr = mEnv->NewStringUTF(value) [all...] |
/libnativehelper/ |
JNIHelp.cpp | 42 : mEnv(env), mLocalRef(localRef) 52 (*mEnv)->DeleteLocalRef(reinterpret_cast<JNIEnv*>(mEnv), mLocalRef); 62 C_JNIEnv* const mEnv;
|
/cts/tests/tests/renderscript/libcoremathtestcpp/ |
CoreMathTestJni.cpp | 43 JNIEnv* mEnv; 62 JavaStruct::JavaStruct(JNIEnv* env, const std::string& name) : mEnv(env), mClass(0), mObject(0) { 88 mEnv->SetIntField(mObject, fieldId, value); 95 mEnv->SetFloatField(mObject, fieldId, value); 103 jfieldID fieldId = mEnv->GetFieldID(mClass, name, type);
|
/frameworks/base/core/jni/android/opengl/ |
util.cpp | 255 mEnv = env; 265 ArrayReleaser::Release(mEnv, mRef, mBase, mReleaseParam); 278 doThrowIAE(mEnv, "array == null"); 282 doThrowIAE(mEnv, "offset < 0"); 285 mLength = mEnv->GetArrayLength(mRef) - mOffset; 287 doThrowIAE(mEnv, "length - offset < n"); 296 mBase = (T*) ArrayGetter::Get(mEnv, mRef, (jboolean *) 0); 309 JNIEnv* mEnv; 860 mEnv = env; 868 mData = getPointer(mEnv, mBuffer, &mRemaining) [all...] |
/frameworks/support/v8/renderscript/jni/ |
android_renderscript_RenderScript.cpp | 233 : mEnv(env), mStrings(strings), mStringsLength(stringsLength) { 240 jstring s = (jstring)mEnv->GetObjectArrayElement(mStrings, ct); 241 mCStrings[ct] = mEnv->GetStringUTFChars(s, NULL); 242 mSizeArray[ct] = mEnv->GetStringUTFLength(s); 248 jstring s = (jstring)mEnv->GetObjectArrayElement(mStrings, ct); 249 mEnv->ReleaseStringUTFChars(s, mCStrings[ct]); 259 JNIEnv *mEnv; [all...] |
/frameworks/base/core/jni/ |
android_hardware_camera2_DngCreator.cpp | 317 JNIEnv* mEnv; 322 mEnv(env) { 330 mEnv->DeleteLocalRef(mByteArray); 342 mEnv->SetByteArrayRegion(mByteArray, 0, len, reinterpret_cast<const jbyte*>(buf + offset)); 344 if (mEnv->ExceptionCheck()) { 348 mEnv->CallVoidMethod(mOutputStream, gOutputStreamClassInfo.mWriteMethod, mByteArray, 351 if (mEnv->ExceptionCheck()) { 392 JNIEnv* mEnv; 397 JniInputStream::JniInputStream(JNIEnv* env, jobject inStream) : mInStream(inStream), mEnv(env) { 405 mEnv->DeleteLocalRef(mByteArray) [all...] |
/frameworks/base/rs/jni/ |
android_renderscript_RenderScript.cpp | 247 : mEnv(env), mStrings(strings), mStringsLength(stringsLength) { 254 jstring s = (jstring)mEnv->GetObjectArrayElement(mStrings, ct); 255 mCStrings[ct] = mEnv->GetStringUTFChars(s, nullptr); 256 mSizeArray[ct] = mEnv->GetStringUTFLength(s); 262 jstring s = (jstring)mEnv->GetObjectArrayElement(mStrings, ct); 263 mEnv->ReleaseStringUTFChars(s, mCStrings[ct]); 273 JNIEnv *mEnv; [all...] |