示例#1
0
 /// <summary>
 /// Cast an IBinder object into an android.view.IApplicationToken interface,
 /// generating a proxy if needed.
 /// </summary>
 /// <remarks>
 /// Cast an IBinder object into an android.view.IApplicationToken interface,
 /// generating a proxy if needed.
 /// </remarks>
 public static android.view.IApplicationToken asInterface(android.os.IBinder obj)
 {
     if ((obj == null))
     {
         return(null);
     }
     android.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR
                                                                                );
     if (((iin != null) && (iin is android.view.IApplicationToken)))
     {
         return((android.view.IApplicationToken)iin);
     }
     return(new android.view.IApplicationTokenClass.Stub.Proxy(obj));
 }
示例#2
0
 /// <summary>
 /// Cast an IBinder object into an com.android.internal.appwidget.IAppWidgetService interface,
 /// generating a proxy if needed.
 /// </summary>
 /// <remarks>
 /// Cast an IBinder object into an com.android.internal.appwidget.IAppWidgetService interface,
 /// generating a proxy if needed.
 /// </remarks>
 public static [email protected] asInterface(android.os.IBinder
                                                                         obj)
 {
     if ((obj == null))
     {
         return(null);
     }
     android.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR
                                                                                );
     if (((iin != null) && (iin is [email protected])))
     {
         return(([email protected])iin);
     }
     return(new [email protected](obj));
 }
 /// <summary>
 /// Cast an IBinder object into an com.android.internal.widget.IRemoteViewsFactory interface,
 /// generating a proxy if needed.
 /// </summary>
 /// <remarks>
 /// Cast an IBinder object into an com.android.internal.widget.IRemoteViewsFactory interface,
 /// generating a proxy if needed.
 /// </remarks>
 public static [email protected] asInterface(android.os.IBinder
                                                                        obj)
 {
     if ((obj == null))
     {
         return(null);
     }
     android.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR
                                                                                );
     if (((iin != null) && (iin is [email protected])))
     {
         return(([email protected])iin);
     }
     return(new [email protected](obj));
 }
 /// <summary>
 /// Cast an IBinder object into an android.view.IOnKeyguardExitResult interface,
 /// generating a proxy if needed.
 /// </summary>
 /// <remarks>
 /// Cast an IBinder object into an android.view.IOnKeyguardExitResult interface,
 /// generating a proxy if needed.
 /// </remarks>
 public static android.view.IOnKeyguardExitResult asInterface(android.os.IBinder obj
                                                              )
 {
     if ((obj == null))
     {
         return(null);
     }
     android.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR
                                                                                );
     if (((iin != null) && (iin is android.view.IOnKeyguardExitResult)))
     {
         return((android.view.IOnKeyguardExitResult)iin);
     }
     return(new android.view.IOnKeyguardExitResultClass.Stub.Proxy(obj));
 }
示例#5
0
 /// <summary>
 /// Cast an IBinder object into an com.android.internal.policy.IFaceLockCallback interface,
 /// generating a proxy if needed.
 /// </summary>
 /// <remarks>
 /// Cast an IBinder object into an com.android.internal.policy.IFaceLockCallback interface,
 /// generating a proxy if needed.
 /// </remarks>
 public static [email protected] asInterface(android.os.IBinder
                                                                      obj)
 {
     if ((obj == null))
     {
         return(null);
     }
     android.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR
                                                                                );
     if (((iin != null) && (iin is [email protected])))
     {
         return(([email protected])iin);
     }
     return(new [email protected](obj));
 }
示例#6
0
 /// <summary>
 /// Cast an IBinder object into an com.android.internal.statusbar.IStatusBar interface,
 /// generating a proxy if needed.
 /// </summary>
 /// <remarks>
 /// Cast an IBinder object into an com.android.internal.statusbar.IStatusBar interface,
 /// generating a proxy if needed.
 /// </remarks>
 public static [email protected] asInterface(android.os.IBinder
                                                                  obj)
 {
     if ((obj == null))
     {
         return(null);
     }
     android.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR
                                                                                );
     if (((iin != null) && (iin is [email protected])))
     {
         return(([email protected])iin);
     }
     return(new [email protected](obj));
 }