Home
last modified time | relevance | path

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

/cts/tests/tests/telecom/src/android/telecom/cts/
DTestParcelable.java31 public class TestParcelable implements Parcelable { class
41 public TestParcelable(int val1, String val2, IBinder val3) { in TestParcelable() method in TestParcelable
47 private TestParcelable(Parcel in) { in TestParcelable() method in TestParcelable
53 public static final Creator<TestParcelable> CREATOR = new Creator<>() {
55 public TestParcelable createFromParcel(Parcel source) {
56 return new TestParcelable(source);
60 public TestParcelable[] newArray(int size) {
61 return new TestParcelable[size];
80 if (!(o instanceof TestParcelable)) return false; in equals()
81 TestParcelable that = (TestParcelable) o; in equals()
[all …]
DBaseTelecomTestWithMockServices.java1393 TestParcelable createTestParcelable() { in createTestParcelable()
1394 return new TestParcelable(42, "a test string", in createTestParcelable()
1407 Bundle createTestBundle(TestParcelable parcelable) {
1409 bundle.putInt(TestParcelable.VAL_1_KEY, parcelable.mVal1);
1410 bundle.putString(TestParcelable.VAL_2_KEY, parcelable.mVal2);
1411 bundle.putBinder(TestParcelable.VAL_3_KEY, parcelable.mVal3);
1422 void verifyTestBundle(Bundle receivedBundle, TestParcelable originalParcelable) {
1427 assertEquals(originalParcelable.mVal1, receivedBundle.getInt(TestParcelable.VAL_1_KEY));
1428 assertEquals(originalParcelable.mVal2, receivedBundle.getString(TestParcelable.VAL_2_KEY));
1429 IBinder testBinder = receivedBundle.getBinder(TestParcelable.VAL_3_KEY);
[all …]
DTransactionalApisTest.java1042 TestParcelable originalParcelable = createTestParcelable(); in testSendCallEvent()
1077 TestParcelable originalParcelable = createTestParcelable(); in testOnCallEvent()
DCallDetailsTest.java989 TestParcelable testParcelable = createTestParcelable(); in testConnectionEvent()
1043 TestParcelable testParcelable = createTestParcelable(); in testCallEvent()
/cts/tests/tests/content/src/android/content/cts/
DIntentTest.java219 final ArrayList<TestParcelable> original = new ArrayList<>(); in testGetParcelableArrayListExtraTypeSafe_withMismatchingType_returnsNull()
220 original.add(new TestParcelable(0)); in testGetParcelableArrayListExtraTypeSafe_withMismatchingType_returnsNull()
228 final ArrayList<TestParcelable> original = new ArrayList<>(); in testGetParcelableArrayListExtraTypeSafe_withMatchingType_returnsObject()
229 original.add(new TestParcelable(0)); in testGetParcelableArrayListExtraTypeSafe_withMatchingType_returnsObject()
230 original.add(new TestParcelable(1)); in testGetParcelableArrayListExtraTypeSafe_withMatchingType_returnsObject()
234 mIntent.getParcelableArrayListExtra(TEST_EXTRA_NAME, TestParcelable.class)); in testGetParcelableArrayListExtraTypeSafe_withMatchingType_returnsObject()
239 final ArrayList<TestParcelable> original = new ArrayList<>(); in testGetParcelableArrayListExtraTypeSafe_withBaseType_returnsObject()
240 original.add(new TestParcelable(0)); in testGetParcelableArrayListExtraTypeSafe_withBaseType_returnsObject()
241 original.add(new TestParcelable(1)); in testGetParcelableArrayListExtraTypeSafe_withBaseType_returnsObject()
771 mIntent.putExtra(TEST_EXTRA_NAME, new TestParcelable(42)); in testGetParcelableExtraTypeSafe_withMismatchingType_returnsNull()
[all …]