Lines Matching refs:env

62 var = env->FindClass(className); \
66 var = env->GetMethodID(clazz, fieldName, fieldDescriptor); \
107 JNIMediaPlayerListener(JNIEnv* env, jobject thiz, jobject weak_thiz);
116 JNIMediaPlayerListener::JNIMediaPlayerListener(JNIEnv* env, jobject thiz, jobject weak_thiz)
121 jclass clazz = env->GetObjectClass(thiz);
124 jniThrowException(env, "java/lang/Exception", NULL);
127 mClass = (jclass)env->NewGlobalRef(clazz);
131 mObject = env->NewGlobalRef(weak_thiz);
137 JNIEnv *env = AndroidRuntime::getJNIEnv();
138 env->DeleteGlobalRef(mObject);
139 env->DeleteGlobalRef(mClass);
144 JNIEnv *env = AndroidRuntime::getJNIEnv();
146 jobject jParcel = createJavaParcelObject(env);
148 Parcel* nativeParcel = parcelForJavaObject(env, jParcel);
150 env->CallStaticVoidMethod(mClass, fields.post_event, mObject,
152 env->DeleteLocalRef(jParcel);
155 env->CallStaticVoidMethod(mClass, fields.post_event, mObject,
158 if (env->ExceptionCheck()) {
160 LOGW_EX(env);
161 env->ExceptionClear();
167 static sp<MediaPlayer> getMediaPlayer(JNIEnv* env, jobject thiz)
170 MediaPlayer* const p = (MediaPlayer*)env->GetLongField(thiz, fields.context);
174 static sp<MediaPlayer> setMediaPlayer(JNIEnv* env, jobject thiz, const sp<MediaPlayer>& player)
177 sp<MediaPlayer> old = (MediaPlayer*)env->GetLongField(thiz, fields.context);
184 env->SetLongField(thiz, fields.context, (jlong)player.get());
192 static void process_media_player_call(JNIEnv *env, jobject thiz, status_t opStatus, const char* exception, const char *message)
196 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
201 jniThrowException(env, "java/lang/IllegalStateException", NULL);
203 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
205 jniThrowException(env, "java/lang/SecurityException", NULL);
209 jniThrowException( env, exception, message);
214 jniThrowException( env, exception, msg);
222 JNIEnv *env, jobject thiz, jobject httpServiceBinderObj, jstring path,
225 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
227 jniThrowException(env, "java/lang/IllegalStateException", NULL);
232 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
236 const char *tmp = env->GetStringUTFChars(path, NULL);
243 env->ReleaseStringUTFChars(path, tmp);
249 env, keys, values, &headersVector)) {
255 sp<IBinder> binder = ibinderForJavaObject(env, httpServiceBinderObj);
266 env, thiz, opStatus, "java/io/IOException",
271 android_media_MediaPlayer_setDataSourceFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length)
273 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
275 jniThrowException(env, "java/lang/IllegalStateException", NULL);
280 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
283 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor);
285 process_media_player_call( env, thiz, mp->setDataSource(fd, offset, length), "java/io/IOException", "setDataSourceFD failed." );
289 android_media_MediaPlayer_setDataSourceCallback(JNIEnv *env, jobject thiz, jobject dataSource)
291 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
293 jniThrowException(env, "java/lang/IllegalStateException", NULL);
298 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
301 sp<IDataSource> callbackDataSource = new JMediaDataSource(env, dataSource);
302 process_media_player_call(env, thiz, mp->setDataSource(callbackDataSource), "java/lang/RuntimeException", "setDataSourceCallback failed." );
306 getVideoSurfaceTexture(JNIEnv* env, jobject thiz) {
307 IGraphicBufferProducer * const p = (IGraphicBufferProducer*)env->GetLongField(thiz, fields.surface_texture);
312 decVideoSurfaceRef(JNIEnv *env, jobject thiz)
314 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
319 sp<IGraphicBufferProducer> old_st = getVideoSurfaceTexture(env, thiz);
326 setVideoSurface(JNIEnv *env, jobject thiz, jobject jsurface, jboolean mediaPlayerMustBeAlive)
328 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
331 jniThrowException(env, "java/lang/IllegalStateException", NULL);
336 decVideoSurfaceRef(env, thiz);
340 sp<Surface> surface(android_view_Surface_getSurface(env, jsurface));
344 jniThrowException(env, "java/lang/IllegalArgumentException",
350 jniThrowException(env, "java/lang/IllegalArgumentException",
356 env->SetLongField(thiz, fields.surface_texture, (jlong)new_st.get());
366 android_media_MediaPlayer_setVideoSurface(JNIEnv *env, jobject thiz, jobject jsurface)
368 setVideoSurface(env, thiz, jsurface, true /* mediaPlayerMustBeAlive */);
372 android_media_MediaPlayer_getDefaultBufferingParams(JNIEnv *env, jobject thiz)
374 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
376 jniThrowException(env, "java/lang/IllegalStateException", NULL);
383 env, thiz, mp->getDefaultBufferingSettings(&settings),
387 return bp.asJobject(env, gBufferingParamsFields);
391 android_media_MediaPlayer_getBufferingParams(JNIEnv *env, jobject thiz)
393 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
395 jniThrowException(env, "java/lang/IllegalStateException", NULL);
402 env, thiz, mp->getBufferingSettings(&settings),
406 return bp.asJobject(env, gBufferingParamsFields);
410 android_media_MediaPlayer_setBufferingParams(JNIEnv *env, jobject thiz, jobject params)
416 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
418 jniThrowException(env, "java/lang/IllegalStateException", NULL);
423 bp.fillFromJobject(env, gBufferingParamsFields, params);
427 env, thiz, mp->setBufferingSettings(bp.settings),
432 android_media_MediaPlayer_prepare(JNIEnv *env, jobject thiz)
434 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
436 jniThrowException(env, "java/lang/IllegalStateException", NULL);
442 sp<IGraphicBufferProducer> st = getVideoSurfaceTexture(env, thiz);
445 process_media_player_call( env, thiz, mp->prepare(), "java/io/IOException", "Prepare failed." );
449 android_media_MediaPlayer_prepareAsync(JNIEnv *env, jobject thiz)
451 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
453 jniThrowException(env, "java/lang/IllegalStateException", NULL);
459 sp<IGraphicBufferProducer> st = getVideoSurfaceTexture(env, thiz);
462 process_media_player_call( env, thiz, mp->prepareAsync(), "java/io/IOException", "Prepare Async failed." );
466 android_media_MediaPlayer_start(JNIEnv *env, jobject thiz)
469 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
471 jniThrowException(env, "java/lang/IllegalStateException", NULL);
474 process_media_player_call( env, thiz, mp->start(), NULL, NULL );
478 android_media_MediaPlayer_stop(JNIEnv *env, jobject thiz)
481 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
483 jniThrowException(env, "java/lang/IllegalStateException", NULL);
486 process_media_player_call( env, thiz, mp->stop(), NULL, NULL );
490 android_media_MediaPlayer_pause(JNIEnv *env, jobject thiz)
493 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
495 jniThrowException(env, "java/lang/IllegalStateException", NULL);
498 process_media_player_call( env, thiz, mp->pause(), NULL, NULL );
502 android_media_MediaPlayer_isPlaying(JNIEnv *env, jobject thiz)
504 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
506 jniThrowException(env, "java/lang/IllegalStateException", NULL);
516 android_media_MediaPlayer_setPlaybackParams(JNIEnv *env, jobject thiz, jobject params)
518 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
520 jniThrowException(env, "java/lang/IllegalStateException", NULL);
525 pbp.fillFromJobject(env, gPlaybackParamsFields, params);
557 env, thiz, err,
562 android_media_MediaPlayer_getPlaybackParams(JNIEnv *env, jobject thiz)
564 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
566 jniThrowException(env, "java/lang/IllegalStateException", NULL);
573 env, thiz, mp->getPlaybackSettings(&audioRate),
583 return pbp.asJobject(env, gPlaybackParamsFields);
587 android_media_MediaPlayer_setSyncParams(JNIEnv *env, jobject thiz, jobject params)
589 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
591 jniThrowException(env, "java/lang/IllegalStateException", NULL);
596 scp.fillFromJobject(env, gSyncParamsFields, params);
625 env, thiz, err,
630 android_media_MediaPlayer_getSyncParams(JNIEnv *env, jobject thiz)
632 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
634 jniThrowException(env, "java/lang/IllegalStateException", NULL);
641 env, thiz, mp->getSyncSettings(&scp.sync, &scp.frameRate),
652 jniThrowException(env, "java/lang/IllegalStateException", NULL);
661 return scp.asJobject(env, gSyncParamsFields);
665 android_media_MediaPlayer_seekTo(JNIEnv *env, jobject thiz, jlong msec, jint mode)
667 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
669 jniThrowException(env, "java/lang/IllegalStateException", NULL);
673 process_media_player_call( env, thiz, mp->seekTo((int)msec, (MediaPlayerSeekMode)mode), NULL, NULL );
677 android_media_MediaPlayer_getVideoWidth(JNIEnv *env, jobject thiz)
679 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
681 jniThrowException(env, "java/lang/IllegalStateException", NULL);
694 android_media_MediaPlayer_getVideoHeight(JNIEnv *env, jobject thiz)
696 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
698 jniThrowException(env, "java/lang/IllegalStateException", NULL);
711 android_media_MediaPlayer_native_getMetrics(JNIEnv *env, jobject thiz)
713 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
715 jniThrowException(env, "java/lang/IllegalStateException", NULL);
729 jobject mybundle = MediaMetricsJNI::writeMetricsToBundle(env, item, NULL);
739 android_media_MediaPlayer_getCurrentPosition(JNIEnv *env, jobject thiz)
741 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
743 jniThrowException(env, "java/lang/IllegalStateException", NULL);
747 process_media_player_call( env, thiz, mp->getCurrentPosition(&msec), NULL, NULL );
753 android_media_MediaPlayer_getDuration(JNIEnv *env, jobject thiz)
755 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
757 jniThrowException(env, "java/lang/IllegalStateException", NULL);
761 process_media_player_call( env, thiz, mp->getDuration(&msec), NULL, NULL );
767 android_media_MediaPlayer_reset(JNIEnv *env, jobject thiz)
770 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
772 jniThrowException(env, "java/lang/IllegalStateException", NULL);
775 process_media_player_call( env, thiz, mp->reset(), NULL, NULL );
779 android_media_MediaPlayer_setAudioStreamType(JNIEnv *env, jobject thiz, jint streamtype)
782 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
784 jniThrowException(env, "java/lang/IllegalStateException", NULL);
787 process_media_player_call( env, thiz, mp->setAudioStreamType((audio_stream_type_t) streamtype) , NULL, NULL );
791 android_media_MediaPlayer_getAudioStreamType(JNIEnv *env, jobject thiz)
793 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
795 jniThrowException(env, "java/lang/IllegalStateException", NULL);
799 process_media_player_call( env, thiz, mp->getAudioStreamType(&streamtype), NULL, NULL );
805 android_media_MediaPlayer_setParameter(JNIEnv *env, jobject thiz, jint key, jobject java_request)
808 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
810 jniThrowException(env, "java/lang/IllegalStateException", NULL);
814 Parcel *request = parcelForJavaObject(env, java_request);
824 android_media_MediaPlayer_setLooping(JNIEnv *env, jobject thiz, jboolean looping)
827 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
829 jniThrowException(env, "java/lang/IllegalStateException", NULL);
832 process_media_player_call( env, thiz, mp->setLooping(looping), NULL, NULL );
836 android_media_MediaPlayer_isLooping(JNIEnv *env, jobject thiz)
839 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
841 jniThrowException(env, "java/lang/IllegalStateException", NULL);
848 android_media_MediaPlayer_setVolume(JNIEnv *env, jobject thiz, jfloat leftVolume, jfloat rightVolume)
851 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
853 jniThrowException(env, "java/lang/IllegalStateException", NULL);
856 process_media_player_call( env, thiz, mp->setVolume((float) leftVolume, (float) rightVolume), NULL, NULL );
862 android_media_MediaPlayer_invoke(JNIEnv *env, jobject thiz,
865 sp<MediaPlayer> media_player = getMediaPlayer(env, thiz);
867 jniThrowException(env, "java/lang/IllegalStateException", NULL);
871 Parcel *request = parcelForJavaObject(env, java_request);
872 Parcel *reply = parcelForJavaObject(env, java_reply);
881 android_media_MediaPlayer_setMetadataFilter(JNIEnv *env, jobject thiz, jobject request)
883 sp<MediaPlayer> media_player = getMediaPlayer(env, thiz);
885 jniThrowException(env, "java/lang/IllegalStateException", NULL);
889 Parcel *filter = parcelForJavaObject(env, request);
892 jniThrowException(env, "java/lang/RuntimeException", "Filter is null");
900 android_media_MediaPlayer_getMetadata(JNIEnv *env, jobject thiz, jboolean update_only,
903 sp<MediaPlayer> media_player = getMediaPlayer(env, thiz);
905 jniThrowException(env, "java/lang/IllegalStateException", NULL);
909 Parcel *metadata = parcelForJavaObject(env, reply);
912 jniThrowException(env, "java/lang/RuntimeException", "Reply parcel is null");
932 android_media_MediaPlayer_native_init(JNIEnv *env)
936 clazz = env->FindClass("android/media/MediaPlayer");
941 fields.context = env->GetFieldID(clazz, "mNativeContext", "J");
946 fields.post_event = env->GetStaticMethodID(clazz, "postEventFromNative",
952 fields.surface_texture = env->GetFieldID(clazz, "mNativeSurfaceTexture", "J");
957 env->DeleteLocalRef(clazz);
959 clazz = env->FindClass("android/net/ProxyInfo");
965 env->GetMethodID(clazz, "getHost", "()Ljava/lang/String;");
968 env->GetMethodID(clazz, "getPort", "()I");
971 env->GetMethodID(clazz, "getExclusionListAsString", "()Ljava/lang/String;");
973 env->DeleteLocalRef(clazz);
975 gBufferingParamsFields.init(env);
981 gStateExceptionFields.classId = static_cast<jclass>(env->NewGlobalRef(clazz));
983 env->DeleteLocalRef(clazz);
989 gPlaybackParamsFields.init(env);
990 gSyncParamsFields.init(env);
991 gVolumeShaperFields.init(env);
995 android_media_MediaPlayer_native_setup(JNIEnv *env, jobject thiz, jobject weak_this)
1000 jniThrowException(env, "java/lang/RuntimeException", "Out of memory");
1005 sp<JNIMediaPlayerListener> listener = new JNIMediaPlayerListener(env, thiz, weak_this);
1009 setMediaPlayer(env, thiz, mp);
1013 android_media_MediaPlayer_release(JNIEnv *env, jobject thiz)
1016 decVideoSurfaceRef(env, thiz);
1017 sp<MediaPlayer> mp = setMediaPlayer(env, thiz, 0);
1026 android_media_MediaPlayer_native_finalize(JNIEnv *env, jobject thiz)
1029 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
1033 android_media_MediaPlayer_release(env, thiz);
1036 static void android_media_MediaPlayer_set_audio_session_id(JNIEnv *env, jobject thiz,
1039 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
1041 jniThrowException(env, "java/lang/IllegalStateException", NULL);
1044 process_media_player_call( env, thiz, mp->setAudioSessionId((audio_session_t) sessionId), NULL,
1048 static jint android_media_MediaPlayer_get_audio_session_id(JNIEnv *env, jobject thiz) {
1050 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
1052 jniThrowException(env, "java/lang/IllegalStateException", NULL);
1060 android_media_MediaPlayer_setAuxEffectSendLevel(JNIEnv *env, jobject thiz, jfloat level)
1063 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
1065 jniThrowException(env, "java/lang/IllegalStateException", NULL);
1068 process_media_player_call( env, thiz, mp->setAuxEffectSendLevel(level), NULL, NULL );
1071 static void android_media_MediaPlayer_attachAuxEffect(JNIEnv *env, jobject thiz, jint effectId) {
1073 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
1075 jniThrowException(env, "java/lang/IllegalStateException", NULL);
1078 process_media_player_call( env, thiz, mp->attachAuxEffect(effectId), NULL, NULL );
1083 JNIEnv *env, jobject /* thiz */, jobject java_reply)
1088 jniThrowException(env, "java/lang/RuntimeException", "cannot get MediaPlayerService");
1092 Parcel *reply = parcelForJavaObject(env, java_reply);
1098 android_media_MediaPlayer_setRetransmitEndpoint(JNIEnv *env, jobject thiz,
1100 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
1102 jniThrowException(env, "java/lang/IllegalStateException", NULL);
1109 cAddrString = env->GetStringUTFChars(addrString, NULL);
1126 env->ReleaseStringUTFChars(addrString, cAddrString);
1130 jniThrowException(env, "java/lang/IllegalStateException", NULL);
1137 android_media_MediaPlayer_setNextMediaPlayer(JNIEnv *env, jobject thiz, jobject java_player)
1140 sp<MediaPlayer> thisplayer = getMediaPlayer(env, thiz);
1142 jniThrowException(env, "java/lang/IllegalStateException", "This player not initialized");
1145 sp<MediaPlayer> nextplayer = (java_player == NULL) ? NULL : getMediaPlayer(env, java_player);
1147 jniThrowException(env, "java/lang/IllegalStateException", "That player not initialized");
1152 jniThrowException(env, "java/lang/IllegalArgumentException", "Next player can't be self");
1157 env, thiz, thisplayer->setNextMediaPlayer(nextplayer),
1164 static jint android_media_MediaPlayer_applyVolumeShaper(JNIEnv *env, jobject thiz,
1169 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
1178 env, gVolumeShaperFields, jconfig);
1183 env, gVolumeShaperFields, joperation);
1194 static jobject android_media_MediaPlayer_getVolumeShaperState(JNIEnv *env, jobject thiz,
1196 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
1205 return VolumeShaperHelper::convertStateToJobject(env, gVolumeShaperFields, state);
1212 static void throwDrmStateException(JNIEnv *env, const char *msg, status_t err)
1216 jobject exception = env->NewObject(gStateExceptionFields.classId,
1218 env->NewStringUTF(msg));
1219 env->Throw(static_cast<jthrowable>(exception));
1223 static bool throwDrmExceptionAsNecessary(JNIEnv *env, status_t err, const char *msg = NULL)
1263 jniThrowException(env, "java/lang/IllegalArgumentException", msg);
1266 jniThrowException(env, "android/media/NotProvisionedException", msg);
1269 jniThrowException(env, "android/media/ResourceBusyException", msg);
1272 jniThrowException(env, "android/media/DeniedByServerException", msg);
1275 jniThrowException(env, "android/media/MediaDrmResetException",
1288 throwDrmStateException(env, msg, err);
1294 static Vector<uint8_t> JByteArrayToVector(JNIEnv *env, jbyteArray const &byteArray)
1297 size_t length = env->GetArrayLength(byteArray);
1299 env->GetByteArrayRegion(byteArray, 0, length, (jbyte *)vector.editArray());
1303 static void android_media_MediaPlayer_prepareDrm(JNIEnv *env, jobject thiz,
1306 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
1308 jniThrowException(env, "java/lang/IllegalStateException", NULL);
1313 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
1317 Vector<uint8_t> uuid = JByteArrayToVector(env, uuidObj);
1321 env,
1327 Vector<uint8_t> drmSessionId = JByteArrayToVector(env, drmSessionIdObj);
1331 env,
1341 env,
1346 env,
1350 throwDrmExceptionAsNecessary(env, err, "Failed to prepare DRM scheme");
1355 static void android_media_MediaPlayer_releaseDrm(JNIEnv *env, jobject thiz)
1357 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
1359 jniThrowException(env, "java/lang/IllegalStateException", NULL);
1367 env,
1439 static int register_android_media_MediaPlayer(JNIEnv *env)
1441 return AndroidRuntime::registerNativeMethods(env,
1444 extern int register_android_media_ImageReader(JNIEnv *env);
1445 extern int register_android_media_ImageWriter(JNIEnv *env);
1446 extern int register_android_media_Crypto(JNIEnv *env);
1447 extern int register_android_media_Drm(JNIEnv *env);
1448 extern int register_android_media_Descrambler(JNIEnv *env);
1449 extern int register_android_media_MediaCodec(JNIEnv *env);
1450 extern int register_android_media_MediaExtractor(JNIEnv *env);
1451 extern int register_android_media_MediaCodecList(JNIEnv *env);
1452 extern int register_android_media_MediaHTTPConnection(JNIEnv *env);
1453 extern int register_android_media_MediaMetadataRetriever(JNIEnv *env);
1454 extern int register_android_media_MediaMuxer(JNIEnv *env);
1455 extern int register_android_media_MediaRecorder(JNIEnv *env);
1456 extern int register_android_media_MediaScanner(JNIEnv *env);
1457 extern int register_android_media_MediaSync(JNIEnv *env);
1458 extern int register_android_media_ResampleInputStream(JNIEnv *env);
1459 extern int register_android_media_MediaProfiles(JNIEnv *env);
1460 extern int register_android_mtp_MtpDatabase(JNIEnv *env);
1461 extern int register_android_mtp_MtpDevice(JNIEnv *env);
1462 extern int register_android_mtp_MtpServer(JNIEnv *env);
1466 JNIEnv* env = NULL;
1469 if (vm->GetEnv((void**) &env, JNI_VERSION_1_4) != JNI_OK) {
1473 assert(env != NULL);
1475 if (register_android_media_ImageWriter(env) != JNI_OK) {
1480 if (register_android_media_ImageReader(env) < 0) {
1485 if (register_android_media_MediaPlayer(env) < 0) {
1490 if (register_android_media_MediaRecorder(env) < 0) {
1495 if (register_android_media_MediaScanner(env) < 0) {
1500 if (register_android_media_MediaMetadataRetriever(env) < 0) {
1505 if (register_android_media_ResampleInputStream(env) < 0) {
1510 if (register_android_media_MediaProfiles(env) < 0) {
1515 if (register_android_mtp_MtpDatabase(env) < 0) {
1520 if (register_android_mtp_MtpDevice(env) < 0) {
1525 if (register_android_mtp_MtpServer(env) < 0) {
1530 if (register_android_media_MediaCodec(env) < 0) {
1535 if (register_android_media_MediaSync(env) < 0) {
1540 if (register_android_media_MediaExtractor(env) < 0) {
1545 if (register_android_media_MediaMuxer(env) < 0) {
1550 if (register_android_media_MediaCodecList(env) < 0) {
1555 if (register_android_media_Crypto(env) < 0) {
1560 if (register_android_media_Drm(env) < 0) {
1565 if (register_android_media_Descrambler(env) < 0) {
1570 if (register_android_media_MediaHTTPConnection(env) < 0) {