Home
last modified time | relevance | path

Searched refs:parcel (Results 1 – 25 of 52) sorted by relevance

123

/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DAdvertiseDataTest.java42 Parcel parcel = Parcel.obtain(); in testEmptyData() local
44 data.writeToParcel(parcel, 0); in testEmptyData()
45 parcel.setDataPosition(0); in testEmptyData()
47 AdvertiseData.CREATOR.createFromParcel(parcel); in testEmptyData()
58 Parcel parcel = Parcel.obtain(); in testEmptyServiceUuid() local
60 data.writeToParcel(parcel, 0); in testEmptyServiceUuid()
61 parcel.setDataPosition(0); in testEmptyServiceUuid()
63 AdvertiseData.CREATOR.createFromParcel(parcel); in testEmptyServiceUuid()
71 Parcel parcel = Parcel.obtain(); in testEmptyManufacturerData() local
77 data.writeToParcel(parcel, 0); in testEmptyManufacturerData()
[all …]
DScanSettingsTest.java47 Parcel parcel = Parcel.obtain(); in testReadWriteParcel() local
54 settings.writeToParcel(parcel, 0); in testReadWriteParcel()
55 parcel.setDataPosition(0); in testReadWriteParcel()
56 ScanSettings settingsFromParcel = ScanSettings.CREATOR.createFromParcel(parcel); in testReadWriteParcel()
DScanResultTest.java52 Parcel parcel = Parcel.obtain(); in testScanResultParceling() local
53 result.writeToParcel(parcel, 0); in testScanResultParceling()
55 parcel.setDataPosition(0); in testScanResultParceling()
56 ScanResult resultFromParcel = ScanResult.CREATOR.createFromParcel(parcel); in testScanResultParceling()
DAdvertiseSettingsTest.java47 Parcel parcel = Parcel.obtain(); in testReadWriteParcel() local
54 settings.writeToParcel(parcel, 0); in testReadWriteParcel()
55 parcel.setDataPosition(0); in testReadWriteParcel()
56 AdvertiseSettings settingsFromParcel = AdvertiseSettings.CREATOR.createFromParcel(parcel); in testReadWriteParcel()
/cts/tests/app/src/android/app/cts/
DActivityManagerRunningTaskInfoTest.java50 Parcel parcel = Parcel.obtain(); in testWriteToParcel() local
51 mRunningTaskInfo.writeToParcel(parcel, 0); in testWriteToParcel()
52 parcel.setDataPosition(0); in testWriteToParcel()
54 .createFromParcel(parcel); in testWriteToParcel()
64 parcel = Parcel.obtain(); in testWriteToParcel()
65 mRunningTaskInfo.writeToParcel(parcel, 0); in testWriteToParcel()
66 parcel.setDataPosition(0); in testWriteToParcel()
68 .createFromParcel(parcel); in testWriteToParcel()
78 Parcel parcel = Parcel.obtain(); in testReadFromParcel() local
79 mRunningTaskInfo.writeToParcel(parcel, 0); in testReadFromParcel()
[all …]
DNotificationTest.java93 Parcel parcel = Parcel.obtain();
94 mNotification.writeToParcel(parcel, 0);
95 parcel.setDataPosition(0);
97 Notification result = new Notification(parcel);
118 parcel = Parcel.obtain();
119 mNotification.writeToParcel(parcel, 0);
120 parcel.setDataPosition(0);
121 result = new Notification(parcel);
125 parcel = Parcel.obtain();
126 mNotification.writeToParcel(parcel, 0);
[all …]
DActivityManagerRecentTaskInfoTest.java49 Parcel parcel = Parcel.obtain(); in testWriteToParcel() local
50 mRecentTaskInfo.writeToParcel(parcel, 0); in testWriteToParcel()
51 parcel.setDataPosition(0); in testWriteToParcel()
53 .createFromParcel(parcel); in testWriteToParcel()
64 parcel = Parcel.obtain(); in testWriteToParcel()
65 mRecentTaskInfo.writeToParcel(parcel, 0); in testWriteToParcel()
66 parcel.setDataPosition(0); in testWriteToParcel()
68 .createFromParcel(parcel); in testWriteToParcel()
83 Parcel parcel = Parcel.obtain(); in testReadFromParcel() local
84 mRecentTaskInfo.writeToParcel(parcel, 0); in testReadFromParcel()
[all …]
DActivityManagerMemoryInfoTest.java43 Parcel parcel = Parcel.obtain(); in testWriteToParcel() local
44 mMemory.writeToParcel(parcel, 0); in testWriteToParcel()
45 parcel.setDataPosition(0); in testWriteToParcel()
47 ActivityManager.MemoryInfo.CREATOR.createFromParcel(parcel); in testWriteToParcel()
68 Parcel parcel = Parcel.obtain(); in testReadFromParcel() local
69 mMemory.writeToParcel(parcel, 0); in testReadFromParcel()
70 parcel.setDataPosition(0); in testReadFromParcel()
72 result.readFromParcel(parcel); in testReadFromParcel()
DActivityManager_RunningServiceInfoTest.java57 Parcel parcel = Parcel.obtain(); in testWriteToParcel() local
58 mRunningServiceInfo.writeToParcel(parcel, 0); in testWriteToParcel()
59 parcel.setDataPosition(0); in testWriteToParcel()
61 ActivityManager.RunningServiceInfo.CREATOR.createFromParcel(parcel); in testWriteToParcel()
76 Parcel parcel = Parcel.obtain(); in testReadFromParcel() local
77 mRunningServiceInfo.writeToParcel(parcel, 0); in testReadFromParcel()
78 parcel.setDataPosition(0); in testReadFromParcel()
81 values.readFromParcel(parcel); in testReadFromParcel()
DActivityManagerProcessErrorStateInfoTest.java56 Parcel parcel = Parcel.obtain(); in testWriteToParcel() local
57 mErrorStateInfo.writeToParcel(parcel, 0); in testWriteToParcel()
58 parcel.setDataPosition(0); in testWriteToParcel()
60 ActivityManager.ProcessErrorStateInfo.CREATOR.createFromParcel(parcel); in testWriteToParcel()
90 Parcel parcel = Parcel.obtain(); in testReadFromParcel() local
91 mErrorStateInfo.writeToParcel(parcel, 0); in testReadFromParcel()
92 parcel.setDataPosition(0); in testReadFromParcel()
94 values.readFromParcel(parcel); in testReadFromParcel()
DAutomaticZenRuleTest.java53 Parcel parcel = Parcel.obtain(); in testWriteToParcel() local
54 rule.writeToParcel(parcel, 0); in testWriteToParcel()
55 parcel.setDataPosition(0); in testWriteToParcel()
56 AutomaticZenRule rule1 = new AutomaticZenRule(parcel); in testWriteToParcel()
64 parcel = Parcel.obtain(); in testWriteToParcel()
65 rule.writeToParcel(parcel, 0); in testWriteToParcel()
66 parcel.setDataPosition(0); in testWriteToParcel()
67 rule1 = new AutomaticZenRule(parcel); in testWriteToParcel()
DConditionTest.java58 Parcel parcel = Parcel.obtain(); in testWriteToParcel() local
59 condition.writeToParcel(parcel, 0); in testWriteToParcel()
60 parcel.setDataPosition(0); in testWriteToParcel()
61 Condition condition1 = new Condition(parcel); in testWriteToParcel()
/cts/tests/tests/content/src/android/content/cts/
DComponentNameTest.java79 final Parcel parcel = Parcel.obtain(); in testConstructor() local
82 componentName.writeToParcel(parcel, 0); in testConstructor()
83 parcel.setDataPosition(0); in testConstructor()
84 new ComponentName(parcel); in testConstructor()
195 Parcel parcel = Parcel.obtain(); in testWriteToParcel() local
196 ComponentName.writeToParcel(componentName, parcel); in testWriteToParcel()
197 parcel.setDataPosition(0); in testWriteToParcel()
198 assertFalse(0 == parcel.dataAvail()); in testWriteToParcel()
199 assertEquals("android.content.cts", parcel.readString()); in testWriteToParcel()
200 assertEquals("android.content.cts.ComponentNameTest", parcel.readString()); in testWriteToParcel()
[all …]
/cts/tests/tests/location/src/android/location/cts/
DAddressTest.java310 Parcel parcel = Parcel.obtain(); in testWriteToParcel() local
311 address.writeToParcel(parcel, 0); in testWriteToParcel()
312 parcel.setDataPosition(0); in testWriteToParcel()
313 assertEquals(locale.getLanguage(), parcel.readString()); in testWriteToParcel()
314 assertEquals(locale.getCountry(), parcel.readString()); in testWriteToParcel()
315 assertEquals(0, parcel.readInt()); in testWriteToParcel()
316 assertEquals(address.getFeatureName(), parcel.readString()); in testWriteToParcel()
317 assertEquals(address.getAdminArea(), parcel.readString()); in testWriteToParcel()
318 assertEquals(address.getSubAdminArea(), parcel.readString()); in testWriteToParcel()
319 assertEquals(address.getLocality(), parcel.readString()); in testWriteToParcel()
[all …]
DGnssMeasurementsEventTest.java47 Parcel parcel = Parcel.obtain(); in testWriteToParcel() local
48 event.writeToParcel(parcel, 0); in testWriteToParcel()
49 parcel.setDataPosition(0); in testWriteToParcel()
50 GnssMeasurementsEvent newEvent = GnssMeasurementsEvent.CREATOR.createFromParcel(parcel); in testWriteToParcel()
DGnssClockTest.java60 Parcel parcel = Parcel.obtain(); in testWriteToParcel() local
61 clock.writeToParcel(parcel, 0); in testWriteToParcel()
62 parcel.setDataPosition(0); in testWriteToParcel()
63 GnssClock newClock = GnssClock.CREATOR.createFromParcel(parcel); in testWriteToParcel()
DGnssNavigationMessageTest.java125 Parcel parcel = Parcel.obtain(); in testWriteToParcel() local
126 message.writeToParcel(parcel, 0); in testWriteToParcel()
127 parcel.setDataPosition(0); in testWriteToParcel()
129 GnssNavigationMessage.CREATOR.createFromParcel(parcel); in testWriteToParcel()
/cts/tests/tests/os/src/android/os/health/cts/
DHealthStatsTest.java156 Parcel parcel = Parcel.obtain(); in testParcelEmpty() local
157 writer.flattenToParcel(parcel); in testParcelEmpty()
159 parcel.setDataPosition(0); in testParcelEmpty()
161 HealthStats readback = new HealthStats(parcel); in testParcelEmpty()
164 Assert.assertEquals(0, parcel.dataAvail()); in testParcelEmpty()
165 parcel.recycle(); in testParcelEmpty()
205 Parcel parcel = Parcel.obtain(); in testParcelling() local
206 writer.flattenToParcel(parcel); in testParcelling()
207 parcel.setDataPosition(0); in testParcelling()
208 HealthStats readback = new HealthStats(parcel); in testParcelling()
[all …]
DTimerStatTest.java82 Parcel parcel = Parcel.obtain(); in testParceling() local
83 timer.writeToParcel(parcel, 0); in testParceling()
85 parcel.setDataPosition(0); in testParceling()
87 TimerStat readback = new TimerStat(parcel); in testParceling()
/cts/tests/tests/accounts/src/android/accounts/cts/
DAccountTest.java38 Parcel parcel = Parcel.obtain(); in testWriteToParcel() local
39 parcel.setDataPosition(0); in testWriteToParcel()
40 account.writeToParcel(parcel, 0); in testWriteToParcel()
42 parcel.setDataPosition(0); in testWriteToParcel()
45 Account newAccount = new Account(parcel); in testWriteToParcel()
/cts/tests/tests/text/src/android/text/style/cts/
DSuggestionSpanTest.java80 Parcel parcel = null; in cloneViaParcel() local
82 parcel = Parcel.obtain(); in cloneViaParcel()
83 original.writeToParcel(parcel, 0); in cloneViaParcel()
84 parcel.setDataPosition(0); in cloneViaParcel()
85 return new SuggestionSpan(parcel); in cloneViaParcel()
87 if (parcel != null) { in cloneViaParcel()
88 parcel.recycle(); in cloneViaParcel()
DLocaleSpanTest.java60 Parcel parcel = null; in cloneViaParcel() local
62 parcel = Parcel.obtain(); in cloneViaParcel()
63 original.writeToParcel(parcel, 0); in cloneViaParcel()
64 parcel.setDataPosition(0); in cloneViaParcel()
65 return new LocaleSpan(parcel); in cloneViaParcel()
67 if (parcel != null) { in cloneViaParcel()
68 parcel.recycle(); in cloneViaParcel()
/cts/tests/tests/gesture/src/android/gesture/cts/
DGestureTest.java109 Parcel parcel = Parcel.obtain(); in testReadWriteToParcel() local
111 mGesture.writeToParcel(parcel, 0); in testReadWriteToParcel()
112 parcel.setDataPosition(0); in testReadWriteToParcel()
113 Gesture readGesture = Gesture.CREATOR.createFromParcel(parcel); in testReadWriteToParcel()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityEventTest.java58 Parcel parcel = Parcel.obtain(); in testMarshaling() local
59 sentEvent.writeToParcel(parcel, 0); in testMarshaling()
60 parcel.setDataPosition(0); in testMarshaling()
61 AccessibilityEvent receivedEvent = AccessibilityEvent.CREATOR.createFromParcel(parcel); in testMarshaling()
153 Parcel parcel = Parcel.obtain(); in testMarshaling2() local
154 marshaledEvent.writeToParcel(parcel, 0); in testMarshaling2()
155 parcel.setDataPosition(0); in testMarshaling2()
157 unmarshaledEvent.initFromParcel(parcel); in testMarshaling2()
DAccessibilityWindowInfoTest.java43 Parcel parcel = Parcel.obtain(); in testParceling() local
45 w1.writeToParcel(parcel, 0); in testParceling()
46 parcel.setDataPosition(0); in testParceling()
47 AccessibilityWindowInfo w2 = AccessibilityWindowInfo.CREATOR.createFromParcel(parcel); in testParceling()

123