Ejemplo n.º 1
0
        public unsafe void OnEvent(global::Com.Google.Android.Exoplayer.Drm.IExoMediaDrm p0, byte[] p1, int p2, int p3, byte[] p4)
        {
            if (id_onEvent_Lcom_google_android_exoplayer_drm_ExoMediaDrm_arrayBIIarrayB == IntPtr.Zero)
            {
                id_onEvent_Lcom_google_android_exoplayer_drm_ExoMediaDrm_arrayBIIarrayB = JNIEnv.GetMethodID(class_ref, "onEvent", "(Lcom/google/android/exoplayer/drm/ExoMediaDrm;[BII[B)V");
            }
            IntPtr  native_p1 = JNIEnv.NewArray(p1);
            IntPtr  native_p4 = JNIEnv.NewArray(p4);
            JValue *__args    = stackalloc JValue [5];

            __args [0] = new JValue(p0);
            __args [1] = new JValue(native_p1);
            __args [2] = new JValue(p2);
            __args [3] = new JValue(p3);
            __args [4] = new JValue(native_p4);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onEvent_Lcom_google_android_exoplayer_drm_ExoMediaDrm_arrayBIIarrayB, __args);
            if (p1 != null)
            {
                JNIEnv.CopyArray(native_p1, p1);
                JNIEnv.DeleteLocalRef(native_p1);
            }
            if (p4 != null)
            {
                JNIEnv.CopyArray(native_p4, p4);
                JNIEnv.DeleteLocalRef(native_p4);
            }
        }
Ejemplo n.º 2
0
 public ExoMediaDrmOnEventEventArgs(global::Com.Google.Android.Exoplayer.Drm.IExoMediaDrm p0, byte[] p1, int p2, int p3, byte[] p4)
 {
     this.p0 = p0;
     this.p1 = p1;
     this.p2 = p2;
     this.p3 = p3;
     this.p4 = p4;
 }
 public ExoMediaDrmOnEventEventArgs(global::Com.Google.Android.Exoplayer.Drm.IExoMediaDrm p0, global::Java.Interop.JavaSByteArray p1, int p2, int p3, global::Java.Interop.JavaSByteArray p4)
 {
     this.p0 = p0;
     this.p1 = p1;
     this.p2 = p2;
     this.p3 = p3;
     this.p4 = p4;
 }
Ejemplo n.º 4
0
#pragma warning restore 0649

        public void OnEvent(global::Com.Google.Android.Exoplayer.Drm.IExoMediaDrm p0, byte[] p1, int p2, int p3, byte[] p4)
        {
            var __h = Handler;

            if (__h != null)
            {
                __h(sender, new ExoMediaDrmOnEventEventArgs(p0, p1, p2, p3, p4));
            }
        }
                #pragma warning restore 0649

        public void OnEvent(global::Com.Google.Android.Exoplayer.Drm.IExoMediaDrm p0, global::Java.Interop.JavaSByteArray p1, int p2, int p3, global::Java.Interop.JavaSByteArray p4)
        {
            var __h = Handler;

            if (__h != null)
            {
                __h(sender, new ExoMediaDrmOnEventEventArgs(p0, p1, p2, p3, p4));
            }
        }
 static void n_OnEvent_Lcom_google_android_exoplayer_drm_ExoMediaDrm_arrayBIIarrayB(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, int p2, int p3, IntPtr native_p4)
 {
     global::Com.Google.Android.Exoplayer.Drm.IExoMediaDrmOnEventListener __this = global::Java.Lang.Object.GetObject <global::Com.Google.Android.Exoplayer.Drm.IExoMediaDrmOnEventListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Google.Android.Exoplayer.Drm.IExoMediaDrm p0 = (global::Com.Google.Android.Exoplayer.Drm.IExoMediaDrm)global::Java.Lang.Object.GetObject <global::Com.Google.Android.Exoplayer.Drm.IExoMediaDrm> (native_p0, JniHandleOwnership.DoNotTransfer);
     byte[] p1 = (byte[])JNIEnv.GetArray(native_p1, JniHandleOwnership.DoNotTransfer, typeof(byte));
     byte[] p4 = (byte[])JNIEnv.GetArray(native_p4, JniHandleOwnership.DoNotTransfer, typeof(byte));
     __this.OnEvent(p0, p1, p2, p3, p4);
     if (p1 != null)
     {
         JNIEnv.CopyArray(p1, native_p1);
     }
     if (p4 != null)
     {
         JNIEnv.CopyArray(p4, native_p4);
     }
 }
 static void n_SetOnEventListener_Lcom_google_android_exoplayer_drm_ExoMediaDrm_OnEventListener_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Google.Android.Exoplayer.Drm.IExoMediaDrm __this            = global::Java.Lang.Object.GetObject <global::Com.Google.Android.Exoplayer.Drm.IExoMediaDrm> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Google.Android.Exoplayer.Drm.IExoMediaDrmOnEventListener p0 = (global::Com.Google.Android.Exoplayer.Drm.IExoMediaDrmOnEventListener)global::Java.Lang.Object.GetObject <global::Com.Google.Android.Exoplayer.Drm.IExoMediaDrmOnEventListener> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.SetOnEventListener(p0);
 }