/frameworks/base/services/core/jni/ |
D | com_android_server_storage_AppFuseBridge.cpp | 37 JNIEnv* mEnv; member in android::__anon2c980eee0111::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 …]
|
D | com_android_server_adb_AdbDebuggingManager.cpp | 44 JSmartWrapper(JNIEnv* env, T* jData) : mEnv(env), mJData(jData) {} in JSmartWrapper() 54 JNIEnv* mEnv = nullptr; member in android::__anon110e76ed0111::JSmartWrapper 68 mEnv->ReleaseStringUTFChars(*mJData, mRawData); in ~JStringUTFWrapper()
|
D | com_android_server_location_GnssLocationProvider.cpp | 449 ScopedJniString(JNIEnv* env, jstring javaString) : mEnv(env), mJavaString(javaString) { in ScopedJniString() 450 mNativeString = mEnv->GetStringUTFChars(mJavaString, nullptr); in ScopedJniString() 455 mEnv->ReleaseStringUTFChars(mJavaString, mNativeString); in ~ScopedJniString() 471 JNIEnv* mEnv; member 483 jint attachResult = sJvm->AttachCurrentThread(&mEnv, nullptr); in ScopedJniThreadAttach() 506 LOG_ALWAYS_FATAL_IF(AndroidRuntime::getJNIEnv() != mEnv); in getEnv() 507 return mEnv; in getEnv() 511 JNIEnv* mEnv = nullptr; member in android::ScopedJniThreadAttach
|
/frameworks/base/libs/hwui/jni/ |
D | FontUtils.cpp | 37 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()
|
D | FontUtils.h | 44 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;
|
D | scoped_nullable_primitive_array.h | 56 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/core/jni/ |
D | scoped_nullable_primitive_array.h | 56 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()
|
D | com_android_internal_os_FuseAppLoop.cpp | 47 JNIEnv* const mEnv; member in android::__anondd2e1b1b0111::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()
|
D | android_hardware_camera2_DngCreator.cpp | 328 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 …]
|
D | android_media_AudioTrack.cpp | 97 JNIEnv *const mEnv; member in TunerConfigurationHelper 119 : mEnv(env), mTunerConfiguration(tunerConfiguration) {} in TunerConfigurationHelper() 122 if (mEnv == nullptr || mTunerConfiguration == nullptr) return 0; in getContentId() 123 const Ids &ids = getIds(mEnv); in getContentId() 124 return (int32_t)mEnv->GetIntField(mTunerConfiguration, ids.mContentId); in getContentId() 128 if (mEnv == nullptr || mTunerConfiguration == nullptr) return 0; in getSyncId() 129 const Ids &ids = getIds(mEnv); in getSyncId() 130 return (int32_t)mEnv->GetIntField(mTunerConfiguration, ids.mSyncId); in getSyncId()
|
/frameworks/ex/framesequence/jni/ |
D | Stream.cpp | 128 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()
|
D | Stream.h | 77 mEnv(env), in JavaInputStream() 86 JNIEnv* mEnv;
|
/frameworks/base/core/jni/android/opengl/ |
D | util.cpp | 236 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/ |
D | android_mtp_MtpDevice.cpp | 113 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 __anon8000defa0111::JavaArrayWriter
|
D | android_media_MediaCodec.cpp | 1598 : mEnv{env}, in NativeCryptoInfo() 1715 mEnv->ReleaseByteArrayElements(mIvObj.get(), mIv, 0); in ~NativeCryptoInfo() 1719 mEnv->ReleaseByteArrayElements(mKeyObj.get(), mKey, 0); in ~NativeCryptoInfo() 1727 JNIEnv *mEnv{nullptr}; member
|
/frameworks/rs/support/jni/ |
D | android_renderscript_RenderScript.cpp | 237 : 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/ |
D | android_renderscript_RenderScript.cpp | 273 : 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
|