/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 | 64 } gFields; variable 94 gFields.contextID = in InitClass() 97 gFields.onTransactID = in InitClass() 109 (JHwBinderHolder *)env->GetLongField(thiz, gFields.contextID); in SetNativeContext() 119 env->SetLongField(thiz, gFields.contextID, (long)context.get()); in SetNativeContext() 129 env->GetLongField(thiz, gFields.contextID)); in GetNativeBinder() 175 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 | 206 static fields_t gFields; variable 240 jobject newBundle = env->CallObjectMethod(gFields.bundleCreator, in nativeToJavaPersistableBundle() 241 gFields.createFromParcelId, in nativeToJavaPersistableBundle() 341 env->CallStaticVoidMethod(mClass, gFields.post_event, mObject, in notify() 357 jobject exception = env->NewObject(gFields.stateException.classId, in throwStateException() 358 gFields.stateException.init, static_cast<int>(err), in throwStateException() 375 jobject exception = env->NewObject(gFields.sessionException.classId, in throwSessionException() 376 gFields.sessionException.init, static_cast<int>(err), in throwSessionException() 379 env->SetIntField(exception, gFields.sessionException.errorCode, jErrorCode); in throwSessionException() 466 JDrm *jdrm = (JDrm *)env->GetLongField(thiz, gFields.context); in GetDrm() [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 | 128 static fields_t gFields; variable 900 gFields.postEventFromNativeID, in handleCallback() 924 mObject, gFields.postEventFromNativeID, in handleFrameRenderedNotification() 955 sp<JMediaCodec> old = (JMediaCodec *)env->CallLongMethod(thiz, gFields.lockAndGetContextID); in setMediaCodec() 968 env->CallVoidMethod(thiz, gFields.setAndUnlockContextID, (jlong)codec.get()); in setMediaCodec() 974 sp<JMediaCodec> codec = (JMediaCodec *)env->CallLongMethod(thiz, gFields.lockAndGetContextID); in getMediaCodec() 975 env->CallVoidMethod(thiz, gFields.setAndUnlockContextID, (jlong)codec.get()); in getMediaCodec() 1449 env->GetIntField(cryptoInfoObj, gFields.cryptoInfoNumSubSamplesID); in android_media_MediaCodec_queueSecureInputBuffer() 1453 cryptoInfoObj, gFields.cryptoInfoNumBytesOfClearDataID); in android_media_MediaCodec_queueSecureInputBuffer() 1457 cryptoInfoObj, gFields.cryptoInfoNumBytesOfEncryptedDataID); in android_media_MediaCodec_queueSecureInputBuffer() [all …]
|
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() 274 gFields.context = env->GetFieldID(clazz.get(), "mNativeContext", "J"); in android_media_MediaDescrambler_native_init() 275 CHECK(gFields.context != NULL); in android_media_MediaDescrambler_native_init() 281 gFields.flagPesHeader = env->GetStaticByteField(clazz.get(), fieldPesHeader); in android_media_MediaDescrambler_native_init() 420 if (flags & gFields.flagPesHeader) { in android_media_MediaDescrambler_native_descramble()
|
D | android_media_MediaCrypto.cpp | 39 static fields_t gFields; variable 42 return (JCrypto *)env->GetLongField(thiz, gFields.context); in getCrypto() 157 sp<JCrypto> old = (JCrypto *)env->GetLongField(thiz, gFields.context); in setCrypto() 164 env->SetLongField(thiz, gFields.context, (jlong)crypto.get()); in setCrypto() 177 gFields.context = env->GetFieldID(clazz, "mNativeContext", "J"); in android_media_MediaCrypto_native_init() 178 CHECK(gFields.context != NULL); in android_media_MediaCrypto_native_init()
|
D | android_media_MediaMuxer.cpp | 40 static fields_t gFields; variable 95 (jbyteArray)env->CallObjectMethod(byteBuf, gFields.arrayID); in android_media_MediaMuxer_writeSampleData() 282 gFields.arrayID = in register_android_media_MediaMuxer() 284 CHECK(gFields.arrayID != NULL); in register_android_media_MediaMuxer()
|
D | android_media_MediaExtractor.cpp | 59 static fields_t gFields; variable 307 (JMediaExtractor *)env->GetLongField(thiz, gFields.context); in setMediaExtractor() 315 env->SetLongField(thiz, gFields.context, (jlong)extractor.get()); in setMediaExtractor() 321 return (JMediaExtractor *)env->GetLongField(thiz, gFields.context); in getMediaExtractor() 656 gFields.cryptoInfoSetID, in android_media_MediaExtractor_getSampleCryptoInfo() 670 gFields.cryptoInfoSetPatternID, in android_media_MediaExtractor_getSampleCryptoInfo() 703 gFields.context = env->GetFieldID(clazz, "mNativeContext", "J"); in android_media_MediaExtractor_native_init() 704 CHECK(gFields.context != NULL); in android_media_MediaExtractor_native_init() 709 gFields.cryptoInfoSetID = in android_media_MediaExtractor_native_init() 712 gFields.cryptoInfoSetPatternID = in android_media_MediaExtractor_native_init()
|