/frameworks/base/core/jni/ |
D | android_os_HidlMemory.cpp | 36 } gFields; variable 48 jlong jNativeContext = env->GetLongField(jobj, gFields.nativeContext); in nativeFinalize() 91 return env->NewObject(gFields.clazz, in toJava() 92 gFields.constructor, in toJava() 103 static_cast<jstring>(env->CallObjectMethod(jobj, gFields.getName)); in javaToNative() 104 jlong jsize = env->CallLongMethod(jobj, gFields.getSize); in javaToNative() 105 jobject jhandle = env->CallObjectMethod(jobj, gFields.getHandle); in javaToNative() 126 jlong jNativeContext = env->GetLongField(jobj, gFields.nativeContext); in getNativeContext() 131 gFields.nativeContext, in getNativeContext() 140 gFields.clazz = MakeGlobalRefOrDie(env, clazz); in register_android_os_HidlMemory() [all …]
|
D | android_os_HwBinder.cpp | 66 } gFields; variable 96 gFields.contextID = in InitClass() 99 gFields.onTransactID = in InitClass() 111 (JHwBinderHolder *)env->GetLongField(thiz, gFields.contextID); in SetNativeContext() 121 env->SetLongField(thiz, gFields.contextID, (long)context.get()); in SetNativeContext() 131 env->GetLongField(thiz, gFields.contextID)); in GetNativeBinder() 177 gFields.onTransactID, in onTransact()
|
D | eventlog_helper.h | 50 struct { jclass *c; const char *name, *ft; jfieldID *id; } gFields[] = { in Init() local 64 for (size_t i = 0; i < NELEM(gFields); ++i) { in Init() 65 *gFields[i].id = GetFieldIDOrDie(env, in Init() 66 *gFields[i].c, gFields[i].name, gFields[i].ft); in Init()
|
D | android_os_HwBlob.cpp | 48 } gFields; variable 55 gFields.contextID = in InitClass() 58 gFields.constructID = GetMethodIDOrDie(env, clazz.get(), "<init>", "(I)V"); in InitClass() 64 sp<JHwBlob> old = (JHwBlob *)env->GetLongField(thiz, gFields.contextID); in SetNativeContext() 74 env->SetLongField(thiz, gFields.contextID, (long)context.get()); in SetNativeContext() 81 return (JHwBlob *)env->GetLongField(thiz, gFields.contextID); in GetNativeContext()
|
D | android_os_HwParcel.cpp | 55 } gFields; variable 148 gFields.contextID = in InitClass() 151 gFields.constructID = GetMethodIDOrDie(env, clazz.get(), "<init>", "(Z)V"); in InitClass() 157 sp<JHwParcel> old = (JHwParcel *)env->GetLongField(thiz, gFields.contextID); in SetNativeContext() 167 env->SetLongField(thiz, gFields.contextID, (long)context.get()); in SetNativeContext() 174 return (JHwParcel *)env->GetLongField(thiz, gFields.contextID); in GetNativeContext()
|
/frameworks/base/media/jni/ |
D | android_media_MediaDrm.cpp | 220 static fields_t gFields; variable 235 jclass clazz = gFields.arraylistClassId; in hidlLogMessagesToJavaList() 236 jobject arrayList = env->NewObject(clazz, gFields.arraylist.init); in hidlLogMessagesToJavaList() 237 clazz = gFields.logMessage.classId; in hidlLogMessagesToJavaList() 239 jobject jLog = env->NewObject(clazz, gFields.logMessage.init, in hidlLogMessagesToJavaList() 243 env->CallBooleanMethod(arrayList, gFields.arraylist.add, jLog); in hidlLogMessagesToJavaList() 333 env->CallStaticVoidMethod(mClass, gFields.post_event, mObject, in notify() 395 jobject exception = env->NewObject(gFields.stateException.classId, in throwStateException() 396 gFields.stateException.init, static_cast<int>(jerr), in throwStateException() 413 jobject exception = env->NewObject(gFields.sessionException.classId, in throwSessionException() [all …]
|
D | android_media_MediaHTTPConnection.cpp | 82 static fields_t gFields; variable 87 (JMediaHTTPConnection *)env->GetLongField(thiz, gFields.context); in setObject() 95 env->SetLongField(thiz, gFields.context, (jlong)conn.get()); in setObject() 101 return (JMediaHTTPConnection *)env->GetLongField(thiz, gFields.context); in getObject() 109 gFields.context = env->GetFieldID(clazz.get(), "mNativeContext", "J"); in android_media_MediaHTTPConnection_native_init() 110 CHECK(gFields.context != NULL); in android_media_MediaHTTPConnection_native_init() 112 gFields.readAtMethodID = env->GetMethodID(clazz.get(), "readAt", "(J[BI)I"); in android_media_MediaHTTPConnection_native_init() 144 thiz, gFields.readAtMethodID, offset, byteArrayObj, size); in android_media_MediaHTTPConnection_native_readAt()
|
D | android_media_MediaSync.cpp | 51 static fields_t gFields; variable 125 sp<JMediaSync> old = (JMediaSync *)env->GetLongField(thiz, gFields.context); in setMediaSync() 133 env->SetLongField(thiz, gFields.context, (jlong)sync.get()); in setMediaSync() 139 return (JMediaSync *)env->GetLongField(thiz, gFields.context); in getMediaSync() 291 env->SetLongField(timestamp, gFields.mediaTimestampMediaTimeUsID, in android_media_MediaSync_native_getTimestamp() 293 env->SetLongField(timestamp, gFields.mediaTimestampNanoTimeID, in android_media_MediaSync_native_getTimestamp() 295 env->SetFloatField(timestamp, gFields.mediaTimestampClockRateID, in android_media_MediaSync_native_getTimestamp() 485 gFields.context = env->GetFieldID(clazz.get(), "mNativeContext", "J"); in android_media_MediaSync_native_init() 486 CHECK(gFields.context != NULL); in android_media_MediaSync_native_init() 491 gFields.mediaTimestampMediaTimeUsID = in android_media_MediaSync_native_init() [all …]
|
D | android_media_MediaCodec.cpp | 203 static fields_t gFields; variable 744 env->SetObjectField(frame, gFields.outputFrameLinearBlockID, linearBlock.get()); in getOutputFrame() 763 frame, gFields.outputFrameHardwareBufferID, hardwareBuffer.get()); in getOutputFrame() 784 env->SetObjectField(frame, gFields.outputFrameLinearBlockID, linearBlock.get()); in getOutputFrame() 801 env->SetObjectField(frame, gFields.outputFrameFormatID, format.get()); in getOutputFrame() 810 frame, gFields.outputFrameChangedKeysID)}; in getOutputFrame() 1150 gFields.postEventFromNativeID, in handleCallback() 1174 mObject, gFields.postEventFromNativeID, in handleFirstTunnelFrameReadyNotification() 1195 mObject, gFields.postEventFromNativeID, in handleFrameRenderedNotification() 1242 sp<JMediaCodec> old = (JMediaCodec *)env->CallLongMethod(thiz, gFields.lockAndGetContextID); in setMediaCodec() [all …]
|
D | android_media_MediaCrypto.cpp | 38 static fields_t gFields; variable 41 return (JCrypto *)env->GetLongField(thiz, gFields.context); in getCrypto() 143 sp<JCrypto> old = (JCrypto *)env->GetLongField(thiz, gFields.context); in setCrypto() 150 env->SetLongField(thiz, gFields.context, (jlong)crypto.get()); in setCrypto() 163 gFields.context = env->GetFieldID(clazz, "mNativeContext", "J"); in android_media_MediaCrypto_native_init() 164 CHECK(gFields.context != NULL); in android_media_MediaCrypto_native_init()
|
D | android_media_MediaDescrambler.cpp | 88 static fields_t gFields; variable 91 return (JDescrambler *)env->GetLongField(thiz, gFields.context); in getDescrambler() 96 sp<JDescrambler> old = (JDescrambler *)env->GetLongField(thiz, gFields.context); in setDescrambler() 103 env->SetLongField(thiz, gFields.context, (jlong)descrambler.get()); in setDescrambler() 275 gFields.context = env->GetFieldID(clazz.get(), "mNativeContext", "J"); in android_media_MediaDescrambler_native_init() 276 CHECK(gFields.context != NULL); in android_media_MediaDescrambler_native_init() 282 gFields.flagPesHeader = env->GetStaticByteField(clazz.get(), fieldPesHeader); in android_media_MediaDescrambler_native_init() 421 if (flags & gFields.flagPesHeader) { in android_media_MediaDescrambler_native_descramble()
|
D | android_media_MediaMuxer.cpp | 40 static fields_t gFields; variable 95 (jbyteArray)env->CallObjectMethod(byteBuf, gFields.arrayID); in android_media_MediaMuxer_writeSampleData() 283 gFields.arrayID = in register_android_media_MediaMuxer() 285 CHECK(gFields.arrayID != NULL); in register_android_media_MediaMuxer()
|
D | android_media_tv_Tuner.cpp | 333 static fields_t gFields; variable 361 gFields.onLnbEventID, in onEvent() 379 gFields.onLnbDiseqcMessageID, in onDiseqcMessage() 406 env->CallVoidMethod(dvr, gFields.onDvrRecordStatusID, (jint)status); in onRecordStatus() 418 env->CallVoidMethod(dvr, gFields.onDvrPlaybackStatusID, (jint)status); in onPlaybackStatus() 567 gFields.linearBlockInitID); in getLinearBlock() 570 gFields.linearBlockSetInternalStateID, in getLinearBlock() 920 jmethodID methodID = gFields.onFilterEventID; in onFilterEvent() 922 methodID = gFields.onSharedFilterEventID; in onFilterEvent() 936 jmethodID methodID = gFields.onFilterStatusID; in onFilterStatus() [all …]
|
D | android_media_MediaExtractor.cpp | 59 static fields_t gFields; variable 310 (JMediaExtractor *)env->GetLongField(thiz, gFields.context); in setMediaExtractor() 318 env->SetLongField(thiz, gFields.context, (jlong)extractor.get()); in setMediaExtractor() 324 return (JMediaExtractor *)env->GetLongField(thiz, gFields.context); in getMediaExtractor() 659 gFields.cryptoInfoSetID, in android_media_MediaExtractor_getSampleCryptoInfo() 673 gFields.cryptoInfoSetPatternID, in android_media_MediaExtractor_getSampleCryptoInfo() 706 gFields.context = env->GetFieldID(clazz, "mNativeContext", "J"); in android_media_MediaExtractor_native_init() 707 CHECK(gFields.context != NULL); in android_media_MediaExtractor_native_init() 712 gFields.cryptoInfoSetID = in android_media_MediaExtractor_native_init() 715 gFields.cryptoInfoSetPatternID = in android_media_MediaExtractor_native_init()
|