Home
last modified time | relevance | path

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

12

/cts/tests/controls/src/android/controls/cts/
DCtsControlTemplateTest.java71 ControlTemplate fromParcel = parcelAndUnparcel(toParcel); in testUnparcelingCorrectClass_none() local
73 assertEquals(ControlTemplate.getNoTemplateObject(), fromParcel); in testUnparcelingCorrectClass_none() local
80 ControlTemplate fromParcel = parcelAndUnparcel(toParcel); in testUnparcelingCorrectClass_toggle() local
82 assertEquals(ControlTemplate.TYPE_TOGGLE, fromParcel.getTemplateType()); in testUnparcelingCorrectClass_toggle()
83 assertTrue(fromParcel instanceof ToggleTemplate); in testUnparcelingCorrectClass_toggle()
90 ControlTemplate fromParcel = parcelAndUnparcel(toParcel); in testUnparcelingCorrectClass_range() local
92 assertEquals(ControlTemplate.TYPE_RANGE, fromParcel.getTemplateType()); in testUnparcelingCorrectClass_range()
93 assertTrue(fromParcel instanceof RangeTemplate); in testUnparcelingCorrectClass_range()
121 ControlTemplate fromParcel = parcelAndUnparcel(toParcel); in testUnparcelingCorrectClass_thumbnail() local
123 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/security/src/android/security/cts/
DCVE_2022_20485.java86 NotificationChannelGroup fromParcel = in testLongStringFieldsNotificationChannelGroup() local
88 if (checkId && INPUT_STRING_LENGTH <= fromParcel.getId().length()) { in testLongStringFieldsNotificationChannelGroup()
91 if (checkName && INPUT_STRING_LENGTH <= fromParcel.getName().length()) { in testLongStringFieldsNotificationChannelGroup()
94 if (checkDesc && INPUT_STRING_LENGTH <= fromParcel.getDescription().length()) { in testLongStringFieldsNotificationChannelGroup()
108 NotificationChannelGroup fromParcel = in testNullableFields() local
110 if (checkId && group.getId() == fromParcel.getId()) { in testNullableFields()
113 if (checkName && !TextUtils.isEmpty(fromParcel.getName())) { in testNullableFields()
166 NotificationChannel fromParcel = NotificationChannel.CREATOR.createFromParcel(parcel); in testLongStringFieldsNotificationChannel() local
167 if (checkId && INPUT_STRING_LENGTH <= fromParcel.getId().length()) { in testLongStringFieldsNotificationChannel()
170 if (checkName && INPUT_STRING_LENGTH <= fromParcel.getName().length()) { in testLongStringFieldsNotificationChannel()
[all …]
/cts/tests/tests/view/receivecontent/src/android/view/cts/receivecontent/
DContentInfoTest.java263 ContentInfo fromParcel = parcelAndUnparcel(original); in testParcel_withMinimalMetadata() local
264 assertThat(fromParcel.getClip().getItemAt(0).getText()).isEqualTo("Hello"); in testParcel_withMinimalMetadata()
265 assertThat(fromParcel.getSource()).isEqualTo(SOURCE_AUTOFILL); in testParcel_withMinimalMetadata()
266 assertThat(fromParcel.getFlags()).isEqualTo(0); in testParcel_withMinimalMetadata()
267 assertThat(fromParcel.getLinkUri()).isEqualTo(null); in testParcel_withMinimalMetadata()
268 assertThat(fromParcel.getExtras()).isEqualTo(null); in testParcel_withMinimalMetadata()
283 ContentInfo fromParcel = parcelAndUnparcel(original); in testParcel_withAllMetadata() local
284 assertThat(fromParcel.getClip().getItemAt(0).getText()).isEqualTo("Hello"); in testParcel_withAllMetadata()
285 assertThat(fromParcel.getSource()).isEqualTo(original.getSource()); in testParcel_withAllMetadata()
286 assertThat(fromParcel.getFlags()).isEqualTo(original.getFlags()); in testParcel_withAllMetadata()
[all …]
/cts/tests/tests/assist/src/android/assist/cts/
DActivityIdTest.java47 ActivityId fromParcel = parcelAndUnparcel(original); in testParcel() local
48 assertThat(fromParcel.getTaskId()).isEqualTo(taskId); in testParcel()
49 assertThat(fromParcel.getToken()).isSameInstanceAs(activityId); in testParcel()
/cts/tests/tests/wifi/src/android/net/wifi/sharedconnectivity/cts/app/
DSharedConnectivitySettingsStateTest.java71 SharedConnectivitySettingsState fromParcel = in parcelOperation() local
74 assertThat(fromParcel).isEqualTo(state); in parcelOperation()
75 assertThat(fromParcel.hashCode()).isEqualTo(state.hashCode()); in parcelOperation()
85 SharedConnectivitySettingsState fromParcel = in parcelOperation_noPendingIntent() local
88 assertThat(fromParcel).isEqualTo(state); in parcelOperation_noPendingIntent()
89 assertThat(fromParcel.hashCode()).isEqualTo(state.hashCode()); in parcelOperation_noPendingIntent()
DKnownNetworkTest.java103 KnownNetwork fromParcel = KnownNetwork.CREATOR.createFromParcel(parcelR); in parcelOperation() local
105 assertThat(fromParcel).isEqualTo(network); in parcelOperation()
106 assertThat(fromParcel.hashCode()).isEqualTo(network.hashCode()); in parcelOperation()
121 KnownNetwork fromParcel = KnownNetwork.CREATOR.createFromParcel(parcelR); in parcelOperation_noNetworkProviderInfo() local
123 assertThat(fromParcel).isEqualTo(network); in parcelOperation_noNetworkProviderInfo()
124 assertThat(fromParcel.hashCode()).isEqualTo(network.hashCode()); in parcelOperation_noNetworkProviderInfo()
DKnownNetworkConnectionStatusTest.java90 KnownNetworkConnectionStatus fromParcel = in parcelOperation() local
93 assertThat(fromParcel).isEqualTo(status); in parcelOperation()
94 assertThat(fromParcel.hashCode()).isEqualTo(status.hashCode()); in parcelOperation()
DHotspotNetworkConnectionStatusTest.java94 HotspotNetworkConnectionStatus fromParcel = in parcelOperation() local
97 assertThat(fromParcel).isEqualTo(status); in parcelOperation()
98 assertThat(fromParcel.hashCode()).isEqualTo(status.hashCode()); in parcelOperation()
DNetworkProviderInfoTest.java75 NetworkProviderInfo fromParcel = NetworkProviderInfo.CREATOR.createFromParcel(parcelR); in parcelOperation() local
77 assertThat(fromParcel).isEqualTo(info); in parcelOperation()
78 assertThat(fromParcel.hashCode()).isEqualTo(info.hashCode()); in parcelOperation()
/cts/tests/tests/telephony/current/src/android/telephony/euicc/cts/
DGetDefaultDownloadableSubscriptionListResultTest.java88 GetDefaultDownloadableSubscriptionListResult fromParcel = in testWriteToParcel() local
91 assertEquals(EuiccService.RESULT_RESOLVABLE_ERRORS, fromParcel.getResult()); in testWriteToParcel()
92 assertNull(fromParcel.getDownloadableSubscriptions()); in testWriteToParcel()
DGetDownloadableSubscriptionMetadataResultTest.java88 GetDownloadableSubscriptionMetadataResult fromParcel = in testWriteToParcel() local
91 assertEquals(EuiccService.RESULT_RESOLVABLE_ERRORS, fromParcel.getResult()); in testWriteToParcel()
92 assertNull(fromParcel.getDownloadableSubscription()); in testWriteToParcel()
DGetEuiccProfileInfoListResultTest.java97 GetEuiccProfileInfoListResult fromParcel = in testWriteToParcel() local
100 assertEquals(EuiccService.RESULT_RESOLVABLE_ERRORS, fromParcel.getResult()); in testWriteToParcel()
DEuiccProfileInfoTest.java87 EuiccProfileInfo fromParcel = EuiccProfileInfo.CREATOR.createFromParcel(parcel); in testWriteToParcel() local
89 assertEquals(p, fromParcel); in testWriteToParcel()
112 EuiccProfileInfo fromParcel = EuiccProfileInfo.CREATOR.createFromParcel(parcel); in testWriteToParcelNullCarrierId() local
114 assertEquals(p, fromParcel); in testWriteToParcelNullCarrierId()
/cts/tests/location/location_none/src/android/location/cts/none/
DGnssSignalTypeTest.java65 GnssSignalType fromParcel = GnssSignalType.CREATOR.createFromParcel(parcel); in testWriteToParcel() local
67 assertEquals(signalType, fromParcel); in testWriteToParcel()
DGnssAutomaticGainControlTest.java64 GnssAutomaticGainControl fromParcel = GnssAutomaticGainControl.CREATOR.createFromParcel( in testWriteToParcel() local
67 assertEquals(agc, fromParcel); in testWriteToParcel()
DGnssMeasurementRequestTest.java55 GnssMeasurementRequest fromParcel = GnssMeasurementRequest.CREATOR.createFromParcel(parcel); in testWriteToParcel() local
57 assertEquals(request, fromParcel); in testWriteToParcel()
DGnssStatusTest.java69 GnssStatus fromParcel = GnssStatus.CREATOR.createFromParcel(parcel); in testRoundtrip() local
70 assertEquals(gnssStatus, fromParcel); in testRoundtrip()
/cts/tests/tests/telephony/current/src/android/telephony/satellite/cts/
DAntennaPositionTest.java71 AntennaPosition fromParcel = AntennaPosition.CREATOR.createFromParcel(parcel); in testParcel() local
72 assertThat(antennaPosition).isEqualTo(fromParcel); in testParcel()
DAntennaDirectionTest.java62 AntennaDirection fromParcel = AntennaDirection.CREATOR.createFromParcel(parcel); in testParcel() local
63 assertThat(antennaDirection).isEqualTo(fromParcel); in testParcel()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DNotificationChannelGroupTest.java68 NotificationChannelGroup fromParcel = in testWriteToParcel() local
70 assertEquals(group, fromParcel); in testWriteToParcel()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DMagnificationConfigTest.java57 MagnificationConfig fromParcel = in testMarshaling() local
61 assertEqualsMagnificationConfig(magnificationConfig, fromParcel); in testMarshaling()
/cts/tests/tests/text/src/android/text/style/cts/
DStyleSpanTest.java46 StyleSpan fromParcel = new StyleSpan(p); in testConstructor() local
47 assertEquals(2, fromParcel.getStyle()); in testConstructor()
49 fromParcel.getFontWeightAdjustment()); in testConstructor()
/cts/tests/location/location_privileged/src/android/location/cts/privileged/
DGnssSingleSatCorrectionTest.java74 GnssSingleSatCorrection fromParcel = in testWriteToParcelWithoutSomeOptionalFields() local
76 assertEquals(object, fromParcel); in testWriteToParcelWithoutSomeOptionalFields()
DGnssMeasurementRequestTest.java127 GnssMeasurementRequest fromParcel = GnssMeasurementRequest.CREATOR.createFromParcel(parcel); in writeToParcelAndAssert() local
129 assertEquals(request, fromParcel); in writeToParcelAndAssert()

12