Code example for Parcel

Methods: enforceInterfacereadIntreadLongreadString

0
 
      public boolean onTransact(int var1, Parcel var2, Parcel var3, int var4) throws RemoteException {
         boolean var5;
         switch(var1) {
         case 1: 
            var2.enforceInterface("com.google.android.gtalkservice.IConnectionStateListener");
            ConnectionState var6;
            if(var2.readInt() != 0) {
               var6 = (ConnectionState)ConnectionState.CREATOR.createFromParcel(var2);
            } else { 
               var6 = null;
            } 
 
            ConnectionError var7;
            if(var2.readInt() != 0) {
               var7 = (ConnectionError)ConnectionError.CREATOR.createFromParcel(var2);
            } else { 
               var7 = null;
            } 
 
            long var8 = var2.readLong();
            String var10 = var2.readString();
            this.connectionStateChanged(var6, var7, var8, var10);
            var3.writeNoException();
            var5 = true;
            break; 
         case 1598968902: 
Stop searching for code, let great code find you!  Add Codota to your java IDE