/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 …]
|
/frameworks/base/core/jni/ |
D | com_android_internal_os_KernelSingleProcessCpuThreadReader.cpp | 105 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 …]
|
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 | 345 JNIEnv* mEnv; member in JniOutputStream 350 mEnv(env) { in JniOutputStream() 358 mEnv->DeleteLocalRef(mByteArray); in ~JniOutputStream() 370 mEnv->SetByteArrayRegion(mByteArray, 0, len, reinterpret_cast<const jbyte*>(buf + offset)); in write() 372 if (mEnv->ExceptionCheck()) { in write() 376 mEnv->CallVoidMethod(mOutputStream, gOutputStreamClassInfo.mWriteMethod, mByteArray, in write() 379 if (mEnv->ExceptionCheck()) { in write() 420 JNIEnv* mEnv; member in JniInputStream 425 JniInputStream::JniInputStream(JNIEnv* env, jobject inStream) : mInStream(inStream), mEnv(env) { in JniInputStream() 433 mEnv->DeleteLocalRef(mByteArray); in ~JniInputStream() [all …]
|
D | android_media_AudioTrack.cpp | 172 JNIEnv *const mEnv; member in TunerConfigurationHelper 194 : mEnv(env), mTunerConfiguration(tunerConfiguration) {} in TunerConfigurationHelper() 197 if (mEnv == nullptr || mTunerConfiguration == nullptr) return 0; in getContentId() 198 const Ids &ids = getIds(mEnv); in getContentId() 199 return (int32_t)mEnv->GetIntField(mTunerConfiguration, ids.mContentId); in getContentId() 203 if (mEnv == nullptr || mTunerConfiguration == nullptr) return 0; in getSyncId() 204 const Ids &ids = getIds(mEnv); in getSyncId() 205 return (int32_t)mEnv->GetIntField(mTunerConfiguration, ids.mSyncId); in getSyncId()
|
D | android_os_Parcel.cpp | 726 StackString(JNIEnv* env, jstring str) : mEnv(env), mJStr(str) { in StackString() 734 mEnv->GetStringRegion(str, 0, mSize, mStr); in StackString() 745 JNIEnv* mEnv; member in android::StackString
|
/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 | 45 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;
|
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/services/core/jni/gnss/ |
D | Utils.h | 170 jint attachResult = sJvm->AttachCurrentThread(&mEnv, nullptr); in ScopedJniThreadAttach() 193 LOG_ALWAYS_FATAL_IF(AndroidRuntime::getJNIEnv() != mEnv); in getEnv() 194 return mEnv; in getEnv() 198 JNIEnv* mEnv = nullptr; 202 ScopedJniString(JNIEnv* env, jstring javaString) : mEnv(env), mJavaString(javaString) { in ScopedJniString() 203 mNativeString = mEnv->GetStringUTFChars(mJavaString, nullptr); in ScopedJniString() 208 mEnv->ReleaseStringUTFChars(mJavaString, mNativeString); in ~ScopedJniString() 220 JNIEnv* mEnv; member
|
/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 706 mEnv = env; in BufferHelper() 714 mData = getPointer(mEnv, mBuffer, &mRemaining); in checkPointer() [all …]
|
/frameworks/base/media/jni/ |
D | android_mtp_MtpDevice.cpp | 206 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 __anon8000defa0111::JavaArrayWriter
|
D | android_media_MediaCodec.cpp | 2159 : mEnv{env}, in NativeCryptoInfo() 2278 mEnv->ReleaseByteArrayElements(mIvObj.get(), mIv, 0); in ~NativeCryptoInfo() 2282 mEnv->ReleaseByteArrayElements(mKeyObj.get(), mKey, 0); in ~NativeCryptoInfo() 2290 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 | 272 : 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
|