/cts/tests/controls/src/android/controls/cts/ |
D | CtsControlTemplateTest.java | 71 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/ |
D | ResolverTargetTest.java | 69 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/ |
D | CVE_2022_20485.java | 86 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/ |
D | ContentInfoTest.java | 263 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/ |
D | ActivityIdTest.java | 47 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/ |
D | SharedConnectivitySettingsStateTest.java | 71 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()
|
D | KnownNetworkTest.java | 103 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()
|
D | KnownNetworkConnectionStatusTest.java | 90 KnownNetworkConnectionStatus fromParcel = in parcelOperation() local 93 assertThat(fromParcel).isEqualTo(status); in parcelOperation() 94 assertThat(fromParcel.hashCode()).isEqualTo(status.hashCode()); in parcelOperation()
|
D | HotspotNetworkConnectionStatusTest.java | 94 HotspotNetworkConnectionStatus fromParcel = in parcelOperation() local 97 assertThat(fromParcel).isEqualTo(status); in parcelOperation() 98 assertThat(fromParcel.hashCode()).isEqualTo(status.hashCode()); in parcelOperation()
|
D | NetworkProviderInfoTest.java | 75 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/ |
D | GetDefaultDownloadableSubscriptionListResultTest.java | 88 GetDefaultDownloadableSubscriptionListResult fromParcel = in testWriteToParcel() local 91 assertEquals(EuiccService.RESULT_RESOLVABLE_ERRORS, fromParcel.getResult()); in testWriteToParcel() 92 assertNull(fromParcel.getDownloadableSubscriptions()); in testWriteToParcel()
|
D | GetDownloadableSubscriptionMetadataResultTest.java | 88 GetDownloadableSubscriptionMetadataResult fromParcel = in testWriteToParcel() local 91 assertEquals(EuiccService.RESULT_RESOLVABLE_ERRORS, fromParcel.getResult()); in testWriteToParcel() 92 assertNull(fromParcel.getDownloadableSubscription()); in testWriteToParcel()
|
D | GetEuiccProfileInfoListResultTest.java | 97 GetEuiccProfileInfoListResult fromParcel = in testWriteToParcel() local 100 assertEquals(EuiccService.RESULT_RESOLVABLE_ERRORS, fromParcel.getResult()); in testWriteToParcel()
|
D | EuiccProfileInfoTest.java | 87 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/ |
D | GnssSignalTypeTest.java | 65 GnssSignalType fromParcel = GnssSignalType.CREATOR.createFromParcel(parcel); in testWriteToParcel() local 67 assertEquals(signalType, fromParcel); in testWriteToParcel()
|
D | GnssAutomaticGainControlTest.java | 64 GnssAutomaticGainControl fromParcel = GnssAutomaticGainControl.CREATOR.createFromParcel( in testWriteToParcel() local 67 assertEquals(agc, fromParcel); in testWriteToParcel()
|
D | GnssMeasurementRequestTest.java | 55 GnssMeasurementRequest fromParcel = GnssMeasurementRequest.CREATOR.createFromParcel(parcel); in testWriteToParcel() local 57 assertEquals(request, fromParcel); in testWriteToParcel()
|
D | GnssStatusTest.java | 69 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/ |
D | AntennaPositionTest.java | 71 AntennaPosition fromParcel = AntennaPosition.CREATOR.createFromParcel(parcel); in testParcel() local 72 assertThat(antennaPosition).isEqualTo(fromParcel); in testParcel()
|
D | AntennaDirectionTest.java | 62 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/ |
D | NotificationChannelGroupTest.java | 68 NotificationChannelGroup fromParcel = in testWriteToParcel() local 70 assertEquals(group, fromParcel); in testWriteToParcel()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | MagnificationConfigTest.java | 57 MagnificationConfig fromParcel = in testMarshaling() local 61 assertEqualsMagnificationConfig(magnificationConfig, fromParcel); in testMarshaling()
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | StyleSpanTest.java | 46 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/ |
D | GnssSingleSatCorrectionTest.java | 74 GnssSingleSatCorrection fromParcel = in testWriteToParcelWithoutSomeOptionalFields() local 76 assertEquals(object, fromParcel); in testWriteToParcelWithoutSomeOptionalFields()
|
D | GnssMeasurementRequestTest.java | 127 GnssMeasurementRequest fromParcel = GnssMeasurementRequest.CREATOR.createFromParcel(parcel); in writeToParcelAndAssert() local 129 assertEquals(request, fromParcel); in writeToParcelAndAssert()
|