/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() 472 jclass clazz = gFields.stringClassId; in HashMapToKeyedVector() 476 jobject entrySet = env->CallObjectMethod(hashMap, gFields.hashmap.entrySet); in HashMapToKeyedVector() 478 jobject iterator = env->CallObjectMethod(entrySet, gFields.set.iterator); in HashMapToKeyedVector() 480 jboolean hasNext = env->CallBooleanMethod(iterator, gFields.iterator.hasNext); in HashMapToKeyedVector() 482 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 | 110 static fields_t gFields; variable 754 gFields.postEventFromNativeID, in handleCallback() 778 mObject, gFields.postEventFromNativeID, in handleFrameRenderedNotification() 809 sp<JMediaCodec> old = (JMediaCodec *)env->GetLongField(thiz, gFields.context); in setMediaCodec() 822 env->SetLongField(thiz, gFields.context, (jlong)codec.get()); in setMediaCodec() 828 return (JMediaCodec *)env->GetLongField(thiz, gFields.context); in getMediaCodec() 1278 env->GetIntField(cryptoInfoObj, gFields.cryptoInfoNumSubSamplesID); in android_media_MediaCodec_queueSecureInputBuffer() 1282 cryptoInfoObj, gFields.cryptoInfoNumBytesOfClearDataID); in android_media_MediaCodec_queueSecureInputBuffer() 1286 cryptoInfoObj, gFields.cryptoInfoNumBytesOfEncryptedDataID); in android_media_MediaCodec_queueSecureInputBuffer() 1289 (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() 154 sp<JCrypto> old = (JCrypto *)env->GetLongField(thiz, gFields.context); in setCrypto() 161 env->SetLongField(thiz, gFields.context, (jlong)crypto.get()); in setCrypto() 174 gFields.context = env->GetFieldID(clazz, "mNativeContext", "J"); in android_media_MediaCrypto_native_init() 175 CHECK(gFields.context != NULL); in android_media_MediaCrypto_native_init()
|
D | android_media_ExifInterface.cpp | 62 static fields_t gFields; variable 65 jclass clazz = gFields.hashMapClassId; in KeyedVectorToHashMap() 66 jobject hashMap = env->NewObject(clazz, gFields.hashMap.init); in KeyedVectorToHashMap() 70 env->CallObjectMethod(hashMap, gFields.hashMap.put, jkey, jvalue); in KeyedVectorToHashMap() 84 gFields.hashMapClassId = static_cast<jclass>(env->NewGlobalRef(clazz)); in ExifInterface_initRaw() 86 GET_METHOD_ID(gFields.hashMap.init, clazz, "<init>", "()V"); in ExifInterface_initRaw() 87 GET_METHOD_ID(gFields.hashMap.put, clazz, "put", in ExifInterface_initRaw() 311 env->CallObjectMethod(hashMap, gFields.hashMap.put, jkey, jthumbnailByteArray); in getRawAttributes()
|
D | android_media_MediaMuxer.cpp | 37 static fields_t gFields; variable 92 (jbyteArray)env->CallObjectMethod(byteBuf, gFields.arrayID); in android_media_MediaMuxer_writeSampleData() 257 gFields.arrayID = in register_android_media_MediaMuxer() 259 CHECK(gFields.arrayID != NULL); in register_android_media_MediaMuxer()
|
D | android_media_MediaExtractor.cpp | 52 static fields_t gFields; variable 260 (JMediaExtractor *)env->GetLongField(thiz, gFields.context); in setMediaExtractor() 268 env->SetLongField(thiz, gFields.context, (jlong)extractor.get()); in setMediaExtractor() 274 return (JMediaExtractor *)env->GetLongField(thiz, gFields.context); in getMediaExtractor() 587 gFields.cryptoInfoSetID, in android_media_MediaExtractor_getSampleCryptoInfo() 602 gFields.context = env->GetFieldID(clazz, "mNativeContext", "J"); in android_media_MediaExtractor_native_init() 603 CHECK(gFields.context != NULL); in android_media_MediaExtractor_native_init() 608 gFields.cryptoInfoSetID = in android_media_MediaExtractor_native_init()
|
/frameworks/base/core/jni/ |
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_util_EventLog.cpp | 280 static struct { jclass *c; const char *name, *ft; jfieldID *id; } gFields[] = { variable 297 for (int i = 0; i < NELEM(gFields); ++i) { in register_android_util_EventLog() 298 *gFields[i].id = GetFieldIDOrDie(env, in register_android_util_EventLog() 299 *gFields[i].c, gFields[i].name, gFields[i].ft); in register_android_util_EventLog()
|