/packages/modules/Permission/tests/functional/safetycenter/safetycenteractivity/src/android/safetycenter/functional/ui/ |
D | SafetyCenterActivityTest.kt | 89 private val safetyCenterTestConfigs = SafetyCenterTestConfigs(context) constant in android.safetycenter.functional.ui.SafetyCenterActivityTest 103 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in launchActivity_allowingSettingsTrampoline() 114 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.staticSourcesConfig) in launchActivity_displaysStaticSources() 118 context.getString(safetyCenterTestConfigs.staticSourceGroup1.titleResId), in launchActivity_displaysStaticSources() 119 context.getString(safetyCenterTestConfigs.staticSource1.titleResId), in launchActivity_displaysStaticSources() 120 context.getString(safetyCenterTestConfigs.staticSource1.summaryResId), in launchActivity_displaysStaticSources() 121 context.getString(safetyCenterTestConfigs.staticSourceGroup2.titleResId), in launchActivity_displaysStaticSources() 122 context.getString(safetyCenterTestConfigs.staticSource2.titleResId), in launchActivity_displaysStaticSources() 123 context.getString(safetyCenterTestConfigs.staticSource2.summaryResId) in launchActivity_displaysStaticSources() 130 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in launchActivity_displaysSafetyData() [all …]
|
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/ |
D | SafetyCenterManagerTest.kt | 110 private val safetyCenterTestConfigs = SafetyCenterTestConfigs(context) constant 139 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in setSafetySourceData_validId_setsValue() 151 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in setSafetySourceData_twice_replacesValue() 164 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in setSafetySourceData_null_clearsValue() 176 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.complexConfig) in setSafetySourceData_sourceInStatelessGroupUnspecified_setsValue() 198 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.complexConfig) in setSafetySourceData_staticId_throwsIllegalArgumentException() 212 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.complexConfig) in setSafetySourceData_differentPackage_throwsIllegalArgumentException() 233 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceWithFakeCert) in setSafetySourceData_wronglySignedPackage_throwsIllegalArgumentException() 249 mapOf(context.packageName to setOf(safetyCenterTestConfigs.packageCertHash)) in setSafetySourceData_wronglySignedPackageButAllowedByFlag_isAllowed() 250 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceWithFakeCert) in setSafetySourceData_wronglySignedPackageButAllowedByFlag_isAllowed() [all …]
|
D | SafetyCenterUnsupportedTest.kt | 77 private val safetyCenterTestConfigs = SafetyCenterTestConfigs(context) constant 117 safetyCenterTestConfigs.singleSourceConfig in setAndGetSafetySourceData_doesntSetData() 152 safetyCenterTestConfigs.singleSourceConfig in reportSafetySourceError_doesntCallListener() 198 safetyCenterTestConfigs.singleSourceConfig in safetyCenterEnabledChanged_withSourceReceiver_doesntCallReceiver() 212 safetyCenterTestConfigs.singleSourceConfig in refreshSafetySources_doesntRefreshSources() 257 safetyCenterTestConfigs.singleSourceConfig in addOnSafetyCenterDataChangedListener_listenerNotCalled() 283 safetyCenterTestConfigs.singleSourceConfig in removeOnSafetyCenterDataChangedListener_listenerNotCalled() 314 safetyCenterTestConfigs.singleSourceConfig in dismissSafetyCenterIssue_doesntCallListenerOrDismiss() 346 safetyCenterTestConfigs.singleSourceConfig in executeSafetyCenterIssueAction_doesntCallListenerOrExecute() 385 safetyCenterTestConfigs.singleSourceConfig in clearAllSafetySourceDataForTests_doesntClearData() [all …]
|
/packages/modules/Permission/tests/functional/safetycenter/subpages/src/android/safetycenter/functional/ui/ |
D | SafetyCenterSubpagesTest.kt | 87 private val safetyCenterTestConfigs = SafetyCenterTestConfigs(context) constant in android.safetycenter.functional.ui.SafetyCenterSubpagesTest 107 val config = safetyCenterTestConfigs.multipleSourceGroupsConfig in launchSafetyCenter_withSubpagesIntentExtra_showsSubpageTitle() 121 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.multipleSourceGroupsConfig) in launchSafetyCenter_withSubpagesIntentExtraButFlagDisabled_showsHomepageTitle() 130 val config = safetyCenterTestConfigs.multipleSourceGroupsConfig in launchSafetyCenter_withNonExistingGroupID_opensHomepageAsFallback() 146 setConfig(safetyCenterTestConfigs.multipleSourceGroupsConfig) in launchSafetyCenter_withMultipleGroups_showsHomepageEntries() 154 safetyCenterTestConfigs.multipleSourceGroupsConfig.safetySourcesGroups.first() in launchSafetyCenter_withMultipleGroups_showsHomepageEntries() 156 safetyCenterTestConfigs.multipleSourceGroupsConfig.safetySourcesGroups.last() in launchSafetyCenter_withMultipleGroups_showsHomepageEntries() 178 setConfig(safetyCenterTestConfigs.multipleSourceGroupsConfig) in launchSafetyCenter_withMultipleGroupsButFlagDisabled_showsExpandAndCollapseEntries() 186 safetyCenterTestConfigs.multipleSourceGroupsConfig.safetySourcesGroups.first() in launchSafetyCenter_withMultipleGroupsButFlagDisabled_showsExpandAndCollapseEntries() 188 safetyCenterTestConfigs.multipleSourceGroupsConfig.safetySourcesGroups.last() in launchSafetyCenter_withMultipleGroupsButFlagDisabled_showsExpandAndCollapseEntries() [all …]
|
D | PrivacySubpageTest.kt | 66 private val safetyCenterTestConfigs = SafetyCenterTestConfigs(context) constant 87 val config = safetyCenterTestConfigs.privacySubpageConfig in privacySubpage_openWithIntentExtra_showsSubpageData() 108 val config = safetyCenterTestConfigs.privacySubpageConfig in privacySubpage_clickingOnEntry_redirectsToDifferentScreen() 127 val config = safetyCenterTestConfigs.privacySubpageConfig in privacySubpage_withMultipleIssues_displaysExpectedWarningCards() 151 val config = safetyCenterTestConfigs.privacySubpageConfig in privacySubpage_openWithIntentExtra_showsPrivacyControls() 176 val config = safetyCenterTestConfigs.privacySubpageConfig in privacySubpage_clickingOnLocationEntry_redirectsToLocationScreen() 198 val config = safetyCenterTestConfigs.privacySubpageConfig in settingsSearch_openWithPrivacyIntentExtra_showsPrivacySubpage()
|
/packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/ |
D | SafetyCenterManagerTest.kt | 152 private val safetyCenterTestConfigs = SafetyCenterTestConfigs(context) in <lambda>() constant 791 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.complexConfig) in <lambda>() 804 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in <lambda>() 823 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in <lambda>() 852 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in <lambda>() 864 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in <lambda>() 889 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in <lambda>() 913 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in <lambda>() 937 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.noPageOpenConfig) in <lambda>() 956 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.noPageOpenConfig) in <lambda>() [all …]
|
D | SafetySourceDataFixesTest.kt | 42 private val safetyCenterTestConfigs = SafetyCenterTestConfigs(context) constant 52 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.settingsLockScreenSourceConfig) in lockScreenSource_withoutReplaceLockScreenIconActionFlag_doesntReplace() 76 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.settingsLockScreenSourceConfig) in lockScreenSource_withReplaceLockScreenIconActionFlag_replaces() 94 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in defaultActionOverride_issue_overridesMatchingActions() 132 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in defaultActionOverride_notification_overridesMatchingActions() 172 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.multipleSourcesConfig) in defaultActionOverride_sameActionIdDifferentSource_doesNotOverride() 209 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.multipleSourcesConfig) in defaultActionOverride_sameSourceDifferentActionId_doesNotOverride() 242 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceInvalidIntentConfig) in defaultActionOverride_noDefaultIntent_doesNotOverride()
|
D | SafetyCenterNotificationTest.kt | 79 private val safetyCenterTestConfigs = SafetyCenterTestConfigs(context) constant 100 safetyCenterTestConfigs.singleSourceConfig( in enableNotificationsForTestSourceBeforeTest() 101 safetyCenterTestConfigs.dynamicSafetySourceBuilder(uniqueSafetySourceId).build() in enableNotificationsForTestSourceBeforeTest() 348 safetyCenterTestConfigs.singleSourceConfig( in setSafetySourceData_withNotificationsAllowedForSourceByConfig_sendsNotification() 349 safetyCenterTestConfigs in setSafetySourceData_withNotificationsAllowedForSourceByConfig_sendsNotification() 692 safetyCenterTestConfigs.multipleSourcesWithDeduplicationInfoConfig in setSafetySourceData_duplicateIssues_sendsOneNotification() 723 safetyCenterTestConfigs.multipleSourcesWithDeduplicationInfoConfig in setSafetySourceData_duplicateIssueOfLowerSeverityDismissed_sendsNotification() 871 safetyCenterTestConfigs.multipleSourcesWithDeduplicationInfoConfig in dismissingNotification_withDuplicateIssues_allDismissed() 1244 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.multipleSourcesConfig) in sendContentPendingIntent_anotherHigherSeverityIssue_opensSafetyCenterWithIssueVisible()
|
/packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/ui/ |
D | SafetyCenterStatusCardTest.kt | 58 private val safetyCenterTestConfigs = SafetyCenterTestConfigs(context) constant 67 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in withUnknownStatus_displaysScanningOnLoad() 79 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in withKnownStatus_displaysStatusOnLoad() 95 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in withUnknownStatusAndNoIssues_hasRescanButton() 109 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in withInformationAndNoIssues_hasRescanButton() 127 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in withInformationAndNoIssues_hasContentDescriptions() 142 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in withInformationIssue_doesNotHaveRescanButton() 160 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in withRecommendationIssue_doesNotHaveRescanButton() 183 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in withCriticalWarningIssue_doesNotHaveRescanButton() 206 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in withKnownStatus_displaysScanningOnRescan() [all …]
|
D | SafetyCenterQsActivityTest.kt | 47 private val safetyCenterTestConfigs = SafetyCenterTestConfigs(context) constant 58 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in setTestConfigBeforeTest()
|
/packages/modules/Permission/tests/functional/safetycenter/multiusers/src/android/safetycenter/functional/multiusers/ |
D | SafetyCenterMultiUsersTest.kt | 125 private val safetyCenterTestConfigs = SafetyCenterTestConfigs(context) constant 411 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.workPolicyInfoConfig) in getSafetyCenterData_withProfileOwner_hasWorkPolicyInfo() 419 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.workPolicyInfoConfig) in getSafetyCenterData_withDeviceOwner_hasWorkPolicyInfo() 427 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.workPolicyInfoConfig) in launchActivity_withQuietModeEnabled_hasWorkPolicyInfo() 438 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.workPolicyInfoConfig) in launchActivity_withoutWorkProfileOrDeviceOwner_doesntHaveWorkPolicyInfo() 446 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceAllProfileConfig) in getSafetySourceData_withQuietModeEnabled_dataIsNotCleared() 467 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceAllProfileConfig) in getSafetySourceData_afterAdditionalUserRemoved_returnsNull() 495 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceAllProfileConfig) in getSafetySourceData_withoutInteractAcrossUserPermission_shouldThrowError() 507 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceAllProfileConfig) in getSafetySourceData_withoutAppInstalledForWorkProfile_shouldReturnNull() 528 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceAllProfileConfig) in getSafetySourceData_withRemovedProfile_shouldReturnNull() [all …]
|
/packages/modules/Permission/tests/hostside/safetycenter/helper-app/src/android/safetycenter/hostside/device/ |
D | SafetyCenterInteractionLoggingHelperTests.kt | 58 private val safetyCenterTestConfigs = SafetyCenterTestConfigs(context) constant in android.safetycenter.hostside.device.SafetyCenterInteractionLoggingHelperTests 83 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in openSafetyCenterFullFromQs() 93 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in openSafetyCenterWithIssueIntent() 111 val config = safetyCenterTestConfigs.singleSourceConfig in openSubpageFromIntentExtra() 122 val config = safetyCenterTestConfigs.singleSourceConfig in openSubpageFromHomepage() 133 val config = safetyCenterTestConfigs.singleSourceConfig in openSubpageFromSettingsSearch()
|
D | SafetySourceStateCollectedLoggingHelperTests.kt | 55 private val safetyCenterTestConfigs = SafetyCenterTestConfigs(context) constant in android.safetycenter.hostside.device.SafetySourceStateCollectedLoggingHelperTests 63 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.multipleSourcesConfig) in setUp() 187 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in simulateResolvingActionWith()
|
D | SafetyCenterNotificationLoggingHelperTests.kt | 55 private val safetyCenterTestConfigs = SafetyCenterTestConfigs(context) constant 66 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in setUp()
|