/frameworks/opt/net/wifi/service/jni/ |
jni_helper.cpp | 36 vm->AttachCurrentThread(&mEnv, NULL); 43 mEnv = env; 51 mEnv = NULL; /* not really required; but may help debugging */ 56 return mEnv->NewGlobalRef(obj); 60 mEnv->DeleteGlobalRef(obj); 64 return mEnv->NewLocalRef(obj); 68 mEnv->DeleteLocalRef(obj); 77 jclass exClass = mEnv->FindClass(className ); 84 mEnv->ThrowNew(exClass, message); 89 JNIObject<jclass> cls(*this, mEnv->GetObjectClass(obj)) [all...] |
/external/conscrypt/src/compat/native/ |
ScopedPrimitiveArray.h | 30 : mEnv(env), mJavaArray(NULL), mRawArray(NULL) {} \ 32 : mEnv(env), mJavaArray(javaArray), mRawArray(NULL) { \ 34 jniThrowNullPointerException(mEnv, NULL); \ 36 mRawArray = mEnv->Get ## NAME ## ArrayElements(mJavaArray, NULL); \ 41 mEnv->Release ## NAME ## ArrayElements(mJavaArray, mRawArray, JNI_ABORT); \ 46 mRawArray = mEnv->Get ## NAME ## ArrayElements(mJavaArray, NULL); \ 51 size_t size() const { return mEnv->GetArrayLength(mJavaArray); } \ 53 JNIEnv* mEnv; \ 79 : mEnv(env), mJavaArray(NULL), mRawArray(NULL) {} \ 81 : mEnv(env), mJavaArray(javaArray), mRawArray(NULL) { [all...] |
NetFd.h | 26 : mEnv(env), mFileDescriptor(fileDescriptor), mFd(-1) 31 mFd = jniGetFDFromFileDescriptor(mEnv, mFileDescriptor); 34 jniThrowException(mEnv, "java/net/SocketException", "Socket closed"); 44 JNIEnv* mEnv;
|
ScopedLocalRef.h | 28 ScopedLocalRef(JNIEnv* env, T localRef) : mEnv(env), mLocalRef(localRef) { 38 mEnv->DeleteLocalRef(mLocalRef); 55 JNIEnv* mEnv;
|
JNIHelp.cpp | 36 : mEnv(env), mLocalRef(localRef) 46 (*mEnv)->DeleteLocalRef(reinterpret_cast<JNIEnv*>(mEnv), mLocalRef); 56 C_JNIEnv* mEnv;
|
/external/conscrypt/src/openjdk/native/ |
ScopedPrimitiveArray.h | 30 : mEnv(env), mJavaArray(NULL), mRawArray(NULL) {} \ 32 : mEnv(env), mJavaArray(javaArray), mRawArray(NULL) { \ 34 jniThrowNullPointerException(mEnv, NULL); \ 36 mRawArray = mEnv->Get ## NAME ## ArrayElements(mJavaArray, NULL); \ 41 mEnv->Release ## NAME ## ArrayElements(mJavaArray, mRawArray, JNI_ABORT); \ 46 mRawArray = mEnv->Get ## NAME ## ArrayElements(mJavaArray, NULL); \ 51 size_t size() const { return mEnv->GetArrayLength(mJavaArray); } \ 53 JNIEnv* mEnv; \ 79 : mEnv(env), mJavaArray(NULL), mRawArray(NULL) {} \ 81 : mEnv(env), mJavaArray(javaArray), mRawArray(NULL) { [all...] |
NetFd.h | 26 : mEnv(env), mFileDescriptor(fileDescriptor), mFd(-1) 31 mFd = jniGetFDFromFileDescriptor(mEnv, mFileDescriptor); 34 jniThrowException(mEnv, "java/net/SocketException", "Socket closed"); 44 JNIEnv* mEnv;
|
ScopedLocalRef.h | 28 ScopedLocalRef(JNIEnv* env, T localRef) : mEnv(env), mLocalRef(localRef) { 38 mEnv->DeleteLocalRef(mLocalRef); 55 JNIEnv* mEnv;
|
/libnativehelper/include/nativehelper/ |
ScopedLocalFrame.h | 24 ScopedLocalFrame(JNIEnv* env) : mEnv(env) { 25 mEnv->PushLocalFrame(128); 29 mEnv->PopLocalFrame(NULL); 33 JNIEnv* const mEnv;
|
ScopedPrimitiveArray.h | 30 : mEnv(env), mJavaArray(NULL), mRawArray(NULL), mSize(0) {} \ 32 : mEnv(env) { \ 37 jniThrowNullPointerException(mEnv, NULL); \ 44 mEnv->Release ## NAME ## ArrayElements(mJavaArray, mRawArray, JNI_ABORT); \ 49 mSize = mEnv->GetArrayLength(mJavaArray); \ 51 mEnv->Get ## NAME ## ArrayRegion(mJavaArray, 0, mSize, mBuffer); \ 54 mRawArray = mEnv->Get ## NAME ## ArrayElements(mJavaArray, NULL); \ 63 JNIEnv* const mEnv; \ 90 : mEnv(env), mJavaArray(NULL), mRawArray(NULL) {} \ 92 : mEnv(env), mJavaArray(javaArray), mRawArray(NULL) { [all...] |
ScopedBytes.h | 32 : mEnv(env), mObject(object), mByteArray(NULL), mPtr(NULL) 35 jniThrowNullPointerException(mEnv, NULL); 36 } else if (mEnv->IsInstanceOf(mObject, JniConstants::byteArrayClass)) { 38 mPtr = mEnv->GetByteArrayElements(mByteArray, NULL); 40 mPtr = reinterpret_cast<jbyte*>(mEnv->GetDirectBufferAddress(mObject)); 46 mEnv->ReleaseByteArrayElements(mByteArray, mPtr, readOnly ? JNI_ABORT : 0); 51 JNIEnv* const mEnv;
|
ScopedLocalRef.h | 29 ScopedLocalRef(JNIEnv* env, T localRef) : mEnv(env), mLocalRef(localRef) { 39 mEnv->DeleteLocalRef(mLocalRef); 56 JNIEnv* const mEnv;
|
/packages/apps/Gallery2/jni_jpegstream/src/ |
inputstream_wrapper.cpp | 28 mEnv->ReleaseByteArrayElements(mByteArray, mBytes, JNI_COMMIT); 30 if (mEnv->ExceptionCheck()) { 33 bytesRead = static_cast<int32_t>(mEnv->CallIntMethod(mStream, sReadID, 35 if (mEnv->ExceptionCheck()) { 38 mBytes = mEnv->GetByteArrayElements(mByteArray, NULL); 39 if (mBytes == NULL || mEnv->ExceptionCheck()) { 50 bytesSkipped = static_cast<int64_t>(mEnv->CallLongMethod(mStream, sSkipID, 52 if (mEnv->ExceptionCheck() || bytesSkipped < 0) {
|
outputstream_wrapper.cpp | 26 mEnv->ReleaseByteArrayElements(mByteArray, mBytes, JNI_COMMIT); 28 if (mEnv->ExceptionCheck()) { 36 mEnv->CallVoidMethod(mStream, sWriteID, mByteArray, offset, length); 37 if (mEnv->ExceptionCheck()) { 40 mBytes = mEnv->GetByteArrayElements(mByteArray, NULL); 41 if (mBytes == NULL || mEnv->ExceptionCheck()) {
|
stream_wrapper.cpp | 22 StreamWrapper::StreamWrapper() : mEnv(NULL), 37 mEnv = env; 41 if (mEnv != NULL) { 45 mEnv = env; 71 if (mEnv != NULL) { 73 mEnv->DeleteGlobalRef(mStream); 78 mEnv->ReleaseByteArrayElements(mByteArray, mBytes, JNI_ABORT); 81 mEnv->DeleteGlobalRef(mByteArray); 87 mEnv = NULL;
|
stream_wrapper.h | 37 JNIEnv *mEnv;
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/ |
ModelBackedDocumentsAdapter.java | 50 private final Environment mEnv; 69 mEnv = env; 76 final State state = mEnv.getDisplayState(); 81 holder = new GridDirectoryHolder(mEnv.getContext(), parent); 84 holder = new GridDocumentHolder(mEnv.getContext(), parent, mIconHelper); 91 holder = new ListDocumentHolder(mEnv.getContext(), parent, mIconHelper); 97 mEnv.initDocumentHolder(holder); 104 final boolean selected = mEnv.isSelected(mModelIds.get(position)); 114 Cursor cursor = mEnv.getModel().getItem(modelId); 115 holder.bind(cursor, modelId, mEnv.getDisplayState()) [all...] |
SectionBreakDocumentsAdapterWrapper.java | 41 private final Environment mEnv; 47 mEnv = environment; 62 return mEnv.getColumnCount(); 73 return new EmptyDocumentHolder(mEnv.getContext()); 84 ((EmptyDocumentHolder)holder).bind(mEnv.getDisplayState()); 93 ((EmptyDocumentHolder)holder).bind(mEnv.getDisplayState());
|
/cts/tests/tests/effect/src/android/effect/cts/ |
EffectTest.java | 33 private GLEnv mEnv; 43 mEnv = new GLEnv(); 44 mEnv.makeCurrent(); 53 if (mEnv != null) { 54 mEnv.tearDown(); 102 int inputTexture = mEnv.bitmapToTexture(bitmap); 103 int outputTexture = mEnv.generateTexture(); 109 mEnv.releaseTexture(inputTexture); 110 mEnv.releaseTexture(outputTexture);
|
/frameworks/base/media/jni/ |
android_media_MediaScanner.cpp | 112 : mEnv(env), 145 mEnv->DeleteGlobalRef(mClient); 155 if ((pathStr = mEnv->NewStringUTF(path)) == NULL) { 156 mEnv->ExceptionClear(); 160 mEnv->CallVoidMethod(mClient, mScanFileMethodID, pathStr, lastModified, 163 mEnv->DeleteLocalRef(pathStr); 164 return checkAndClearExceptionFromCallback(mEnv, "scanFile"); 171 if ((nameStr = mEnv->NewStringUTF(name)) == NULL) { 172 mEnv->ExceptionClear(); 188 valueStr = mEnv->NewStringUTF(value) [all...] |
/libcore/include/ |
ScopedJavaUnicodeString.h | 28 ScopedJavaUnicodeString(JNIEnv* env, jstring s) : mEnv(env), mString(s) { 30 jniThrowNullPointerException(mEnv, NULL); 40 mEnv->ReleaseStringChars(mString, mChars); 57 JNIEnv* mEnv;
|
ScopedIcuLocale.h | 26 ScopedIcuLocale(JNIEnv* env, jstring javaLocaleName) : mEnv(env) { 30 jniThrowNullPointerException(mEnv, "javaLocaleName == null"); 54 JNIEnv* const mEnv;
|
/libcore/luni/src/main/native/ |
NetFd.h | 26 : mEnv(env), mFileDescriptor(fileDescriptor), mFd(-1) 31 mFd = jniGetFDFromFileDescriptor(mEnv, mFileDescriptor); 34 jniThrowException(mEnv, "java/net/SocketException", "Socket closed"); 44 JNIEnv* mEnv;
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
NavigationView.java | 50 private final NavigationView.Environment mEnv; 66 mEnv = env; 68 mBreadcrumbAdapter = new BreadcrumbAdapter(mState, mEnv); 107 mEnv.refreshCurrentRootAndDirectory(AnimationView.ANIM_LEAVE); 113 if (mEnv.isSearchExpanded()) { 120 mDrawer.setTitle(mEnv.getDrawerTitle()); 127 String title = mEnv.getCurrentRoot().title; 168 private Environment mEnv; 173 mEnv = env; 202 final RootInfo root = mEnv.getCurrentRoot() [all...] |
/frameworks/ex/framesequence/jni/ |
Stream.h | 77 mEnv(env), 86 JNIEnv* mEnv;
|