/frameworks/base/media/jni/ |
D | android_media_MediaDrm.cpp | 151 static fields_t gFields; variable 238 env->CallStaticVoidMethod(mClass, gFields.post_event, mObject, in notify() 254 jobject exception = env->NewObject(gFields.stateException.classId, in throwStateException() 255 gFields.stateException.init, static_cast<int>(err), in throwStateException() 333 JDrm *jdrm = (JDrm *)env->GetLongField(thiz, gFields.context); in GetDrm() 473 jclass clazz = gFields.stringClassId; in HashMapToKeyedVector() 477 jobject entrySet = env->CallObjectMethod(hashMap, gFields.hashmap.entrySet); in HashMapToKeyedVector() 479 jobject iterator = env->CallObjectMethod(entrySet, gFields.set.iterator); in HashMapToKeyedVector() 481 jboolean hasNext = env->CallBooleanMethod(iterator, gFields.iterator.hasNext); in HashMapToKeyedVector() 483 jobject entry = env->CallObjectMethod(iterator, gFields.iterator.next); in HashMapToKeyedVector() [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 | 115 static fields_t gFields; variable 768 gFields.postEventFromNativeID, in handleCallback() 792 mObject, gFields.postEventFromNativeID, in handleFrameRenderedNotification() 823 sp<JMediaCodec> old = (JMediaCodec *)env->GetLongField(thiz, gFields.context); in setMediaCodec() 836 env->SetLongField(thiz, gFields.context, (jlong)codec.get()); in setMediaCodec() 842 return (JMediaCodec *)env->GetLongField(thiz, gFields.context); in getMediaCodec() 1299 env->GetIntField(cryptoInfoObj, gFields.cryptoInfoNumSubSamplesID); in android_media_MediaCodec_queueSecureInputBuffer() 1303 cryptoInfoObj, gFields.cryptoInfoNumBytesOfClearDataID); in android_media_MediaCodec_queueSecureInputBuffer() 1307 cryptoInfoObj, gFields.cryptoInfoNumBytesOfEncryptedDataID); in android_media_MediaCodec_queueSecureInputBuffer() 1310 (jbyteArray)env->GetObjectField(cryptoInfoObj, gFields.cryptoInfoKeyID); in android_media_MediaCodec_queueSecureInputBuffer() [all …]
|
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_MediaDescrambler.cpp | 38 static fields_t gFields; variable 41 return (JDescrambler *)env->GetLongField(thiz, gFields.context); in getDescrambler() 46 sp<JDescrambler> old = (JDescrambler *)env->GetLongField(thiz, gFields.context); in setDescrambler() 53 env->SetLongField(thiz, gFields.context, (jlong)descrambler.get()); in setDescrambler() 183 gFields.context = env->GetFieldID(clazz.get(), "mNativeContext", "J"); in android_media_MediaDescrambler_native_init() 184 CHECK(gFields.context != NULL); in android_media_MediaDescrambler_native_init()
|
D | android_media_MediaExtractor.cpp | 54 static fields_t gFields; variable 273 (JMediaExtractor *)env->GetLongField(thiz, gFields.context); in setMediaExtractor() 281 env->SetLongField(thiz, gFields.context, (jlong)extractor.get()); in setMediaExtractor() 287 return (JMediaExtractor *)env->GetLongField(thiz, gFields.context); in getMediaExtractor() 600 gFields.cryptoInfoSetID, in android_media_MediaExtractor_getSampleCryptoInfo() 615 gFields.context = env->GetFieldID(clazz, "mNativeContext", "J"); in android_media_MediaExtractor_native_init() 616 CHECK(gFields.context != NULL); in android_media_MediaExtractor_native_init() 621 gFields.cryptoInfoSetID = in android_media_MediaExtractor_native_init()
|
/frameworks/base/core/jni/ |
D | android_util_EventLog.cpp | 296 static struct { jclass *c; const char *name, *ft; jfieldID *id; } gFields[] = { variable 313 for (int i = 0; i < NELEM(gFields); ++i) { in register_android_util_EventLog() 314 *gFields[i].id = GetFieldIDOrDie(env, in register_android_util_EventLog() 315 *gFields[i].c, gFields[i].name, gFields[i].ft); in register_android_util_EventLog()
|
D | android_os_HwBinder.cpp | 59 } gFields; variable 66 gFields.contextID = in InitClass() 69 gFields.onTransactID = in InitClass() 81 (JHwBinder *)env->GetLongField(thiz, gFields.contextID); in SetNativeContext() 91 env->SetLongField(thiz, gFields.contextID, (long)context.get()); in SetNativeContext() 99 return (JHwBinder *)env->GetLongField(thiz, gFields.contextID); in GetNativeContext() 147 gFields.onTransactID, in onTransact()
|
D | android_app_admin_SecurityLog.cpp | 279 static struct { jclass *c; const char *name, *ft; jfieldID *id; } gFields[] = { variable 296 for (int i = 0; i < NELEM(gFields); ++i) { in register_android_app_admin_SecurityLog() 297 *gFields[i].id = GetFieldIDOrDie(env, in register_android_app_admin_SecurityLog() 298 *gFields[i].c, gFields[i].name, gFields[i].ft); in register_android_app_admin_SecurityLog()
|
D | android_os_HwBlob.cpp | 45 } gFields; variable 52 gFields.contextID = in InitClass() 55 gFields.constructID = GetMethodIDOrDie(env, clazz.get(), "<init>", "(I)V"); in InitClass() 61 sp<JHwBlob> old = (JHwBlob *)env->GetLongField(thiz, gFields.contextID); in SetNativeContext() 71 env->SetLongField(thiz, gFields.contextID, (long)context.get()); in SetNativeContext() 78 return (JHwBlob *)env->GetLongField(thiz, gFields.contextID); in GetNativeContext()
|
D | android_os_HwParcel.cpp | 50 } gFields; variable 135 gFields.contextID = in InitClass() 138 gFields.constructID = GetMethodIDOrDie(env, clazz.get(), "<init>", "(Z)V"); in InitClass() 144 sp<JHwParcel> old = (JHwParcel *)env->GetLongField(thiz, gFields.contextID); in SetNativeContext() 154 env->SetLongField(thiz, gFields.contextID, (long)context.get()); in SetNativeContext() 161 return (JHwParcel *)env->GetLongField(thiz, gFields.contextID); in GetNativeContext()
|