/frameworks/opt/net/wifi/service/jni/ |
D | jni_helper.cpp | 36 vm->AttachCurrentThread(&mEnv, NULL); in JNIHelper() 43 mEnv = env; in JNIHelper() 51 mEnv = NULL; /* not really required; but may help debugging */ in ~JNIHelper() 56 return mEnv->NewGlobalRef(obj); in newGlobalRef() 60 mEnv->DeleteGlobalRef(obj); in deleteGlobalRef() 64 return mEnv->NewLocalRef(obj); in newLocalRef() 68 mEnv->DeleteLocalRef(obj); in deleteLocalRef() 77 jclass exClass = mEnv->FindClass(className ); in throwException() 84 mEnv->ThrowNew(exClass, message); in throwException() 89 JNIObject<jclass> cls(*this, mEnv->GetObjectClass(obj)); in getBoolField() [all …]
|
D | jni_helper.h | 68 JNIEnv *mEnv; variable
|
/frameworks/base/media/jni/ |
D | android_media_MediaScanner.cpp | 112 : mEnv(env), in MyMediaScannerClient() 145 mEnv->DeleteGlobalRef(mClient); in ~MyMediaScannerClient() 155 if ((pathStr = mEnv->NewStringUTF(path)) == NULL) { in scanFile() 156 mEnv->ExceptionClear(); in scanFile() 160 mEnv->CallVoidMethod(mClient, mScanFileMethodID, pathStr, lastModified, in scanFile() 163 mEnv->DeleteLocalRef(pathStr); in scanFile() 164 return checkAndClearExceptionFromCallback(mEnv, "scanFile"); in scanFile() 171 if ((nameStr = mEnv->NewStringUTF(name)) == NULL) { in handleStringTag() 172 mEnv->ExceptionClear(); in handleStringTag() 188 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 __anon32f678db0111::JavaArrayWriter
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | ModelBackedDocumentsAdapter.java | 50 private final Environment mEnv; field in ModelBackedDocumentsAdapter 69 mEnv = env; in ModelBackedDocumentsAdapter() 76 final State state = mEnv.getDisplayState(); in onCreateViewHolder() 81 holder = new GridDirectoryHolder(mEnv.getContext(), parent); in onCreateViewHolder() 84 holder = new GridDocumentHolder(mEnv.getContext(), parent, mIconHelper); in onCreateViewHolder() 91 holder = new ListDocumentHolder(mEnv.getContext(), parent, mIconHelper); in onCreateViewHolder() 97 mEnv.initDocumentHolder(holder); in onCreateViewHolder() 104 final boolean selected = mEnv.isSelected(mModelIds.get(position)); in onBindViewHolder() 114 Cursor cursor = mEnv.getModel().getItem(modelId); in onBindViewHolder() 115 holder.bind(cursor, modelId, mEnv.getDisplayState()); in onBindViewHolder() [all …]
|
D | SectionBreakDocumentsAdapterWrapper.java | 41 private final Environment mEnv; field in SectionBreakDocumentsAdapterWrapper 47 mEnv = environment; in SectionBreakDocumentsAdapterWrapper() 62 return mEnv.getColumnCount(); in createSpanSizeLookup() 73 return new EmptyDocumentHolder(mEnv.getContext()); 84 ((EmptyDocumentHolder)holder).bind(mEnv.getDisplayState()); 93 ((EmptyDocumentHolder)holder).bind(mEnv.getDisplayState());
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
D | NavigationView.java | 50 private final NavigationView.Environment mEnv; field in NavigationView 66 mEnv = env; in NavigationView() 68 mBreadcrumbAdapter = new BreadcrumbAdapter(mState, mEnv); in NavigationView() 107 mEnv.refreshCurrentRootAndDirectory(AnimationView.ANIM_LEAVE); in onBreadcrumbItemSelected() 113 if (mEnv.isSearchExpanded()) { in update() 120 mDrawer.setTitle(mEnv.getDrawerTitle()); in update() 127 String title = mEnv.getCurrentRoot().title; in update() 168 private Environment mEnv; field in NavigationView.BreadcrumbAdapter 173 mEnv = env; in BreadcrumbAdapter() 202 final RootInfo root = mEnv.getCurrentRoot(); in getView() [all …]
|
/frameworks/base/core/jni/ |
D | android_hardware_camera2_DngCreator.cpp | 325 JNIEnv* mEnv; member in JniOutputStream 330 mEnv(env) { in JniOutputStream() 338 mEnv->DeleteLocalRef(mByteArray); in ~JniOutputStream() 350 mEnv->SetByteArrayRegion(mByteArray, 0, len, reinterpret_cast<const jbyte*>(buf + offset)); in write() 352 if (mEnv->ExceptionCheck()) { in write() 356 mEnv->CallVoidMethod(mOutputStream, gOutputStreamClassInfo.mWriteMethod, mByteArray, in write() 359 if (mEnv->ExceptionCheck()) { in write() 400 JNIEnv* mEnv; member in JniInputStream 405 JniInputStream::JniInputStream(JNIEnv* env, jobject inStream) : mInStream(inStream), mEnv(env) { in JniInputStream() 413 mEnv->DeleteLocalRef(mByteArray); in ~JniInputStream() [all …]
|
D | android_view_ThreadedRenderer.cpp | 83 ScopedRemovedRenderNodeObserver(JNIEnv* env) : mEnv(env) {} in ScopedRemovedRenderNodeObserver() 87 onRenderNodeRemoved(mEnv, node.get()); in ~ScopedRemovedRenderNodeObserver() 96 JNIEnv* mEnv; member in android::ScopedRemovedRenderNodeObserver
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/ |
D | MultiSelectManagerTest.java | 46 private TestSelectionEnvironment mEnv; field in MultiSelectManagerTest 51 mEnv = new TestSelectionEnvironment(items); in setUp() 53 mManager = new MultiSelectManager(mEnv, mAdapter, MultiSelectManager.MODE_MULTIPLE, null); in setUp() 177 mManager = new MultiSelectManager(mEnv, mAdapter, MultiSelectManager.MODE_SINGLE, null); in testSingleSelectMode() 185 mManager = new MultiSelectManager(mEnv, mAdapter, MultiSelectManager.MODE_SINGLE, null); in testSingleSelectMode_ShiftTap() 232 mManager = new MultiSelectManager(mEnv, mAdapter, MultiSelectManager.MODE_SINGLE, null); in testRangeSelection_singleSelect()
|
/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 | 255 mEnv = env; in ArrayHelper() 265 ArrayReleaser::Release(mEnv, mRef, mBase, mReleaseParam); in ~ArrayHelper() 278 doThrowIAE(mEnv, "array == null"); in check() 282 doThrowIAE(mEnv, "offset < 0"); in check() 285 mLength = mEnv->GetArrayLength(mRef) - mOffset; in check() 287 doThrowIAE(mEnv, "length - offset < n"); in check() 296 mBase = (T*) ArrayGetter::Get(mEnv, mRef, (jboolean *) 0); in bind() 309 JNIEnv* mEnv; member in android::ArrayHelper 854 mEnv = env; in BufferHelper() 862 mData = getPointer(mEnv, mBuffer, &mRemaining); in checkPointer() [all …]
|
/frameworks/support/v8/renderscript/jni/ |
D | android_renderscript_RenderScript.cpp | 235 : mEnv(env), mStrings(strings), mStringsLength(stringsLength) { in AutoJavaStringArrayToUTF8() 242 jstring s = (jstring)mEnv->GetObjectArrayElement(mStrings, ct); in AutoJavaStringArrayToUTF8() 243 mCStrings[ct] = mEnv->GetStringUTFChars(s, NULL); in AutoJavaStringArrayToUTF8() 244 mSizeArray[ct] = mEnv->GetStringUTFLength(s); in AutoJavaStringArrayToUTF8() 250 jstring s = (jstring)mEnv->GetObjectArrayElement(mStrings, ct); in ~AutoJavaStringArrayToUTF8() 251 mEnv->ReleaseStringUTFChars(s, mCStrings[ct]); in ~AutoJavaStringArrayToUTF8() 261 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
|