Home
last modified time | relevance | path

Searched refs:TestParcelable (Results 1 – 6 of 6) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/framework/src/com/android/adservices/
DAdServicesParcelableUtilTest.java113 (AdServicesParcelableUtil.ParcelWriter<TestParcelable>) in testWriteNullableToParcelThenRead_nullParcelableSuccess()
117 TestParcelable parcelableFromParcel = in testWriteNullableToParcelThenRead_nullParcelableSuccess()
119 targetParcel, TestParcelable.CREATOR::createFromParcel); in testWriteNullableToParcelThenRead_nullParcelableSuccess()
130 null, new HashMap<Integer, TestParcelable>())); in testWriteMapToParcel_nullParcelThrows()
146 null, Integer::valueOf, TestParcelable.class)); in testReadMapFromParcel_nullParcelThrows()
155 Parcel.obtain(), null, TestParcelable.class)); in testReadMapFromParcel_nullConverterThrows()
169 ImmutableMap<Integer, TestParcelable> originalMap = in testWriteMapToParcelThenRead_success()
170 ImmutableMap.of(1, new TestParcelable("one", 1), 2, new TestParcelable("two", 2)); in testWriteMapToParcelThenRead_success()
175 ImmutableMap<Integer, TestParcelable> mapFromParcel = in testWriteMapToParcelThenRead_success()
178 targetParcel, Integer::parseInt, TestParcelable.class)); in testWriteMapToParcelThenRead_success()
[all …]
/packages/modules/AppSearch/testing/safeparceltests/src/android/app/appsearch/safeparcel/
DTestParcelable.java21 public class TestParcelable implements Parcelable { class
22 public static final Creator<TestParcelable> CREATOR =
23 new Creator<TestParcelable>() {
26 public TestParcelable createFromParcel(Parcel parcel) {
27 return new TestParcelable(parcel);
31 public TestParcelable[] newArray(int size) {
32 return new TestParcelable[size];
40 public TestParcelable(int intValue, float floatValue, String stringValue) { in TestParcelable() method in TestParcelable
46 public TestParcelable(Parcel parcel) { in TestParcelable() method in TestParcelable
72 if (object instanceof TestParcelable) { in equals()
[all …]
DSafeParcelableTest.java472 Parcelable val = new TestParcelable(12, 3.45f, "foo-bar"); in testReadWriteParcelable()
476 TestParcelable readVal = in testReadWriteParcelable()
477 SafeParcelReader.createParcelable(mParcel, header, TestParcelable.CREATOR); in testReadWriteParcelable()
488 TestParcelable readBuffer = in testReadWriteParcelableNull()
489 SafeParcelReader.createParcelable(mParcel, header, TestParcelable.CREATOR); in testReadWriteParcelableNull()
1157 TestParcelable[] array = new TestParcelable[3]; in testReadWriteTypedArray()
1158 array[0] = new TestParcelable(1, 1.1f, "one"); in testReadWriteTypedArray()
1159 array[1] = new TestParcelable(2, 2.2f, "two"); in testReadWriteTypedArray()
1160 array[2] = new TestParcelable(3, 3.3f, "three"); in testReadWriteTypedArray()
1164 TestParcelable[] readArray = in testReadWriteTypedArray()
[all …]
/packages/services/Car/tests/android_car_api_test/src/com/android/car/internal/test/
DTestParcelable.java24 public final class TestParcelable implements Parcelable { class
25 private static final String TAG = TestParcelable.class.getSimpleName();
29 public TestParcelable(byte[] byteData) { in TestParcelable() method in TestParcelable
33 public TestParcelable(Parcel in) { in TestParcelable() method in TestParcelable
49 public static final @NonNull Parcelable.Creator<TestParcelable> CREATOR =
50 new Parcelable.Creator<TestParcelable>() {
52 public TestParcelable[] newArray(int size) {
53 return new TestParcelable[size];
57 public TestParcelable createFromParcel(@NonNull Parcel in) {
58 return new TestParcelable(in);
DLargeParcelableTest.java166 TestParcelable origParcelable = new TestParcelable(origArray); in doTestLargeParcelable()
171 TestParcelable receivedParcelable = (TestParcelable) r.getParcelable(); in doTestLargeParcelable()
DLargeParcelableTestService.java44 TestParcelable tp = (TestParcelable) (p.getParcelable());