/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ui/ |
D | HomeFragmentTest.kt | 23 import android.healthconnect.cts.lib.UiTestUtils.waitDisplayed 83 waitDisplayed(By.text("Allowed access")) in homeFragment_openAppPermissions() 84 waitDisplayed(By.text("Not allowed access"), waitTimeout = Duration.ofSeconds(10)) in homeFragment_openAppPermissions() 93 waitDisplayed(By.text("Browse data")) in homeFragment_openDataManagement() 94 waitDisplayed(By.text("Manage data")) in homeFragment_openDataManagement() 96 waitDisplayed(By.text("Delete all data")) in homeFragment_openDataManagement() 105 waitDisplayed(By.text("Auto-delete")) in homeFragment_openManageData() 106 waitDisplayed(By.text("Data sources and priority")) in homeFragment_openManageData() 107 waitDisplayed(By.text("Set units")) in homeFragment_openManageData() 114 waitDisplayed(By.textContains("CtsHealthConnectTest")) in homeFragment_recentAccessShownOnHomeScreen() [all …]
|
D | ManageDataFragmentTest.kt | 47 UiTestUtils.waitDisplayed(By.text("Auto-delete")) in manageDataFragment_never_showsAutoDeleteOption() 48 UiTestUtils.waitDisplayed(By.text("Off")) in manageDataFragment_never_showsAutoDeleteOption() 58 UiTestUtils.waitDisplayed(By.text("Auto-delete")) in manageDataFragment_3months_showsAutoDeleteOption() 59 UiTestUtils.waitDisplayed(By.text("After 3 months")) in manageDataFragment_3months_showsAutoDeleteOption()
|
D | PermissionTypesFragmentTest.kt | 25 import android.healthconnect.cts.lib.UiTestUtils.waitDisplayed 100 waitDisplayed(By.text("Delete activity data")) in permissionTypes_showsDeleteCategoryData() 108 waitDisplayed(By.text("All apps")) in permissionTypes_filterByApp() 111 waitDisplayed(By.textContains("CtsHealthConnect")) in permissionTypes_filterByApp() 112 waitDisplayed(By.text("Steps")) in permissionTypes_filterByApp()
|
D | ExerciseRouteRequestTest.kt | 31 import android.healthconnect.cts.lib.UiTestUtils.waitDisplayed 92 waitDisplayed(By.text("Allow all routes")) in requestRoute_showsDialog_clickAllowThis_returnsRoute_permissionRemainsRevoked() 93 waitDisplayed(By.text("Don't allow")) in requestRoute_showsDialog_clickAllowThis_returnsRoute_permissionRemainsRevoked() 115 waitDisplayed(By.text("Allow this route")) in requestRoute_showsDialog_clickAllowAll_returnsRoute_grantsPermission() 116 waitDisplayed(By.text("Don't allow")) in requestRoute_showsDialog_clickAllowAll_returnsRoute_grantsPermission() 138 waitDisplayed(By.text("Allow all routes")) in requestRoute_showsDialog_clickDeny_returnsNull_permissionRemainsRevoked() 139 waitDisplayed(By.text("Allow this route")) in requestRoute_showsDialog_clickDeny_returnsNull_permissionRemainsRevoked() 179 waitDisplayed(By.text("Allow all routes")) in requestRoute_ownSession_writeRouteDenied_readRoutesDenied_notUserFixed_showsDialog() 309 waitDisplayed(By.text("Allow this route")) in requestRoute_withReadWriteRoutePermissionsRevoked_showsDialog_returnsRoute() 404 waitDisplayed(By.text("Don't allow")) in requestRoute_allowAllFeatureOff_allowAllNotDisplayed() [all …]
|
D | DataEntriesFragmentTest.kt | 28 import android.healthconnect.cts.lib.UiTestUtils.waitDisplayed 112 waitDisplayed(By.text("0.5 km")) in dataEntries_showsInsertedEntry() 130 waitDisplayed(By.text("0.5 km")) in dataEntries_changeUnit_showsUpdatedUnit() 173 waitDisplayed(By.text("0.5 km")) in dataEntries_navigateToYesterday()
|
D | DataAccessFragmentTest.kt | 23 import android.healthconnect.cts.lib.UiTestUtils.waitDisplayed 68 waitDisplayed(By.text("Steps")) in dataAccess_navigateToDataAccess()
|
D | CategoriesFragmentTest.kt | 25 import android.healthconnect.cts.lib.UiTestUtils.waitDisplayed 83 waitDisplayed(By.text("Nutrition")) in categoriesFragment_openAllCategories()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ui/permissions/ |
D | ManageAppHealthPermissionUITest.kt | 30 import android.healthconnect.cts.lib.UiTestUtils.waitDisplayed 51 waitDisplayed(By.text("Height")) in showDeclaredPermissions() 60 waitDisplayed(By.text("Delete app data")) in showsAdditionalPermissions() 61 waitDisplayed(By.text("Additional access")) in showsAdditionalPermissions() 63 waitDisplayed(By.text("Access past data")) in showsAdditionalPermissions() 64 waitDisplayed(By.text("Access data in the background")) in showsAdditionalPermissions() 104 waitDisplayed(By.text("Remove all permissions?")) in revokeAllPermissions_revokesAllAppPermissions() 121 waitDisplayed(By.text("Remove all permissions?")) in revokeAllPermissions_allowsUserToDeleteAppData() 122 waitDisplayed( in revokeAllPermissions_allowsUserToDeleteAppData() 142 waitDisplayed(By.text("Health Connect cts test app")) in navigateToManageAppPermissions() [all …]
|
D | ManageHealthPermissionsUITest.kt | 26 import android.healthconnect.cts.lib.UiTestUtils.waitDisplayed 49 waitDisplayed(By.text("Health Connect cts test app")) in showsListOfHealthConnectApps() 59 waitDisplayed(By.text("Help & feedback")) in showsHelpAndFeedback() 75 waitDisplayed(By.text("Not allowed access")) in revokeAllPermissions_revokeAllConnectedAppsPermission() 87 waitDisplayed(By.text("Search apps")) in showSearchOption() 103 waitDisplayed(By.text("Allowed access")) in navigateToManagePermissions()
|
D | AdditionalPermissionsRequestUITest.kt | 31 import android.healthconnect.cts.lib.UiTestUtils.waitDisplayed 74 waitDisplayed(By.text("Allow additional access for Health Connect cts test app?")) in requestAdditionalPermissions_showsBothAdditionalPermissions_grantsBoth() 90 waitDisplayed(By.text("Allow additional access for Health Connect cts test app?")) in requestAdditionalPermissions_showsBothAdditionalPermissions_deniesBoth() 106 waitDisplayed(By.text("Allow additional access for Health Connect cts test app?")) in requestAdditionalPermissions_showsBothAdditionalPermissions_grantsOnlySelected() 122 waitDisplayed( in requestAdditionalPermissions_showsOnlyNotGrantedPermissions() 165 waitDisplayed( in requestCombinedPermissions_showsDataTypeAndAdditionalPermissions() 170 waitDisplayed(By.text("Allow additional access for Health Connect cts test app?")) in requestCombinedPermissions_showsDataTypeAndAdditionalPermissions()
|
D | RequestHealthPermissionUITest.kt | 26 import android.healthconnect.cts.lib.UiTestUtils.waitDisplayed 52 waitDisplayed( in showsAppName_showsRequestedPermissions() 54 waitDisplayed(By.text("Height")) in showsAppName_showsRequestedPermissions() 55 waitDisplayed(By.text("Body fat")) in showsAppName_showsRequestedPermissions() 70 waitDisplayed(By.text("Body fat")) in requestGrantedPermissions_doesNotShowGrantedPermissions()
|
/packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/ui/ |
D | SafetyCenterQsActivityTest.kt | 34 import com.android.safetycenter.testing.UiTestHelper.waitDisplayed 66 waitDisplayed(By.desc("Close")) in launchActivity_fromQuickSettings_hasContentDescriptions() 69 waitDisplayed(By.desc("Switch. Camera access. Available")) in launchActivity_fromQuickSettings_hasContentDescriptions() 70 waitDisplayed(By.desc("Switch. Mic access. Available")) in launchActivity_fromQuickSettings_hasContentDescriptions() 78 waitDisplayed(By.desc("Switch. Camera access. Available")) { it.click() } in launchActivity_togglePrivacyControls_hasUpdatedDescriptions() 79 waitDisplayed(By.desc("Switch. Mic access. Available")) { it.click() } in launchActivity_togglePrivacyControls_hasUpdatedDescriptions() 82 waitDisplayed(By.desc("Switch. Camera access. Blocked")) in launchActivity_togglePrivacyControls_hasUpdatedDescriptions() 83 waitDisplayed(By.desc("Switch. Mic access. Blocked")) in launchActivity_togglePrivacyControls_hasUpdatedDescriptions()
|
D | SafetyCenterStatusCardTest.kt | 43 import com.android.safetycenter.testing.UiTestHelper.waitDisplayed 135 waitDisplayed(By.descContains("Security and privacy status")) in withInformationAndNoIssues_hasContentDescriptions()
|
/packages/modules/Permission/tests/functional/safetycenter/safetycenteractivity/src/android/safetycenter/functional/ui/ |
D | SafetyCenterActivityTest.kt | 70 import com.android.safetycenter.testing.UiTestHelper.waitDisplayed 348 waitDisplayed(By.desc("List. OK. OK")) { it.click() } in entryListWithEntryGroup_informationState_hasContentDescription() 352 waitDisplayed(By.desc("List item. Ok title. Ok summary")) in entryListWithEntryGroup_informationState_hasContentDescription() 368 waitDisplayed(By.desc("List. OK. Actions needed. Recommendation summary")) { in entryListWithEntryGroup_recommendationState_hasActionsNeededContentDescription() 374 waitDisplayed(By.desc("List item. Recommendation title. Recommendation summary")) in entryListWithEntryGroup_recommendationState_hasActionsNeededContentDescription() 375 waitDisplayed(By.desc("List item. Ok title. Ok summary")) in entryListWithEntryGroup_recommendationState_hasActionsNeededContentDescription() 387 waitDisplayed(By.text("OK")) { it.click() } in entryListWithEntryGroup_clickingAnUnclickableDisabledEntry_doesNothing() 388 waitDisplayed(By.text("Unspecified title")) { it.click() } in entryListWithEntryGroup_clickingAnUnclickableDisabledEntry_doesNothing() 403 waitDisplayed(By.desc("List. OK. No info yet")) { it.click() } in entryListWithEntryGroup_unclickableDisabledEntry_hasContentDescription() 406 waitDisplayed(By.desc("List item. Unspecified title. Unspecified summary")) in entryListWithEntryGroup_unclickableDisabledEntry_hasContentDescription() [all …]
|
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/ |
D | UiTestHelper.kt | 58 fun waitDisplayed(selector: BySelector, uiObjectAction: (UiObject2) -> Unit = {}) { in <lambda>() method 79 if (text != null) waitDisplayed(By.text(text.toString())) in waitAllTextDisplayed() 88 waitDisplayed(buttonSelector(label), uiObjectAction) 165 waitDisplayed(By.desc(title)) in waitPageTitleDisplayed() 184 waitDisplayed(By.desc(DISMISS_ISSUE_LABEL)) { it.click() } in clickDismissIssueCard() 199 waitDisplayed(By.text(context.getString(group.titleResId))) { it.click() } in clickOpenSubpage() 204 waitDisplayed(By.text(MORE_ISSUES_LABEL)) { it.click() } in clickMoreIssuesCard()
|
D | SafetyCenterActivityLauncher.kt | 33 import com.android.safetycenter.testing.UiTestHelper.waitDisplayed 80 executeBlockAndExit(block) { waitDisplayed(By.text(entryPoint)) { it.click() } } in openPageAndExit()
|
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/HealthConnectTestHelper/src/android/healthconnect/cts/testhelper/ |
D | HealthConnectUiTestHelper.kt | 96 UiTestUtils.waitDisplayed(By.text("Data and access")) in openHomeFragment() 99 UiTestUtils.waitDisplayed(By.text("Browse data")) in openHomeFragment() 100 UiTestUtils.waitDisplayed(By.text("Manage data")) in openHomeFragment() 102 UiTestUtils.waitDisplayed(By.text("Delete all data")) in openHomeFragment()
|
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/libs/HealthConnectTestLib/src/android/healthconnect/cts/lib/ |
D | UiTestUtils.kt | 66 fun waitDisplayed( in waitDisplayed() method 103 waitDisplayed(By.text(string)) { it.click() } in clickOnText() 108 waitDisplayed(By.descContains(string)) { it.click() } in clickOnDescContains() 129 waitDisplayed(By.desc("Navigate up")) in navigateBackToHomeScreen() 152 waitDisplayed(By.desc(string)) { it.click() } in clickOnContentDescription() 158 if (text != null) waitDisplayed(By.text(text.toString())) in waitAllTextDisplayed()
|
/packages/modules/Permission/tests/functional/safetycenter/subpages/src/android/safetycenter/functional/ui/ |
D | SafetyCenterSubpagesTest.kt | 67 import com.android.safetycenter.testing.UiTestHelper.waitDisplayed 196 waitDisplayed(By.text(context.getString(lastGroup.summaryResId))) { it.click() } in launchSafetyCenter_withMultipleGroupsButFlagDisabled_showsExpandAndCollapseEntries() 286 waitDisplayed(By.text(context.getString(source.titleResId))) { it.click() } in entryListWithSingleSource_clickingOnSubpageEntry_redirectsToDifferentScreen() 305 waitDisplayed(By.desc("Information")) { it.click() } in entryListWithSingleSource_clickingTheInfoIcon_redirectsToDifferentScreen() 321 waitDisplayed(By.desc("Settings")) { it.click() } in entryListWithSingleSource_clickingTheGearIcon_redirectsToDifferentScreen() 338 waitDisplayed(By.text(sourceTestData.status!!.title.toString())) { it.click() } in entryListWithSingleSource_clickingAnUnclickableDisabledEntry_doesNothing() 356 waitDisplayed(By.text(sourceTestData.status!!.title.toString())) { it.click() } in entryListWithSingleSource_clickingAClickableDisabledEntry_redirectsToDifferentScreen() 587 waitDisplayed(By.text("Dismissed alerts")) { it.click() } in dismissedIssuesCard_expandWithOnlyDismissedIssues_showsAdditionalCard() 611 waitDisplayed(By.text("Dismissed alerts")) { it.click() } in dismissedIssuesCard_collapseWithOnlyDismissedIssues_hidesAdditionalCard() 614 waitDisplayed(By.text("Dismissed alerts")) { it.click() } in dismissedIssuesCard_collapseWithOnlyDismissedIssues_hidesAdditionalCard() [all …]
|
D | PrivacySubpageTest.kt | 49 import com.android.safetycenter.testing.UiTestHelper.waitDisplayed 116 waitDisplayed(By.text(context.getString(source.titleResId))) { it.click() } in privacySubpage_clickingOnEntry_redirectsToDifferentScreen()
|
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/ui/ |
D | SafetyCenterActivityTest.kt | 32 import com.android.safetycenter.testing.UiTestHelper.waitDisplayed 66 waitDisplayed(By.pkg(context.getSettingsPackageName())) in launchActivity_withFlagDisabled_opensSettings()
|
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/ |
D | SafetyCenterUnsupportedTest.kt | 60 import com.android.safetycenter.testing.UiTestHelper.waitDisplayed 89 waitDisplayed(By.pkg(context.getSettingsPackageName())) in launchActivity_opensSettings()
|