public virtual void copyFrom([email protected] that) { if (that.mSlots == null) { this.mSlots = null; this.mIcons = null; } else { int N = that.mSlots.Length; this.mSlots = new string[N]; this.mIcons = new [email protected][N]; { for (int i = 0; i < N; i++) { this.mSlots[i] = that.mSlots[i]; this.mIcons[i] = that.mIcons[i] != null ? that.mIcons[i].clone() : null; } } } }
public virtual void registerStatusBar([email protected] callbacks , [email protected] iconList, java.util.List <android.os.IBinder > notificationKeys, java.util.List <*****@*****.** > notifications, int[] switches, java.util.List <android.os.IBinder> binders) { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeStrongBinder((((callbacks != null)) ? (callbacks.asBinder()) : (null)) ); if ((switches == null)) { _data.writeInt(-1); } else { _data.writeInt(switches.Length); } mRemote.transact(android.statusbar.@internal.IStatusBarServiceClass.Stub.TRANSACTION_registerStatusBar , _data, _reply, 0); _reply.readException(); if ((0 != _reply.readInt())) { iconList.readFromParcel(_reply); } _reply.readBinderList(notificationKeys); _reply.readTypedList(notifications, [email protected] .CREATOR); _reply.readIntArray(switches); _reply.readBinderList(binders); } finally { _reply.recycle(); _data.recycle(); } }
public abstract void registerStatusBar([email protected] arg1 , [email protected] arg2, java.util.List <android.os.IBinder > arg3, java.util.List <*****@*****.**> arg4, int[] arg5, java.util.List <android.os.IBinder> arg6);
protected internal override bool onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) { switch (code) { case android.os.IBinderClass.INTERFACE_TRANSACTION: { reply.writeString(DESCRIPTOR); return(true); } case TRANSACTION_expand: { data.enforceInterface(DESCRIPTOR); this.expand(); reply.writeNoException(); return(true); } case TRANSACTION_collapse: { data.enforceInterface(DESCRIPTOR); this.collapse(); reply.writeNoException(); return(true); } case TRANSACTION_disable: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); android.os.IBinder _arg1; _arg1 = data.readStrongBinder(); string _arg2; _arg2 = data.readString(); this.disable(_arg0, _arg1, _arg2); reply.writeNoException(); return(true); } case TRANSACTION_setIcon: { data.enforceInterface(DESCRIPTOR); string _arg0; _arg0 = data.readString(); string _arg1; _arg1 = data.readString(); int _arg2; _arg2 = data.readInt(); int _arg3; _arg3 = data.readInt(); string _arg4; _arg4 = data.readString(); this.setIcon(_arg0, _arg1, _arg2, _arg3, _arg4); reply.writeNoException(); return(true); } case TRANSACTION_setIconVisibility: { data.enforceInterface(DESCRIPTOR); string _arg0; _arg0 = data.readString(); bool _arg1; _arg1 = (0 != data.readInt()); this.setIconVisibility(_arg0, _arg1); reply.writeNoException(); return(true); } case TRANSACTION_removeIcon: { data.enforceInterface(DESCRIPTOR); string _arg0; _arg0 = data.readString(); this.removeIcon(_arg0); reply.writeNoException(); return(true); } case TRANSACTION_topAppWindowChanged: { data.enforceInterface(DESCRIPTOR); bool _arg0; _arg0 = (0 != data.readInt()); this.topAppWindowChanged(_arg0); reply.writeNoException(); return(true); } case TRANSACTION_setImeWindowStatus: { data.enforceInterface(DESCRIPTOR); android.os.IBinder _arg0; _arg0 = data.readStrongBinder(); int _arg1; _arg1 = data.readInt(); int _arg2; _arg2 = data.readInt(); this.setImeWindowStatus(_arg0, _arg1, _arg2); reply.writeNoException(); return(true); } case TRANSACTION_registerStatusBar: { data.enforceInterface(DESCRIPTOR); [email protected] _arg0; _arg0 = [email protected](data.readStrongBinder ()); [email protected] _arg1; _arg1 = new [email protected](); java.util.List <android.os.IBinder> _arg2; _arg2 = new java.util.ArrayList <android.os.IBinder>(); java.util.List <*****@*****.**> _arg3; _arg3 = new java.util.ArrayList <*****@*****.** >(); int[] _arg4; int _arg4_length = data.readInt(); if ((_arg4_length < 0)) { _arg4 = null; } else { _arg4 = new int[_arg4_length]; } java.util.List <android.os.IBinder> _arg5; _arg5 = new java.util.ArrayList <android.os.IBinder>(); this.registerStatusBar(_arg0, _arg1, _arg2, _arg3, _arg4, _arg5); reply.writeNoException(); if ((_arg1 != null)) { reply.writeInt(1); _arg1.writeToParcel(reply, android.os.ParcelableClass.PARCELABLE_WRITE_RETURN_VALUE ); } else { reply.writeInt(0); } reply.writeBinderList(_arg2); reply.writeTypedList(_arg3); reply.writeIntArray(_arg4); reply.writeBinderList(_arg5); return(true); } case TRANSACTION_onPanelRevealed: { data.enforceInterface(DESCRIPTOR); this.onPanelRevealed(); reply.writeNoException(); return(true); } case TRANSACTION_onNotificationClick: { data.enforceInterface(DESCRIPTOR); string _arg0; _arg0 = data.readString(); string _arg1; _arg1 = data.readString(); int _arg2; _arg2 = data.readInt(); this.onNotificationClick(_arg0, _arg1, _arg2); reply.writeNoException(); return(true); } case TRANSACTION_onNotificationError: { data.enforceInterface(DESCRIPTOR); string _arg0; _arg0 = data.readString(); string _arg1; _arg1 = data.readString(); int _arg2; _arg2 = data.readInt(); int _arg3; _arg3 = data.readInt(); int _arg4; _arg4 = data.readInt(); string _arg5; _arg5 = data.readString(); this.onNotificationError(_arg0, _arg1, _arg2, _arg3, _arg4, _arg5); reply.writeNoException(); return(true); } case TRANSACTION_onClearAllNotifications: { data.enforceInterface(DESCRIPTOR); this.onClearAllNotifications(); reply.writeNoException(); return(true); } case TRANSACTION_onNotificationClear: { data.enforceInterface(DESCRIPTOR); string _arg0; _arg0 = data.readString(); string _arg1; _arg1 = data.readString(); int _arg2; _arg2 = data.readInt(); this.onNotificationClear(_arg0, _arg1, _arg2); reply.writeNoException(); return(true); } case TRANSACTION_setSystemUiVisibility: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); this.setSystemUiVisibility(_arg0); reply.writeNoException(); return(true); } case TRANSACTION_setHardKeyboardEnabled: { data.enforceInterface(DESCRIPTOR); bool _arg0; _arg0 = (0 != data.readInt()); this.setHardKeyboardEnabled(_arg0); reply.writeNoException(); return(true); } case TRANSACTION_toggleRecentApps: { data.enforceInterface(DESCRIPTOR); this.toggleRecentApps(); reply.writeNoException(); return(true); } } return(base.onTransact(code, data, reply, flags)); }
protected internal override bool onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) { switch (code) { case android.os.IBinderClass.INTERFACE_TRANSACTION: { reply.writeString(DESCRIPTOR); return true; } case TRANSACTION_expand: { data.enforceInterface(DESCRIPTOR); this.expand(); reply.writeNoException(); return true; } case TRANSACTION_collapse: { data.enforceInterface(DESCRIPTOR); this.collapse(); reply.writeNoException(); return true; } case TRANSACTION_disable: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); android.os.IBinder _arg1; _arg1 = data.readStrongBinder(); string _arg2; _arg2 = data.readString(); this.disable(_arg0, _arg1, _arg2); reply.writeNoException(); return true; } case TRANSACTION_setIcon: { data.enforceInterface(DESCRIPTOR); string _arg0; _arg0 = data.readString(); string _arg1; _arg1 = data.readString(); int _arg2; _arg2 = data.readInt(); int _arg3; _arg3 = data.readInt(); string _arg4; _arg4 = data.readString(); this.setIcon(_arg0, _arg1, _arg2, _arg3, _arg4); reply.writeNoException(); return true; } case TRANSACTION_setIconVisibility: { data.enforceInterface(DESCRIPTOR); string _arg0; _arg0 = data.readString(); bool _arg1; _arg1 = (0 != data.readInt()); this.setIconVisibility(_arg0, _arg1); reply.writeNoException(); return true; } case TRANSACTION_removeIcon: { data.enforceInterface(DESCRIPTOR); string _arg0; _arg0 = data.readString(); this.removeIcon(_arg0); reply.writeNoException(); return true; } case TRANSACTION_topAppWindowChanged: { data.enforceInterface(DESCRIPTOR); bool _arg0; _arg0 = (0 != data.readInt()); this.topAppWindowChanged(_arg0); reply.writeNoException(); return true; } case TRANSACTION_setImeWindowStatus: { data.enforceInterface(DESCRIPTOR); android.os.IBinder _arg0; _arg0 = data.readStrongBinder(); int _arg1; _arg1 = data.readInt(); int _arg2; _arg2 = data.readInt(); this.setImeWindowStatus(_arg0, _arg1, _arg2); reply.writeNoException(); return true; } case TRANSACTION_registerStatusBar: { data.enforceInterface(DESCRIPTOR); [email protected] _arg0; _arg0 = [email protected](data.readStrongBinder ()); [email protected] _arg1; _arg1 = new [email protected](); java.util.List<android.os.IBinder> _arg2; _arg2 = new java.util.ArrayList<android.os.IBinder>(); java.util.List<*****@*****.**> _arg3; _arg3 = new java.util.ArrayList<*****@*****.** >(); int[] _arg4; int _arg4_length = data.readInt(); if ((_arg4_length < 0)) { _arg4 = null; } else { _arg4 = new int[_arg4_length]; } java.util.List<android.os.IBinder> _arg5; _arg5 = new java.util.ArrayList<android.os.IBinder>(); this.registerStatusBar(_arg0, _arg1, _arg2, _arg3, _arg4, _arg5); reply.writeNoException(); if ((_arg1 != null)) { reply.writeInt(1); _arg1.writeToParcel(reply, android.os.ParcelableClass.PARCELABLE_WRITE_RETURN_VALUE ); } else { reply.writeInt(0); } reply.writeBinderList(_arg2); reply.writeTypedList(_arg3); reply.writeIntArray(_arg4); reply.writeBinderList(_arg5); return true; } case TRANSACTION_onPanelRevealed: { data.enforceInterface(DESCRIPTOR); this.onPanelRevealed(); reply.writeNoException(); return true; } case TRANSACTION_onNotificationClick: { data.enforceInterface(DESCRIPTOR); string _arg0; _arg0 = data.readString(); string _arg1; _arg1 = data.readString(); int _arg2; _arg2 = data.readInt(); this.onNotificationClick(_arg0, _arg1, _arg2); reply.writeNoException(); return true; } case TRANSACTION_onNotificationError: { data.enforceInterface(DESCRIPTOR); string _arg0; _arg0 = data.readString(); string _arg1; _arg1 = data.readString(); int _arg2; _arg2 = data.readInt(); int _arg3; _arg3 = data.readInt(); int _arg4; _arg4 = data.readInt(); string _arg5; _arg5 = data.readString(); this.onNotificationError(_arg0, _arg1, _arg2, _arg3, _arg4, _arg5); reply.writeNoException(); return true; } case TRANSACTION_onClearAllNotifications: { data.enforceInterface(DESCRIPTOR); this.onClearAllNotifications(); reply.writeNoException(); return true; } case TRANSACTION_onNotificationClear: { data.enforceInterface(DESCRIPTOR); string _arg0; _arg0 = data.readString(); string _arg1; _arg1 = data.readString(); int _arg2; _arg2 = data.readInt(); this.onNotificationClear(_arg0, _arg1, _arg2); reply.writeNoException(); return true; } case TRANSACTION_setSystemUiVisibility: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); this.setSystemUiVisibility(_arg0); reply.writeNoException(); return true; } case TRANSACTION_setHardKeyboardEnabled: { data.enforceInterface(DESCRIPTOR); bool _arg0; _arg0 = (0 != data.readInt()); this.setHardKeyboardEnabled(_arg0); reply.writeNoException(); return true; } case TRANSACTION_toggleRecentApps: { data.enforceInterface(DESCRIPTOR); this.toggleRecentApps(); reply.writeNoException(); return true; } } return base.onTransact(code, data, reply, flags); }