Home
last modified time | relevance | path

Searched refs:gFields (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/core/jni/
Dandroid_os_HidlMemory.cpp36 } 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 …]
Dandroid_os_HwBinder.cpp65 } gFields; variable
95 gFields.contextID = in InitClass()
98 gFields.onTransactID = in InitClass()
110 (JHwBinderHolder *)env->GetLongField(thiz, gFields.contextID); in SetNativeContext()
120 env->SetLongField(thiz, gFields.contextID, (long)context.get()); in SetNativeContext()
130 env->GetLongField(thiz, gFields.contextID)); in GetNativeBinder()
176 gFields.onTransactID, in onTransact()
293 env->CallVoidMethod(thiz, gFields.onTransactID, code, requestObj, replyObj, flags); in JHwBinder_native_transact()
Deventlog_helper.h50 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()
Dandroid_os_HwBlob.cpp48 } 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()
Dandroid_os_HwParcel.cpp55 } 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/
Dandroid_media_MediaDrm.cpp232 static fields_t gFields; variable
247 jclass clazz = gFields.arraylistClassId; in hidlLogMessagesToJavaList()
248 jobject arrayList = env->NewObject(clazz, gFields.arraylist.init); in hidlLogMessagesToJavaList()
249 clazz = gFields.logMessage.classId; in hidlLogMessagesToJavaList()
251 jobject jLog = env->NewObject(clazz, gFields.logMessage.init, in hidlLogMessagesToJavaList()
255 env->CallBooleanMethod(arrayList, gFields.arraylist.add, jLog); in hidlLogMessagesToJavaList()
265 gFields.exceptionCtors[std::string(className)] = { in resolveDrmExceptionCtor()
274 if (gFields.exceptionCtors.count(std::string(className)) == 0) { in drmThrowException()
278 jobject exception = env->NewObject(gFields.exceptionCtors[std::string(className)].classId, in drmThrowException()
279 gFields.exceptionCtors[std::string(className)].init, _detailMessage, in drmThrowException()
[all …]
Dandroid_media_MediaHTTPConnection.cpp82 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()
Dandroid_media_MediaSync.cpp51 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 …]
Dandroid_media_MediaCodec.cpp220 static fields_t gFields; variable
807 gFields.outputFramebufferInfosID, in maybeSetBufferInfos()
843 env->SetObjectField(frame, gFields.outputFrameLinearBlockID, linearBlock.get()); in getOutputFrame()
863 frame, gFields.outputFrameHardwareBufferID, hardwareBuffer.get()); in getOutputFrame()
884 env->SetObjectField(frame, gFields.outputFrameLinearBlockID, linearBlock.get()); in getOutputFrame()
902 env->SetObjectField(frame, gFields.outputFrameFormatID, format.get()); in getOutputFrame()
911 frame, gFields.outputFrameChangedKeysID)}; in getOutputFrame()
1228 gFields.cryptoInfoSetID, in AMessageToCryptoInfo()
1244 gFields.cryptoInfoSetPatternID, in AMessageToCryptoInfo()
1469 gFields.postEventFromNativeID, in handleCallback()
[all …]
Dandroid_media_MediaCrypto.cpp38 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()
Dandroid_media_MediaDescrambler.cpp88 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()
Dandroid_media_MediaMuxer.cpp40 static fields_t gFields; variable
95 (jbyteArray)env->CallObjectMethod(byteBuf, gFields.arrayID); in android_media_MediaMuxer_writeSampleData()
287 gFields.arrayID = in register_android_media_MediaMuxer()
289 CHECK(gFields.arrayID != NULL); in register_android_media_MediaMuxer()
Dandroid_media_MediaExtractor.cpp59 static fields_t gFields; variable
321 (JMediaExtractor *)env->GetLongField(thiz, gFields.context); in setMediaExtractor()
329 env->SetLongField(thiz, gFields.context, (jlong)extractor.get()); in setMediaExtractor()
335 return (JMediaExtractor *)env->GetLongField(thiz, gFields.context); in getMediaExtractor()
670 gFields.cryptoInfoSetID, in android_media_MediaExtractor_getSampleCryptoInfo()
684 gFields.cryptoInfoSetPatternID, in android_media_MediaExtractor_getSampleCryptoInfo()
717 gFields.context = env->GetFieldID(clazz, "mNativeContext", "J"); in android_media_MediaExtractor_native_init()
718 CHECK(gFields.context != NULL); in android_media_MediaExtractor_native_init()
723 gFields.cryptoInfoSetID = in android_media_MediaExtractor_native_init()
726 gFields.cryptoInfoSetPatternID = in android_media_MediaExtractor_native_init()
Dandroid_media_tv_Tuner.cpp348 static fields_t gFields; variable
379 gFields.onLnbEventID, in onEvent()
397 gFields.onLnbDiseqcMessageID, in onDiseqcMessage()
424 env->CallVoidMethod(dvr.get(), gFields.onDvrRecordStatusID, (jint)status); in onRecordStatus()
436 env->CallVoidMethod(dvr.get(), gFields.onDvrPlaybackStatusID, (jint)status); in onPlaybackStatus()
587 gFields.linearBlockInitID); in getLinearBlock()
590 gFields.linearBlockSetInternalStateID, in getLinearBlock()
957 jmethodID methodID = gFields.onFilterEventID; in onFilterEvent()
959 methodID = gFields.onSharedFilterEventID; in onFilterEvent()
979 jmethodID methodID = gFields.onFilterStatusID; in onFilterStatus()
[all …]