Home
last modified time | relevance | path

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

12

/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 …]
DScanResultTest.java48 Parcel parcel = Parcel.obtain(); in testScanResultParceling() local
49 result.writeToParcel(parcel, 0); in testScanResultParceling()
51 parcel.setDataPosition(0); in testScanResultParceling()
52 ScanResult resultFromParcel = ScanResult.CREATOR.createFromParcel(parcel); in testScanResultParceling()
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()
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()
DScanFilterTest.java231 Parcel parcel = Parcel.obtain(); in testReadWriteParcelForFilter() local
232 filter.writeToParcel(parcel, 0); in testReadWriteParcelForFilter()
233 parcel.setDataPosition(0); in testReadWriteParcelForFilter()
235 ScanFilter.CREATOR.createFromParcel(parcel); in testReadWriteParcelForFilter()
/cts/tests/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 …]
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 …]
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 …]
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.java56 Parcel parcel = Parcel.obtain(); in testWriteToParcel() local
57 mRunningServiceInfo.writeToParcel(parcel, 0); in testWriteToParcel()
58 parcel.setDataPosition(0); in testWriteToParcel()
60 ActivityManager.RunningServiceInfo.CREATOR.createFromParcel(parcel); in testWriteToParcel()
75 Parcel parcel = Parcel.obtain(); in testReadFromParcel() local
76 mRunningServiceInfo.writeToParcel(parcel, 0); in testReadFromParcel()
77 parcel.setDataPosition(0); in testReadFromParcel()
80 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()
DPendingIntentTest.java425 Parcel parcel = Parcel.obtain(); in testWriteToParcel() local
427 mPendingIntent.writeToParcel(parcel, 0); in testWriteToParcel()
428 parcel.setDataPosition(0); in testWriteToParcel()
429 PendingIntent pendingIntent = PendingIntent.CREATOR.createFromParcel(parcel); in testWriteToParcel()
439 Parcel parcel = Parcel.obtain(); in testReadAndWritePendingIntentOrNullToParcel() local
440 PendingIntent.writePendingIntentOrNullToParcel(mPendingIntent, parcel); in testReadAndWritePendingIntentOrNullToParcel()
441 parcel.setDataPosition(0); in testReadAndWritePendingIntentOrNullToParcel()
442 PendingIntent target = PendingIntent.readPendingIntentOrNullFromParcel(parcel); in testReadAndWritePendingIntentOrNullToParcel()
447 parcel = Parcel.obtain(); in testReadAndWritePendingIntentOrNullToParcel()
448 PendingIntent.writePendingIntentOrNullToParcel(mPendingIntent, parcel); in testReadAndWritePendingIntentOrNullToParcel()
[all …]
/cts/tests/tests/location/src/android/location/cts/
DAddressTest.java277 Parcel parcel = Parcel.obtain(); in testWriteToParcel() local
278 address.writeToParcel(parcel, 0); in testWriteToParcel()
279 parcel.setDataPosition(0); in testWriteToParcel()
280 assertEquals(locale.getLanguage(), parcel.readString()); in testWriteToParcel()
281 assertEquals(locale.getCountry(), parcel.readString()); in testWriteToParcel()
282 assertEquals(0, parcel.readInt()); in testWriteToParcel()
283 assertEquals(address.getFeatureName(), parcel.readString()); in testWriteToParcel()
284 assertEquals(address.getAdminArea(), parcel.readString()); in testWriteToParcel()
285 assertEquals(address.getSubAdminArea(), parcel.readString()); in testWriteToParcel()
286 assertEquals(address.getLocality(), parcel.readString()); in testWriteToParcel()
[all …]
DCriteriaTest.java208 Parcel parcel = Parcel.obtain(); in testWriteToParcel() local
209 criteria.writeToParcel(parcel, 0); in testWriteToParcel()
210 parcel.setDataPosition(0); in testWriteToParcel()
212 Criteria newCriteria = Criteria.CREATOR.createFromParcel(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("com.android.cts.content", parcel.readString()); in testWriteToParcel()
200 assertEquals("android.content.cts.ComponentNameTest", parcel.readString()); in testWriteToParcel()
[all …]
/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/tests/content/src/android/content/res/cts/
DColorStateListTest.java61 final Parcel parcel = Parcel.obtain(); in testColorStateList() local
62 c.writeToParcel(parcel, 0); in testColorStateList()
63 parcel.setDataPosition(0); in testColorStateList()
64 ColorStateList actual = ColorStateList.CREATOR.createFromParcel(parcel); in testColorStateList()
DAssetFileDescriptorTest.java167 Parcel parcel = Parcel.obtain(); in testMiscMethod() local
168 mAssetFileDes.writeToParcel(parcel, 0); in testMiscMethod()
169 parcel.setDataPosition(0); in testMiscMethod()
170 AssetFileDescriptor out = AssetFileDescriptor.CREATOR.createFromParcel(parcel); in testMiscMethod()
/cts/tests/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()
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityServiceInfoTest.java38 Parcel parcel = Parcel.obtain(); in testMarshalling() local
39 sentInfo.writeToParcel(parcel, 0); in testMarshalling()
40 parcel.setDataPosition(0); in testMarshalling()
42 .createFromParcel(parcel); in testMarshalling()
/cts/tests/tests/view/src/android/view/cts/
DWindowManager_LayoutParamsTest.java75 Parcel parcel = Parcel.obtain(); in testConstructor() local
76 mLayoutParams.writeToParcel(parcel, 0); in testConstructor()
77 parcel.setDataPosition(0); in testConstructor()
79 new WindowManager.LayoutParams(parcel); in testConstructor()
210 Parcel parcel = Parcel.obtain(); in testWriteToParcel() local
212 mLayoutParams.writeToParcel(parcel, 0); in testWriteToParcel()
213 parcel.setDataPosition(0); in testWriteToParcel()
215 WindowManager.LayoutParams.CREATOR.createFromParcel(parcel); in testWriteToParcel()
/cts/tests/tests/database/src/android/database/cts/
DDatabaseUtilsTest.java494 Parcel parcel = Parcel.obtain(); in testExceptionFromParcel() local
495 DatabaseUtils.writeExceptionToParcel(parcel, new IllegalArgumentException()); in testExceptionFromParcel()
496 parcel.setDataPosition(0); in testExceptionFromParcel()
498 DatabaseUtils.readExceptionFromParcel(parcel); in testExceptionFromParcel()
504 parcel = Parcel.obtain(); in testExceptionFromParcel()
505 DatabaseUtils.writeExceptionToParcel(parcel, new SQLiteAbortException()); in testExceptionFromParcel()
506 parcel.setDataPosition(0); in testExceptionFromParcel()
508 DatabaseUtils.readExceptionFromParcel(parcel); in testExceptionFromParcel()
514 parcel = Parcel.obtain(); in testExceptionFromParcel()
515 DatabaseUtils.writeExceptionToParcel(parcel, new FileNotFoundException()); in testExceptionFromParcel()
[all …]
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DIconTest.java191 Parcel parcel = Parcel.obtain(); in checkIconValidity() local
192 icon.writeToParcel(parcel, 0); in checkIconValidity()
194 parcel.setDataPosition(0); in checkIconValidity()
195 assertNotNull(Icon.CREATOR.createFromParcel(parcel)); in checkIconValidity()
/cts/tests/tests/os/src/android/os/cts/
DMessengerTest.java161 Parcel parcel = Parcel.obtain(); in testWriteToParcel() local
162 mMessenger.writeToParcel(parcel, 0); in testWriteToParcel()
163 parcel.setDataPosition(0); in testWriteToParcel()
164 Messenger messenger = Messenger.CREATOR.createFromParcel(parcel); in testWriteToParcel()
166 parcel.recycle(); in testWriteToParcel()
DMessageTest.java190 Parcel parcel = Parcel.obtain(); in testWriteToParcel() local
191 message.writeToParcel(parcel, 0); in testWriteToParcel()
192 parcel.setDataPosition(0); in testWriteToParcel()
193 mMessage = Message.CREATOR.createFromParcel(parcel); in testWriteToParcel()
202 message.writeToParcel(parcel, 1); in testWriteToParcel()

12