• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  */
4 package android.aidl.tests;
5 public class StructuredParcelable implements android.os.Parcelable
6 {
7   public int[] shouldContainThreeFs;
8   public int f = 0;
9   public java.lang.String shouldBeJerry;
10   public byte shouldBeByteBar;
11   public int shouldBeIntBar;
12   public long shouldBeLongBar;
13   public byte[] shouldContainTwoByteFoos;
14   public int[] shouldContainTwoIntFoos;
15   public long[] shouldContainTwoLongFoos;
16   public java.lang.String stringDefaultsToFoo = "foo";
17   public byte byteDefaultsToFour = 4;
18   public int intDefaultsToFive = 5;
19   public long longDefaultsToNegativeSeven = -7L;
20   public boolean booleanDefaultsToTrue = true;
21   public char charDefaultsToC = 'C';
22   public float floatDefaultsToPi = 3.140000f;
23   public double doubleWithDefault = -314000000000000000.000000;
24   public int[] arrayDefaultsTo123 = {1, 2, 3};
25   public int[] arrayDefaultsToEmpty = {};
26   public boolean boolDefault = false;
27   public byte byteDefault = 0;
28   public int intDefault = 0;
29   public long longDefault = 0L;
30   public float floatDefault = 0.000000f;
31   public double doubleDefault = 0.000000;
32   // parse checks only
33   public double checkDoubleFromFloat = 3.140000;
34   public java.lang.String[] checkStringArray1 = {"a", "b"};
35   public java.lang.String[] checkStringArray2 = {"a", "b"};
36   // Add test to verify corner cases
37   public int int32_min = -2147483648;
38   public int int32_max = 2147483647;
39   public long int64_max = 9223372036854775807L;
40   public int hexInt32_neg_1 = -1;
41   public android.os.IBinder ibinder;
42   public android.aidl.tests.StructuredParcelable.Empty empty;
43   // Constant expressions that evaluate to 1
44   public byte[] int8_1 = {1, 1, 1, 1, 1};
45   public int[] int32_1 = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
46   public long[] int64_1 = {1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L};
47   public int hexInt32_pos_1 = 1;
48   public int hexInt64_pos_1 = 1;
49   public int const_exprs_1;
50   public int const_exprs_2;
51   public int const_exprs_3;
52   public int const_exprs_4;
53   public int const_exprs_5;
54   public int const_exprs_6;
55   public int const_exprs_7;
56   public int const_exprs_8;
57   public int const_exprs_9;
58   public int const_exprs_10;
59   // String expressions
60   public java.lang.String addString1 = "hello world!";
61   public java.lang.String addString2 = "The quick brown fox jumps over the lazy dog.";
62   public int shouldSetBit0AndBit2 = 0;
63   public android.aidl.tests.Union u;
64   public android.aidl.tests.Union shouldBeConstS1;
65   public int defaultWithFoo = android.aidl.tests.IntEnum.FOO;
66   public static final android.os.Parcelable.Creator<StructuredParcelable> CREATOR = new android.os.Parcelable.Creator<StructuredParcelable>() {
67     @Override
68     public StructuredParcelable createFromParcel(android.os.Parcel _aidl_source) {
69       StructuredParcelable _aidl_out = new StructuredParcelable();
70       _aidl_out.readFromParcel(_aidl_source);
71       return _aidl_out;
72     }
73     @Override
74     public StructuredParcelable[] newArray(int _aidl_size) {
75       return new StructuredParcelable[_aidl_size];
76     }
77   };
writeToParcel(android.os.Parcel _aidl_parcel, int _aidl_flag)78   @Override public final void writeToParcel(android.os.Parcel _aidl_parcel, int _aidl_flag)
79   {
80     int _aidl_start_pos = _aidl_parcel.dataPosition();
81     _aidl_parcel.writeInt(0);
82     _aidl_parcel.writeIntArray(shouldContainThreeFs);
83     _aidl_parcel.writeInt(f);
84     _aidl_parcel.writeString(shouldBeJerry);
85     _aidl_parcel.writeByte(shouldBeByteBar);
86     _aidl_parcel.writeInt(shouldBeIntBar);
87     _aidl_parcel.writeLong(shouldBeLongBar);
88     _aidl_parcel.writeByteArray(shouldContainTwoByteFoos);
89     _aidl_parcel.writeIntArray(shouldContainTwoIntFoos);
90     _aidl_parcel.writeLongArray(shouldContainTwoLongFoos);
91     _aidl_parcel.writeString(stringDefaultsToFoo);
92     _aidl_parcel.writeByte(byteDefaultsToFour);
93     _aidl_parcel.writeInt(intDefaultsToFive);
94     _aidl_parcel.writeLong(longDefaultsToNegativeSeven);
95     _aidl_parcel.writeBoolean(booleanDefaultsToTrue);
96     _aidl_parcel.writeInt(((int)charDefaultsToC));
97     _aidl_parcel.writeFloat(floatDefaultsToPi);
98     _aidl_parcel.writeDouble(doubleWithDefault);
99     _aidl_parcel.writeIntArray(arrayDefaultsTo123);
100     _aidl_parcel.writeIntArray(arrayDefaultsToEmpty);
101     _aidl_parcel.writeBoolean(boolDefault);
102     _aidl_parcel.writeByte(byteDefault);
103     _aidl_parcel.writeInt(intDefault);
104     _aidl_parcel.writeLong(longDefault);
105     _aidl_parcel.writeFloat(floatDefault);
106     _aidl_parcel.writeDouble(doubleDefault);
107     _aidl_parcel.writeDouble(checkDoubleFromFloat);
108     _aidl_parcel.writeStringArray(checkStringArray1);
109     _aidl_parcel.writeStringArray(checkStringArray2);
110     _aidl_parcel.writeInt(int32_min);
111     _aidl_parcel.writeInt(int32_max);
112     _aidl_parcel.writeLong(int64_max);
113     _aidl_parcel.writeInt(hexInt32_neg_1);
114     _aidl_parcel.writeStrongBinder(ibinder);
115     _aidl_parcel.writeTypedObject(empty, _aidl_flag);
116     _aidl_parcel.writeByteArray(int8_1);
117     _aidl_parcel.writeIntArray(int32_1);
118     _aidl_parcel.writeLongArray(int64_1);
119     _aidl_parcel.writeInt(hexInt32_pos_1);
120     _aidl_parcel.writeInt(hexInt64_pos_1);
121     _aidl_parcel.writeInt(const_exprs_1);
122     _aidl_parcel.writeInt(const_exprs_2);
123     _aidl_parcel.writeInt(const_exprs_3);
124     _aidl_parcel.writeInt(const_exprs_4);
125     _aidl_parcel.writeInt(const_exprs_5);
126     _aidl_parcel.writeInt(const_exprs_6);
127     _aidl_parcel.writeInt(const_exprs_7);
128     _aidl_parcel.writeInt(const_exprs_8);
129     _aidl_parcel.writeInt(const_exprs_9);
130     _aidl_parcel.writeInt(const_exprs_10);
131     _aidl_parcel.writeString(addString1);
132     _aidl_parcel.writeString(addString2);
133     _aidl_parcel.writeInt(shouldSetBit0AndBit2);
134     _aidl_parcel.writeTypedObject(u, _aidl_flag);
135     _aidl_parcel.writeTypedObject(shouldBeConstS1, _aidl_flag);
136     _aidl_parcel.writeInt(defaultWithFoo);
137     int _aidl_end_pos = _aidl_parcel.dataPosition();
138     _aidl_parcel.setDataPosition(_aidl_start_pos);
139     _aidl_parcel.writeInt(_aidl_end_pos - _aidl_start_pos);
140     _aidl_parcel.setDataPosition(_aidl_end_pos);
141   }
readFromParcel(android.os.Parcel _aidl_parcel)142   public final void readFromParcel(android.os.Parcel _aidl_parcel)
143   {
144     int _aidl_start_pos = _aidl_parcel.dataPosition();
145     int _aidl_parcelable_size = _aidl_parcel.readInt();
146     try {
147       if (_aidl_parcelable_size < 4) throw new android.os.BadParcelableException("Parcelable too small");;
148       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
149       shouldContainThreeFs = _aidl_parcel.createIntArray();
150       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
151       f = _aidl_parcel.readInt();
152       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
153       shouldBeJerry = _aidl_parcel.readString();
154       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
155       shouldBeByteBar = _aidl_parcel.readByte();
156       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
157       shouldBeIntBar = _aidl_parcel.readInt();
158       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
159       shouldBeLongBar = _aidl_parcel.readLong();
160       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
161       shouldContainTwoByteFoos = _aidl_parcel.createByteArray();
162       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
163       shouldContainTwoIntFoos = _aidl_parcel.createIntArray();
164       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
165       shouldContainTwoLongFoos = _aidl_parcel.createLongArray();
166       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
167       stringDefaultsToFoo = _aidl_parcel.readString();
168       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
169       byteDefaultsToFour = _aidl_parcel.readByte();
170       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
171       intDefaultsToFive = _aidl_parcel.readInt();
172       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
173       longDefaultsToNegativeSeven = _aidl_parcel.readLong();
174       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
175       booleanDefaultsToTrue = _aidl_parcel.readBoolean();
176       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
177       charDefaultsToC = (char)_aidl_parcel.readInt();
178       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
179       floatDefaultsToPi = _aidl_parcel.readFloat();
180       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
181       doubleWithDefault = _aidl_parcel.readDouble();
182       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
183       arrayDefaultsTo123 = _aidl_parcel.createIntArray();
184       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
185       arrayDefaultsToEmpty = _aidl_parcel.createIntArray();
186       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
187       boolDefault = _aidl_parcel.readBoolean();
188       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
189       byteDefault = _aidl_parcel.readByte();
190       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
191       intDefault = _aidl_parcel.readInt();
192       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
193       longDefault = _aidl_parcel.readLong();
194       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
195       floatDefault = _aidl_parcel.readFloat();
196       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
197       doubleDefault = _aidl_parcel.readDouble();
198       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
199       checkDoubleFromFloat = _aidl_parcel.readDouble();
200       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
201       checkStringArray1 = _aidl_parcel.createStringArray();
202       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
203       checkStringArray2 = _aidl_parcel.createStringArray();
204       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
205       int32_min = _aidl_parcel.readInt();
206       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
207       int32_max = _aidl_parcel.readInt();
208       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
209       int64_max = _aidl_parcel.readLong();
210       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
211       hexInt32_neg_1 = _aidl_parcel.readInt();
212       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
213       ibinder = _aidl_parcel.readStrongBinder();
214       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
215       empty = _aidl_parcel.readTypedObject(android.aidl.tests.StructuredParcelable.Empty.CREATOR);
216       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
217       int8_1 = _aidl_parcel.createByteArray();
218       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
219       int32_1 = _aidl_parcel.createIntArray();
220       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
221       int64_1 = _aidl_parcel.createLongArray();
222       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
223       hexInt32_pos_1 = _aidl_parcel.readInt();
224       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
225       hexInt64_pos_1 = _aidl_parcel.readInt();
226       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
227       const_exprs_1 = _aidl_parcel.readInt();
228       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
229       const_exprs_2 = _aidl_parcel.readInt();
230       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
231       const_exprs_3 = _aidl_parcel.readInt();
232       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
233       const_exprs_4 = _aidl_parcel.readInt();
234       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
235       const_exprs_5 = _aidl_parcel.readInt();
236       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
237       const_exprs_6 = _aidl_parcel.readInt();
238       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
239       const_exprs_7 = _aidl_parcel.readInt();
240       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
241       const_exprs_8 = _aidl_parcel.readInt();
242       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
243       const_exprs_9 = _aidl_parcel.readInt();
244       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
245       const_exprs_10 = _aidl_parcel.readInt();
246       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
247       addString1 = _aidl_parcel.readString();
248       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
249       addString2 = _aidl_parcel.readString();
250       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
251       shouldSetBit0AndBit2 = _aidl_parcel.readInt();
252       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
253       u = _aidl_parcel.readTypedObject(android.aidl.tests.Union.CREATOR);
254       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
255       shouldBeConstS1 = _aidl_parcel.readTypedObject(android.aidl.tests.Union.CREATOR);
256       if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
257       defaultWithFoo = _aidl_parcel.readInt();
258     } finally {
259       if (_aidl_start_pos > (Integer.MAX_VALUE - _aidl_parcelable_size)) {
260         throw new android.os.BadParcelableException("Overflow in the size of parcelable");
261       }
262       _aidl_parcel.setDataPosition(_aidl_start_pos + _aidl_parcelable_size);
263     }
264   }
265   public static final int BIT0 = 1;
266   public static final int BIT1 = 2;
267   public static final int BIT2 = 4;
268   @Override
toString()269   public String toString() {
270     java.util.StringJoiner _aidl_sj = new java.util.StringJoiner(", ", "{", "}");
271     _aidl_sj.add("shouldContainThreeFs: " + (java.util.Arrays.toString(shouldContainThreeFs)));
272     _aidl_sj.add("f: " + (f));
273     _aidl_sj.add("shouldBeJerry: " + (java.util.Objects.toString(shouldBeJerry)));
274     _aidl_sj.add("shouldBeByteBar: " + (shouldBeByteBar));
275     _aidl_sj.add("shouldBeIntBar: " + (android.aidl.tests.IntEnum.$.toString(shouldBeIntBar)));
276     _aidl_sj.add("shouldBeLongBar: " + (shouldBeLongBar));
277     _aidl_sj.add("shouldContainTwoByteFoos: " + (java.util.Arrays.toString(shouldContainTwoByteFoos)));
278     _aidl_sj.add("shouldContainTwoIntFoos: " + (android.aidl.tests.IntEnum.$.arrayToString(shouldContainTwoIntFoos)));
279     _aidl_sj.add("shouldContainTwoLongFoos: " + (java.util.Arrays.toString(shouldContainTwoLongFoos)));
280     _aidl_sj.add("stringDefaultsToFoo: " + (java.util.Objects.toString(stringDefaultsToFoo)));
281     _aidl_sj.add("byteDefaultsToFour: " + (byteDefaultsToFour));
282     _aidl_sj.add("intDefaultsToFive: " + (intDefaultsToFive));
283     _aidl_sj.add("longDefaultsToNegativeSeven: " + (longDefaultsToNegativeSeven));
284     _aidl_sj.add("booleanDefaultsToTrue: " + (booleanDefaultsToTrue));
285     _aidl_sj.add("charDefaultsToC: " + (charDefaultsToC));
286     _aidl_sj.add("floatDefaultsToPi: " + (floatDefaultsToPi));
287     _aidl_sj.add("doubleWithDefault: " + (doubleWithDefault));
288     _aidl_sj.add("arrayDefaultsTo123: " + (java.util.Arrays.toString(arrayDefaultsTo123)));
289     _aidl_sj.add("arrayDefaultsToEmpty: " + (java.util.Arrays.toString(arrayDefaultsToEmpty)));
290     _aidl_sj.add("boolDefault: " + (boolDefault));
291     _aidl_sj.add("byteDefault: " + (byteDefault));
292     _aidl_sj.add("intDefault: " + (intDefault));
293     _aidl_sj.add("longDefault: " + (longDefault));
294     _aidl_sj.add("floatDefault: " + (floatDefault));
295     _aidl_sj.add("doubleDefault: " + (doubleDefault));
296     _aidl_sj.add("checkDoubleFromFloat: " + (checkDoubleFromFloat));
297     _aidl_sj.add("checkStringArray1: " + (java.util.Arrays.toString(checkStringArray1)));
298     _aidl_sj.add("checkStringArray2: " + (java.util.Arrays.toString(checkStringArray2)));
299     _aidl_sj.add("int32_min: " + (int32_min));
300     _aidl_sj.add("int32_max: " + (int32_max));
301     _aidl_sj.add("int64_max: " + (int64_max));
302     _aidl_sj.add("hexInt32_neg_1: " + (hexInt32_neg_1));
303     _aidl_sj.add("ibinder: " + (java.util.Objects.toString(ibinder)));
304     _aidl_sj.add("empty: " + (java.util.Objects.toString(empty)));
305     _aidl_sj.add("int8_1: " + (java.util.Arrays.toString(int8_1)));
306     _aidl_sj.add("int32_1: " + (java.util.Arrays.toString(int32_1)));
307     _aidl_sj.add("int64_1: " + (java.util.Arrays.toString(int64_1)));
308     _aidl_sj.add("hexInt32_pos_1: " + (hexInt32_pos_1));
309     _aidl_sj.add("hexInt64_pos_1: " + (hexInt64_pos_1));
310     _aidl_sj.add("const_exprs_1: " + (const_exprs_1));
311     _aidl_sj.add("const_exprs_2: " + (const_exprs_2));
312     _aidl_sj.add("const_exprs_3: " + (const_exprs_3));
313     _aidl_sj.add("const_exprs_4: " + (const_exprs_4));
314     _aidl_sj.add("const_exprs_5: " + (const_exprs_5));
315     _aidl_sj.add("const_exprs_6: " + (const_exprs_6));
316     _aidl_sj.add("const_exprs_7: " + (const_exprs_7));
317     _aidl_sj.add("const_exprs_8: " + (const_exprs_8));
318     _aidl_sj.add("const_exprs_9: " + (const_exprs_9));
319     _aidl_sj.add("const_exprs_10: " + (const_exprs_10));
320     _aidl_sj.add("addString1: " + (java.util.Objects.toString(addString1)));
321     _aidl_sj.add("addString2: " + (java.util.Objects.toString(addString2)));
322     _aidl_sj.add("shouldSetBit0AndBit2: " + (shouldSetBit0AndBit2));
323     _aidl_sj.add("u: " + (java.util.Objects.toString(u)));
324     _aidl_sj.add("shouldBeConstS1: " + (java.util.Objects.toString(shouldBeConstS1)));
325     _aidl_sj.add("defaultWithFoo: " + (android.aidl.tests.IntEnum.$.toString(defaultWithFoo)));
326     return "android.aidl.tests.StructuredParcelable" + _aidl_sj.toString()  ;
327   }
328   @Override
equals(Object other)329   public boolean equals(Object other) {
330     if (this == other) return true;
331     if (other == null) return false;
332     if (!(other instanceof StructuredParcelable)) return false;
333     StructuredParcelable that = (StructuredParcelable)other;
334     if (!java.util.Objects.deepEquals(shouldContainThreeFs, that.shouldContainThreeFs)) return false;
335     if (!java.util.Objects.deepEquals(f, that.f)) return false;
336     if (!java.util.Objects.deepEquals(shouldBeJerry, that.shouldBeJerry)) return false;
337     if (!java.util.Objects.deepEquals(shouldBeByteBar, that.shouldBeByteBar)) return false;
338     if (!java.util.Objects.deepEquals(shouldBeIntBar, that.shouldBeIntBar)) return false;
339     if (!java.util.Objects.deepEquals(shouldBeLongBar, that.shouldBeLongBar)) return false;
340     if (!java.util.Objects.deepEquals(shouldContainTwoByteFoos, that.shouldContainTwoByteFoos)) return false;
341     if (!java.util.Objects.deepEquals(shouldContainTwoIntFoos, that.shouldContainTwoIntFoos)) return false;
342     if (!java.util.Objects.deepEquals(shouldContainTwoLongFoos, that.shouldContainTwoLongFoos)) return false;
343     if (!java.util.Objects.deepEquals(stringDefaultsToFoo, that.stringDefaultsToFoo)) return false;
344     if (!java.util.Objects.deepEquals(byteDefaultsToFour, that.byteDefaultsToFour)) return false;
345     if (!java.util.Objects.deepEquals(intDefaultsToFive, that.intDefaultsToFive)) return false;
346     if (!java.util.Objects.deepEquals(longDefaultsToNegativeSeven, that.longDefaultsToNegativeSeven)) return false;
347     if (!java.util.Objects.deepEquals(booleanDefaultsToTrue, that.booleanDefaultsToTrue)) return false;
348     if (!java.util.Objects.deepEquals(charDefaultsToC, that.charDefaultsToC)) return false;
349     if (!java.util.Objects.deepEquals(floatDefaultsToPi, that.floatDefaultsToPi)) return false;
350     if (!java.util.Objects.deepEquals(doubleWithDefault, that.doubleWithDefault)) return false;
351     if (!java.util.Objects.deepEquals(arrayDefaultsTo123, that.arrayDefaultsTo123)) return false;
352     if (!java.util.Objects.deepEquals(arrayDefaultsToEmpty, that.arrayDefaultsToEmpty)) return false;
353     if (!java.util.Objects.deepEquals(boolDefault, that.boolDefault)) return false;
354     if (!java.util.Objects.deepEquals(byteDefault, that.byteDefault)) return false;
355     if (!java.util.Objects.deepEquals(intDefault, that.intDefault)) return false;
356     if (!java.util.Objects.deepEquals(longDefault, that.longDefault)) return false;
357     if (!java.util.Objects.deepEquals(floatDefault, that.floatDefault)) return false;
358     if (!java.util.Objects.deepEquals(doubleDefault, that.doubleDefault)) return false;
359     if (!java.util.Objects.deepEquals(checkDoubleFromFloat, that.checkDoubleFromFloat)) return false;
360     if (!java.util.Objects.deepEquals(checkStringArray1, that.checkStringArray1)) return false;
361     if (!java.util.Objects.deepEquals(checkStringArray2, that.checkStringArray2)) return false;
362     if (!java.util.Objects.deepEquals(int32_min, that.int32_min)) return false;
363     if (!java.util.Objects.deepEquals(int32_max, that.int32_max)) return false;
364     if (!java.util.Objects.deepEquals(int64_max, that.int64_max)) return false;
365     if (!java.util.Objects.deepEquals(hexInt32_neg_1, that.hexInt32_neg_1)) return false;
366     if (!java.util.Objects.deepEquals(ibinder, that.ibinder)) return false;
367     if (!java.util.Objects.deepEquals(empty, that.empty)) return false;
368     if (!java.util.Objects.deepEquals(int8_1, that.int8_1)) return false;
369     if (!java.util.Objects.deepEquals(int32_1, that.int32_1)) return false;
370     if (!java.util.Objects.deepEquals(int64_1, that.int64_1)) return false;
371     if (!java.util.Objects.deepEquals(hexInt32_pos_1, that.hexInt32_pos_1)) return false;
372     if (!java.util.Objects.deepEquals(hexInt64_pos_1, that.hexInt64_pos_1)) return false;
373     if (!java.util.Objects.deepEquals(const_exprs_1, that.const_exprs_1)) return false;
374     if (!java.util.Objects.deepEquals(const_exprs_2, that.const_exprs_2)) return false;
375     if (!java.util.Objects.deepEquals(const_exprs_3, that.const_exprs_3)) return false;
376     if (!java.util.Objects.deepEquals(const_exprs_4, that.const_exprs_4)) return false;
377     if (!java.util.Objects.deepEquals(const_exprs_5, that.const_exprs_5)) return false;
378     if (!java.util.Objects.deepEquals(const_exprs_6, that.const_exprs_6)) return false;
379     if (!java.util.Objects.deepEquals(const_exprs_7, that.const_exprs_7)) return false;
380     if (!java.util.Objects.deepEquals(const_exprs_8, that.const_exprs_8)) return false;
381     if (!java.util.Objects.deepEquals(const_exprs_9, that.const_exprs_9)) return false;
382     if (!java.util.Objects.deepEquals(const_exprs_10, that.const_exprs_10)) return false;
383     if (!java.util.Objects.deepEquals(addString1, that.addString1)) return false;
384     if (!java.util.Objects.deepEquals(addString2, that.addString2)) return false;
385     if (!java.util.Objects.deepEquals(shouldSetBit0AndBit2, that.shouldSetBit0AndBit2)) return false;
386     if (!java.util.Objects.deepEquals(u, that.u)) return false;
387     if (!java.util.Objects.deepEquals(shouldBeConstS1, that.shouldBeConstS1)) return false;
388     if (!java.util.Objects.deepEquals(defaultWithFoo, that.defaultWithFoo)) return false;
389     return true;
390   }
391 
392   @Override
hashCode()393   public int hashCode() {
394     return java.util.Arrays.deepHashCode(java.util.Arrays.asList(shouldContainThreeFs, f, shouldBeJerry, shouldBeByteBar, shouldBeIntBar, shouldBeLongBar, shouldContainTwoByteFoos, shouldContainTwoIntFoos, shouldContainTwoLongFoos, stringDefaultsToFoo, byteDefaultsToFour, intDefaultsToFive, longDefaultsToNegativeSeven, booleanDefaultsToTrue, charDefaultsToC, floatDefaultsToPi, doubleWithDefault, arrayDefaultsTo123, arrayDefaultsToEmpty, boolDefault, byteDefault, intDefault, longDefault, floatDefault, doubleDefault, checkDoubleFromFloat, checkStringArray1, checkStringArray2, int32_min, int32_max, int64_max, hexInt32_neg_1, ibinder, empty, int8_1, int32_1, int64_1, hexInt32_pos_1, hexInt64_pos_1, const_exprs_1, const_exprs_2, const_exprs_3, const_exprs_4, const_exprs_5, const_exprs_6, const_exprs_7, const_exprs_8, const_exprs_9, const_exprs_10, addString1, addString2, shouldSetBit0AndBit2, u, shouldBeConstS1, defaultWithFoo).toArray());
395   }
396   @Override
describeContents()397   public int describeContents() {
398     int _mask = 0;
399     _mask |= describeContents(empty);
400     _mask |= describeContents(u);
401     _mask |= describeContents(shouldBeConstS1);
402     return _mask;
403   }
describeContents(Object _v)404   private int describeContents(Object _v) {
405     if (_v == null) return 0;
406     if (_v instanceof android.os.Parcelable) {
407       return ((android.os.Parcelable) _v).describeContents();
408     }
409     return 0;
410   }
411   // Make sure we can send an empty parcelable
412   public static class Empty implements android.os.Parcelable
413   {
414     public static final android.os.Parcelable.Creator<Empty> CREATOR = new android.os.Parcelable.Creator<Empty>() {
415       @Override
416       public Empty createFromParcel(android.os.Parcel _aidl_source) {
417         Empty _aidl_out = new Empty();
418         _aidl_out.readFromParcel(_aidl_source);
419         return _aidl_out;
420       }
421       @Override
422       public Empty[] newArray(int _aidl_size) {
423         return new Empty[_aidl_size];
424       }
425     };
writeToParcel(android.os.Parcel _aidl_parcel, int _aidl_flag)426     @Override public final void writeToParcel(android.os.Parcel _aidl_parcel, int _aidl_flag)
427     {
428       int _aidl_start_pos = _aidl_parcel.dataPosition();
429       _aidl_parcel.writeInt(0);
430       int _aidl_end_pos = _aidl_parcel.dataPosition();
431       _aidl_parcel.setDataPosition(_aidl_start_pos);
432       _aidl_parcel.writeInt(_aidl_end_pos - _aidl_start_pos);
433       _aidl_parcel.setDataPosition(_aidl_end_pos);
434     }
readFromParcel(android.os.Parcel _aidl_parcel)435     public final void readFromParcel(android.os.Parcel _aidl_parcel)
436     {
437       int _aidl_start_pos = _aidl_parcel.dataPosition();
438       int _aidl_parcelable_size = _aidl_parcel.readInt();
439       try {
440         if (_aidl_parcelable_size < 4) throw new android.os.BadParcelableException("Parcelable too small");;
441       } finally {
442         if (_aidl_start_pos > (Integer.MAX_VALUE - _aidl_parcelable_size)) {
443           throw new android.os.BadParcelableException("Overflow in the size of parcelable");
444         }
445         _aidl_parcel.setDataPosition(_aidl_start_pos + _aidl_parcelable_size);
446       }
447     }
448     @Override
toString()449     public String toString() {
450       java.util.StringJoiner _aidl_sj = new java.util.StringJoiner(", ", "{", "}");
451       return "android.aidl.tests.StructuredParcelable.Empty" + _aidl_sj.toString()  ;
452     }
453     @Override
equals(Object other)454     public boolean equals(Object other) {
455       if (this == other) return true;
456       if (other == null) return false;
457       if (!(other instanceof Empty)) return false;
458       Empty that = (Empty)other;
459       return true;
460     }
461 
462     @Override
hashCode()463     public int hashCode() {
464       return java.util.Arrays.deepHashCode(java.util.Arrays.asList().toArray());
465     }
466     @Override
describeContents()467     public int describeContents() {
468       int _mask = 0;
469       return _mask;
470     }
471   }
472 }
473