/frameworks/base/services/core/jni/ |
D | com_android_server_storage_AppFuseBridge.cpp | 37 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 …]
|
D | com_android_server_security_VerityUtils.cpp | 106 : 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
|
D | com_android_server_location_GnssLocationProvider.cpp | 375 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/ |
D | android_media_MediaScanner.cpp | 114 : 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 …]
|
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 __anonda3733a30111::JavaArrayWriter
|
/frameworks/opt/net/wifi/service/jni/ |
D | jni_helper.cpp | 33 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()
|
D | jni_helper.h | 70 JNIEnv *mEnv; variable
|
/frameworks/base/core/jni/android/graphics/ |
D | FontUtils.cpp | 38 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()
|
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;
|
/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::__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()
|
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 …]
|
/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 | 234 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/ |
D | ChoreographerThread.cpp | 203 JNIEnv *mEnv = nullptr; member in swappy::JavaChoreographerThread
|
/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
|