HomeSort by relevance Sort by last modified time
    Searched refs:mEnv (Results 1 - 16 of 16) sorted by null

  /libcore/include/
ScopedLocalFrame.h 24 ScopedLocalFrame(JNIEnv* env) : mEnv(env) {
25 mEnv->PushLocalFrame(128);
29 mEnv->PopLocalFrame(NULL);
33 JNIEnv* mEnv;
ScopedLocalRef.h 27 : mEnv(env), mLocalRef(localRef)
37 mEnv->DeleteLocalRef(mLocalRef);
47 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;
ScopedJavaUnicodeString.h 28 ScopedJavaUnicodeString(JNIEnv* env, jstring s) : mEnv(env), mString(s) {
35 mEnv->ReleaseStringChars(mString, mChars);
47 JNIEnv* mEnv;
ScopedPrimitiveArray.h 30 : mEnv(env), mJavaArray(javaArray), mRawArray(NULL) { \
32 jniThrowNullPointerException(mEnv, NULL); \
34 mRawArray = mEnv->Get ## NAME ## ArrayElements(mJavaArray, NULL); \
39 mEnv->Release ## NAME ## ArrayElements(mJavaArray, mRawArray, JNI_ABORT); \
44 size_t size() const { return mEnv->GetArrayLength(mJavaArray); } \
46 JNIEnv* mEnv; \
72 : mEnv(env), mJavaArray(javaArray), mRawArray(NULL) { \
74 jniThrowNullPointerException(mEnv, NULL); \
76 mRawArray = mEnv->Get ## NAME ## ArrayElements(mJavaArray, NULL); \
81 mEnv->Release ## NAME ## ArrayElements(mJavaArray, mRawArray, 0);
    [all...]
ScopedStringChars.h 25 ScopedStringChars(JNIEnv* env, jstring s) : mEnv(env), mString(s), mSize(0) {
33 mEnv->ReleaseStringChars(mString, mChars);
41 JNIEnv* mEnv;
ScopedUtfChars.h 35 : mEnv(env), mString(s)
47 mEnv->ReleaseStringUTFChars(mString, mUtfChars);
65 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 72 mEnv->ReleaseStringChars(mJavaInput, mChars);
74 maybeThrowIcuException(mEnv, mStatus);
86 ScopedIntArrayRW offsets(mEnv, javaOffsets);
99 mEnv = env;
107 JNIEnv* mEnv;
libcore_io_Posix.cpp 164 IoVec(JNIEnv* env, size_t bufferCount) : mEnv(env), mBufferCount(bufferCount) {
169 if (mEnv->PushLocalFrame(mBufferCount + 16) < 0) {
172 ScopedIntArrayRO offsets(mEnv, javaOffsets);
176 ScopedIntArrayRO byteCounts(mEnv, javaByteCounts);
183 jobject buffer = mEnv->GetObjectArrayElement(javaBuffers, i); // We keep this local ref.
184 mScopedBuffers.push_back(new ScopedT(mEnv, buffer));
201 mEnv->PopLocalFrame(NULL);
213 JNIEnv* mEnv;
336 Passwd(JNIEnv* env) : mEnv(env), mResult(NULL) {
362 throwErrnoException(mEnv, syscall)
    [all...]
org_apache_harmony_xml_ExpatParser.cpp 488 return internString(mEnv, mParsingContext, mUri);
497 return internString(mEnv, mParsingContext, mLocalName);
511 return internString(mEnv, mParsingContext, &qName[0]);
545 JNIEnv* mEnv;
559 mEnv = env;
    [all...]
  /frameworks/base/media/jni/
android_media_MediaScanner.cpp 63 : mEnv(env),
96 mEnv->DeleteGlobalRef(mClient);
106 if ((pathStr = mEnv->NewStringUTF(path)) == NULL) {
107 mEnv->ExceptionClear();
111 mEnv->CallVoidMethod(mClient, mScanFileMethodID, pathStr, lastModified,
114 mEnv->DeleteLocalRef(pathStr);
115 return checkAndClearExceptionFromCallback(mEnv, "scanFile");
122 if ((nameStr = mEnv->NewStringUTF(name)) == NULL) {
123 mEnv->ExceptionClear();
126 if ((valueStr = mEnv->NewStringUTF(value)) == NULL)
    [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;
778 mEnv = env;
786 mData = getPointer(mEnv, mBuffer, &mRemaining)
    [all...]
  /dalvik/vm/
CheckJni.cpp 293 ScopedJniThreadState ts(mEnv);
294 Object* obj = dvmDecodeIndirectRef(mEnv, jobj);
342 ScopedJniThreadState ts(mEnv);
344 Object* obj = dvmDecodeIndirectRef(mEnv, jobj);
415 ScopedJniThreadState ts(mEnv);
416 ClassObject* clazz = (ClassObject*) dvmDecodeIndirectRef(mEnv, jclazz);
438 ScopedJniThreadState ts(mEnv);
440 ClassObject* clazz = (ClassObject*) dvmDecodeIndirectRef(mEnv, jclazz);
459 ScopedJniThreadState ts(mEnv);
461 Object* obj = dvmDecodeIndirectRef(mEnv, jobj)
    [all...]
  /dalvik/libnativehelper/
JNIHelp.cpp 33 : mEnv(env), mLocalRef(localRef)
43 (*mEnv)->DeleteLocalRef(reinterpret_cast<JNIEnv*>(mEnv), mLocalRef);
53 C_JNIEnv* mEnv;

Completed in 398 milliseconds