/frameworks/base/core/tests/coretests/src/android/service/controls/actions/ |
D | ControlActionTest.java | 42 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/ |
D | ControlTemplateTest.java | 60 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/ |
D | NotificationChannelGroupTest.java | 69 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()
|
D | AutomaticZenRuleTest.java | 156 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()
|
D | NotificationChannelTest.java | 205 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/ |
D | ParcelableKeyGenParameterSpecTest.java | 137 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/ |
D | ConditionTest.java | 107 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/ |
D | SatelliteCapabilitiesTest.java | 59 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()
|
D | AntennaDirectionTest.java | 39 AntennaDirection fromParcel = AntennaDirection.CREATOR.createFromParcel(p); in testParcel() local 40 assertThat(antennaDirection).isEqualTo(fromParcel); in testParcel()
|
D | AntennaPositionTest.java | 44 AntennaPosition fromParcel = AntennaPosition.CREATOR.createFromParcel(p); in testParcel() local 45 assertThat(antennaPosition).isEqualTo(fromParcel); in testParcel()
|
/frameworks/base/tests/Internal/src/android/app/ |
D | WallpaperInfoTest.java | 64 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/ |
D | TimestampedScoredNetworkTest.java | 63 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/ |
D | KeyDerivationParamsTest.java | 70 KeyDerivationParams fromParcel = in writeToThenReadFromParcel() local 73 return fromParcel; in writeToThenReadFromParcel()
|
D | RecoveryCertPathTest.java | 71 RecoveryCertPath fromParcel = RecoveryCertPath.CREATOR.createFromParcel(parcel); in writeToThenReadFromParcel() local 73 return fromParcel; in writeToThenReadFromParcel()
|
D | KeyChainProtectionParamsTest.java | 97 KeyChainProtectionParams fromParcel = in writeToThenReadFromParcel() local 100 return fromParcel; in writeToThenReadFromParcel()
|
D | KeyChainSnapshotTest.java | 211 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/ |
D | EuiccRulesAuthTableTest.java | 228 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/ |
D | PackageParsingPerfTest.kt | 245 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/ |
D | EuiccProfileInfoTest.java | 64 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/ |
D | SecurityAlgorithmUpdateTest.java | 87 SecurityAlgorithmUpdate fromParcel = SecurityAlgorithmUpdate.CREATOR.createFromParcel(p); in testParcel() local 88 assertThat(fromParcel).isEqualTo(update); in testParcel()
|
D | CellularIdentifierDisclosureTest.java | 104 android.telephony.CellularIdentifierDisclosure fromParcel = in testParcel() local 106 assertEquals(disclosure, fromParcel); in testParcel()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | BarringInfoTest.java | 83 BarringInfo fromParcel = BarringInfo.CREATOR.createFromParcel(parcel); in testParcel() local 85 assertEquals(fromParcel, info); in testParcel()
|
D | PhysicalChannelConfigTest.java | 192 PhysicalChannelConfig fromParcel = PhysicalChannelConfig.CREATOR.createFromParcel(parcel); in testParcel() local 194 assertThat(fromParcel).isEqualTo(mPhysicalChannelConfig); in testParcel()
|
/frameworks/base/core/java/android/hardware/soundtrigger/ |
D | SoundTrigger.java | 285 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/ |
D | DataProfileTest.java | 215 DataProfile fromParcel = DataProfile.CREATOR.createFromParcel(parcel); in testParcel() local 217 assertThat(fromParcel).isEqualTo(dp); in testParcel()
|