/libnativehelper/include/nativehelper/ |
ScopedLocalFrame.h | 24 ScopedLocalFrame(JNIEnv* env) : mEnv(env) { 25 mEnv->PushLocalFrame(128); 29 mEnv->PopLocalFrame(NULL); 33 JNIEnv* 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* mEnv;
|
ScopedLocalRef.h | 28 ScopedLocalRef(JNIEnv* env, T localRef) : mEnv(env), mLocalRef(localRef) { 38 mEnv->DeleteLocalRef(mLocalRef); 55 JNIEnv* mEnv;
|
ScopedPrimitiveArray.h | 30 : 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...] |
/packages/apps/Gallery2/jni_jpegstream/src/ |
outputstream_wrapper.cpp | 26 mEnv->ReleaseByteArrayElements(mByteArray, mBytes, JNI_COMMIT); 28 if (mEnv->ExceptionCheck()) { 36 mEnv->CallVoidMethod(mStream, sWriteID, mByteArray, offset, length); 37 if (mEnv->ExceptionCheck()) { 40 mBytes = mEnv->GetByteArrayElements(mByteArray, NULL); 41 if (mBytes == NULL || mEnv->ExceptionCheck()) {
|
stream_wrapper.cpp | 22 StreamWrapper::StreamWrapper() : mEnv(NULL), 37 mEnv = env; 41 if (mEnv != NULL) { 45 mEnv = env; 71 if (mEnv != NULL) { 73 mEnv->DeleteGlobalRef(mStream); 78 mEnv->ReleaseByteArrayElements(mByteArray, mBytes, JNI_ABORT); 81 mEnv->DeleteGlobalRef(mByteArray); 87 mEnv = NULL;
|
inputstream_wrapper.cpp | 28 mEnv->ReleaseByteArrayElements(mByteArray, mBytes, JNI_COMMIT); 30 if (mEnv->ExceptionCheck()) { 33 bytesRead = static_cast<int32_t>(mEnv->CallIntMethod(mStream, sReadID, 35 if (mEnv->ExceptionCheck()) { 38 mBytes = mEnv->GetByteArrayElements(mByteArray, NULL); 39 if (mBytes == NULL || mEnv->ExceptionCheck()) { 50 bytesSkipped = static_cast<int64_t>(mEnv->CallLongMethod(mStream, sSkipID, 52 if (mEnv->ExceptionCheck() || bytesSkipped < 0) {
|
stream_wrapper.h | 37 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_nio_charset_Charsets.cpp | 42 : mEnv(env), mJavaArray(NULL), mRawArray(NULL), mSize(-1), mOffset(0) 49 mEnv->ReleaseByteArrayElements(mJavaArray, mRawArray, 0); 67 jbyteArray newJavaArray = mEnv->NewByteArray(newSize); 71 jbyte* newRawArray = mEnv->GetByteArrayElements(newJavaArray, NULL); 80 mEnv->ReleaseByteArrayElements(mJavaArray, mRawArray, JNI_ABORT); 81 mEnv->DeleteLocalRef(mJavaArray); 98 JNIEnv* mEnv;
|
java_util_regex_Matcher.cpp | 73 mEnv->ReleaseStringChars(mJavaInput, mChars); 75 maybeThrowIcuException(mEnv, "utext_close", mStatus); 87 ScopedIntArrayRW offsets(mEnv, javaOffsets); 100 mEnv = env; 108 JNIEnv* mEnv;
|
libcore_icu_NativeBreakIterator.cpp | 74 mEnv->ReleaseStringChars(mJavaInput, mChars); 76 maybeThrowIcuException(mEnv, "utext_close", mStatus); 89 mEnv = env; 97 JNIEnv* mEnv;
|
libcore_io_Posix.cpp | 160 IoVec(JNIEnv* env, size_t bufferCount) : mEnv(env), mBufferCount(bufferCount) { 165 if (mEnv->PushLocalFrame(mBufferCount + 16) < 0) { 168 ScopedIntArrayRO offsets(mEnv, javaOffsets); 172 ScopedIntArrayRO byteCounts(mEnv, javaByteCounts); 179 jobject buffer = mEnv->GetObjectArrayElement(javaBuffers, i); // We keep this local ref. 180 mScopedBuffers.push_back(new ScopedT(mEnv, buffer)); 197 mEnv->PopLocalFrame(NULL); 209 JNIEnv* mEnv; 361 Passwd(JNIEnv* env) : mEnv(env), mResult(NULL) { 382 throwErrnoException(mEnv, syscall) [all...] |
org_apache_harmony_xml_ExpatParser.cpp | 499 return internString(mEnv, mParsingContext, mUri); 508 return internString(mEnv, mParsingContext, mLocalName); 522 return internString(mEnv, mParsingContext, &qName[0]); 556 JNIEnv* mEnv; 570 mEnv = env; [all...] |
/libcore/include/ |
ScopedJavaUnicodeString.h | 28 ScopedJavaUnicodeString(JNIEnv* env, jstring s) : mEnv(env), mString(s) { 30 jniThrowNullPointerException(mEnv, NULL); 40 mEnv->ReleaseStringChars(mString, mChars); 57 JNIEnv* mEnv;
|
/frameworks/base/media/jni/ |
android_media_MediaScanner.cpp | 111 : mEnv(env), 144 mEnv->DeleteGlobalRef(mClient); 154 if ((pathStr = mEnv->NewStringUTF(path)) == NULL) { 155 mEnv->ExceptionClear(); 159 mEnv->CallVoidMethod(mClient, mScanFileMethodID, pathStr, lastModified, 162 mEnv->DeleteLocalRef(pathStr); 163 return checkAndClearExceptionFromCallback(mEnv, "scanFile"); 170 if ((nameStr = mEnv->NewStringUTF(name)) == NULL) { 171 mEnv->ExceptionClear(); 187 valueStr = mEnv->NewStringUTF(value) [all...] |
/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);
|
/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/core/jni/android/opengl/ |
util.cpp | 160 mEnv = env; 170 mEnv->ReleasePrimitiveArrayCritical(mRef, mBase, mReleaseParam); 183 doThrowIAE(mEnv, "array == null"); 187 doThrowIAE(mEnv, "offset < 0"); 190 mLength = mEnv->GetArrayLength(mRef) - mOffset; 192 doThrowIAE(mEnv, "length - offset < n"); 201 mBase = (T*) mEnv->GetPrimitiveArrayCritical(mRef, (jboolean *) 0); 214 JNIEnv* mEnv; 784 mEnv = env; 792 mData = getPointer(mEnv, mBuffer, &mRemaining) [all...] |
/art/runtime/native/ |
dalvik_system_DexFile.cc | 54 NullableScopedUtfChars(JNIEnv* env, jstring s) : mEnv(env), mString(s) { 60 mEnv->ReleaseStringUTFChars(mString, mUtfChars); 78 JNIEnv* mEnv;
|
/libnativehelper/ |
JNIHelp.cpp | 39 : mEnv(env), mLocalRef(localRef) 49 (*mEnv)->DeleteLocalRef(reinterpret_cast<JNIEnv*>(mEnv), mLocalRef); 59 C_JNIEnv* mEnv;
|
/dalvik/vm/ |
CheckJni.cpp | 293 ScopedCheckJniThreadState ts(mEnv); 342 ScopedCheckJniThreadState ts(mEnv); 415 ScopedCheckJniThreadState ts(mEnv); 438 ScopedCheckJniThreadState ts(mEnv); 459 ScopedCheckJniThreadState ts(mEnv); 710 return ((JNIEnvExt*) mEnv)->self; 714 JNIEnv* mEnv; 721 mEnv = env; 746 ScopedCheckJniThreadState ts(mEnv); 788 ScopedCheckJniThreadState ts(mEnv); [all...] |
/frameworks/support/v8/renderscript/jni/ |
android_renderscript_RenderScript.cpp | 57 : mEnv(env), mStrings(strings), mStringsLength(stringsLength) { 64 jstring s = (jstring)mEnv->GetObjectArrayElement(mStrings, ct); 65 mCStrings[ct] = mEnv->GetStringUTFChars(s, NULL); 66 mSizeArray[ct] = mEnv->GetStringUTFLength(s); 72 jstring s = (jstring)mEnv->GetObjectArrayElement(mStrings, ct); 73 mEnv->ReleaseStringUTFChars(s, mCStrings[ct]); 83 JNIEnv *mEnv; [all...] |
/frameworks/base/graphics/jni/ |
android_renderscript_RenderScript.cpp | 75 : mEnv(env), mStrings(strings), mStringsLength(stringsLength) { 82 jstring s = (jstring)mEnv->GetObjectArrayElement(mStrings, ct); 83 mCStrings[ct] = mEnv->GetStringUTFChars(s, NULL); 84 mSizeArray[ct] = mEnv->GetStringUTFLength(s); 90 jstring s = (jstring)mEnv->GetObjectArrayElement(mStrings, ct); 91 mEnv->ReleaseStringUTFChars(s, mCStrings[ct]); 101 JNIEnv *mEnv; [all...] |