/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/ |
D | SafetyCenterManagerTest.kt | 70 import com.android.safetycenter.testing.SafetyCenterTestConfigs.Companion.SINGLE_SOURCE_ID 142 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, dataToSet) in setSafetySourceData_validId_setsValue() 145 safetyCenterManager.getSafetySourceDataWithPermission(SINGLE_SOURCE_ID) in setSafetySourceData_validId_setsValue() 152 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, safetySourceTestData.unspecified) in setSafetySourceData_twice_replacesValue() 155 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, dataToSet) in setSafetySourceData_twice_replacesValue() 158 safetyCenterManager.getSafetySourceDataWithPermission(SINGLE_SOURCE_ID) in setSafetySourceData_twice_replacesValue() 165 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, safetySourceTestData.unspecified) in setSafetySourceData_null_clearsValue() 167 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, safetySourceData = null) in setSafetySourceData_null_clearsValue() 170 safetyCenterManager.getSafetySourceDataWithPermission(SINGLE_SOURCE_ID) in setSafetySourceData_null_clearsValue() 190 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, safetySourceTestData.unspecified) in setSafetySourceData_unknownId_throwsIllegalArgumentException() [all …]
|
D | SafetyCenterUnsupportedTest.kt | 46 import com.android.safetycenter.testing.SafetyCenterTestConfigs.Companion.SINGLE_SOURCE_ID 120 SINGLE_SOURCE_ID, in setAndGetSafetySourceData_doesntSetData() 126 safetyCenterManager.getSafetySourceDataWithPermission(SINGLE_SOURCE_ID) in setAndGetSafetySourceData_doesntSetData() 135 SINGLE_SOURCE_ID, in setSafetySourceData_withoutPermission_throwsSecurityException() 145 safetyCenterManager.getSafetySourceData(SINGLE_SOURCE_ID) in getSafetySourceData_withoutPermission_throwsSecurityException() 161 SINGLE_SOURCE_ID, in reportSafetySourceError_doesntCallListener() 174 SINGLE_SOURCE_ID, in reportSafetySourceError_withoutPermission_throwsSecurityException() 317 SINGLE_SOURCE_ID, in dismissSafetyCenterIssue_doesntCallListenerOrDismiss() 328 SafetyCenterTestData.issueId(SINGLE_SOURCE_ID, CRITICAL_ISSUE_ID) in dismissSafetyCenterIssue_doesntCallListenerOrDismiss() 349 SINGLE_SOURCE_ID, in executeSafetyCenterIssueAction_doesntCallListenerOrExecute() [all …]
|
/packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/ui/ |
D | SafetyCenterStatusCardTest.kt | 30 import com.android.safetycenter.testing.SafetyCenterTestConfigs.Companion.SINGLE_SOURCE_ID 81 SINGLE_SOURCE_ID, in withKnownStatus_displaysStatusOnLoad() 96 SafetySourceReceiver.setResponse(Request.Refresh(SINGLE_SOURCE_ID), Response.Error) in withUnknownStatusAndNoIssues_hasRescanButton() 110 preSetDataOnT(SINGLE_SOURCE_ID, safetySourceTestData.information) in withInformationAndNoIssues_hasRescanButton() 112 Request.Refresh(SINGLE_SOURCE_ID), in withInformationAndNoIssues_hasRescanButton() 128 preSetDataOnT(SINGLE_SOURCE_ID, safetySourceTestData.information) in withInformationAndNoIssues_hasContentDescriptions() 130 Request.Refresh(SINGLE_SOURCE_ID), in withInformationAndNoIssues_hasContentDescriptions() 143 preSetDataOnT(SINGLE_SOURCE_ID, safetySourceTestData.informationWithIssue) in withInformationIssue_doesNotHaveRescanButton() 145 Request.Refresh(SINGLE_SOURCE_ID), in withInformationIssue_doesNotHaveRescanButton() 162 SINGLE_SOURCE_ID, in withRecommendationIssue_doesNotHaveRescanButton() [all …]
|
/packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/ |
D | SafetyCenterManagerTest.kt | 103 import com.android.safetycenter.testing.SafetyCenterTestConfigs.Companion.SINGLE_SOURCE_ID in <lambda>() 309 safetyCenterTestData.safetyCenterEntryRecommendation(SINGLE_SOURCE_ID) in <lambda>() 315 safetyCenterTestData.safetyCenterEntryCritical(SINGLE_SOURCE_ID) in <lambda>() 425 safetyCenterTestData.safetyCenterEntryDefault(SINGLE_SOURCE_ID) in <lambda>() 438 safetyCenterTestData.safetyCenterEntryDefault(SINGLE_SOURCE_ID) in <lambda>() 451 safetyCenterTestData.safetyCenterEntryUnspecified(SINGLE_SOURCE_ID) in <lambda>() 464 safetyCenterTestData.safetyCenterEntryOk(SINGLE_SOURCE_ID) in <lambda>() 478 .safetyCenterEntryOkBuilder(SINGLE_SOURCE_ID) in <lambda>() 496 safetyCenterTestData.safetyCenterEntryError(SINGLE_SOURCE_ID) in <lambda>() 509 safetyCenterTestData.safetyCenterEntryError(SINGLE_SOURCE_ID) in <lambda>() [all …]
|
D | SafetySourceDataFixesTest.kt | 21 import com.android.safetycenter.testing.SafetyCenterTestConfigs.Companion.SINGLE_SOURCE_ID 97 mapOf(SINGLE_SOURCE_ID to setOf(targetActionId, "AdditionalActionId")) in defaultActionOverride_issue_overridesMatchingActions() 115 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, dataWithActionToOverride) in defaultActionOverride_issue_overridesMatchingActions() 119 .getSafetySourceDataWithPermission(SINGLE_SOURCE_ID)!! in defaultActionOverride_issue_overridesMatchingActions() 135 mapOf(SINGLE_SOURCE_ID to setOf(targetActionId, "AdditionalActionId")) in defaultActionOverride_notification_overridesMatchingActions() 154 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, dataWithNotificationActionToOverride) in defaultActionOverride_notification_overridesMatchingActions() 158 .getSafetySourceDataWithPermission(SINGLE_SOURCE_ID)!! in defaultActionOverride_notification_overridesMatchingActions() 245 mapOf(SINGLE_SOURCE_ID to setOf(targetActionId, "AdditionalActionId")) in defaultActionOverride_noDefaultIntent_doesNotOverride() 263 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, dataWithActionToOverride) in defaultActionOverride_noDefaultIntent_doesNotOverride() 267 .getSafetySourceDataWithPermission(SINGLE_SOURCE_ID)!! in defaultActionOverride_noDefaultIntent_doesNotOverride()
|
/packages/modules/Permission/tests/functional/safetycenter/safetycenteractivity/src/android/safetycenter/functional/ui/ |
D | SafetyCenterActivityTest.kt | 42 import com.android.safetycenter.testing.SafetyCenterTestConfigs.Companion.SINGLE_SOURCE_ID 105 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, dataToDisplay) in launchActivity_allowingSettingsTrampoline() 132 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, dataToDisplay) in launchActivity_displaysSafetyData() 294 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, safetySourceTestData.information) in updatingSafetySourceData_updatesDisplayedSafetyData() 298 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, dataToDisplay) in updatingSafetySourceData_updatesDisplayedSafetyData() 310 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, initialDataToDisplay) in updatingSafetySourceData_withoutSubtitle_newIssueWithSubtitle() 315 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, updatedDataToDisplay) in updatingSafetySourceData_withoutSubtitle_newIssueWithSubtitle() 327 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, initialDataToDisplay) in updatingSafetySourceData_withSubtitle_newIssueWithoutSubtitle() 332 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, updatedDataToDisplay) in updatingSafetySourceData_withSubtitle_newIssueWithoutSubtitle() 446 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, safetySourceTestData.information) in entryListWithSingleSource_informationState_hasContentDescription() [all …]
|
/packages/modules/Permission/tests/hostside/safetycenter/helper-app/src/android/safetycenter/hostside/device/ |
D | SafetyCenterNotificationLoggingHelperTests.kt | 29 import com.android.safetycenter.testing.SafetyCenterTestConfigs.Companion.SINGLE_SOURCE_ID 64 SafetyCenterFlags.notificationsAllowedSources = setOf(SINGLE_SOURCE_ID) in setUp() 71 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, newTestDataWithNotifiableIssue()) in sendNotification() 76 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, newTestDataWithNotifiableIssue()) in openSafetyCenterFromNotification() 82 safetySourceId = SINGLE_SOURCE_ID, in openSafetyCenterFromNotification()
|
D | SafetySourceStateCollectedLoggingHelperTests.kt | 30 import com.android.safetycenter.testing.SafetyCenterTestConfigs.Companion.SINGLE_SOURCE_ID 189 SINGLE_SOURCE_ID, in simulateResolvingActionWith() 192 SafetySourceReceiver.setResponse(Request.ResolveAction(SINGLE_SOURCE_ID), response) in simulateResolvingActionWith() 195 SafetyCenterTestData.issueId(SINGLE_SOURCE_ID, CRITICAL_ISSUE_ID), in simulateResolvingActionWith() 197 SINGLE_SOURCE_ID, in simulateResolvingActionWith()
|
D | SafetyCenterInteractionLoggingHelperTests.kt | 32 import com.android.safetycenter.testing.SafetyCenterTestConfigs.Companion.SINGLE_SOURCE_ID 84 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, safetySourceTestData.informationWithIssue) in openSafetyCenterFullFromQs() 95 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, safetySourceTestData.informationWithIssue) in openSafetyCenterWithIssueIntent() 98 extras.putString(EXTRA_SAFETY_SOURCE_ID, SINGLE_SOURCE_ID) in openSafetyCenterWithIssueIntent()
|
/packages/modules/Permission/tests/functional/safetycenter/subpages/src/android/safetycenter/functional/ui/ |
D | SafetyCenterSubpagesTest.kt | 40 import com.android.safetycenter.testing.SafetyCenterTestConfigs.Companion.SINGLE_SOURCE_ID 300 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, sourceTestData) in entryListWithSingleSource_clickingTheInfoIcon_redirectsToDifferentScreen() 316 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, sourceTestData) in entryListWithSingleSource_clickingTheGearIcon_redirectsToDifferentScreen() 333 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, sourceTestData) in entryListWithSingleSource_clickingAnUnclickableDisabledEntry_doesNothing() 351 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, sourceTestData) in entryListWithSingleSource_clickingAClickableDisabledEntry_redirectsToDifferentScreen() 378 Request.Refresh(SINGLE_SOURCE_ID), in entryListWithSingleSource_updateSafetySourceData_displayedDataIsUpdated() 412 Request.Refresh(SINGLE_SOURCE_ID), in entryListWithSingleSource_updateSafetySourceDataAndRotate_displayedDataIsNotUpdated() 467 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, initialDataToDisplay) in issueCard_updateSafetySourceData_subpageDisplaysUpdatedIssue() 473 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, updatedDataToDisplay) in issueCard_updateSafetySourceData_subpageDisplaysUpdatedIssue() 484 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, sourceData) in issueCard_resolveIssueOnSubpage_issueDismisses() [all …]
|
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/ |
D | SafetyCenterTestConfigs.kt | 60 val singleSourceConfig = singleSourceConfig(dynamicSafetySource(SINGLE_SOURCE_ID)) 68 dynamicSafetySourceBuilder(SINGLE_SOURCE_ID) 79 dynamicSafetySourceBuilder(SINGLE_SOURCE_ID) 92 dynamicSafetySourceBuilder(SINGLE_SOURCE_ID).setMaxSeverityLevel(0).build() 100 dynamicSafetySourceBuilder(SINGLE_SOURCE_ID) 113 dynamicSafetySourceBuilder(SINGLE_SOURCE_ID) 124 dynamicSafetySourceBuilder(SINGLE_SOURCE_ID).setRefreshOnPageOpenAllowed(false).build() 430 staticSafetySourceBuilder(SINGLE_SOURCE_ID) 446 staticSafetySourceBuilder(SINGLE_SOURCE_ID) 876 const val SINGLE_SOURCE_ID = "test_single_source_id" in issueOnlySafetySourceWithDuplicationInfo() constant
|
D | SafetySourceTestData.kt | 42 import com.android.safetycenter.testing.SafetyCenterTestConfigs.Companion.SINGLE_SOURCE_ID 403 Intent(ACTION_DISMISS_ISSUE).putExtra(EXTRA_SOURCE_ID, SINGLE_SOURCE_ID) in recommendationIssueWithDeduplicationId() 477 sourceId: String = SINGLE_SOURCE_ID, in recommendationIssueWithDeduplicationId() 616 sourceId: String = SINGLE_SOURCE_ID, in recommendationIssueWithDeduplicationId()
|
/packages/modules/Permission/tests/functional/safetycenter/multiusers/src/android/safetycenter/functional/multiusers/ |
D | SafetyCenterMultiUsersTest.kt | 80 import com.android.safetycenter.testing.SafetyCenterTestConfigs.Companion.SINGLE_SOURCE_ID 1490 SINGLE_SOURCE_ID, in setSafetySourceData_primaryProfileSource_shouldNotBeAbleToSetDataToWorkProfile() 1557 SINGLE_SOURCE_ID, in setSafetySourceData_forStoppedUser_shouldSetData() 1563 SINGLE_SOURCE_ID in setSafetySourceData_forStoppedUser_shouldSetData() 1574 safetyCenterTestHelper.setData(SINGLE_SOURCE_ID, dataForPrimaryUser) in setSafetySourceData_forBothPrimaryAdditionalUser_shouldSetData() 1579 SINGLE_SOURCE_ID, in setSafetySourceData_forBothPrimaryAdditionalUser_shouldSetData() 1584 safetyCenterManager.getSafetySourceDataWithPermission(SINGLE_SOURCE_ID) in setSafetySourceData_forBothPrimaryAdditionalUser_shouldSetData() 1587 SINGLE_SOURCE_ID in setSafetySourceData_forBothPrimaryAdditionalUser_shouldSetData() 1602 SINGLE_SOURCE_ID, in setSafetySourceData_forAdditionalUser_shouldNotAffectDataForPrimaryUser() 1607 safetyCenterManager.getSafetySourceDataWithPermission(SINGLE_SOURCE_ID) in setSafetySourceData_forAdditionalUser_shouldNotAffectDataForPrimaryUser()
|