| 1 |
/* |
| 2 |
* This file is auto-generated. DO NOT MODIFY. |
| 3 |
* Using: out/host/linux-x86/bin/aidl --lang=java -Weverything -Wno-missing-permission-annotation --min_sdk_version current --ninja -d out/soong/.intermediates/system/tools/aidl/aidl-test-fixedsizearray-java-source/gen/android/aidl/fixedsizearray/FixedSizeArrayExample.java.d -o out/soong/.intermediates/system/tools/aidl/aidl-test-fixedsizearray-java-source/gen -Nsystem/tools/aidl/tests system/tools/aidl/tests/android/aidl/fixedsizearray/FixedSizeArrayExample.aidl |
| 4 |
*/ |
| 5 |
package android.aidl.fixedsizearray; |
| 6 |
public class FixedSizeArrayExample implements android.os.Parcelable |
| 7 |
{ |
| 8 |
// to see if NxM array works |
| 9 |
public int[][] int2x3 = {{1, 2, 3}, {4, 5, 6}}; |
| 10 |
public boolean[] boolArray; |
| 11 |
public byte[] byteArray; |
| 12 |
public char[] charArray; |
| 13 |
public int[] intArray; |
| 14 |
public long[] longArray; |
| 15 |
public float[] floatArray; |
| 16 |
public double[] doubleArray; |
| 17 |
public java.lang.String[] stringArray = {"hello", "world"}; |
| 18 |
public byte[] byteEnumArray; |
| 19 |
public int[] intEnumArray; |
| 20 |
public long[] longEnumArray; |
| 21 |
public android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[] parcelableArray; |
| 22 |
// Following fields are not test-friendly because they should be initialized as non-null. |
| 23 |
// IBinder[2] binderArray; |
| 24 |
// ParcelFileDescriptor[2] pfdArray; |
| 25 |
// IEmptyInterface[2] interfaceArray; |
| 26 |
public boolean[][] boolMatrix; |
| 27 |
public byte[][] byteMatrix; |
| 28 |
public char[][] charMatrix; |
| 29 |
public int[][] intMatrix; |
| 30 |
public long[][] longMatrix; |
| 31 |
public float[][] floatMatrix; |
| 32 |
public double[][] doubleMatrix; |
| 33 |
public java.lang.String[][] stringMatrix = {{"hello", "world"}, {"Ciao", "mondo"}}; |
| 34 |
public byte[][] byteEnumMatrix; |
| 35 |
public int[][] intEnumMatrix; |
| 36 |
public long[][] longEnumMatrix; |
| 37 |
public android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[][] parcelableMatrix; |
| 38 |
// Following fields are not test-friendly because they should be initialized as non-null. |
| 39 |
// ParcelFileDescriptor[2][2] pfdMatrix; |
| 40 |
// IBinder[2][2] binderMatrix; |
| 41 |
// IEmptyInterface[2][2] interfaceMatrix; |
| 42 |
public boolean[] boolNullableArray; |
| 43 |
public byte[] byteNullableArray; |
| 44 |
public char[] charNullableArray; |
| 45 |
public int[] intNullableArray; |
| 46 |
public long[] longNullableArray; |
| 47 |
public float[] floatNullableArray; |
| 48 |
public double[] doubleNullableArray; |
| 49 |
public java.lang.String[] stringNullableArray = {"hello", "world"}; |
| 50 |
public byte[] byteEnumNullableArray; |
| 51 |
public int[] intEnumNullableArray; |
| 52 |
public long[] longEnumNullableArray; |
| 53 |
public android.os.IBinder[] binderNullableArray; |
| 54 |
public android.os.ParcelFileDescriptor[] pfdNullableArray; |
| 55 |
public android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[] parcelableNullableArray; |
| 56 |
public android.aidl.fixedsizearray.FixedSizeArrayExample.IEmptyInterface[] interfaceNullableArray; |
| 57 |
public boolean[][] boolNullableMatrix; |
| 58 |
public byte[][] byteNullableMatrix; |
| 59 |
public char[][] charNullableMatrix; |
| 60 |
public int[][] intNullableMatrix; |
| 61 |
public long[][] longNullableMatrix; |
| 62 |
public float[][] floatNullableMatrix; |
| 63 |
public double[][] doubleNullableMatrix; |
| 64 |
public java.lang.String[][] stringNullableMatrix = {{"hello", "world"}, {"Ciao", "mondo"}}; |
| 65 |
public byte[][] byteEnumNullableMatrix; |
| 66 |
public int[][] intEnumNullableMatrix; |
| 67 |
public long[][] longEnumNullableMatrix; |
| 68 |
public android.os.IBinder[][] binderNullableMatrix; |
| 69 |
public android.os.ParcelFileDescriptor[][] pfdNullableMatrix; |
| 70 |
public android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[][] parcelableNullableMatrix; |
| 71 |
public android.aidl.fixedsizearray.FixedSizeArrayExample.IEmptyInterface[][] interfaceNullableMatrix; |
| 72 |
public static final android.os.Parcelable.Creator<FixedSizeArrayExample> CREATOR = new android.os.Parcelable.Creator<FixedSizeArrayExample>() { |
| 73 |
@Override |
| 74 |
public FixedSizeArrayExample createFromParcel(android.os.Parcel _aidl_source) { |
| 75 |
FixedSizeArrayExample _aidl_out = new FixedSizeArrayExample(); |
| 76 |
_aidl_out.readFromParcel(_aidl_source); |
| 77 |
return _aidl_out; |
| 78 |
} |
| 79 |
@Override |
| 80 |
public FixedSizeArrayExample[] newArray(int _aidl_size) { |
| 81 |
return new FixedSizeArrayExample[_aidl_size]; |
| 82 |
} |
| 83 |
}; |
| 84 |
@Override public final void writeToParcel(android.os.Parcel _aidl_parcel, int _aidl_flag) |
| 85 |
{ |
| 86 |
int _aidl_start_pos = _aidl_parcel.dataPosition(); |
| 87 |
_aidl_parcel.writeInt(0); |
| 88 |
_aidl_parcel.writeFixedArray(int2x3, _aidl_flag, 2, 3); |
| 89 |
_aidl_parcel.writeFixedArray(boolArray, _aidl_flag, 2); |
| 90 |
_aidl_parcel.writeFixedArray(byteArray, _aidl_flag, 2); |
| 91 |
_aidl_parcel.writeFixedArray(charArray, _aidl_flag, 2); |
| 92 |
_aidl_parcel.writeFixedArray(intArray, _aidl_flag, 2); |
| 93 |
_aidl_parcel.writeFixedArray(longArray, _aidl_flag, 2); |
| 94 |
_aidl_parcel.writeFixedArray(floatArray, _aidl_flag, 2); |
| 95 |
_aidl_parcel.writeFixedArray(doubleArray, _aidl_flag, 2); |
| 96 |
_aidl_parcel.writeFixedArray(stringArray, _aidl_flag, 2); |
| 97 |
_aidl_parcel.writeFixedArray(byteEnumArray, _aidl_flag, 2); |
| 98 |
_aidl_parcel.writeFixedArray(intEnumArray, _aidl_flag, 2); |
| 99 |
_aidl_parcel.writeFixedArray(longEnumArray, _aidl_flag, 2); |
| 100 |
_aidl_parcel.writeFixedArray(parcelableArray, _aidl_flag, 2); |
| 101 |
_aidl_parcel.writeFixedArray(boolMatrix, _aidl_flag, 2, 2); |
| 102 |
_aidl_parcel.writeFixedArray(byteMatrix, _aidl_flag, 2, 2); |
| 103 |
_aidl_parcel.writeFixedArray(charMatrix, _aidl_flag, 2, 2); |
| 104 |
_aidl_parcel.writeFixedArray(intMatrix, _aidl_flag, 2, 2); |
| 105 |
_aidl_parcel.writeFixedArray(longMatrix, _aidl_flag, 2, 2); |
| 106 |
_aidl_parcel.writeFixedArray(floatMatrix, _aidl_flag, 2, 2); |
| 107 |
_aidl_parcel.writeFixedArray(doubleMatrix, _aidl_flag, 2, 2); |
| 108 |
_aidl_parcel.writeFixedArray(stringMatrix, _aidl_flag, 2, 2); |
| 109 |
_aidl_parcel.writeFixedArray(byteEnumMatrix, _aidl_flag, 2, 2); |
| 110 |
_aidl_parcel.writeFixedArray(intEnumMatrix, _aidl_flag, 2, 2); |
| 111 |
_aidl_parcel.writeFixedArray(longEnumMatrix, _aidl_flag, 2, 2); |
| 112 |
_aidl_parcel.writeFixedArray(parcelableMatrix, _aidl_flag, 2, 2); |
| 113 |
_aidl_parcel.writeFixedArray(boolNullableArray, _aidl_flag, 2); |
| 114 |
_aidl_parcel.writeFixedArray(byteNullableArray, _aidl_flag, 2); |
| 115 |
_aidl_parcel.writeFixedArray(charNullableArray, _aidl_flag, 2); |
| 116 |
_aidl_parcel.writeFixedArray(intNullableArray, _aidl_flag, 2); |
| 117 |
_aidl_parcel.writeFixedArray(longNullableArray, _aidl_flag, 2); |
| 118 |
_aidl_parcel.writeFixedArray(floatNullableArray, _aidl_flag, 2); |
| 119 |
_aidl_parcel.writeFixedArray(doubleNullableArray, _aidl_flag, 2); |
| 120 |
_aidl_parcel.writeFixedArray(stringNullableArray, _aidl_flag, 2); |
| 121 |
_aidl_parcel.writeFixedArray(byteEnumNullableArray, _aidl_flag, 2); |
| 122 |
_aidl_parcel.writeFixedArray(intEnumNullableArray, _aidl_flag, 2); |
| 123 |
_aidl_parcel.writeFixedArray(longEnumNullableArray, _aidl_flag, 2); |
| 124 |
_aidl_parcel.writeFixedArray(binderNullableArray, _aidl_flag, 2); |
| 125 |
_aidl_parcel.writeFixedArray(pfdNullableArray, _aidl_flag, 2); |
| 126 |
_aidl_parcel.writeFixedArray(parcelableNullableArray, _aidl_flag, 2); |
| 127 |
_aidl_parcel.writeFixedArray(interfaceNullableArray, _aidl_flag, 2); |
| 128 |
_aidl_parcel.writeFixedArray(boolNullableMatrix, _aidl_flag, 2, 2); |
| 129 |
_aidl_parcel.writeFixedArray(byteNullableMatrix, _aidl_flag, 2, 2); |
| 130 |
_aidl_parcel.writeFixedArray(charNullableMatrix, _aidl_flag, 2, 2); |
| 131 |
_aidl_parcel.writeFixedArray(intNullableMatrix, _aidl_flag, 2, 2); |
| 132 |
_aidl_parcel.writeFixedArray(longNullableMatrix, _aidl_flag, 2, 2); |
| 133 |
_aidl_parcel.writeFixedArray(floatNullableMatrix, _aidl_flag, 2, 2); |
| 134 |
_aidl_parcel.writeFixedArray(doubleNullableMatrix, _aidl_flag, 2, 2); |
| 135 |
_aidl_parcel.writeFixedArray(stringNullableMatrix, _aidl_flag, 2, 2); |
| 136 |
_aidl_parcel.writeFixedArray(byteEnumNullableMatrix, _aidl_flag, 2, 2); |
| 137 |
_aidl_parcel.writeFixedArray(intEnumNullableMatrix, _aidl_flag, 2, 2); |
| 138 |
_aidl_parcel.writeFixedArray(longEnumNullableMatrix, _aidl_flag, 2, 2); |
| 139 |
_aidl_parcel.writeFixedArray(binderNullableMatrix, _aidl_flag, 2, 2); |
| 140 |
_aidl_parcel.writeFixedArray(pfdNullableMatrix, _aidl_flag, 2, 2); |
| 141 |
_aidl_parcel.writeFixedArray(parcelableNullableMatrix, _aidl_flag, 2, 2); |
| 142 |
_aidl_parcel.writeFixedArray(interfaceNullableMatrix, _aidl_flag, 2, 2); |
| 143 |
int _aidl_end_pos = _aidl_parcel.dataPosition(); |
| 144 |
_aidl_parcel.setDataPosition(_aidl_start_pos); |
| 145 |
_aidl_parcel.writeInt(_aidl_end_pos - _aidl_start_pos); |
| 146 |
_aidl_parcel.setDataPosition(_aidl_end_pos); |
| 147 |
} |
| 148 |
public final void readFromParcel(android.os.Parcel _aidl_parcel) |
| 149 |
{ |
| 150 |
int _aidl_start_pos = _aidl_parcel.dataPosition(); |
| 151 |
int _aidl_parcelable_size = _aidl_parcel.readInt(); |
| 152 |
try { |
| 153 |
if (_aidl_parcelable_size < 4) throw new android.os.BadParcelableException("Parcelable too small");; |
| 154 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 155 |
int2x3 = _aidl_parcel.createFixedArray(int[][].class, 2, 3); |
| 156 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 157 |
boolArray = _aidl_parcel.createFixedArray(boolean[].class, 2); |
| 158 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 159 |
byteArray = _aidl_parcel.createFixedArray(byte[].class, 2); |
| 160 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 161 |
charArray = _aidl_parcel.createFixedArray(char[].class, 2); |
| 162 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 163 |
intArray = _aidl_parcel.createFixedArray(int[].class, 2); |
| 164 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 165 |
longArray = _aidl_parcel.createFixedArray(long[].class, 2); |
| 166 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 167 |
floatArray = _aidl_parcel.createFixedArray(float[].class, 2); |
| 168 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 169 |
doubleArray = _aidl_parcel.createFixedArray(double[].class, 2); |
| 170 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 171 |
stringArray = _aidl_parcel.createFixedArray(java.lang.String[].class, 2); |
| 172 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 173 |
byteEnumArray = _aidl_parcel.createFixedArray(byte[].class, 2); |
| 174 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 175 |
intEnumArray = _aidl_parcel.createFixedArray(int[].class, 2); |
| 176 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 177 |
longEnumArray = _aidl_parcel.createFixedArray(long[].class, 2); |
| 178 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 179 |
parcelableArray = _aidl_parcel.createFixedArray(android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[].class, android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable.CREATOR, 2); |
| 180 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 181 |
boolMatrix = _aidl_parcel.createFixedArray(boolean[][].class, 2, 2); |
| 182 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 183 |
byteMatrix = _aidl_parcel.createFixedArray(byte[][].class, 2, 2); |
| 184 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 185 |
charMatrix = _aidl_parcel.createFixedArray(char[][].class, 2, 2); |
| 186 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 187 |
intMatrix = _aidl_parcel.createFixedArray(int[][].class, 2, 2); |
| 188 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 189 |
longMatrix = _aidl_parcel.createFixedArray(long[][].class, 2, 2); |
| 190 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 191 |
floatMatrix = _aidl_parcel.createFixedArray(float[][].class, 2, 2); |
| 192 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 193 |
doubleMatrix = _aidl_parcel.createFixedArray(double[][].class, 2, 2); |
| 194 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 195 |
stringMatrix = _aidl_parcel.createFixedArray(java.lang.String[][].class, 2, 2); |
| 196 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 197 |
byteEnumMatrix = _aidl_parcel.createFixedArray(byte[][].class, 2, 2); |
| 198 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 199 |
intEnumMatrix = _aidl_parcel.createFixedArray(int[][].class, 2, 2); |
| 200 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 201 |
longEnumMatrix = _aidl_parcel.createFixedArray(long[][].class, 2, 2); |
| 202 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 203 |
parcelableMatrix = _aidl_parcel.createFixedArray(android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[][].class, android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable.CREATOR, 2, 2); |
| 204 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 205 |
boolNullableArray = _aidl_parcel.createFixedArray(boolean[].class, 2); |
| 206 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 207 |
byteNullableArray = _aidl_parcel.createFixedArray(byte[].class, 2); |
| 208 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 209 |
charNullableArray = _aidl_parcel.createFixedArray(char[].class, 2); |
| 210 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 211 |
intNullableArray = _aidl_parcel.createFixedArray(int[].class, 2); |
| 212 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 213 |
longNullableArray = _aidl_parcel.createFixedArray(long[].class, 2); |
| 214 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 215 |
floatNullableArray = _aidl_parcel.createFixedArray(float[].class, 2); |
| 216 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 217 |
doubleNullableArray = _aidl_parcel.createFixedArray(double[].class, 2); |
| 218 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 219 |
stringNullableArray = _aidl_parcel.createFixedArray(java.lang.String[].class, 2); |
| 220 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 221 |
byteEnumNullableArray = _aidl_parcel.createFixedArray(byte[].class, 2); |
| 222 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 223 |
intEnumNullableArray = _aidl_parcel.createFixedArray(int[].class, 2); |
| 224 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 225 |
longEnumNullableArray = _aidl_parcel.createFixedArray(long[].class, 2); |
| 226 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 227 |
binderNullableArray = _aidl_parcel.createFixedArray(android.os.IBinder[].class, 2); |
| 228 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 229 |
pfdNullableArray = _aidl_parcel.createFixedArray(android.os.ParcelFileDescriptor[].class, android.os.ParcelFileDescriptor.CREATOR, 2); |
| 230 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 231 |
parcelableNullableArray = _aidl_parcel.createFixedArray(android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[].class, android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable.CREATOR, 2); |
| 232 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 233 |
interfaceNullableArray = _aidl_parcel.createFixedArray(android.aidl.fixedsizearray.FixedSizeArrayExample.IEmptyInterface[].class, android.aidl.fixedsizearray.FixedSizeArrayExample.IEmptyInterface.Stub::asInterface, 2); |
| 234 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 235 |
boolNullableMatrix = _aidl_parcel.createFixedArray(boolean[][].class, 2, 2); |
| 236 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 237 |
byteNullableMatrix = _aidl_parcel.createFixedArray(byte[][].class, 2, 2); |
| 238 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 239 |
charNullableMatrix = _aidl_parcel.createFixedArray(char[][].class, 2, 2); |
| 240 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 241 |
intNullableMatrix = _aidl_parcel.createFixedArray(int[][].class, 2, 2); |
| 242 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 243 |
longNullableMatrix = _aidl_parcel.createFixedArray(long[][].class, 2, 2); |
| 244 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 245 |
floatNullableMatrix = _aidl_parcel.createFixedArray(float[][].class, 2, 2); |
| 246 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 247 |
doubleNullableMatrix = _aidl_parcel.createFixedArray(double[][].class, 2, 2); |
| 248 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 249 |
stringNullableMatrix = _aidl_parcel.createFixedArray(java.lang.String[][].class, 2, 2); |
| 250 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 251 |
byteEnumNullableMatrix = _aidl_parcel.createFixedArray(byte[][].class, 2, 2); |
| 252 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 253 |
intEnumNullableMatrix = _aidl_parcel.createFixedArray(int[][].class, 2, 2); |
| 254 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 255 |
longEnumNullableMatrix = _aidl_parcel.createFixedArray(long[][].class, 2, 2); |
| 256 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 257 |
binderNullableMatrix = _aidl_parcel.createFixedArray(android.os.IBinder[][].class, 2, 2); |
| 258 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 259 |
pfdNullableMatrix = _aidl_parcel.createFixedArray(android.os.ParcelFileDescriptor[][].class, android.os.ParcelFileDescriptor.CREATOR, 2, 2); |
| 260 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 261 |
parcelableNullableMatrix = _aidl_parcel.createFixedArray(android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[][].class, android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable.CREATOR, 2, 2); |
| 262 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 263 |
interfaceNullableMatrix = _aidl_parcel.createFixedArray(android.aidl.fixedsizearray.FixedSizeArrayExample.IEmptyInterface[][].class, android.aidl.fixedsizearray.FixedSizeArrayExample.IEmptyInterface.Stub::asInterface, 2, 2); |
| 264 |
} finally { |
| 265 |
if (_aidl_start_pos > (Integer.MAX_VALUE - _aidl_parcelable_size)) { |
| 266 |
throw new android.os.BadParcelableException("Overflow in the size of parcelable"); |
| 267 |
} |
| 268 |
_aidl_parcel.setDataPosition(_aidl_start_pos + _aidl_parcelable_size); |
| 269 |
} |
| 270 |
} |
| 271 |
@Override |
| 272 |
public String toString() { |
| 273 |
java.util.StringJoiner _aidl_sj = new java.util.StringJoiner(", ", "{", "}"); |
| 274 |
_aidl_sj.add("int2x3: " + (java.util.Arrays.deepToString(int2x3))); |
| 275 |
_aidl_sj.add("boolArray: " + (java.util.Arrays.toString(boolArray))); |
| 276 |
_aidl_sj.add("byteArray: " + (java.util.Arrays.toString(byteArray))); |
| 277 |
_aidl_sj.add("charArray: " + (java.util.Arrays.toString(charArray))); |
| 278 |
_aidl_sj.add("intArray: " + (java.util.Arrays.toString(intArray))); |
| 279 |
_aidl_sj.add("longArray: " + (java.util.Arrays.toString(longArray))); |
| 280 |
_aidl_sj.add("floatArray: " + (java.util.Arrays.toString(floatArray))); |
| 281 |
_aidl_sj.add("doubleArray: " + (java.util.Arrays.toString(doubleArray))); |
| 282 |
_aidl_sj.add("stringArray: " + (java.util.Arrays.toString(stringArray))); |
| 283 |
_aidl_sj.add("byteEnumArray: " + (java.util.Arrays.toString(byteEnumArray))); |
| 284 |
_aidl_sj.add("intEnumArray: " + (java.util.Arrays.toString(intEnumArray))); |
| 285 |
_aidl_sj.add("longEnumArray: " + (java.util.Arrays.toString(longEnumArray))); |
| 286 |
_aidl_sj.add("parcelableArray: " + (java.util.Arrays.toString(parcelableArray))); |
| 287 |
_aidl_sj.add("boolMatrix: " + (java.util.Arrays.deepToString(boolMatrix))); |
| 288 |
_aidl_sj.add("byteMatrix: " + (java.util.Arrays.deepToString(byteMatrix))); |
| 289 |
_aidl_sj.add("charMatrix: " + (java.util.Arrays.deepToString(charMatrix))); |
| 290 |
_aidl_sj.add("intMatrix: " + (java.util.Arrays.deepToString(intMatrix))); |
| 291 |
_aidl_sj.add("longMatrix: " + (java.util.Arrays.deepToString(longMatrix))); |
| 292 |
_aidl_sj.add("floatMatrix: " + (java.util.Arrays.deepToString(floatMatrix))); |
| 293 |
_aidl_sj.add("doubleMatrix: " + (java.util.Arrays.deepToString(doubleMatrix))); |
| 294 |
_aidl_sj.add("stringMatrix: " + (java.util.Arrays.deepToString(stringMatrix))); |
| 295 |
_aidl_sj.add("byteEnumMatrix: " + (java.util.Arrays.deepToString(byteEnumMatrix))); |
| 296 |
_aidl_sj.add("intEnumMatrix: " + (java.util.Arrays.deepToString(intEnumMatrix))); |
| 297 |
_aidl_sj.add("longEnumMatrix: " + (java.util.Arrays.deepToString(longEnumMatrix))); |
| 298 |
_aidl_sj.add("parcelableMatrix: " + (java.util.Arrays.deepToString(parcelableMatrix))); |
| 299 |
_aidl_sj.add("boolNullableArray: " + (java.util.Arrays.toString(boolNullableArray))); |
| 300 |
_aidl_sj.add("byteNullableArray: " + (java.util.Arrays.toString(byteNullableArray))); |
| 301 |
_aidl_sj.add("charNullableArray: " + (java.util.Arrays.toString(charNullableArray))); |
| 302 |
_aidl_sj.add("intNullableArray: " + (java.util.Arrays.toString(intNullableArray))); |
| 303 |
_aidl_sj.add("longNullableArray: " + (java.util.Arrays.toString(longNullableArray))); |
| 304 |
_aidl_sj.add("floatNullableArray: " + (java.util.Arrays.toString(floatNullableArray))); |
| 305 |
_aidl_sj.add("doubleNullableArray: " + (java.util.Arrays.toString(doubleNullableArray))); |
| 306 |
_aidl_sj.add("stringNullableArray: " + (java.util.Arrays.toString(stringNullableArray))); |
| 307 |
_aidl_sj.add("byteEnumNullableArray: " + (java.util.Arrays.toString(byteEnumNullableArray))); |
| 308 |
_aidl_sj.add("intEnumNullableArray: " + (java.util.Arrays.toString(intEnumNullableArray))); |
| 309 |
_aidl_sj.add("longEnumNullableArray: " + (java.util.Arrays.toString(longEnumNullableArray))); |
| 310 |
_aidl_sj.add("binderNullableArray: " + (java.util.Arrays.toString(binderNullableArray))); |
| 311 |
_aidl_sj.add("pfdNullableArray: " + (java.util.Arrays.toString(pfdNullableArray))); |
| 312 |
_aidl_sj.add("parcelableNullableArray: " + (java.util.Arrays.toString(parcelableNullableArray))); |
| 313 |
_aidl_sj.add("interfaceNullableArray: " + (java.util.Arrays.toString(interfaceNullableArray))); |
| 314 |
_aidl_sj.add("boolNullableMatrix: " + (java.util.Arrays.deepToString(boolNullableMatrix))); |
| 315 |
_aidl_sj.add("byteNullableMatrix: " + (java.util.Arrays.deepToString(byteNullableMatrix))); |
| 316 |
_aidl_sj.add("charNullableMatrix: " + (java.util.Arrays.deepToString(charNullableMatrix))); |
| 317 |
_aidl_sj.add("intNullableMatrix: " + (java.util.Arrays.deepToString(intNullableMatrix))); |
| 318 |
_aidl_sj.add("longNullableMatrix: " + (java.util.Arrays.deepToString(longNullableMatrix))); |
| 319 |
_aidl_sj.add("floatNullableMatrix: " + (java.util.Arrays.deepToString(floatNullableMatrix))); |
| 320 |
_aidl_sj.add("doubleNullableMatrix: " + (java.util.Arrays.deepToString(doubleNullableMatrix))); |
| 321 |
_aidl_sj.add("stringNullableMatrix: " + (java.util.Arrays.deepToString(stringNullableMatrix))); |
| 322 |
_aidl_sj.add("byteEnumNullableMatrix: " + (java.util.Arrays.deepToString(byteEnumNullableMatrix))); |
| 323 |
_aidl_sj.add("intEnumNullableMatrix: " + (java.util.Arrays.deepToString(intEnumNullableMatrix))); |
| 324 |
_aidl_sj.add("longEnumNullableMatrix: " + (java.util.Arrays.deepToString(longEnumNullableMatrix))); |
| 325 |
_aidl_sj.add("binderNullableMatrix: " + (java.util.Arrays.deepToString(binderNullableMatrix))); |
| 326 |
_aidl_sj.add("pfdNullableMatrix: " + (java.util.Arrays.deepToString(pfdNullableMatrix))); |
| 327 |
_aidl_sj.add("parcelableNullableMatrix: " + (java.util.Arrays.deepToString(parcelableNullableMatrix))); |
| 328 |
_aidl_sj.add("interfaceNullableMatrix: " + (java.util.Arrays.deepToString(interfaceNullableMatrix))); |
| 329 |
return "FixedSizeArrayExample" + _aidl_sj.toString() ; |
| 330 |
} |
| 331 |
@Override |
| 332 |
public int describeContents() { |
| 333 |
int _mask = 0; |
| 334 |
_mask |= describeContents(parcelableArray); |
| 335 |
_mask |= describeContents(parcelableMatrix); |
| 336 |
_mask |= describeContents(pfdNullableArray); |
| 337 |
_mask |= describeContents(parcelableNullableArray); |
| 338 |
_mask |= describeContents(pfdNullableMatrix); |
| 339 |
_mask |= describeContents(parcelableNullableMatrix); |
| 340 |
return _mask; |
| 341 |
} |
| 342 |
private int describeContents(Object _v) { |
| 343 |
if (_v == null) return 0; |
| 344 |
if (_v instanceof Object[]) { |
| 345 |
int _mask = 0; |
| 346 |
for (Object o : (Object[]) _v) { |
| 347 |
_mask |= describeContents(o); |
| 348 |
} |
| 349 |
return _mask; |
| 350 |
} |
| 351 |
if (_v instanceof android.os.Parcelable) { |
| 352 |
return ((android.os.Parcelable) _v).describeContents(); |
| 353 |
} |
| 354 |
return 0; |
| 355 |
} |
| 356 |
public interface IRepeatFixedSizeArray extends android.os.IInterface |
| 357 |
{ |
| 358 |
/** Default implementation for IRepeatFixedSizeArray. */ |
| 359 |
public static class Default implements android.aidl.fixedsizearray.FixedSizeArrayExample.IRepeatFixedSizeArray |
| 360 |
{ |
| 361 |
@Override public byte[] RepeatBytes(byte[] input, byte[] repeated) throws android.os.RemoteException |
| 362 |
{ |
| 363 |
return null; |
| 364 |
} |
| 365 |
@Override public int[] RepeatInts(int[] input, int[] repeated) throws android.os.RemoteException |
| 366 |
{ |
| 367 |
return null; |
| 368 |
} |
| 369 |
@Override public android.os.IBinder[] RepeatBinders(android.os.IBinder[] input, android.os.IBinder[] repeated) throws android.os.RemoteException |
| 370 |
{ |
| 371 |
return null; |
| 372 |
} |
| 373 |
@Override public android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[] RepeatParcelables(android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[] input, android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[] repeated) throws android.os.RemoteException |
| 374 |
{ |
| 375 |
return null; |
| 376 |
} |
| 377 |
@Override public byte[][] Repeat2dBytes(byte[][] input, byte[][] repeated) throws android.os.RemoteException |
| 378 |
{ |
| 379 |
return null; |
| 380 |
} |
| 381 |
@Override public int[][] Repeat2dInts(int[][] input, int[][] repeated) throws android.os.RemoteException |
| 382 |
{ |
| 383 |
return null; |
| 384 |
} |
| 385 |
@Override public android.os.IBinder[][] Repeat2dBinders(android.os.IBinder[][] input, android.os.IBinder[][] repeated) throws android.os.RemoteException |
| 386 |
{ |
| 387 |
return null; |
| 388 |
} |
| 389 |
@Override public android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[][] Repeat2dParcelables(android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[][] input, android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[][] repeated) throws android.os.RemoteException |
| 390 |
{ |
| 391 |
return null; |
| 392 |
} |
| 393 |
@Override |
| 394 |
public android.os.IBinder asBinder() { |
| 395 |
return null; |
| 396 |
} |
| 397 |
} |
| 398 |
/** Local-side IPC implementation stub class. */ |
| 399 |
public static abstract class Stub extends android.os.Binder implements android.aidl.fixedsizearray.FixedSizeArrayExample.IRepeatFixedSizeArray |
| 400 |
{ |
| 401 |
/** Construct the stub at attach it to the interface. */ |
| 402 |
@SuppressWarnings("this-escape") |
| 403 |
public Stub() |
| 404 |
{ |
| 405 |
this.attachInterface(this, DESCRIPTOR); |
| 406 |
} |
| 407 |
/** |
| 408 |
* Cast an IBinder object into an android.aidl.fixedsizearray.FixedSizeArrayExample.IRepeatFixedSizeArray interface, |
| 409 |
* generating a proxy if needed. |
| 410 |
*/ |
| 411 |
public static android.aidl.fixedsizearray.FixedSizeArrayExample.IRepeatFixedSizeArray asInterface(android.os.IBinder obj) |
| 412 |
{ |
| 413 |
if ((obj==null)) { |
| 414 |
return null; |
| 415 |
} |
| 416 |
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); |
| 417 |
if (((iin!=null)&&(iin instanceof android.aidl.fixedsizearray.FixedSizeArrayExample.IRepeatFixedSizeArray))) { |
| 418 |
return ((android.aidl.fixedsizearray.FixedSizeArrayExample.IRepeatFixedSizeArray)iin); |
| 419 |
} |
| 420 |
return new android.aidl.fixedsizearray.FixedSizeArrayExample.IRepeatFixedSizeArray.Stub.Proxy(obj); |
| 421 |
} |
| 422 |
@Override public android.os.IBinder asBinder() |
| 423 |
{ |
| 424 |
return this; |
| 425 |
} |
| 426 |
@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException |
| 427 |
{ |
| 428 |
java.lang.String descriptor = DESCRIPTOR; |
| 429 |
if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { |
| 430 |
data.enforceInterface(descriptor); |
| 431 |
} |
| 432 |
if (code == INTERFACE_TRANSACTION) { |
| 433 |
reply.writeString(descriptor); |
| 434 |
return true; |
| 435 |
} |
| 436 |
switch (code) |
| 437 |
{ |
| 438 |
case TRANSACTION_RepeatBytes: |
| 439 |
{ |
| 440 |
byte[] _arg0; |
| 441 |
_arg0 = data.createFixedArray(byte[].class, 3); |
| 442 |
byte[] _arg1; |
| 443 |
_arg1 = new byte[3]; |
| 444 |
data.enforceNoDataAvail(); |
| 445 |
byte[] _result = this.RepeatBytes(_arg0, _arg1); |
| 446 |
reply.writeNoException(); |
| 447 |
reply.writeFixedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE, 3); |
| 448 |
reply.writeFixedArray(_arg1, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE, 3); |
| 449 |
break; |
| 450 |
} |
| 451 |
case TRANSACTION_RepeatInts: |
| 452 |
{ |
| 453 |
int[] _arg0; |
| 454 |
_arg0 = data.createFixedArray(int[].class, 3); |
| 455 |
int[] _arg1; |
| 456 |
_arg1 = new int[3]; |
| 457 |
data.enforceNoDataAvail(); |
| 458 |
int[] _result = this.RepeatInts(_arg0, _arg1); |
| 459 |
reply.writeNoException(); |
| 460 |
reply.writeFixedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE, 3); |
| 461 |
reply.writeFixedArray(_arg1, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE, 3); |
| 462 |
break; |
| 463 |
} |
| 464 |
case TRANSACTION_RepeatBinders: |
| 465 |
{ |
| 466 |
android.os.IBinder[] _arg0; |
| 467 |
_arg0 = data.createFixedArray(android.os.IBinder[].class, 3); |
| 468 |
android.os.IBinder[] _arg1; |
| 469 |
_arg1 = new android.os.IBinder[3]; |
| 470 |
data.enforceNoDataAvail(); |
| 471 |
android.os.IBinder[] _result = this.RepeatBinders(_arg0, _arg1); |
| 472 |
reply.writeNoException(); |
| 473 |
reply.writeFixedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE, 3); |
| 474 |
reply.writeFixedArray(_arg1, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE, 3); |
| 475 |
break; |
| 476 |
} |
| 477 |
case TRANSACTION_RepeatParcelables: |
| 478 |
{ |
| 479 |
android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[] _arg0; |
| 480 |
_arg0 = data.createFixedArray(android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[].class, android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable.CREATOR, 3); |
| 481 |
android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[] _arg1; |
| 482 |
_arg1 = new android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[3]; |
| 483 |
data.enforceNoDataAvail(); |
| 484 |
android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[] _result = this.RepeatParcelables(_arg0, _arg1); |
| 485 |
reply.writeNoException(); |
| 486 |
reply.writeFixedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE, 3); |
| 487 |
reply.writeFixedArray(_arg1, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE, 3); |
| 488 |
break; |
| 489 |
} |
| 490 |
case TRANSACTION_Repeat2dBytes: |
| 491 |
{ |
| 492 |
byte[][] _arg0; |
| 493 |
_arg0 = data.createFixedArray(byte[][].class, 2, 3); |
| 494 |
byte[][] _arg1; |
| 495 |
_arg1 = new byte[2][3]; |
| 496 |
data.enforceNoDataAvail(); |
| 497 |
byte[][] _result = this.Repeat2dBytes(_arg0, _arg1); |
| 498 |
reply.writeNoException(); |
| 499 |
reply.writeFixedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE, 2, 3); |
| 500 |
reply.writeFixedArray(_arg1, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE, 2, 3); |
| 501 |
break; |
| 502 |
} |
| 503 |
case TRANSACTION_Repeat2dInts: |
| 504 |
{ |
| 505 |
int[][] _arg0; |
| 506 |
_arg0 = data.createFixedArray(int[][].class, 2, 3); |
| 507 |
int[][] _arg1; |
| 508 |
_arg1 = new int[2][3]; |
| 509 |
data.enforceNoDataAvail(); |
| 510 |
int[][] _result = this.Repeat2dInts(_arg0, _arg1); |
| 511 |
reply.writeNoException(); |
| 512 |
reply.writeFixedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE, 2, 3); |
| 513 |
reply.writeFixedArray(_arg1, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE, 2, 3); |
| 514 |
break; |
| 515 |
} |
| 516 |
case TRANSACTION_Repeat2dBinders: |
| 517 |
{ |
| 518 |
android.os.IBinder[][] _arg0; |
| 519 |
_arg0 = data.createFixedArray(android.os.IBinder[][].class, 2, 3); |
| 520 |
android.os.IBinder[][] _arg1; |
| 521 |
_arg1 = new android.os.IBinder[2][3]; |
| 522 |
data.enforceNoDataAvail(); |
| 523 |
android.os.IBinder[][] _result = this.Repeat2dBinders(_arg0, _arg1); |
| 524 |
reply.writeNoException(); |
| 525 |
reply.writeFixedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE, 2, 3); |
| 526 |
reply.writeFixedArray(_arg1, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE, 2, 3); |
| 527 |
break; |
| 528 |
} |
| 529 |
case TRANSACTION_Repeat2dParcelables: |
| 530 |
{ |
| 531 |
android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[][] _arg0; |
| 532 |
_arg0 = data.createFixedArray(android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[][].class, android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable.CREATOR, 2, 3); |
| 533 |
android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[][] _arg1; |
| 534 |
_arg1 = new android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[2][3]; |
| 535 |
data.enforceNoDataAvail(); |
| 536 |
android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[][] _result = this.Repeat2dParcelables(_arg0, _arg1); |
| 537 |
reply.writeNoException(); |
| 538 |
reply.writeFixedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE, 2, 3); |
| 539 |
reply.writeFixedArray(_arg1, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE, 2, 3); |
| 540 |
break; |
| 541 |
} |
| 542 |
default: |
| 543 |
{ |
| 544 |
return super.onTransact(code, data, reply, flags); |
| 545 |
} |
| 546 |
} |
| 547 |
return true; |
| 548 |
} |
| 549 |
private static class Proxy implements android.aidl.fixedsizearray.FixedSizeArrayExample.IRepeatFixedSizeArray |
| 550 |
{ |
| 551 |
private android.os.IBinder mRemote; |
| 552 |
Proxy(android.os.IBinder remote) |
| 553 |
{ |
| 554 |
mRemote = remote; |
| 555 |
} |
| 556 |
@Override public android.os.IBinder asBinder() |
| 557 |
{ |
| 558 |
return mRemote; |
| 559 |
} |
| 560 |
public java.lang.String getInterfaceDescriptor() |
| 561 |
{ |
| 562 |
return DESCRIPTOR; |
| 563 |
} |
| 564 |
@Override public byte[] RepeatBytes(byte[] input, byte[] repeated) throws android.os.RemoteException |
| 565 |
{ |
| 566 |
android.os.Parcel _data = android.os.Parcel.obtain(asBinder()); |
| 567 |
android.os.Parcel _reply = android.os.Parcel.obtain(); |
| 568 |
byte[] _result; |
| 569 |
try { |
| 570 |
_data.writeInterfaceToken(DESCRIPTOR); |
| 571 |
_data.writeFixedArray(input, 0, 3); |
| 572 |
boolean _status = mRemote.transact(Stub.TRANSACTION_RepeatBytes, _data, _reply, 0); |
| 573 |
_reply.readException(); |
| 574 |
_result = _reply.createFixedArray(byte[].class, 3); |
| 575 |
_reply.readFixedArray(repeated); |
| 576 |
} |
| 577 |
finally { |
| 578 |
_reply.recycle(); |
| 579 |
_data.recycle(); |
| 580 |
} |
| 581 |
return _result; |
| 582 |
} |
| 583 |
@Override public int[] RepeatInts(int[] input, int[] repeated) throws android.os.RemoteException |
| 584 |
{ |
| 585 |
android.os.Parcel _data = android.os.Parcel.obtain(asBinder()); |
| 586 |
android.os.Parcel _reply = android.os.Parcel.obtain(); |
| 587 |
int[] _result; |
| 588 |
try { |
| 589 |
_data.writeInterfaceToken(DESCRIPTOR); |
| 590 |
_data.writeFixedArray(input, 0, 3); |
| 591 |
boolean _status = mRemote.transact(Stub.TRANSACTION_RepeatInts, _data, _reply, 0); |
| 592 |
_reply.readException(); |
| 593 |
_result = _reply.createFixedArray(int[].class, 3); |
| 594 |
_reply.readFixedArray(repeated); |
| 595 |
} |
| 596 |
finally { |
| 597 |
_reply.recycle(); |
| 598 |
_data.recycle(); |
| 599 |
} |
| 600 |
return _result; |
| 601 |
} |
| 602 |
@Override public android.os.IBinder[] RepeatBinders(android.os.IBinder[] input, android.os.IBinder[] repeated) throws android.os.RemoteException |
| 603 |
{ |
| 604 |
android.os.Parcel _data = android.os.Parcel.obtain(asBinder()); |
| 605 |
android.os.Parcel _reply = android.os.Parcel.obtain(); |
| 606 |
android.os.IBinder[] _result; |
| 607 |
try { |
| 608 |
_data.writeInterfaceToken(DESCRIPTOR); |
| 609 |
_data.writeFixedArray(input, 0, 3); |
| 610 |
boolean _status = mRemote.transact(Stub.TRANSACTION_RepeatBinders, _data, _reply, 0); |
| 611 |
_reply.readException(); |
| 612 |
_result = _reply.createFixedArray(android.os.IBinder[].class, 3); |
| 613 |
_reply.readFixedArray(repeated); |
| 614 |
} |
| 615 |
finally { |
| 616 |
_reply.recycle(); |
| 617 |
_data.recycle(); |
| 618 |
} |
| 619 |
return _result; |
| 620 |
} |
| 621 |
@Override public android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[] RepeatParcelables(android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[] input, android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[] repeated) throws android.os.RemoteException |
| 622 |
{ |
| 623 |
android.os.Parcel _data = android.os.Parcel.obtain(asBinder()); |
| 624 |
android.os.Parcel _reply = android.os.Parcel.obtain(); |
| 625 |
android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[] _result; |
| 626 |
try { |
| 627 |
_data.writeInterfaceToken(DESCRIPTOR); |
| 628 |
_data.writeFixedArray(input, 0, 3); |
| 629 |
boolean _status = mRemote.transact(Stub.TRANSACTION_RepeatParcelables, _data, _reply, 0); |
| 630 |
_reply.readException(); |
| 631 |
_result = _reply.createFixedArray(android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[].class, android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable.CREATOR, 3); |
| 632 |
_reply.readFixedArray(repeated, android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable.CREATOR); |
| 633 |
} |
| 634 |
finally { |
| 635 |
_reply.recycle(); |
| 636 |
_data.recycle(); |
| 637 |
} |
| 638 |
return _result; |
| 639 |
} |
| 640 |
@Override public byte[][] Repeat2dBytes(byte[][] input, byte[][] repeated) throws android.os.RemoteException |
| 641 |
{ |
| 642 |
android.os.Parcel _data = android.os.Parcel.obtain(asBinder()); |
| 643 |
android.os.Parcel _reply = android.os.Parcel.obtain(); |
| 644 |
byte[][] _result; |
| 645 |
try { |
| 646 |
_data.writeInterfaceToken(DESCRIPTOR); |
| 647 |
_data.writeFixedArray(input, 0, 2, 3); |
| 648 |
boolean _status = mRemote.transact(Stub.TRANSACTION_Repeat2dBytes, _data, _reply, 0); |
| 649 |
_reply.readException(); |
| 650 |
_result = _reply.createFixedArray(byte[][].class, 2, 3); |
| 651 |
_reply.readFixedArray(repeated); |
| 652 |
} |
| 653 |
finally { |
| 654 |
_reply.recycle(); |
| 655 |
_data.recycle(); |
| 656 |
} |
| 657 |
return _result; |
| 658 |
} |
| 659 |
@Override public int[][] Repeat2dInts(int[][] input, int[][] repeated) throws android.os.RemoteException |
| 660 |
{ |
| 661 |
android.os.Parcel _data = android.os.Parcel.obtain(asBinder()); |
| 662 |
android.os.Parcel _reply = android.os.Parcel.obtain(); |
| 663 |
int[][] _result; |
| 664 |
try { |
| 665 |
_data.writeInterfaceToken(DESCRIPTOR); |
| 666 |
_data.writeFixedArray(input, 0, 2, 3); |
| 667 |
boolean _status = mRemote.transact(Stub.TRANSACTION_Repeat2dInts, _data, _reply, 0); |
| 668 |
_reply.readException(); |
| 669 |
_result = _reply.createFixedArray(int[][].class, 2, 3); |
| 670 |
_reply.readFixedArray(repeated); |
| 671 |
} |
| 672 |
finally { |
| 673 |
_reply.recycle(); |
| 674 |
_data.recycle(); |
| 675 |
} |
| 676 |
return _result; |
| 677 |
} |
| 678 |
@Override public android.os.IBinder[][] Repeat2dBinders(android.os.IBinder[][] input, android.os.IBinder[][] repeated) throws android.os.RemoteException |
| 679 |
{ |
| 680 |
android.os.Parcel _data = android.os.Parcel.obtain(asBinder()); |
| 681 |
android.os.Parcel _reply = android.os.Parcel.obtain(); |
| 682 |
android.os.IBinder[][] _result; |
| 683 |
try { |
| 684 |
_data.writeInterfaceToken(DESCRIPTOR); |
| 685 |
_data.writeFixedArray(input, 0, 2, 3); |
| 686 |
boolean _status = mRemote.transact(Stub.TRANSACTION_Repeat2dBinders, _data, _reply, 0); |
| 687 |
_reply.readException(); |
| 688 |
_result = _reply.createFixedArray(android.os.IBinder[][].class, 2, 3); |
| 689 |
_reply.readFixedArray(repeated); |
| 690 |
} |
| 691 |
finally { |
| 692 |
_reply.recycle(); |
| 693 |
_data.recycle(); |
| 694 |
} |
| 695 |
return _result; |
| 696 |
} |
| 697 |
@Override public android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[][] Repeat2dParcelables(android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[][] input, android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[][] repeated) throws android.os.RemoteException |
| 698 |
{ |
| 699 |
android.os.Parcel _data = android.os.Parcel.obtain(asBinder()); |
| 700 |
android.os.Parcel _reply = android.os.Parcel.obtain(); |
| 701 |
android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[][] _result; |
| 702 |
try { |
| 703 |
_data.writeInterfaceToken(DESCRIPTOR); |
| 704 |
_data.writeFixedArray(input, 0, 2, 3); |
| 705 |
boolean _status = mRemote.transact(Stub.TRANSACTION_Repeat2dParcelables, _data, _reply, 0); |
| 706 |
_reply.readException(); |
| 707 |
_result = _reply.createFixedArray(android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[][].class, android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable.CREATOR, 2, 3); |
| 708 |
_reply.readFixedArray(repeated, android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable.CREATOR); |
| 709 |
} |
| 710 |
finally { |
| 711 |
_reply.recycle(); |
| 712 |
_data.recycle(); |
| 713 |
} |
| 714 |
return _result; |
| 715 |
} |
| 716 |
} |
| 717 |
static final int TRANSACTION_RepeatBytes = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); |
| 718 |
static final int TRANSACTION_RepeatInts = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); |
| 719 |
static final int TRANSACTION_RepeatBinders = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); |
| 720 |
static final int TRANSACTION_RepeatParcelables = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); |
| 721 |
static final int TRANSACTION_Repeat2dBytes = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); |
| 722 |
static final int TRANSACTION_Repeat2dInts = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); |
| 723 |
static final int TRANSACTION_Repeat2dBinders = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6); |
| 724 |
static final int TRANSACTION_Repeat2dParcelables = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7); |
| 725 |
} |
| 726 |
/** @hide */ |
| 727 |
public static final java.lang.String DESCRIPTOR = "android.aidl.fixedsizearray.FixedSizeArrayExample.IRepeatFixedSizeArray"; |
| 728 |
public byte[] RepeatBytes(byte[] input, byte[] repeated) throws android.os.RemoteException; |
| 729 |
public int[] RepeatInts(int[] input, int[] repeated) throws android.os.RemoteException; |
| 730 |
public android.os.IBinder[] RepeatBinders(android.os.IBinder[] input, android.os.IBinder[] repeated) throws android.os.RemoteException; |
| 731 |
public android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[] RepeatParcelables(android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[] input, android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[] repeated) throws android.os.RemoteException; |
| 732 |
public byte[][] Repeat2dBytes(byte[][] input, byte[][] repeated) throws android.os.RemoteException; |
| 733 |
public int[][] Repeat2dInts(int[][] input, int[][] repeated) throws android.os.RemoteException; |
| 734 |
public android.os.IBinder[][] Repeat2dBinders(android.os.IBinder[][] input, android.os.IBinder[][] repeated) throws android.os.RemoteException; |
| 735 |
public android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[][] Repeat2dParcelables(android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[][] input, android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable[][] repeated) throws android.os.RemoteException; |
| 736 |
} |
| 737 |
public static @interface ByteEnum { |
| 738 |
public static final byte A = 0; |
| 739 |
} |
| 740 |
public static @interface IntEnum { |
| 741 |
public static final int A = 0; |
| 742 |
} |
| 743 |
public static @interface LongEnum { |
| 744 |
public static final long A = 0L; |
| 745 |
} |
| 746 |
public static class IntParcelable implements android.os.Parcelable |
| 747 |
{ |
| 748 |
public int value = 0; |
| 749 |
public static final android.os.Parcelable.Creator<IntParcelable> CREATOR = new android.os.Parcelable.Creator<IntParcelable>() { |
| 750 |
@Override |
| 751 |
public IntParcelable createFromParcel(android.os.Parcel _aidl_source) { |
| 752 |
IntParcelable _aidl_out = new IntParcelable(); |
| 753 |
_aidl_out.readFromParcel(_aidl_source); |
| 754 |
return _aidl_out; |
| 755 |
} |
| 756 |
@Override |
| 757 |
public IntParcelable[] newArray(int _aidl_size) { |
| 758 |
return new IntParcelable[_aidl_size]; |
| 759 |
} |
| 760 |
}; |
| 761 |
@Override public final void writeToParcel(android.os.Parcel _aidl_parcel, int _aidl_flag) |
| 762 |
{ |
| 763 |
int _aidl_start_pos = _aidl_parcel.dataPosition(); |
| 764 |
_aidl_parcel.writeInt(0); |
| 765 |
_aidl_parcel.writeInt(value); |
| 766 |
int _aidl_end_pos = _aidl_parcel.dataPosition(); |
| 767 |
_aidl_parcel.setDataPosition(_aidl_start_pos); |
| 768 |
_aidl_parcel.writeInt(_aidl_end_pos - _aidl_start_pos); |
| 769 |
_aidl_parcel.setDataPosition(_aidl_end_pos); |
| 770 |
} |
| 771 |
public final void readFromParcel(android.os.Parcel _aidl_parcel) |
| 772 |
{ |
| 773 |
int _aidl_start_pos = _aidl_parcel.dataPosition(); |
| 774 |
int _aidl_parcelable_size = _aidl_parcel.readInt(); |
| 775 |
try { |
| 776 |
if (_aidl_parcelable_size < 4) throw new android.os.BadParcelableException("Parcelable too small");; |
| 777 |
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return; |
| 778 |
value = _aidl_parcel.readInt(); |
| 779 |
} finally { |
| 780 |
if (_aidl_start_pos > (Integer.MAX_VALUE - _aidl_parcelable_size)) { |
| 781 |
throw new android.os.BadParcelableException("Overflow in the size of parcelable"); |
| 782 |
} |
| 783 |
_aidl_parcel.setDataPosition(_aidl_start_pos + _aidl_parcelable_size); |
| 784 |
} |
| 785 |
} |
| 786 |
@Override |
| 787 |
public boolean equals(Object other) { |
| 788 |
if (this == other) return true; |
| 789 |
if (other == null) return false; |
| 790 |
if (!(other instanceof IntParcelable)) return false; |
| 791 |
IntParcelable that = (IntParcelable)other; |
| 792 |
if (!java.util.Objects.deepEquals(value, that.value)) return false; |
| 793 |
return true; |
| 794 |
} |
| 795 |
|
| 796 |
@Override |
| 797 |
public int hashCode() { |
| 798 |
return java.util.Arrays.deepHashCode(java.util.Arrays.asList(value).toArray()); |
| 799 |
} |
| 800 |
@Override |
| 801 |
public int describeContents() { |
| 802 |
int _mask = 0; |
| 803 |
return _mask; |
| 804 |
} |
| 805 |
} |
| 806 |
public interface IEmptyInterface extends android.os.IInterface |
| 807 |
{ |
| 808 |
/** Default implementation for IEmptyInterface. */ |
| 809 |
public static class Default implements android.aidl.fixedsizearray.FixedSizeArrayExample.IEmptyInterface |
| 810 |
{ |
| 811 |
@Override |
| 812 |
public android.os.IBinder asBinder() { |
| 813 |
return null; |
| 814 |
} |
| 815 |
} |
| 816 |
/** Local-side IPC implementation stub class. */ |
| 817 |
public static abstract class Stub extends android.os.Binder implements android.aidl.fixedsizearray.FixedSizeArrayExample.IEmptyInterface |
| 818 |
{ |
| 819 |
/** Construct the stub at attach it to the interface. */ |
| 820 |
@SuppressWarnings("this-escape") |
| 821 |
public Stub() |
| 822 |
{ |
| 823 |
this.attachInterface(this, DESCRIPTOR); |
| 824 |
} |
| 825 |
/** |
| 826 |
* Cast an IBinder object into an android.aidl.fixedsizearray.FixedSizeArrayExample.IEmptyInterface interface, |
| 827 |
* generating a proxy if needed. |
| 828 |
*/ |
| 829 |
public static android.aidl.fixedsizearray.FixedSizeArrayExample.IEmptyInterface asInterface(android.os.IBinder obj) |
| 830 |
{ |
| 831 |
if ((obj==null)) { |
| 832 |
return null; |
| 833 |
} |
| 834 |
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); |
| 835 |
if (((iin!=null)&&(iin instanceof android.aidl.fixedsizearray.FixedSizeArrayExample.IEmptyInterface))) { |
| 836 |
return ((android.aidl.fixedsizearray.FixedSizeArrayExample.IEmptyInterface)iin); |
| 837 |
} |
| 838 |
return new android.aidl.fixedsizearray.FixedSizeArrayExample.IEmptyInterface.Stub.Proxy(obj); |
| 839 |
} |
| 840 |
@Override public android.os.IBinder asBinder() |
| 841 |
{ |
| 842 |
return this; |
| 843 |
} |
| 844 |
@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException |
| 845 |
{ |
| 846 |
java.lang.String descriptor = DESCRIPTOR; |
| 847 |
if (code == INTERFACE_TRANSACTION) { |
| 848 |
reply.writeString(descriptor); |
| 849 |
return true; |
| 850 |
} |
| 851 |
switch (code) |
| 852 |
{ |
| 853 |
default: |
| 854 |
{ |
| 855 |
return super.onTransact(code, data, reply, flags); |
| 856 |
} |
| 857 |
} |
| 858 |
} |
| 859 |
private static class Proxy implements android.aidl.fixedsizearray.FixedSizeArrayExample.IEmptyInterface |
| 860 |
{ |
| 861 |
private android.os.IBinder mRemote; |
| 862 |
Proxy(android.os.IBinder remote) |
| 863 |
{ |
| 864 |
mRemote = remote; |
| 865 |
} |
| 866 |
@Override public android.os.IBinder asBinder() |
| 867 |
{ |
| 868 |
return mRemote; |
| 869 |
} |
| 870 |
public java.lang.String getInterfaceDescriptor() |
| 871 |
{ |
| 872 |
return DESCRIPTOR; |
| 873 |
} |
| 874 |
} |
| 875 |
} |
| 876 |
/** @hide */ |
| 877 |
public static final java.lang.String DESCRIPTOR = "android.aidl.fixedsizearray.FixedSizeArrayExample.IEmptyInterface"; |
| 878 |
} |
| 879 |
} |