/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/ |
D | SafetyCenterManagerTest.kt | 108 private val safetyCenterTestHelper = SafetyCenterTestHelper(context) constant 114 @get:Rule(order = 2) val safetyCenterTestRule = SafetyCenterTestRule(safetyCenterTestHelper) 125 safetyCenterTestHelper.setEnabled(false) in isSafetyCenterEnabled_withFlagDisabled_returnsFalse() 139 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in setSafetySourceData_validId_setsValue() 142 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, dataToSet) in setSafetySourceData_validId_setsValue() 151 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in setSafetySourceData_twice_replacesValue() 152 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, safetySourceTestData.unspecified) in setSafetySourceData_twice_replacesValue() 155 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, dataToSet) in setSafetySourceData_twice_replacesValue() 164 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in setSafetySourceData_null_clearsValue() 165 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, safetySourceTestData.unspecified) in setSafetySourceData_null_clearsValue() [all …]
|
D | SafetyCenterUnsupportedTest.kt | 75 private val safetyCenterTestHelper = SafetyCenterTestHelper(context) constant in android.safetycenter.cts.SafetyCenterUnsupportedTest 82 @get:Rule(order = 2) val safetyCenterTestRule = SafetyCenterTestRule(safetyCenterTestHelper) 102 safetyCenterTestHelper.setEnabled(false) in isSafetyCenterEnabled_withFlagDisabled_returnsFalse()
|
/packages/modules/Permission/tests/functional/safetycenter/safetycenteractivity/src/android/safetycenter/functional/ui/ |
D | SafetyCenterActivityTest.kt | 87 private val safetyCenterTestHelper = SafetyCenterTestHelper(context) constant 92 @get:Rule(order = 2) val safetyCenterTestRule = SafetyCenterTestRule(safetyCenterTestHelper) 103 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in launchActivity_allowingSettingsTrampoline() 105 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, dataToDisplay) in launchActivity_allowingSettingsTrampoline() 114 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.staticSourcesConfig) in launchActivity_displaysStaticSources() 130 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in launchActivity_displaysSafetyData() 132 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, dataToDisplay) in launchActivity_displaysSafetyData() 139 with(safetyCenterTestHelper) { in launchActivity_displaysCollapsedGroupsOfMultipleSource() 210 with(safetyCenterTestHelper) { in launchActivity_displaysPrioritizedGroupSummary() 279 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.multipleSourceGroupsConfig) in launchActivity_displaysGroupsOfSingleSourceAsEntity() [all …]
|
/packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/ |
D | SafetyCenterManagerTest.kt | 149 private val safetyCenterTestHelper = SafetyCenterTestHelper(context) in <lambda>() constant 787 @get:Rule(order = 2) val safetyCenterTestRule = SafetyCenterTestRule(safetyCenterTestHelper) in <lambda>() 791 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.complexConfig) in <lambda>() 804 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in <lambda>() 805 val listener = safetyCenterTestHelper.addListener() in <lambda>() 823 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in <lambda>() 824 val listener = safetyCenterTestHelper.addListener() in <lambda>() 852 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in <lambda>() 853 val listener = safetyCenterTestHelper.addListener() in <lambda>() 864 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in <lambda>() [all …]
|
D | SafetyCenterNotificationTest.kt | 77 private val safetyCenterTestHelper = SafetyCenterTestHelper(context) constant in android.safetycenter.functional.SafetyCenterNotificationTest 89 SafetyCenterTestRule(safetyCenterTestHelper, withNotifications = true) 99 safetyCenterTestHelper.setConfig( in enableNotificationsForTestSourceBeforeTest() 108 safetyCenterTestHelper.setData(uniqueSafetySourceId, safetySourceTestData.information) in setSafetySourceData_withNoIssue_noNotification() 117 safetyCenterTestHelper.setData( in setSafetySourceData_withoutImmediateNotificationBehavior_noNotification() 129 safetyCenterTestHelper.setData( in setSafetySourceData_withoutNotificationsAllowedSource_noNotification() 141 safetyCenterTestHelper.setData( in setSafetySourceData_withFlagDisabled_noNotification() 163 safetyCenterTestHelper.setData(uniqueSafetySourceId, data) in setSafetySourceData_withNotificationBehaviorNever_noNotification() 183 safetyCenterTestHelper.setData(uniqueSafetySourceId, data) in setSafetySourceData_withNotificationBehaviorDelay_noImmediateNotification() 214 safetyCenterTestHelper.setData(uniqueSafetySourceId, data1) in setSafetySourceData_withNotificationBehaviorDelay_sendsNotificationAfterDelay() [all …]
|
D | SafetySourceDataFixesTest.kt | 40 private val safetyCenterTestHelper = SafetyCenterTestHelper(context) constant in android.safetycenter.functional.SafetySourceDataFixesTest 46 @get:Rule(order = 2) val safetyCenterTestRule = SafetyCenterTestRule(safetyCenterTestHelper) 52 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.settingsLockScreenSourceConfig) in lockScreenSource_withoutReplaceLockScreenIconActionFlag_doesntReplace() 53 val listener = safetyCenterTestHelper.addListener() in lockScreenSource_withoutReplaceLockScreenIconActionFlag_doesntReplace() 76 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.settingsLockScreenSourceConfig) in lockScreenSource_withReplaceLockScreenIconActionFlag_replaces() 77 val listener = safetyCenterTestHelper.addListener() in lockScreenSource_withReplaceLockScreenIconActionFlag_replaces() 94 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in defaultActionOverride_issue_overridesMatchingActions() 115 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, dataWithActionToOverride) in defaultActionOverride_issue_overridesMatchingActions() 132 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in defaultActionOverride_notification_overridesMatchingActions() 154 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, dataWithNotificationActionToOverride) in defaultActionOverride_notification_overridesMatchingActions() [all …]
|
/packages/modules/Permission/tests/functional/safetycenter/subpages/src/android/safetycenter/functional/ui/ |
D | SafetyCenterSubpagesTest.kt | 85 private val safetyCenterTestHelper = SafetyCenterTestHelper(context) constant 91 @get:Rule(order = 2) val safetyCenterTestRule = SafetyCenterTestRule(safetyCenterTestHelper) 109 safetyCenterTestHelper.setConfig(config) in launchSafetyCenter_withSubpagesIntentExtra_showsSubpageTitle() 121 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.multipleSourceGroupsConfig) in launchSafetyCenter_withSubpagesIntentExtraButFlagDisabled_showsHomepageTitle() 132 safetyCenterTestHelper.setConfig(config) in launchSafetyCenter_withNonExistingGroupID_opensHomepageAsFallback() 145 with(safetyCenterTestHelper) { in launchSafetyCenter_withMultipleGroups_showsHomepageEntries() 177 with(safetyCenterTestHelper) { in launchSafetyCenter_withMultipleGroupsButFlagDisabled_showsExpandAndCollapseEntries() 206 with(safetyCenterTestHelper) { in launchSafetyCenter_redirectBackFromSubpage_showsHomepageEntries() 228 with(safetyCenterTestHelper) { in entryListWithMultipleSources_clickingOnHomepageEntry_showsSubpageEntries() 280 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in entryListWithSingleSource_clickingOnSubpageEntry_redirectsToDifferentScreen() [all …]
|
D | PrivacySubpageTest.kt | 64 private val safetyCenterTestHelper = SafetyCenterTestHelper(context) constant in android.safetycenter.functional.ui.PrivacySubpageTest 71 @get:Rule(order = 2) val safetyCenterTestRule = SafetyCenterTestRule(safetyCenterTestHelper) 88 safetyCenterTestHelper.setConfig(config) in privacySubpage_openWithIntentExtra_showsSubpageData() 109 safetyCenterTestHelper.setConfig(config) in privacySubpage_clickingOnEntry_redirectsToDifferentScreen() 128 safetyCenterTestHelper.setConfig(config) in privacySubpage_withMultipleIssues_displaysExpectedWarningCards() 131 safetyCenterTestHelper.setData(PRIVACY_SOURCE_ID_1, firstSourceData) in privacySubpage_withMultipleIssues_displaysExpectedWarningCards() 132 safetyCenterTestHelper.setData(SOURCE_ID_1, secondSourceData) in privacySubpage_withMultipleIssues_displaysExpectedWarningCards() 152 safetyCenterTestHelper.setConfig(config) in privacySubpage_openWithIntentExtra_showsPrivacyControls() 177 safetyCenterTestHelper.setConfig(config) in privacySubpage_clickingOnLocationEntry_redirectsToLocationScreen() 201 safetyCenterTestHelper.setConfig(config) in settingsSearch_openWithPrivacyIntentExtra_showsPrivacySubpage()
|
/packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/ui/ |
D | SafetyCenterStatusCardTest.kt | 55 private val safetyCenterTestHelper = SafetyCenterTestHelper(context) constant in android.safetycenter.functional.ui.SafetyCenterStatusCardTest 61 @get:Rule(order = 2) val safetyCenterTestRule = SafetyCenterTestRule(safetyCenterTestHelper) 67 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in withUnknownStatus_displaysScanningOnLoad() 79 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in withKnownStatus_displaysStatusOnLoad() 80 safetyCenterTestHelper.setData( 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() [all …]
|
D | SafetyCenterQsActivityTest.kt | 46 private val safetyCenterTestHelper = SafetyCenterTestHelper(context) constant 52 @get:Rule(order = 4) val safetyCenterTestRule = SafetyCenterTestRule(safetyCenterTestHelper) 58 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in setTestConfigBeforeTest()
|
/packages/modules/Permission/tests/functional/safetycenter/multiusers/src/android/safetycenter/functional/multiusers/ |
D | SafetyCenterMultiUsersTest.kt | 122 private val safetyCenterTestHelper = SafetyCenterTestHelper(context) constant 394 SafetyCenterTestRule(safetyCenterTestHelper, withNotifications = true) in createStaticEntry() 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() [all …]
|
/packages/modules/Permission/tests/hostside/safetycenter/helper-app/src/android/safetycenter/hostside/device/ |
D | SafetyCenterInteractionLoggingHelperTests.kt | 57 private val safetyCenterTestHelper = SafetyCenterTestHelper(context) constant 61 @get:Rule val safetyCenterTestRule = SafetyCenterTestRule(safetyCenterTestHelper) 83 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in openSafetyCenterFullFromQs() 84 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, safetySourceTestData.informationWithIssue) in openSafetyCenterFullFromQs() 93 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in openSafetyCenterWithIssueIntent() 95 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, safetySourceTestData.informationWithIssue) in openSafetyCenterWithIssueIntent() 112 safetyCenterTestHelper.setConfig(config) in openSubpageFromIntentExtra() 123 safetyCenterTestHelper.setConfig(config) in openSubpageFromHomepage() 134 safetyCenterTestHelper.setConfig(config) in openSubpageFromSettingsSearch()
|
D | SafetyCenterNotificationLoggingHelperTests.kt | 53 private val safetyCenterTestHelper = SafetyCenterTestHelper(context) constant 59 SafetyCenterTestRule(safetyCenterTestHelper, withNotifications = true) 66 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in setUp() 71 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, newTestDataWithNotifiableIssue()) in sendNotification() 76 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, newTestDataWithNotifiableIssue()) in openSafetyCenterFromNotification()
|
D | SafetySourceStateCollectedLoggingHelperTests.kt | 53 private val safetyCenterTestHelper = SafetyCenterTestHelper(context) constant 58 @get:Rule val safetyCenterTestRule = SafetyCenterTestRule(safetyCenterTestHelper) 63 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.multipleSourcesConfig) in setUp() 76 safetyCenterTestHelper.setData(SOURCE_ID_1, safetySourceTestData.information) in setSafetySourceData_source1() 181 val listener = safetyCenterTestHelper.addListener() in simulateRefresh() 187 safetyCenterTestHelper.setConfig(safetyCenterTestConfigs.singleSourceConfig) in simulateResolvingActionWith() 188 safetyCenterTestHelper.setData( in simulateResolvingActionWith()
|
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/ |
D | SafetyCenterTestRule.kt | 25 private val safetyCenterTestHelper: SafetyCenterTestHelper, constant in com.android.safetycenter.testing.SafetyCenterTestRule 43 safetyCenterTestHelper.setup() in setup() 45 TestNotificationListener.setup(safetyCenterTestHelper.context) in setup() 50 safetyCenterTestHelper.reset() in reset() 54 TestNotificationListener.reset(safetyCenterTestHelper.context) in reset()
|
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/ui/ |
D | SafetyCenterActivityTest.kt | 44 private val safetyCenterTestHelper = SafetyCenterTestHelper(context) constant 47 @get:Rule(order = 2) val safetyCenterTestRule = SafetyCenterTestRule(safetyCenterTestHelper) 63 safetyCenterTestHelper.setEnabled(false) in launchActivity_withFlagDisabled_opensSettings()
|