Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/android/service/controls/actions/
DControlActionTest.java42 ControlAction fromParcel = parcelAndUnparcel(toParcel); in testUnparcelingCorrectClass_boolean() local
44 assertEquals(ControlAction.TYPE_BOOLEAN, fromParcel.getActionType()); in testUnparcelingCorrectClass_boolean()
45 assertTrue(fromParcel instanceof BooleanAction); in testUnparcelingCorrectClass_boolean()
52 ControlAction fromParcel = parcelAndUnparcel(toParcel); in testUnparcelingCorrectClass_float() local
54 assertEquals(ControlAction.TYPE_FLOAT, fromParcel.getActionType()); in testUnparcelingCorrectClass_float()
55 assertTrue(fromParcel instanceof FloatAction); in testUnparcelingCorrectClass_float()
62 ControlAction fromParcel = parcelAndUnparcel(toParcel); in testUnparcelingCorrectClass_mode() local
64 assertEquals(ControlAction.TYPE_MODE, fromParcel.getActionType()); in testUnparcelingCorrectClass_mode()
65 assertTrue(fromParcel instanceof ModeAction); in testUnparcelingCorrectClass_mode()
72 ControlAction fromParcel = parcelAndUnparcel(toParcel); in testUnparcelingCorrectClass_command() local
[all …]
/frameworks/base/core/tests/coretests/src/android/service/controls/templates/
DControlTemplateTest.java60 ControlTemplate fromParcel = parcelAndUnparcel(toParcel); in testUnparcelingCorrectClass_none() local
62 assertEquals(ControlTemplate.NO_TEMPLATE, fromParcel); in testUnparcelingCorrectClass_none()
69 ControlTemplate fromParcel = parcelAndUnparcel(toParcel); in testUnparcelingCorrectClass_toggle() local
71 assertEquals(ControlTemplate.TYPE_TOGGLE, fromParcel.getTemplateType()); in testUnparcelingCorrectClass_toggle()
72 assertTrue(fromParcel instanceof ToggleTemplate); in testUnparcelingCorrectClass_toggle()
79 ControlTemplate fromParcel = parcelAndUnparcel(toParcel); in testUnparcelingCorrectClass_range() local
81 assertEquals(ControlTemplate.TYPE_RANGE, fromParcel.getTemplateType()); in testUnparcelingCorrectClass_range()
82 assertTrue(fromParcel instanceof RangeTemplate); in testUnparcelingCorrectClass_range()
110 ControlTemplate fromParcel = parcelAndUnparcel(toParcel); in testUnparcelingCorrectClass_thumbnail() local
112 assertEquals(ControlTemplate.TYPE_THUMBNAIL, fromParcel.getTemplateType()); in testUnparcelingCorrectClass_thumbnail()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/
DNotificationChannelGroupTest.java69 NotificationChannelGroup fromParcel = in testLongStringFields() local
71 assertEquals(NotificationChannelGroup.MAX_TEXT_LENGTH, fromParcel.getId().length()); in testLongStringFields()
72 assertEquals(NotificationChannelGroup.MAX_TEXT_LENGTH, fromParcel.getName().length()); in testLongStringFields()
74 fromParcel.getDescription().length()); in testLongStringFields()
85 NotificationChannelGroup fromParcel = in testNullableFields() local
87 assertEquals(group.getId(), fromParcel.getId()); in testNullableFields()
88 assertTrue(TextUtils.isEmpty(fromParcel.getName())); in testNullableFields()
DAutomaticZenRuleTest.java156 AutomaticZenRule fromParcel = new AutomaticZenRule(parcel); in testLongInputsFromParcel() local
157 assertEquals(AutomaticZenRule.MAX_STRING_LENGTH, fromParcel.getName().length()); in testLongInputsFromParcel()
159 fromParcel.getConditionId().toString().length()); in testLongInputsFromParcel()
161 fromParcel.getConfigurationActivity().getPackageName().length()); in testLongInputsFromParcel()
163 fromParcel.getConfigurationActivity().getClassName().length()); in testLongInputsFromParcel()
165 fromParcel.getOwner().getPackageName().length()); in testLongInputsFromParcel()
167 fromParcel.getOwner().getClassName().length()); in testLongInputsFromParcel()
168 assertEquals(AutomaticZenRule.MAX_DESC_LENGTH, fromParcel.getTriggerDescription().length()); in testLongInputsFromParcel()
DNotificationChannelTest.java205 NotificationChannel fromParcel = NotificationChannel.CREATOR.createFromParcel(parcel); in testLongStringFields() local
206 assertEquals(NotificationChannel.MAX_TEXT_LENGTH, fromParcel.getId().length()); in testLongStringFields()
207 assertEquals(NotificationChannel.MAX_TEXT_LENGTH, fromParcel.getName().length()); in testLongStringFields()
209 fromParcel.getDescription().length()); in testLongStringFields()
211 fromParcel.getParentChannelId().length()); in testLongStringFields()
213 fromParcel.getGroup().length()); in testLongStringFields()
215 fromParcel.getConversationId().length()); in testLongStringFields()
230 NotificationChannel fromParcel = NotificationChannel.CREATOR.createFromParcel(parcel); in testLongAlertFields() local
232 fromParcel.getVibrationPattern().length); in testLongAlertFields()
234 fromParcel.getSound().toString().length()); in testLongAlertFields()
/frameworks/base/keystore/tests/src/android/security/
DParcelableKeyGenParameterSpecTest.java137 ParcelableKeyGenParameterSpec fromParcel = in testParcelingWithAllValues() local
139 validateSpecValues(fromParcel.getSpec(), KeyProperties.NAMESPACE_WIFI, ALIAS); in testParcelingWithAllValues()
149 KeyGenParameterSpec fromParcel = ParcelableKeyGenParameterSpec.CREATOR in testParcelingWithNullValues() local
152 assertThat(fromParcel.getKeystoreAlias(), is(ALIAS)); in testParcelingWithNullValues()
153 assertThat(fromParcel.getPurposes(), is(KEY_PURPOSES)); in testParcelingWithNullValues()
154 assertThat(fromParcel.getCertificateNotBefore(), is(new Date(0L))); in testParcelingWithNullValues()
155 assertThat(fromParcel.getCertificateNotAfter(), is(new Date(2461449600000L))); in testParcelingWithNullValues()
169 KeyGenParameterSpec fromParcel = in testParcelingRSAAlgoParameter() local
172 (RSAKeyGenParameterSpec) fromParcel.getAlgorithmParameterSpec(); in testParcelingRSAAlgoParameter()
187 KeyGenParameterSpec fromParcel = in testParcelingECAlgoParameter() local
[all …]
/frameworks/base/core/tests/coretests/src/android/service/notification/
DConditionTest.java107 Condition fromParcel = new Condition(parcel); in testLongFields_viaParcel_classic() local
108 assertEquals(Condition.MAX_STRING_LENGTH, fromParcel.id.toString().length()); in testLongFields_viaParcel_classic()
109 assertEquals(Condition.MAX_STRING_LENGTH, fromParcel.summary.length()); in testLongFields_viaParcel_classic()
110 assertEquals(Condition.MAX_STRING_LENGTH, fromParcel.line1.length()); in testLongFields_viaParcel_classic()
111 assertEquals(Condition.MAX_STRING_LENGTH, fromParcel.line2.length()); in testLongFields_viaParcel_classic()
164 Condition fromParcel = new Condition(parcel); in testLongFields_viaParcel() local
165 assertThat(fromParcel.id.toString()).hasLength(Condition.MAX_STRING_LENGTH); in testLongFields_viaParcel()
166 assertThat(fromParcel.summary).hasLength(Condition.MAX_STRING_LENGTH); in testLongFields_viaParcel()
167 assertThat(fromParcel.line1).hasLength(Condition.MAX_STRING_LENGTH); in testLongFields_viaParcel()
168 assertThat(fromParcel.line2).hasLength(Condition.MAX_STRING_LENGTH); in testLongFields_viaParcel()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/satellite/
DSatelliteCapabilitiesTest.java59 SatelliteCapabilities fromParcel = SatelliteCapabilities.CREATOR.createFromParcel(p); in testParcel() local
60 assertThat(capabilities).isEqualTo(fromParcel); in testParcel()
82 SatelliteCapabilities fromParcel = SatelliteCapabilities.CREATOR.createFromParcel(p); in testParcel_emptySatelliteRadioTechnologies() local
83 assertThat(capabilities).isEqualTo(fromParcel); in testParcel_emptySatelliteRadioTechnologies()
99 SatelliteCapabilities fromParcel = SatelliteCapabilities.CREATOR.createFromParcel(p); in testParcel_emptyAntennaPosition() local
100 assertThat(capabilities).isEqualTo(fromParcel); in testParcel_emptyAntennaPosition()
DAntennaDirectionTest.java39 AntennaDirection fromParcel = AntennaDirection.CREATOR.createFromParcel(p); in testParcel() local
40 assertThat(antennaDirection).isEqualTo(fromParcel); in testParcel()
DAntennaPositionTest.java44 AntennaPosition fromParcel = AntennaPosition.CREATOR.createFromParcel(p); in testParcel() local
45 assertThat(antennaPosition).isEqualTo(fromParcel); in testParcel()
/frameworks/base/tests/Internal/src/android/app/
DWallpaperInfoTest.java64 WallpaperInfo fromParcel = WallpaperInfo.CREATOR.createFromParcel(parcel); in testSupportsAmbientMode() local
66 fromParcel.supportsAmbientMode()); in testSupportsAmbientMode()
90 WallpaperInfo fromParcel = WallpaperInfo.CREATOR.createFromParcel(parcel); in testGetSettingsSliceUri() local
92 0, expectedUri.compareTo(fromParcel.getSettingsSliceUri())); in testGetSettingsSliceUri()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DTimestampedScoredNetworkTest.java63 TimestampedScoredNetwork fromParcel = TimestampedScoredNetwork.CREATOR.createFromParcel(parcel); in testParcel() local
65 assertThat(fromParcel.getScore()).isEqualTo(impl.getScore()); in testParcel()
66 assertThat(fromParcel.getUpdatedTimestampMillis()).isEqualTo(impl.getUpdatedTimestampMillis()); in testParcel()
/frameworks/base/core/tests/coretests/src/android/security/keystore/recovery/
DKeyDerivationParamsTest.java70 KeyDerivationParams fromParcel = in writeToThenReadFromParcel() local
73 return fromParcel; in writeToThenReadFromParcel()
DRecoveryCertPathTest.java71 RecoveryCertPath fromParcel = RecoveryCertPath.CREATOR.createFromParcel(parcel); in writeToThenReadFromParcel() local
73 return fromParcel; in writeToThenReadFromParcel()
DKeyChainProtectionParamsTest.java97 KeyChainProtectionParams fromParcel = in writeToThenReadFromParcel() local
100 return fromParcel; in writeToThenReadFromParcel()
DKeyChainSnapshotTest.java211 KeyChainSnapshot fromParcel = KeyChainSnapshot.CREATOR.createFromParcel(parcel); in writeToThenReadFromParcel() local
213 return fromParcel; in writeToThenReadFromParcel()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/data/
DEuiccRulesAuthTableTest.java228 EuiccRulesAuthTable fromParcel = EuiccRulesAuthTable.CREATOR.createFromParcel(parcel); in testWriteToParcel() local
230 assertEquals(rat, fromParcel); in testWriteToParcel()
238 fromParcel = EuiccRulesAuthTable.CREATOR.createFromParcel(parcel); in testWriteToParcel()
240 assertEquals(rat, fromParcel); in testWriteToParcel()
255 fromParcel = EuiccRulesAuthTable.CREATOR.createFromParcel(parcel); in testWriteToParcel()
257 assertEquals(rat, fromParcel); in testWriteToParcel()
/frameworks/base/apct-tests/perftests/packagemanager/src/android/os/
DPackageParsingPerfTest.kt245 return fromParcel(parcel).also { in <lambda>()
271 protected abstract fun fromParcel(parcel: Parcel): PackageType in <lambda>() method in android.os.PackageCacher
278 override fun fromParcel(parcel: Parcel) = PackageParser.Package(parcel) in <lambda>() method
285 override fun fromParcel(parcel: Parcel) = in <lambda>() method
/frameworks/base/core/tests/coretests/src/android/service/euicc/
DEuiccProfileInfoTest.java64 EuiccProfileInfo fromParcel = EuiccProfileInfo.CREATOR.createFromParcel(parcel); in testWriteToParcel() local
66 assertEquals(p, fromParcel); in testWriteToParcel()
89 EuiccProfileInfo fromParcel = EuiccProfileInfo.CREATOR.createFromParcel(parcel); in testWriteToParcelNullCarrierId() local
91 assertEquals(p, fromParcel); in testWriteToParcelNullCarrierId()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/security/
DSecurityAlgorithmUpdateTest.java87 SecurityAlgorithmUpdate fromParcel = SecurityAlgorithmUpdate.CREATOR.createFromParcel(p); in testParcel() local
88 assertThat(fromParcel).isEqualTo(update); in testParcel()
DCellularIdentifierDisclosureTest.java104 android.telephony.CellularIdentifierDisclosure fromParcel = in testParcel() local
106 assertEquals(disclosure, fromParcel); in testParcel()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DBarringInfoTest.java83 BarringInfo fromParcel = BarringInfo.CREATOR.createFromParcel(parcel); in testParcel() local
85 assertEquals(fromParcel, info); in testParcel()
DPhysicalChannelConfigTest.java192 PhysicalChannelConfig fromParcel = PhysicalChannelConfig.CREATOR.createFromParcel(parcel); in testParcel() local
194 assertThat(fromParcel).isEqualTo(mPhysicalChannelConfig); in testParcel()
/frameworks/base/core/java/android/hardware/soundtrigger/
DSoundTrigger.java285 return ModuleProperties.fromParcel(in);
293 private static ModuleProperties fromParcel(Parcel in) { in fromParcel() method in SoundTrigger.ModuleProperties
885 return GenericSoundModel.fromParcel(in);
909 private static GenericSoundModel fromParcel(Parcel in) { in fromParcel() method in SoundTrigger.GenericSoundModel
1340 return RecognitionEvent.fromParcel(in);
1349 protected static RecognitionEvent fromParcel(Parcel in) { in fromParcel() method in SoundTrigger.RecognitionEvent
1554 return RecognitionConfig.fromParcel(in);
1562 private static RecognitionConfig fromParcel(Parcel in) { in fromParcel() method in SoundTrigger.RecognitionConfig
1660 return ConfidenceLevel.fromParcel(in);
1668 private static ConfidenceLevel fromParcel(Parcel in) { in fromParcel() method in SoundTrigger.ConfidenceLevel
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/
DDataProfileTest.java215 DataProfile fromParcel = DataProfile.CREATOR.createFromParcel(parcel); in testParcel() local
217 assertThat(fromParcel).isEqualTo(dp); in testParcel()

12