Home
last modified time | relevance | path

Searched refs:fromParcel (Results 1 – 18 of 18) sorted by relevance

/cts/tests/controls/src/android/controls/cts/
DCtsControlTemplateTest.java70 ControlTemplate fromParcel = parcelAndUnparcel(toParcel); in testUnparcelingCorrectClass_none() local
72 assertEquals(ControlTemplate.getNoTemplateObject(), fromParcel); in testUnparcelingCorrectClass_none() local
79 ControlTemplate fromParcel = parcelAndUnparcel(toParcel); in testUnparcelingCorrectClass_toggle() local
81 assertEquals(ControlTemplate.TYPE_TOGGLE, fromParcel.getTemplateType()); in testUnparcelingCorrectClass_toggle()
82 assertTrue(fromParcel instanceof ToggleTemplate); in testUnparcelingCorrectClass_toggle()
89 ControlTemplate fromParcel = parcelAndUnparcel(toParcel); in testUnparcelingCorrectClass_range() local
91 assertEquals(ControlTemplate.TYPE_RANGE, fromParcel.getTemplateType()); in testUnparcelingCorrectClass_range()
92 assertTrue(fromParcel instanceof RangeTemplate); in testUnparcelingCorrectClass_range()
120 ControlTemplate fromParcel = parcelAndUnparcel(toParcel); in testUnparcelingCorrectClass_thumbnail() local
122 assertEquals(ControlTemplate.TYPE_THUMBNAIL, fromParcel.getTemplateType()); in testUnparcelingCorrectClass_thumbnail()
[all …]
/cts/tests/tests/resolverservice/src/android/service/resolver/cts/
DResolverTargetTest.java69 ResolverTarget fromParcel = ResolverTarget.CREATOR.createFromParcel(parcel); in sanityCheckParcelability() local
71 assertThat(fromParcel.getChooserScore(), is(1.0f)); in sanityCheckParcelability()
72 assertThat(fromParcel.getLaunchScore(), is(0.5f)); in sanityCheckParcelability()
73 assertThat(fromParcel.getRecencyScore(), is(0.3f)); in sanityCheckParcelability()
74 assertThat(fromParcel.getSelectProbability(), is(0.2f)); in sanityCheckParcelability()
75 assertThat(fromParcel.getTimeSpentScore(), is(0.1f)); in sanityCheckParcelability()
/cts/tests/tests/view/receivecontent/src/android/view/cts/receivecontent/
DContentInfoTest.java230 ContentInfo fromParcel = parcelAndUnparcel(original); in testParcel_withMinimalMetadata() local
231 assertThat(fromParcel.getClip().getItemAt(0).getText()).isEqualTo("Hello"); in testParcel_withMinimalMetadata()
232 assertThat(fromParcel.getSource()).isEqualTo(SOURCE_AUTOFILL); in testParcel_withMinimalMetadata()
233 assertThat(fromParcel.getFlags()).isEqualTo(0); in testParcel_withMinimalMetadata()
234 assertThat(fromParcel.getLinkUri()).isEqualTo(null); in testParcel_withMinimalMetadata()
235 assertThat(fromParcel.getExtras()).isEqualTo(null); in testParcel_withMinimalMetadata()
249 ContentInfo fromParcel = parcelAndUnparcel(original); in testParcel_withAllMetadata() local
250 assertThat(fromParcel.getClip().getItemAt(0).getText()).isEqualTo("Hello"); in testParcel_withAllMetadata()
251 assertThat(fromParcel.getSource()).isEqualTo(original.getSource()); in testParcel_withAllMetadata()
252 assertThat(fromParcel.getFlags()).isEqualTo(original.getFlags()); in testParcel_withAllMetadata()
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/euicc/cts/
DGetDownloadableSubscriptionMetadataResultTest.java75 GetDownloadableSubscriptionMetadataResult fromParcel = in testWriteToParcel() local
78 assertEquals(EuiccService.RESULT_RESOLVABLE_ERRORS, fromParcel.getResult()); in testWriteToParcel()
79 assertNull(fromParcel.getDownloadableSubscription()); in testWriteToParcel()
DGetDefaultDownloadableSubscriptionListResultTest.java75 GetDefaultDownloadableSubscriptionListResult fromParcel = in testWriteToParcel() local
78 assertEquals(EuiccService.RESULT_RESOLVABLE_ERRORS, fromParcel.getResult()); in testWriteToParcel()
79 assertNull(fromParcel.getDownloadableSubscriptions()); in testWriteToParcel()
DEuiccProfileInfoTest.java67 EuiccProfileInfo fromParcel = EuiccProfileInfo.CREATOR.createFromParcel(parcel); in testWriteToParcel() local
69 assertEquals(p, fromParcel); in testWriteToParcel()
92 EuiccProfileInfo fromParcel = EuiccProfileInfo.CREATOR.createFromParcel(parcel); in testWriteToParcelNullCarrierId() local
94 assertEquals(p, fromParcel); in testWriteToParcelNullCarrierId()
/cts/tests/uwb/src/android/uwb/cts/
DSessionHandleTest.java50 SessionHandle fromParcel = SessionHandle.CREATOR.createFromParcel(parcel); in testParcel() local
51 assertEquals(handle, fromParcel); in testParcel()
DUwbAddressTest.java77 UwbAddress fromParcel = UwbAddress.CREATOR.createFromParcel(parcel); in runParcel() local
78 assertEquals(address, fromParcel); in runParcel()
DAngleOfArrivalMeasurementTest.java75 AngleOfArrivalMeasurement fromParcel = in testParcel() local
77 assertEquals(measurement, fromParcel); in testParcel()
DDistanceMeasurementTest.java84 DistanceMeasurement fromParcel = in testParcel() local
86 assertEquals(measurement, fromParcel); in testParcel()
DAngleMeasurementTest.java92 AngleMeasurement fromParcel = AngleMeasurement.CREATOR.createFromParcel(parcel); in testParcel() local
93 assertEquals(measurement, fromParcel); in testParcel()
DRangingReportTest.java89 RangingReport fromParcel = RangingReport.CREATOR.createFromParcel(parcel); in testParcel() local
90 assertEquals(report, fromParcel); in testParcel()
DRangingMeasurementTest.java96 RangingMeasurement fromParcel = RangingMeasurement.CREATOR.createFromParcel(parcel); in testParcel() local
97 assertEquals(measurement, fromParcel); in testParcel()
/cts/tests/app/src/android/app/cts/
DNotificationChannelGroupTest.java59 NotificationChannelGroup fromParcel = in testWriteToParcel() local
61 assertEquals(group, fromParcel); in testWriteToParcel()
/cts/tests/location/location_none/src/android/location/cts/none/
DGnssMeasurementRequestTest.java50 GnssMeasurementRequest fromParcel = GnssMeasurementRequest.CREATOR.createFromParcel(parcel); in testWriteToParcel() local
52 assertEquals(request, fromParcel); in testWriteToParcel()
DGnssStatusTest.java69 GnssStatus fromParcel = GnssStatus.CREATOR.createFromParcel(parcel); in testRoundtrip() local
70 assertEquals(gnssStatus, fromParcel); in testRoundtrip()
/cts/tests/location/location_privileged/src/android/location/cts/privileged/
DGnssMeasurementRequestTest.java73 GnssMeasurementRequest fromParcel = GnssMeasurementRequest.CREATOR.createFromParcel(parcel); in testWriteToParcel() local
75 assertEquals(request, fromParcel); in testWriteToParcel()
/cts/tests/tests/text/src/android/text/style/cts/
DStyleSpanTest.java44 StyleSpan fromParcel = new StyleSpan(p); in testConstructor() local
45 assertEquals(2, fromParcel.getStyle()); in testConstructor()