Home
last modified time | relevance | path

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

/frameworks/base/services/core/jni/
Dcom_android_server_storage_AppFuseBridge.cpp37 JNIEnv* mEnv; member in android::__anona2f104150111::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_adb_AdbDebuggingManager.cpp44 JSmartWrapper(JNIEnv* env, T* jData) : mEnv(env), mJData(jData) {} in JSmartWrapper()
54 JNIEnv* mEnv = nullptr; member in android::__anon817951d40111::JSmartWrapper
68 mEnv->ReleaseStringUTFChars(*mJData, mRawData); in ~JStringUTFWrapper()
Dcom_android_server_location_GnssLocationProvider.cpp294 ScopedJniString(JNIEnv* env, jstring javaString) : mEnv(env), mJavaString(javaString) { in ScopedJniString()
295 mNativeString = mEnv->GetStringUTFChars(mJavaString, nullptr); in ScopedJniString()
300 mEnv->ReleaseStringUTFChars(mJavaString, mNativeString); in ~ScopedJniString()
316 JNIEnv* mEnv; member
/frameworks/base/core/jni/
Dcom_android_internal_os_KernelSingleProcessCpuThreadReader.cpp105 JNIEnv *mEnv; member in android::MockCpuTimeInStateReader
110 : mEnv(env), mCpuTimeInStateReader(cpuTimeInStateReader) {} in MockCpuTimeInStateReader()
261 jclass cls = mEnv->GetObjectClass(mCpuTimeInStateReader); in getCpuFrequencyCount()
262 jmethodID mid = mEnv->GetMethodID(cls, "getCpuFrequencyCount", "()I"); in getCpuFrequencyCount()
267 return (size_t)mEnv->CallIntMethod(mCpuTimeInStateReader, mid); in getCpuFrequencyCount()
271 jclass cls = mEnv->GetObjectClass(mCpuTimeInStateReader); in startTrackingProcessCpuTimes()
272 jmethodID mid = mEnv->GetMethodID(cls, "startTrackingProcessCpuTimes", "(I)Z"); in startTrackingProcessCpuTimes()
277 return mEnv->CallBooleanMethod(mCpuTimeInStateReader, mid, tgid); in startTrackingProcessCpuTimes()
281 jclass cls = mEnv->GetObjectClass(mCpuTimeInStateReader); in startAggregatingTaskCpuTimes()
282 jmethodID mid = mEnv->GetMethodID(cls, "startAggregatingTaskCpuTimes", "(II)Z"); in startAggregatingTaskCpuTimes()
[all …]
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::__anone0a608020111::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.cpp344 JNIEnv* mEnv; member in JniOutputStream
349 mEnv(env) { in JniOutputStream()
357 mEnv->DeleteLocalRef(mByteArray); in ~JniOutputStream()
369 mEnv->SetByteArrayRegion(mByteArray, 0, len, reinterpret_cast<const jbyte*>(buf + offset)); in write()
371 if (mEnv->ExceptionCheck()) { in write()
375 mEnv->CallVoidMethod(mOutputStream, gOutputStreamClassInfo.mWriteMethod, mByteArray, in write()
378 if (mEnv->ExceptionCheck()) { in write()
419 JNIEnv* mEnv; member in JniInputStream
424 JniInputStream::JniInputStream(JNIEnv* env, jobject inStream) : mInStream(inStream), mEnv(env) { in JniInputStream()
432 mEnv->DeleteLocalRef(mByteArray); in ~JniInputStream()
[all …]
Dandroid_media_AudioTrack.cpp98 JNIEnv *const mEnv; member in TunerConfigurationHelper
120 : mEnv(env), mTunerConfiguration(tunerConfiguration) {} in TunerConfigurationHelper()
123 if (mEnv == nullptr || mTunerConfiguration == nullptr) return 0; in getContentId()
124 const Ids &ids = getIds(mEnv); in getContentId()
125 return (int32_t)mEnv->GetIntField(mTunerConfiguration, ids.mContentId); in getContentId()
129 if (mEnv == nullptr || mTunerConfiguration == nullptr) return 0; in getSyncId()
130 const Ids &ids = getIds(mEnv); in getSyncId()
131 return (int32_t)mEnv->GetIntField(mTunerConfiguration, ids.mSyncId); in getSyncId()
Dandroid_os_Parcel.cpp637 StackString(JNIEnv* env, jstring str) : mEnv(env), mJStr(str) { in StackString()
645 mEnv->GetStringRegion(str, 0, mSize, mStr); in StackString()
656 JNIEnv* mEnv; member in android::StackString
/frameworks/base/libs/hwui/jni/
DFontUtils.cpp37 return mEnv->CallIntMethod(mList, gListClassInfo.mSize); in size()
41 return mEnv->CallObjectMethod(mList, gListClassInfo.mGet, index); in get()
45 return mEnv->GetIntField(mAxis, gAxisClassInfo.mTag); in getTag()
49 return mEnv->GetFloatField(mAxis, gAxisClassInfo.mStyleValue); in getStyleValue()
DFontUtils.h45 ListHelper(JNIEnv* env, jobject list) : mEnv(env), mList(list) {} in ListHelper()
51 JNIEnv* mEnv;
58 AxisHelper(JNIEnv* env, jobject axis) : mEnv(env), mAxis(axis) {} in AxisHelper()
64 JNIEnv* mEnv;
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()
/frameworks/base/services/core/jni/gnss/
DUtils.h160 jint attachResult = sJvm->AttachCurrentThread(&mEnv, nullptr); in ScopedJniThreadAttach()
183 LOG_ALWAYS_FATAL_IF(AndroidRuntime::getJNIEnv() != mEnv); in getEnv()
184 return mEnv; in getEnv()
188 JNIEnv* mEnv = nullptr;
/frameworks/base/apex/media/framework/jni/
Dandroid_media_MediaParserJNI.cpp48 JstringHandle(JNIEnv* env, jstring value) : mEnv(env), mJstringValue(value) { in JstringHandle()
54 mEnv->ReleaseStringUTFChars(mJstringValue, mCstringValue); in ~JstringHandle()
62 JNIEnv* mEnv; member in __anon35c696970111::JstringHandle
/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.cpp236 mEnv = env; in ArrayHelper()
246 ArrayReleaser::Release(mEnv, mRef, mBase, mReleaseParam); in ~ArrayHelper()
259 doThrowIAE(mEnv, "array == null"); in check()
263 doThrowIAE(mEnv, "offset < 0"); in check()
266 mLength = mEnv->GetArrayLength(mRef) - mOffset; in check()
268 doThrowIAE(mEnv, "length - offset < n"); in check()
277 mBase = (T*) ArrayGetter::Get(mEnv, mRef, (jboolean *) 0); in bind()
290 JNIEnv* mEnv; member in android::ArrayHelper
776 mEnv = env; in BufferHelper()
784 mData = getPointer(mEnv, mBuffer, &mRemaining); in checkPointer()
[all …]
/frameworks/base/media/jni/
Dandroid_mtp_MtpDevice.cpp206 mEnv(env), mArray(array), mSize(mEnv->GetArrayLength(mArray)) {} in JavaArrayWriter()
211 mEnv->SetByteArrayRegion(mArray, offset, length, static_cast<jbyte*>(data)); in write()
219 JNIEnv* mEnv; member in __anon9a67c8810111::JavaArrayWriter
Dandroid_media_MediaCodec.cpp1752 : mEnv{env}, in NativeCryptoInfo()
1869 mEnv->ReleaseByteArrayElements(mIvObj.get(), mIv, 0); in ~NativeCryptoInfo()
1873 mEnv->ReleaseByteArrayElements(mKeyObj.get(), mKey, 0); in ~NativeCryptoInfo()
1881 JNIEnv *mEnv{nullptr}; member
/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.cpp272 : mEnv(env), mStrings(strings), mStringsLength(stringsLength) { in AutoJavaStringArrayToUTF8()
279 jstring s = (jstring)mEnv->GetObjectArrayElement(mStrings, ct); in AutoJavaStringArrayToUTF8()
280 mCStrings[ct] = mEnv->GetStringUTFChars(s, nullptr); in AutoJavaStringArrayToUTF8()
281 mSizeArray[ct] = mEnv->GetStringUTFLength(s); in AutoJavaStringArrayToUTF8()
287 jstring s = (jstring)mEnv->GetObjectArrayElement(mStrings, ct); in ~AutoJavaStringArrayToUTF8()
288 mEnv->ReleaseStringUTFChars(s, mCStrings[ct]); in ~AutoJavaStringArrayToUTF8()
298 JNIEnv *mEnv; member in AutoJavaStringArrayToUTF8