Home
last modified time | relevance | path

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

/aosp14/frameworks/base/core/tests/coretests/src/android/service/controls/templates/
H A 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
72 assertTrue(fromParcel instanceof ToggleTemplate); in testUnparcelingCorrectClass_toggle()
79 ControlTemplate fromParcel = parcelAndUnparcel(toParcel); in testUnparcelingCorrectClass_range() local
82 assertTrue(fromParcel instanceof RangeTemplate); in testUnparcelingCorrectClass_range()
110 ControlTemplate fromParcel = parcelAndUnparcel(toParcel); in testUnparcelingCorrectClass_thumbnail() local
113 assertTrue(fromParcel instanceof ThumbnailTemplate); in testUnparcelingCorrectClass_thumbnail()
121 ControlTemplate fromParcel = parcelAndUnparcel(toParcel); in testUnparcelingCorrectClass_toggleRange() local
124 assertTrue(fromParcel instanceof ToggleRangeTemplate); in testUnparcelingCorrectClass_toggleRange()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/service/controls/actions/
H A 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 …]
/aosp14/frameworks/base/core/tests/coretests/src/android/app/
H A DNotificationChannelGroupTest.java68 NotificationChannelGroup fromParcel = in testLongStringFields() local
70 assertEquals(NotificationChannelGroup.MAX_TEXT_LENGTH, fromParcel.getId().length()); in testLongStringFields()
71 assertEquals(NotificationChannelGroup.MAX_TEXT_LENGTH, fromParcel.getName().length()); in testLongStringFields()
73 fromParcel.getDescription().length()); in testLongStringFields()
84 NotificationChannelGroup fromParcel = in testNullableFields() local
86 assertEquals(group.getId(), fromParcel.getId()); in testNullableFields()
87 assertTrue(TextUtils.isEmpty(fromParcel.getName())); in testNullableFields()
H A DAutomaticZenRuleTest.java140 AutomaticZenRule fromParcel = new AutomaticZenRule(parcel); in testLongInputsFromParcel() local
141 assertEquals(AutomaticZenRule.MAX_STRING_LENGTH, fromParcel.getName().length()); in testLongInputsFromParcel()
143 fromParcel.getConditionId().toString().length()); in testLongInputsFromParcel()
145 fromParcel.getConfigurationActivity().getPackageName().length()); in testLongInputsFromParcel()
147 fromParcel.getConfigurationActivity().getClassName().length()); in testLongInputsFromParcel()
149 fromParcel.getOwner().getPackageName().length()); in testLongInputsFromParcel()
151 fromParcel.getOwner().getClassName().length()); in testLongInputsFromParcel()
H A DNotificationChannelTest.java190 NotificationChannel fromParcel = NotificationChannel.CREATOR.createFromParcel(parcel); in testLongStringFields() local
191 assertEquals(NotificationChannel.MAX_TEXT_LENGTH, fromParcel.getId().length()); in testLongStringFields()
192 assertEquals(NotificationChannel.MAX_TEXT_LENGTH, fromParcel.getName().length()); in testLongStringFields()
194 fromParcel.getDescription().length()); in testLongStringFields()
196 fromParcel.getParentChannelId().length()); in testLongStringFields()
198 fromParcel.getGroup().length()); in testLongStringFields()
200 fromParcel.getConversationId().length()); in testLongStringFields()
215 NotificationChannel fromParcel = NotificationChannel.CREATOR.createFromParcel(parcel); in testLongAlertFields() local
217 fromParcel.getVibrationPattern().length); in testLongAlertFields()
219 fromParcel.getSound().toString().length()); in testLongAlertFields()
/aosp14/frameworks/base/keystore/tests/src/android/security/
H A DParcelableKeyGenParameterSpecTest.java135 ParcelableKeyGenParameterSpec fromParcel = in testParcelingWithAllValues() local
137 validateSpecValues(fromParcel.getSpec(), KeyProperties.NAMESPACE_WIFI, ALIAS); in testParcelingWithAllValues()
147 KeyGenParameterSpec fromParcel = ParcelableKeyGenParameterSpec.CREATOR in testParcelingWithNullValues() local
150 assertThat(fromParcel.getKeystoreAlias(), is(ALIAS)); in testParcelingWithNullValues()
151 assertThat(fromParcel.getPurposes(), is(KEY_PURPOSES)); in testParcelingWithNullValues()
152 assertThat(fromParcel.getCertificateNotBefore(), is(new Date(0L))); in testParcelingWithNullValues()
153 assertThat(fromParcel.getCertificateNotAfter(), is(new Date(2461449600000L))); in testParcelingWithNullValues()
167 KeyGenParameterSpec fromParcel = in testParcelingRSAAlgoParameter() local
170 (RSAKeyGenParameterSpec) fromParcel.getAlgorithmParameterSpec(); in testParcelingRSAAlgoParameter()
185 KeyGenParameterSpec fromParcel = in testParcelingECAlgoParameter() local
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/service/notification/
H A DConditionTest.java95 Condition fromParcel = new Condition(parcel); in testLongFields_viaParcel() local
96 assertEquals(Condition.MAX_STRING_LENGTH, fromParcel.id.toString().length()); in testLongFields_viaParcel()
97 assertEquals(Condition.MAX_STRING_LENGTH, fromParcel.summary.length()); in testLongFields_viaParcel()
98 assertEquals(Condition.MAX_STRING_LENGTH, fromParcel.line1.length()); in testLongFields_viaParcel()
99 assertEquals(Condition.MAX_STRING_LENGTH, fromParcel.line2.length()); in testLongFields_viaParcel()
/aosp14/frameworks/base/tests/Internal/src/android/app/
H A 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()
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
H A 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()
/aosp14/frameworks/base/core/tests/coretests/src/android/security/keystore/recovery/
H A DKeyDerivationParamsTest.java70 KeyDerivationParams fromParcel = in writeToThenReadFromParcel() local
73 return fromParcel; in writeToThenReadFromParcel()
H A DRecoveryCertPathTest.java71 RecoveryCertPath fromParcel = RecoveryCertPath.CREATOR.createFromParcel(parcel); in writeToThenReadFromParcel() local
73 return fromParcel; in writeToThenReadFromParcel()
H A DKeyChainProtectionParamsTest.java97 KeyChainProtectionParams fromParcel = in writeToThenReadFromParcel() local
100 return fromParcel; in writeToThenReadFromParcel()
H A DKeyChainSnapshotTest.java211 KeyChainSnapshot fromParcel = KeyChainSnapshot.CREATOR.createFromParcel(parcel); in writeToThenReadFromParcel() local
213 return fromParcel; in writeToThenReadFromParcel()
/aosp14/frameworks/base/core/tests/coretests/src/android/service/euicc/
H A 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()
/aosp14/frameworks/base/apct-tests/perftests/packagemanager/src/android/os/
H A DPackageParsingPerfTest.kt239 return fromParcel(parcel).also {
265 protected abstract fun fromParcel(parcel: Parcel): PackageType regex
272 override fun fromParcel(parcel: Parcel) = PackageParser.Package(parcel)
279 override fun fromParcel(parcel: Parcel) =
/aosp14/frameworks/base/core/java/android/hardware/soundtrigger/
H A 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 …]
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DZenPolicyTest.java563 ZenPolicy fromParcel = ZenPolicy.CREATOR.createFromParcel(parcel); in testTooLongLists_fromParcel() local
566 assertAllPriorityCategoriesUnsetExcept(fromParcel, -1); in testTooLongLists_fromParcel()
567 assertAllVisualEffectsUnsetExcept(fromParcel, -1); in testTooLongLists_fromParcel()
575 ArrayList<Integer> pcList = (ArrayList<Integer>) priorityCategories.get(fromParcel); in testTooLongLists_fromParcel()
581 ArrayList<Integer> veList = (ArrayList<Integer>) visualEffects.get(fromParcel); in testTooLongLists_fromParcel()
/aosp14/frameworks/base/telephony/java/android/telephony/ims/
H A DSipDelegateConfiguration.java192 public static IpSecConfiguration fromParcel(Parcel source) { in fromParcel() method in SipDelegateConfiguration.IpSecConfiguration
589 mIpSecConfiguration = IpSecConfiguration.fromParcel(source); in SipDelegateConfiguration()
/aosp14/frameworks/base/boot/hiddenapi/
H A Dhiddenapi-max-target-o.txt22038 Landroid/hardware/soundtrigger/SoundTrigger$ConfidenceLevel;->fromParcel(Landroid/os/Parcel;)Landro…
22042 Landroid/hardware/soundtrigger/SoundTrigger$GenericSoundModel;->fromParcel(Landroid/os/Parcel;)Land…
22044 Landroid/hardware/soundtrigger/SoundTrigger$Keyphrase;->fromParcel(Landroid/os/Parcel;)Landroid/har…
22048 Landroid/hardware/soundtrigger/SoundTrigger$KeyphraseRecognitionExtra;->fromParcel(Landroid/os/Parc…
22050 Landroid/hardware/soundtrigger/SoundTrigger$KeyphraseSoundModel;->fromParcel(Landroid/os/Parcel;)La…
22053 Landroid/hardware/soundtrigger/SoundTrigger$ModuleProperties;->fromParcel(Landroid/os/Parcel;)Landr…
22066 Landroid/hardware/soundtrigger/SoundTrigger$RecognitionConfig;->fromParcel(Landroid/os/Parcel;)Land…
22072 Landroid/hardware/soundtrigger/SoundTrigger$RecognitionEvent;->fromParcel(Landroid/os/Parcel;)Landr…
22082 Landroid/hardware/soundtrigger/SoundTrigger$SoundModelEvent;->fromParcel(Landroid/os/Parcel;)Landro…