/packages/modules/Permission/tests/functional/safetycenter/safetycenteractivity/src/android/safetycenter/functional/ui/ |
D | SafetyCenterActivityTest.kt | 88 private val safetySourceTestData = SafetySourceTestData(context) constant in android.safetycenter.functional.ui.SafetyCenterActivityTest 104 val dataToDisplay = safetySourceTestData.criticalWithResolvingGeneralIssue in launchActivity_allowingSettingsTrampoline() 131 val dataToDisplay = safetySourceTestData.criticalWithResolvingGeneralIssue in launchActivity_displaysSafetyData() 143 safetySourceTestData.buildSafetySourceDataWithSummary( in launchActivity_displaysCollapsedGroupsOfMultipleSource() 152 safetySourceTestData.buildSafetySourceDataWithSummary( in launchActivity_displaysCollapsedGroupsOfMultipleSource() 161 safetySourceTestData.buildSafetySourceDataWithSummary( in launchActivity_displaysCollapsedGroupsOfMultipleSource() 170 safetySourceTestData.buildSafetySourceDataWithSummary( in launchActivity_displaysCollapsedGroupsOfMultipleSource() 179 safetySourceTestData.buildSafetySourceDataWithSummary( in launchActivity_displaysCollapsedGroupsOfMultipleSource() 214 safetySourceTestData.buildSafetySourceDataWithSummary( in launchActivity_displaysPrioritizedGroupSummary() 223 safetySourceTestData.buildSafetySourceDataWithSummary( in launchActivity_displaysPrioritizedGroupSummary() [all …]
|
/packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/ |
D | SafetyCenterNotificationTest.kt | 78 private val safetySourceTestData = SafetySourceTestData(context) constant 108 safetyCenterTestHelper.setData(uniqueSafetySourceId, safetySourceTestData.information) in setSafetySourceData_withNoIssue_noNotification() 119 safetySourceTestData.recommendationWithAccountIssue in setSafetySourceData_withoutImmediateNotificationBehavior_noNotification() 131 safetySourceTestData.recommendationWithAccountIssue in setSafetySourceData_withoutNotificationsAllowedSource_noNotification() 143 safetySourceTestData.recommendationWithAccountIssue in setSafetySourceData_withFlagDisabled_noNotification() 153 safetySourceTestData in setSafetySourceData_withNotificationBehaviorNever_noNotification() 156 safetySourceTestData in setSafetySourceData_withNotificationBehaviorNever_noNotification() 173 safetySourceTestData in setSafetySourceData_withNotificationBehaviorDelay_noImmediateNotification() 176 safetySourceTestData in setSafetySourceData_withNotificationBehaviorDelay_noImmediateNotification() 193 safetySourceTestData in setSafetySourceData_withNotificationBehaviorDelay_sendsNotificationAfterDelay() [all …]
|
D | SafetyCenterManagerTest.kt | 150 private val safetySourceTestData = SafetySourceTestData(context) in <lambda>() constant in android.safetycenter.functional.SafetyCenterManagerTest 334 safetySourceTestData.createTestActivityRedirectPendingIntent( in <lambda>() 357 safetySourceTestData.createTestActivityRedirectPendingIntent( in <lambda>() 365 safetySourceTestData.createTestActivityRedirectPendingIntent( in <lambda>() 381 safetySourceTestData.createTestActivityRedirectPendingIntent() in <lambda>() 387 safetySourceTestData.createTestActivityRedirectPendingIntent( in <lambda>() 404 safetySourceTestData.createTestActivityRedirectPendingIntent() in <lambda>() 410 safetySourceTestData.createTestActivityRedirectPendingIntent( in <lambda>() 481 safetySourceTestData.createTestActivityRedirectPendingIntent() in <lambda>() 836 Response.SetData(safetySourceTestData.information) in <lambda>() [all …]
|
D | SafetySourceDataFixesTest.kt | 41 private val safetySourceTestData = SafetySourceTestData(context) constant 106 safetySourceTestData.action( in defaultActionOverride_issue_overridesMatchingActions() 144 safetySourceTestData.action( in defaultActionOverride_notification_overridesMatchingActions() 184 safetySourceTestData.action( in defaultActionOverride_sameActionIdDifferentSource_doesNotOverride() 220 safetySourceTestData.action( in defaultActionOverride_sameSourceDifferentActionId_doesNotOverride() 254 safetySourceTestData.action( in defaultActionOverride_noDefaultIntent_doesNotOverride() 274 private fun issueBuilder() = safetySourceTestData.defaultInformationIssueBuilder() in issueBuilder()
|
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/ |
D | SafetyCenterManagerTest.kt | 109 private val safetySourceTestData = SafetySourceTestData(context) constant in android.safetycenter.cts.SafetyCenterManagerTest 141 val dataToSet = safetySourceTestData.unspecified in setSafetySourceData_validId_setsValue() 152 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, safetySourceTestData.unspecified) in setSafetySourceData_twice_replacesValue() 154 val dataToSet = safetySourceTestData.criticalWithResolvingGeneralIssue in setSafetySourceData_twice_replacesValue() 165 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, safetySourceTestData.unspecified) in setSafetySourceData_null_clearsValue() 178 val dataToSet = safetySourceTestData.unspecified in setSafetySourceData_sourceInStatelessGroupUnspecified_setsValue() 190 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, safetySourceTestData.unspecified) in setSafetySourceData_unknownId_throwsIllegalArgumentException() 202 safetyCenterTestHelper.setData(STATIC_BAREBONE_ID, safetySourceTestData.unspecified) in setSafetySourceData_staticId_throwsIllegalArgumentException() 218 safetySourceTestData.unspecified in setSafetySourceData_differentPackage_throwsIllegalArgumentException() 237 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, safetySourceTestData.unspecified) in setSafetySourceData_wronglySignedPackage_throwsIllegalArgumentException() [all …]
|
D | SafetyCenterUnsupportedTest.kt | 76 private val safetySourceTestData = SafetySourceTestData(context) constant in android.safetycenter.cts.SafetyCenterUnsupportedTest 121 safetySourceTestData.criticalWithResolvingGeneralIssue, in setAndGetSafetySourceData_doesntSetData() 136 safetySourceTestData.unspecified, in setSafetySourceData_withoutPermission_throwsSecurityException() 318 safetySourceTestData.criticalWithResolvingGeneralIssue, in dismissSafetyCenterIssue_doesntCallListenerOrDismiss() 350 safetySourceTestData.criticalWithResolvingGeneralIssue, in executeSafetyCenterIssueAction_doesntCallListenerOrExecute() 389 safetySourceTestData.criticalWithResolvingGeneralIssue, in clearAllSafetySourceDataForTests_doesntClearData()
|
/packages/modules/Permission/tests/hostside/safetycenter/helper-app/src/android/safetycenter/hostside/device/ |
D | SafetySourceStateCollectedLoggingHelperTests.kt | 54 private val safetySourceTestData = SafetySourceTestData(context) constant 76 safetyCenterTestHelper.setData(SOURCE_ID_1, safetySourceTestData.information) in setSafetySourceData_source1() 92 Response.SetData(safetySourceTestData.information), in refreshAllSources_reasonPageOpen_allSuccessful() 93 Response.SetData(safetySourceTestData.recommendationWithAccountIssue), in refreshAllSources_reasonPageOpen_allSuccessful() 94 Response.SetData(safetySourceTestData.criticalWithResolvingDeviceIssue) in refreshAllSources_reasonPageOpen_allSuccessful() 102 Response.SetData(safetySourceTestData.information), in refreshAllSources_twiceSameData_allSuccessful() 103 Response.SetData(safetySourceTestData.recommendationWithAccountIssue), in refreshAllSources_twiceSameData_allSuccessful() 104 Response.SetData(safetySourceTestData.criticalWithResolvingDeviceIssue) in refreshAllSources_twiceSameData_allSuccessful() 112 Response.SetData(safetySourceTestData.information), in refreshAllSources_twiceDifferentData_onlySource1Unchanged() 113 Response.SetData(safetySourceTestData.recommendationWithAccountIssue), in refreshAllSources_twiceDifferentData_onlySource1Unchanged() [all …]
|
D | SafetyCenterInteractionLoggingHelperTests.kt | 59 private val safetySourceTestData = SafetySourceTestData(context) constant in android.safetycenter.hostside.device.SafetyCenterInteractionLoggingHelperTests 84 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, safetySourceTestData.informationWithIssue) in openSafetyCenterFullFromQs() 87 … openPageAndExit("Settings") { waitAllTextDisplayed(safetySourceTestData.informationIssue.title) } in openSafetyCenterFullFromQs() 95 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, safetySourceTestData.informationWithIssue) in openSafetyCenterWithIssueIntent()
|
D | SafetyCenterNotificationLoggingHelperTests.kt | 54 private val safetySourceTestData = SafetySourceTestData(context) constant 89 safetySourceTestData in newTestDataWithNotifiableIssue() 92 safetySourceTestData in newTestDataWithNotifiableIssue()
|
/packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/ui/ |
D | SafetyCenterStatusCardTest.kt | 56 private val safetySourceTestData = SafetySourceTestData(context) constant 82 safetySourceTestData.informationWithIconAction in withKnownStatus_displaysStatusOnLoad() 110 preSetDataOnT(SINGLE_SOURCE_ID, safetySourceTestData.information) in withInformationAndNoIssues_hasRescanButton() 113 Response.SetData(safetySourceTestData.information) in withInformationAndNoIssues_hasRescanButton() 128 preSetDataOnT(SINGLE_SOURCE_ID, safetySourceTestData.information) in withInformationAndNoIssues_hasContentDescriptions() 131 Response.SetData(safetySourceTestData.information) in withInformationAndNoIssues_hasContentDescriptions() 143 preSetDataOnT(SINGLE_SOURCE_ID, safetySourceTestData.informationWithIssue) in withInformationIssue_doesNotHaveRescanButton() 146 Response.SetData(safetySourceTestData.informationWithIssue) in withInformationIssue_doesNotHaveRescanButton() 163 safetySourceTestData.recommendationWithGeneralIssue in withRecommendationIssue_doesNotHaveRescanButton() 167 Response.SetData(safetySourceTestData.recommendationWithGeneralIssue) in withRecommendationIssue_doesNotHaveRescanButton() [all …]
|
/packages/modules/Permission/tests/functional/safetycenter/subpages/src/android/safetycenter/functional/ui/ |
D | SafetyCenterSubpagesTest.kt | 86 private val safetySourceTestData = SafetySourceTestData(context) constant 144 val sourceTestData = safetySourceTestData.information in launchSafetyCenter_withMultipleGroups_showsHomepageEntries() 176 val sourceTestData = safetySourceTestData.information in launchSafetyCenter_withMultipleGroupsButFlagDisabled_showsExpandAndCollapseEntries() 208 setData(SOURCE_ID_1, safetySourceTestData.information) in launchSafetyCenter_redirectBackFromSubpage_showsHomepageEntries() 209 setData(SOURCE_ID_2, safetySourceTestData.information) in launchSafetyCenter_redirectBackFromSubpage_showsHomepageEntries() 232 safetySourceTestData.buildSafetySourceDataWithSummary( in entryListWithMultipleSources_clickingOnHomepageEntry_showsSubpageEntries() 240 safetySourceTestData.buildSafetySourceDataWithSummary( in entryListWithMultipleSources_clickingOnHomepageEntry_showsSubpageEntries() 248 safetySourceTestData.buildSafetySourceDataWithSummary( in entryListWithMultipleSources_clickingOnHomepageEntry_showsSubpageEntries() 299 val sourceTestData = safetySourceTestData.informationWithIconAction in entryListWithSingleSource_clickingTheInfoIcon_redirectsToDifferentScreen() 315 val sourceTestData = safetySourceTestData.informationWithGearIconAction in entryListWithSingleSource_clickingTheGearIcon_redirectsToDifferentScreen() [all …]
|
D | PrivacySubpageTest.kt | 65 private val safetySourceTestData = SafetySourceTestData(context) constant in android.safetycenter.functional.ui.PrivacySubpageTest 129 val firstSourceData = safetySourceTestData.criticalWithIssueWithAttributionTitle in privacySubpage_withMultipleIssues_displaysExpectedWarningCards() 130 val secondSourceData = safetySourceTestData.informationWithIssueWithAttributionTitle in privacySubpage_withMultipleIssues_displaysExpectedWarningCards()
|
/packages/modules/Permission/tests/functional/safetycenter/multiusers/src/android/safetycenter/functional/multiusers/ |
D | SafetyCenterMultiUsersTest.kt | 123 private val safetySourceTestData = SafetySourceTestData(context) constant in android.safetycenter.functional.multiusers.SafetyCenterMultiUsersTest 306 safetySourceTestData.createTestActivityRedirectPendingIntent(explicit) in createStaticEntry() 314 .setPendingIntent(safetySourceTestData.createTestActivityRedirectPendingIntent()) in createStaticEntry() 361 .setPendingIntent(safetySourceTestData.createTestActivityRedirectPendingIntent()) in createStaticEntry() 368 .setPendingIntent(safetySourceTestData.createTestActivityRedirectPendingIntent()) in createStaticEntry() 447 val dataForWork = safetySourceTestData.informationWithIssueForWork in getSafetySourceData_withQuietModeEnabled_dataIsNotCleared() 470 val dataForAdditionalUser = safetySourceTestData.information in getSafetySourceData_afterAdditionalUserRemoved_returnsNull() 510 val dataForWork = safetySourceTestData.informationWithIssueForWork in getSafetySourceData_withoutAppInstalledForWorkProfile_shouldReturnNull() 531 val dataForWork = safetySourceTestData.informationWithIssueForWork in getSafetySourceData_withRemovedProfile_shouldReturnNull() 552 val dataForWork = safetySourceTestData.informationWithIssueForWork in getSafetySourceData_withProfileInQuietMode_shouldReturnData() [all …]
|
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/ |
D | SafetyCenterTestData.kt | 70 private val safetySourceTestData = SafetySourceTestData(context) constant 168 safetySourceTestData.createTestActivityRedirectPendingIntent() in safetyCenterStatusOneAlert() 186 safetySourceTestData.createTestActivityRedirectPendingIntent() in safetyCenterStatusOneAlert() 203 safetySourceTestData.createTestActivityRedirectPendingIntent(explicit = false) in safetyCenterStatusOneAlert() 222 safetySourceTestData.createTestActivityRedirectPendingIntent() in safetyCenterStatusOneAlert() 245 .setPendingIntent(safetySourceTestData.createTestActivityRedirectPendingIntent()) in safetyCenterStatusOneAlert() 270 .setPendingIntent(safetySourceTestData.createTestActivityRedirectPendingIntent()) in safetyCenterStatusOneAlert() 282 .setPendingIntent(safetySourceTestData.createTestActivityRedirectPendingIntent()) in safetyCenterStatusOneAlert() 313 safetySourceTestData.createTestActivityRedirectPendingIntent() in safetyCenterStatusOneAlert() 353 safetySourceTestData.createTestActivityRedirectPendingIntent() in safetyCenterIssueRecommendation() [all …]
|