Home
last modified time | relevance | path

Searched refs:mEnv (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/services/core/jni/
Dcom_android_server_storage_AppFuseBridge.cpp37 JNIEnv* mEnv; member in android::__anon8dd579f70111::Callback
41 Callback(JNIEnv* env, jobject self) : mEnv(env), mSelf(self) {} in Callback()
43 mEnv->CallVoidMethod(mSelf, gAppFuseOnMount, mount_id); in OnMount()
44 if (mEnv->ExceptionCheck()) { in OnMount()
45 LOGE_EX(mEnv, nullptr); in OnMount()
46 mEnv->ExceptionClear(); in OnMount()
51 mEnv->CallVoidMethod(mSelf, gAppFuseOnClosed, mount_id); in OnClosed()
52 if (mEnv->ExceptionCheck()) { in OnClosed()
53 LOGE_EX(mEnv, nullptr); in OnClosed()
54 mEnv->ExceptionClear(); in OnClosed()
[all …]
Dcom_android_server_security_VerityUtils.cpp106 : mEnv(other.mEnv), mBytes(other.mBytes), mElements(other.mElements) { in JavaByteArrayHolder()
119 mEnv->ReleaseByteArrayElements(mBytes, mElements, 0); in release()
130 mEnv = env; in JavaByteArrayHolder()
131 mBytes = mEnv->NewByteArray(size); in JavaByteArrayHolder()
132 mElements = mEnv->GetByteArrayElements(mBytes, nullptr); in JavaByteArrayHolder()
136 JNIEnv* mEnv; member in android::__anon69dd2ccd0111::JavaByteArrayHolder
Dcom_android_server_location_GnssLocationProvider.cpp375 ScopedJniString(JNIEnv* env, jstring javaString) : mEnv(env), mJavaString(javaString) { in ScopedJniString()
376 mNativeString = mEnv->GetStringUTFChars(mJavaString, nullptr); in ScopedJniString()
381 mEnv->ReleaseStringUTFChars(mJavaString, mNativeString); in ~ScopedJniString()
397 JNIEnv* mEnv; member
409 jint attachResult = sJvm->AttachCurrentThread(&mEnv, nullptr); in ScopedJniThreadAttach()
432 LOG_ALWAYS_FATAL_IF(AndroidRuntime::getJNIEnv() != mEnv); in getEnv()
433 return mEnv; in getEnv()
437 JNIEnv* mEnv = nullptr; member in android::ScopedJniThreadAttach
/frameworks/base/media/jni/
Dandroid_media_MediaScanner.cpp114 : mEnv(env), in MyMediaScannerClient()
147 mEnv->DeleteGlobalRef(mClient); in ~MyMediaScannerClient()
157 if ((pathStr = mEnv->NewStringUTF(path)) == NULL) { in scanFile()
158 mEnv->ExceptionClear(); in scanFile()
162 mEnv->CallVoidMethod(mClient, mScanFileMethodID, pathStr, lastModified, in scanFile()
165 mEnv->DeleteLocalRef(pathStr); in scanFile()
166 return checkAndClearExceptionFromCallback(mEnv, "scanFile"); in scanFile()
173 if ((nameStr = mEnv->NewStringUTF(name)) == NULL) { in handleStringTag()
174 mEnv->ExceptionClear(); in handleStringTag()
190 valueStr = mEnv->NewStringUTF(value); in handleStringTag()
[all …]
Dandroid_mtp_MtpDevice.cpp113 mEnv(env), mArray(array), mSize(mEnv->GetArrayLength(mArray)) {} in JavaArrayWriter()
118 mEnv->SetByteArrayRegion(mArray, offset, length, static_cast<jbyte*>(data)); in write()
126 JNIEnv* mEnv; member in __anonda3733a30111::JavaArrayWriter
/frameworks/opt/net/wifi/service/jni/
Djni_helper.cpp33 vm->AttachCurrentThread(&mEnv, NULL); in JNIHelper()
40 mEnv = env; in JNIHelper()
48 mEnv = NULL; /* not really required; but may help debugging */ in ~JNIHelper()
53 return mEnv->NewLocalRef(obj); in newLocalRef()
57 mEnv->DeleteLocalRef(obj); in deleteLocalRef()
61 return JNIObject<jbyteArray>(*this, mEnv->NewByteArray(num)); in newByteArray()
65 mEnv->SetByteArrayRegion(array, from, to, bytes); in setByteArrayRegion()
Djni_helper.h70 JNIEnv *mEnv; variable
/frameworks/base/core/jni/android/graphics/
DFontUtils.cpp38 return mEnv->CallIntMethod(mList, gListClassInfo.mSize); in size()
42 return mEnv->CallObjectMethod(mList, gListClassInfo.mGet, index); in get()
46 return mEnv->GetIntField(mAxis, gAxisClassInfo.mTag); in getTag()
50 return mEnv->GetFloatField(mAxis, gAxisClassInfo.mStyleValue); in getStyleValue()
DFontUtils.h44 ListHelper(JNIEnv* env, jobject list) : mEnv(env), mList(list) {} in ListHelper()
50 JNIEnv* mEnv;
57 AxisHelper(JNIEnv* env, jobject axis) : mEnv(env), mAxis(axis) {} in AxisHelper()
63 JNIEnv* mEnv;
/frameworks/base/core/jni/
Dscoped_nullable_primitive_array.h56 ScopedArrayRO(JNIEnv* env, JavaArrayType javaArray) : mEnv(env), mJavaArray(javaArray) { in ARRAY_TRAITS()
61 mSize = mEnv->GetArrayLength(mJavaArray); in ARRAY_TRAITS()
63 Traits::getArrayRegion(mEnv, mJavaArray, 0, mSize, mBuffer); in ARRAY_TRAITS()
66 mRawArray = Traits::getArrayElements(mEnv, mJavaArray); in ARRAY_TRAITS()
73 Traits::releaseArrayElements(mEnv, mJavaArray, mRawArray, JNI_ABORT); in ARRAY_TRAITS()
82 JNIEnv* const mEnv; in ARRAY_TRAITS()
Dcom_android_internal_os_FuseAppLoop.cpp47 JNIEnv* const mEnv; member in android::__anoncf72fa640111::Callback
53 mEnv(env), mSelf(self) {} in Callback()
64 const jbyteArray buffer = static_cast<jbyteArray>(mEnv->CallObjectMethod( in OnOpen()
66 CHECK(!mEnv->ExceptionCheck()); in OnOpen()
72 new LocalBytes(mEnv, buffer)))); in OnOpen()
102 mEnv->SetByteArrayRegion(javaBuffer, 0, size, static_cast<const jbyte*>(buffer)); in OnWrite()
103 CHECK(!mEnv->ExceptionCheck()); in OnWrite()
112 mEnv->CallVoidMethod(mSelf, gOnCommandMethod, command, unique, inode, offset, size, bytes); in CallOnCommand()
113 CHECK(!mEnv->ExceptionCheck()); in CallOnCommand()
Dandroid_hardware_camera2_DngCreator.cpp328 JNIEnv* mEnv; member in JniOutputStream
333 mEnv(env) { in JniOutputStream()
341 mEnv->DeleteLocalRef(mByteArray); in ~JniOutputStream()
353 mEnv->SetByteArrayRegion(mByteArray, 0, len, reinterpret_cast<const jbyte*>(buf + offset)); in write()
355 if (mEnv->ExceptionCheck()) { in write()
359 mEnv->CallVoidMethod(mOutputStream, gOutputStreamClassInfo.mWriteMethod, mByteArray, in write()
362 if (mEnv->ExceptionCheck()) { in write()
403 JNIEnv* mEnv; member in JniInputStream
408 JniInputStream::JniInputStream(JNIEnv* env, jobject inStream) : mInStream(inStream), mEnv(env) { in JniInputStream()
416 mEnv->DeleteLocalRef(mByteArray); in ~JniInputStream()
[all …]
/frameworks/ex/framesequence/jni/
DStream.cpp128 jint bytesRead = mEnv->CallIntMethod(mInputStream, in doRead()
130 if (mEnv->ExceptionCheck() || bytesRead < 0) { in doRead()
134 mEnv->GetByteArrayRegion(mByteArray, 0, bytesRead, (jbyte*)dstBuffer); in doRead()
DStream.h77 mEnv(env), in JavaInputStream()
86 JNIEnv* mEnv;
/frameworks/base/core/jni/android/opengl/
Dutil.cpp234 mEnv = env; in ArrayHelper()
244 ArrayReleaser::Release(mEnv, mRef, mBase, mReleaseParam); in ~ArrayHelper()
257 doThrowIAE(mEnv, "array == null"); in check()
261 doThrowIAE(mEnv, "offset < 0"); in check()
264 mLength = mEnv->GetArrayLength(mRef) - mOffset; in check()
266 doThrowIAE(mEnv, "length - offset < n"); in check()
275 mBase = (T*) ArrayGetter::Get(mEnv, mRef, (jboolean *) 0); in bind()
288 JNIEnv* mEnv; member in android::ArrayHelper
793 mEnv = env; in BufferHelper()
801 mData = getPointer(mEnv, mBuffer, &mRemaining); in checkPointer()
[all …]
/frameworks/opt/gamesdk/src/swappy/
DChoreographerThread.cpp203 JNIEnv *mEnv = nullptr; member in swappy::JavaChoreographerThread
/frameworks/rs/support/jni/
Dandroid_renderscript_RenderScript.cpp237 : mEnv(env), mStrings(strings), mStringsLength(stringsLength) { in AutoJavaStringArrayToUTF8()
244 jstring s = (jstring)mEnv->GetObjectArrayElement(mStrings, ct); in AutoJavaStringArrayToUTF8()
245 mCStrings[ct] = mEnv->GetStringUTFChars(s, NULL); in AutoJavaStringArrayToUTF8()
246 mSizeArray[ct] = mEnv->GetStringUTFLength(s); in AutoJavaStringArrayToUTF8()
252 jstring s = (jstring)mEnv->GetObjectArrayElement(mStrings, ct); in ~AutoJavaStringArrayToUTF8()
253 mEnv->ReleaseStringUTFChars(s, mCStrings[ct]); in ~AutoJavaStringArrayToUTF8()
263 JNIEnv *mEnv; member in AutoJavaStringArrayToUTF8
/frameworks/base/rs/jni/
Dandroid_renderscript_RenderScript.cpp273 : mEnv(env), mStrings(strings), mStringsLength(stringsLength) { in AutoJavaStringArrayToUTF8()
280 jstring s = (jstring)mEnv->GetObjectArrayElement(mStrings, ct); in AutoJavaStringArrayToUTF8()
281 mCStrings[ct] = mEnv->GetStringUTFChars(s, nullptr); in AutoJavaStringArrayToUTF8()
282 mSizeArray[ct] = mEnv->GetStringUTFLength(s); in AutoJavaStringArrayToUTF8()
288 jstring s = (jstring)mEnv->GetObjectArrayElement(mStrings, ct); in ~AutoJavaStringArrayToUTF8()
289 mEnv->ReleaseStringUTFChars(s, mCStrings[ct]); in ~AutoJavaStringArrayToUTF8()
299 JNIEnv *mEnv; member in AutoJavaStringArrayToUTF8