Code example for Parcel

Methods: writeIntwriteNoException

0
         LoginData var9;
         switch(var1) {
         case 1: 
            var2.enforceInterface("com.google.android.gsf.IGoogleLoginService");
            String[] var7 = this.getAccounts();
            var3.writeNoException();
            var3.writeStringArray(var7);
            break; 
         case 2: 
            var2.enforceInterface("com.google.android.gsf.IGoogleLoginService");
            String var8 = this.getPrimaryAccount();
            var3.writeNoException();
            var3.writeString(var8);
            break; 
         case 3: 
            var2.enforceInterface("com.google.android.gsf.IGoogleLoginService");
            byte var31;
            if(var2.readInt() != 0) {
               var31 = 1;
            } else { 
               var31 = 0;
            } 
 
            String var10 = this.getAccount((boolean)var31);
            var3.writeNoException();
            var3.writeString(var10);
            break; 
         case 4: 
            var2.enforceInterface("com.google.android.gsf.IGoogleLoginService");
            String var11 = var2.readString();
            String var12 = var2.readString();
            String var13 = this.peekCredentials(var11, var12);
            var3.writeNoException();
            var3.writeString(var13);
            break; 
         case 5: 
            var2.enforceInterface("com.google.android.gsf.IGoogleLoginService");
            String var32 = var2.readString();
            String var14 = var2.readString();
            byte var15;
            if(var2.readInt() != 0) {
               var15 = 1;
            } else { 
               var15 = 0;
            } 
 
            GoogleLoginCredentialsResult var16 = this.blockingGetCredentials(var32, var14, (boolean)var15);
            var3.writeNoException();
            if(var16 != null) {
               var3.writeInt(1);
               var16.writeToParcel(var3, 1);
            } else { 
               var3.writeInt(0);
            } 
            break; 
         case 6: 
            var2.enforceInterface("com.google.android.gsf.IGoogleLoginService");
            String var17 = var2.readString();
            this.invalidateAuthToken(var17);
            var3.writeNoException();
            break; 
         case 7: 
            var2.enforceInterface("com.google.android.gsf.IGoogleLoginService");
            long var18 = this.getAndroidId();
            var3.writeNoException();
            var3.writeLong(var18);
            break; 
         case 8: 
            var2.enforceInterface("com.google.android.gsf.IGoogleLoginService");
            if(var2.readInt() != 0) {
               var9 = (LoginData)LoginData.CREATOR.createFromParcel(var2);
            } else { 
               var9 = null;
            } 
 
            this.tryNewAccount(var9);
            var3.writeNoException();
            if(var9 != null) {
               var3.writeInt(1);
               var9.writeToParcel(var3, 1);
            } else { 
               var3.writeInt(0);
            } 
            break; 
         case 9: 
            var2.enforceInterface("com.google.android.gsf.IGoogleLoginService");
            if(var2.readInt() != 0) {
               var9 = (LoginData)LoginData.CREATOR.createFromParcel(var2);
            } else { 
               var9 = null;
            } 
 
            this.saveNewAccount(var9);
            var3.writeNoException();
            break; 
         case 10: 
            var2.enforceInterface("com.google.android.gsf.IGoogleLoginService");
            String var20 = var2.readString();
            String var21 = var2.readString();
            String var22 = var2.readString();
            this.saveAuthToken(var20, var21, var22);
            var3.writeNoException();
            break; 
         case 11: 
            var2.enforceInterface("com.google.android.gsf.IGoogleLoginService");
            if(var2.readInt() != 0) {
               var9 = (LoginData)LoginData.CREATOR.createFromParcel(var2);
            } else { 
               var9 = null;
            } 
 
            this.updatePassword(var9);
            var3.writeNoException();
            if(var9 != null) {
               var3.writeInt(1);
               var9.writeToParcel(var3, 1);
            } else { 
               var3.writeInt(0);
            } 
            break; 
         case 12: 
            var2.enforceInterface("com.google.android.gsf.IGoogleLoginService");
            String var23 = var2.readString();
            String var24 = var2.readString();
            boolean var25 = this.verifyStoredPassword(var23, var24);
            var3.writeNoException();
            if(var25) {
               var5 = 1;
            } 
 
            var3.writeInt(var5);
            break; 
         case 13: 
            var2.enforceInterface("com.google.android.gsf.IGoogleLoginService");
            String var26 = var2.readString();
            String var27 = var2.readString();
            int var28 = var2.readInt();
            this.saveUsernameAndPassword(var26, var27, var28);
            var3.writeNoException();
            break; 
         case 14: 
            var2.enforceInterface("com.google.android.gsf.IGoogleLoginService");
            String var29 = var2.readString();
            this.deleteOneAccount(var29);
            var3.writeNoException();
            break; 
         case 15: 
            var2.enforceInterface("com.google.android.gsf.IGoogleLoginService");
            this.deleteAllAccounts();
            var3.writeNoException();
            break; 
         case 16: 
            var2.enforceInterface("com.google.android.gsf.IGoogleLoginService");
            int var30 = this.waitForAndroidId();
            var3.writeNoException();
            var3.writeInt(var30);
            break; 
         case 1598968902: 
            var3.writeString("com.google.android.gsf.IGoogleLoginService");
            break; 
Experience pair programming with AI  Get Codota for Java