Home
last modified time | relevance | path

Searched refs:hasText (Results 1 – 25 of 48) sorted by relevance

12

/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/categorygrid/
DCategoryGridFeatureTest.kt41 import androidx.compose.ui.test.hasText
315 .onNode(hasText(TEST_ALBUM_NAME_PREFIX + "1")) in testNavigateCategoryGridAndAlbumsAreVisible()
373 hasText( in testConsistentCategoryFocus()
404 hasText( in testConsistentCategoryFocus()
453 composeTestRule.onNode(hasText(testAlbumDisplayName)).assertIsDisplayed() in testAlbumsCanBeSelected()
455 composeTestRule.onNode(hasText(testAlbumDisplayName)).performClick() in testAlbumsCanBeSelected()
493 composeTestRule.onNode(hasText(TEST_ALBUM_NAME_PREFIX + "1")).performTouchInput { in testSwipeLeftToNavigateToPhotoGrid()
545 composeTestRule.onNode(hasText(testAlbumDisplayName)).assertIsDisplayed() in testAlbumMediaShowsEmptyStateWhenEmpty()
546 composeTestRule.onNode(hasText(testAlbumDisplayName)).performClick() in testAlbumMediaShowsEmptyStateWhenEmpty()
558 .onNode(hasText(resources.getString(R.string.photopicker_photos_empty_state_title))) in testAlbumMediaShowsEmptyStateWhenEmpty()
[all …]
/packages/modules/HealthFitness/testapps/toolbox/tests/src/com/android/healthconnect/testapps/toolbox/
DDataTypeListTest.kt23 import androidx.compose.ui.test.hasText
58 .filterToOne(hasText(context.getString(R.string.activity_category))) in allCategoriesDisplayed()
62 .filterToOne(hasText(context.getString(R.string.body_measurements_category))) in allCategoriesDisplayed()
66 .filterToOne(hasText(context.getString(R.string.sleep_category))) in allCategoriesDisplayed()
70 .filterToOne(hasText(context.getString(R.string.vitals_category))) in allCategoriesDisplayed()
74 .filterToOne(hasText(context.getString(R.string.cycle_tracking_category))) in allCategoriesDisplayed()
78 .filterToOne(hasText(context.getString(R.string.nutrition_category))) in allCategoriesDisplayed()
82 .filterToOne(hasText(context.getString(R.string.wellness_category))) in allCategoriesDisplayed()
138 .onNode(hasText(context.getString(dataTypeLabel)) and hasTestTag("dataType")) in assertDataTypesDisplayed()
DToolboxNavigationTest.kt23 import androidx.compose.ui.test.hasText in <lambda>()
54 .onNode(hasText("Steps")) in <lambda>()
60 .onNode(hasText("Steps") and hasTestTag("dataTypeTitle")) in <lambda>()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/albumgrid/
DAlbumGridFeatureTest.kt41 import androidx.compose.ui.test.hasText
312 .onNode(hasText(TEST_ALBUM_NAME_PREFIX + "1")) in testNavigateAlbumGridAndAlbumsAreVisible()
378 composeTestRule.onAllNodes(hasText(text = TEST_ALBUM_NAME_PREFIX, substring = true)) in testConsistentAlbumFocus()
403 .onNode(hasText(TEST_ALBUM_NAME_PREFIX + "1", substring = true)) in testConsistentAlbumFocus()
447 composeTestRule.onNode(hasText(testAlbumDisplayName)).assertIsDisplayed() in testAlbumsCanBeSelected()
449 composeTestRule.onNode(hasText(testAlbumDisplayName)).performClick() in testAlbumsCanBeSelected()
487 composeTestRule.onNode(hasText(TEST_ALBUM_NAME_PREFIX + "1")).performTouchInput { in testSwipeLeftToNavigateToPhotoGrid()
537 composeTestRule.onNode(hasText(testAlbumDisplayName)).assertIsDisplayed() in testAlbumMediaShowsEmptyStateWhenEmpty()
538 composeTestRule.onNode(hasText(testAlbumDisplayName)).performClick() in testAlbumMediaShowsEmptyStateWhenEmpty()
550 .onNode(hasText(resources.getString(R.string.photopicker_photos_empty_state_title))) in testAlbumMediaShowsEmptyStateWhenEmpty()
[all …]
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/search/
DSearchFeatureTest.kt37 import androidx.compose.ui.test.hasText
331 hasText( in testSearchBar_whenFlagEnabled_isDisplayed()
360 .onNode(hasText(resources.getString(R.string.photopicker_search_placeholder_text))) in testSearchBar_whenClicked_opensSearchViewWithBackAction()
369 hasText( in testSearchBar_whenClicked_opensSearchViewWithBackAction()
387 .onNode(hasText(resources.getString(R.string.photopicker_search_placeholder_text))) in testSearchBar_whenClicked_opensSearchViewWithBackAction()
406 .onNode(hasText(resources.getString(R.string.photopicker_search_placeholder_text))) in testSearchBar_onBackAction_clearsQuery()
415 hasText( in testSearchBar_onBackAction_clearsQuery()
435 .onNode(hasText(resources.getString(R.string.photopicker_search_placeholder_text))) in testSearchBar_onBackAction_clearsQuery()
460 .onNode(hasText(resources.getString(R.string.photopicker_search_placeholder_text))) in testSearchBar_mimetypeOnlyVideo_showsVideoPlaceHolderText()
466 hasText( in testSearchBar_mimetypeOnlyVideo_showsVideoPlaceHolderText()
[all …]
/packages/apps/TV/tests/robotests/src/com/android/tv/guide/
DProgramItemViewTest.java161 assertThat(mPprogramItemView).hasText("a gap"); in setValue_noProgram()
170 assertThat(mPprogramItemView).hasText("No information"); in setValue_programNoTitle()
180 assertThat(mPprogramItemView).hasText("A good program"); in setValue_programTitle()
193 assertThat(mPprogramItemView).hasText("A good program"); in setValue_programDescriptionBlocked()
207 assertThat(mPprogramItemView).hasText("A good program\n\u200DThe one with an episode"); in setValue_programEpisode()
222 assertThat(mPprogramItemView).hasText("A good program\n\u200DThe one with an episode"); in setValue_programEpisodeAndDescrition()
239 assertThat(mPprogramItemView).hasText("A good program"); in setValue_scheduledConflict()
256 assertThat(mPprogramItemView).hasText("A good program"); in setValue_scheduled()
273 assertThat(mPprogramItemView).hasText("A good program"); in setValue_recordingInProgress()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/apn/
DApnEditPageProviderTest.kt24 import androidx.compose.ui.test.hasText
84 composeTestRule.onNode(hasScrollAction()).performScrollToNode(hasText(proxy, true)) in proxy_displayed()
92 composeTestRule.onNode(hasScrollAction()).performScrollToNode(hasText(port, true)) in port_displayed()
100 composeTestRule.onNode(hasScrollAction()).performScrollToNode(hasText(apnType, true)) in apnType_displayed()
108 composeTestRule.onNode(hasScrollAction()).performScrollToNode(hasText(apnRoaming, true)) in apnRoaming_displayed()
116 composeTestRule.onNode(hasScrollAction()).performScrollToNode(hasText(passwordTitle, true)) in password_displayed()
DApnNetworkTypeCheckBoxTest.kt23 import androidx.compose.ui.test.hasText
57 composeTestRule.onNode(hasText(LTE_TEXT) and isToggleable()).performClick() in networkType_changed()
70 composeTestRule.onNode(hasText(LTE_TEXT) and isToggleable()).performClick() in networkType_changed_back2Default()
71 composeTestRule.onNode(hasText(LTE_TEXT) and isToggleable()).performClick() in networkType_changed_back2Default()
80 onNode(hasText(text) and hasRole(Role.DropdownList)) in onDropdownListWithText()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/cloudmedia/
DCloudMediaFeatureTest.kt32 import androidx.compose.ui.test.hasText
320 hasText( in testCloudMediaOverflowMenuItemIsDisplayed()
366 hasText( in testCloudMediaOverflowMenuItemLaunchesCloudSettings()
441 composeTestRule.onNode(hasText(expectedTitle)).assertIsDisplayed() in testCloudMediaAvailableBanner()
442 composeTestRule.onNode(hasText(expectedMessage)).assertIsDisplayed() in testCloudMediaAvailableBanner()
509 composeTestRule.onNode(hasText(expectedTitle)).assertIsNotDisplayed() in testCloudMediaAvailableBannerAsDismissed()
510 composeTestRule.onNode(hasText(expectedMessage)).assertIsNotDisplayed() in testCloudMediaAvailableBannerAsDismissed()
564 composeTestRule.onNode(hasText(expectedTitle)).assertIsDisplayed() in testCloudChooseAccountBanner()
565 composeTestRule.onNode(hasText(expectedMessage)).assertIsDisplayed() in testCloudChooseAccountBanner()
632 composeTestRule.onNode(hasText(expectedTitle)).assertIsNotDisplayed() in testCloudChooseAccountBannerAsDismissed()
[all …]
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/embedded/
DEmbeddedFeaturesTest.kt42 import androidx.compose.ui.test.hasText
303 hasAnyChild(hasText(photosGridNavButtonLabel)) and in testNavigationBarIsNotDisplayedInEmbeddedWhenCollapsed_searchFlagOff()
304 hasAnyChild(hasText(albumsGridNavButtonLabel)) in testNavigationBarIsNotDisplayedInEmbeddedWhenCollapsed_searchFlagOff()
333 .onNode(hasText(photosGridNavButtonLabel)) in testNavigationBarIsDisplayedInEmbeddedWhenExpanded_searchFlagOff()
337 .onNode(hasText(albumsGridNavButtonLabel)) in testNavigationBarIsDisplayedInEmbeddedWhenExpanded_searchFlagOff()
366 .onNode(hasText(photosGridNavButtonLabel)) in testNavigationBarIsDisplayedInEmbeddedWhenExpanded_searchFlagOn()
370 .onNode(hasText(categoryGridNavButtonLabel)) in testNavigationBarIsDisplayedInEmbeddedWhenExpanded_searchFlagOn()
587 composeTestRule.onNode(hasText(TEST_MESSAGE)).assertIsDisplayed() in testSnackbarDisplaysOnEvent()
590 composeTestRule.onNode(hasText(TEST_MESSAGE)).assertIsNotDisplayed() in testSnackbarDisplaysOnEvent()
709 .onNode(hasText(resources.getString(R.string.photopicker_photos_empty_state_body))) in testSwipeUpInCollapseMode_emptyPhotosGrid_transferTouchToHost()
[all …]
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/navigationbar/
DNavigationBarFeatureTest.kt35 import androidx.compose.ui.test.hasText
247 .onNode(hasText(photosGridNavButtonLabel)) in testNavigationBarIsVisibleWithFeatureTabs_searchFlagOff()
252 .onNode(hasText(albumsGridNavButtonLabel)) in testNavigationBarIsVisibleWithFeatureTabs_searchFlagOff()
295 .onNode(hasText(photosGridNavButtonLabel)) in testNavigationBarIsVisibleWithFeatureTabs_searchFlagOn()
300 .onNode(hasText(categoryGridNavButtonLabel)) in testNavigationBarIsVisibleWithFeatureTabs_searchFlagOn()
333 .onNode(hasText(photosGridNavButtonLabel)) in testNavigationBar_withSearchFlagDisabled_IsVisibleWithFeatureTabs()
338 .onNode(hasText(albumsGridNavButtonLabel)) in testNavigationBar_withSearchFlagDisabled_IsVisibleWithFeatureTabs()
371 .onNode(hasText(photosGridNavButtonLabel)) in testNavigationBar_withSearchFlagEnabled_IsVisibleWithFeatureTabs()
376 .onNode(hasText(categoryGridNavButtonLabel)) in testNavigationBar_withSearchFlagEnabled_IsVisibleWithFeatureTabs()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DSliceTester.java245 assertThat(hasText(sliceItems, title, HINT_TITLE)).isTrue(); in assertAnySliceItemContainsTitle()
257 assertThat(hasText(sliceItems, subtitle, null /* hints */)).isTrue(); in assertAnySliceItemContainsSubtitle()
269 assertThat(hasText(sliceItems, subtitle, null /* hints */)).isFalse(); in assertNoSliceItemContainsSubtitle()
272 private static boolean hasText(List<SliceItem> sliceItems, String text, String hints) { in hasText() method in SliceTester
273 boolean hasText = false; in hasText()
283 hasText = true; in hasText()
288 return hasText; in hasText()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/mediaprepare/
DMediaPreparerTest.kt42 import androidx.compose.ui.test.hasText
443 composeTestRule.waitUntilExactlyOneExists(hasText(loadingDialogTitle)) in testMediaPreparerShowsPreparingDialog()
444 composeTestRule.onNode(hasText(loadingDialogTitle)).assertIsDisplayed() in testMediaPreparerShowsPreparingDialog()
446 .onNode(hasText(resources.getString(android.R.string.cancel))) in testMediaPreparerShowsPreparingDialog()
468 composeTestRule.waitUntilExactlyOneExists(hasText(loadingDialogTitle)) in testMediaPreparerCancelPrepareFromPreparingDialog()
469 composeTestRule.onNode(hasText(loadingDialogTitle)).assertIsDisplayed() in testMediaPreparerCancelPrepareFromPreparingDialog()
471 .onNode(hasText(resources.getString(android.R.string.cancel))) in testMediaPreparerCancelPrepareFromPreparingDialog()
479 composeTestRule.onNode(hasText(loadingDialogTitle)).assertIsNotDisplayed() in testMediaPreparerCancelPrepareFromPreparingDialog()
593 composeTestRule.waitUntilExactlyOneExists(hasText(errorDialogTitle)) in testMediaPreparerFailureShowsErrorDialog()
594 composeTestRule.onNode(hasText(errorDialogTitle)).assertIsDisplayed() in testMediaPreparerFailureShowsErrorDialog()
[all …]
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/
DAppInstallerInfoPreferenceTest.kt27 import androidx.compose.ui.test.hasText
163 composeTestRule.waitUntilExists(hasText("More info on installer label").and(isEnabled())) in whenIsInstantApp_hasSummaryForInstant()
170 composeTestRule.waitUntilExists(hasText("App installed from installer label")) in whenNotInstantApp()
181 hasText("App installed from installer label (via initiating label)")) in whenNotInstantAppAndDifferentInitiatingPackage()
204 private val preferenceNode = hasText(context.getString(R.string.app_install_details_title))
DAppInfoSettingsMoreOptionsTest.kt36 import androidx.compose.ui.test.hasText
153 composeTestRule.waitUntilExists(hasText(context.getString(R.string.app_factory_reset))) in uninstallUpdates_updatedSystemAppAndUserAdmin_displayed()
171 hasText(context.getString(R.string.uninstall_all_users_text)) in uninstallForAllUsers_regularAppAndPrimaryUser_displayed()
209 hasText(context.getString(R.string.uninstall_all_users_text)) in uninstallForAllUsers_appHiddenNotInQuietModeAndPrimaryUser_displayed()
250 hasText(context.getString(R.string.app_restricted_settings_lockscreen_title)) in shouldShowAccessRestrictedSettings_appOp()
279 hasText(context.getString(R.string.app_restricted_settings_lockscreen_title)) in shouldShowAccessRestrictedSettings()
DAppBatteryPreferenceTest.kt27 import androidx.compose.ui.test.hasText
137 hasText(context.getString(R.string.no_battery_summary)) in noConsumePower()
150 composeTestRule.waitUntilExactlyOneExists(hasText("46% use since last full charge")) in hasConsumePower()
161 composeTestRule.waitUntilExactlyOneExists(hasText("10% use since last full charge")) in whenClick_openDetailsPage()
DAppNotificationPreferenceTest.kt24 import androidx.compose.ui.test.hasText
77 composeTestRule.waitUntilExists(hasText(context.getString(R.string.notifications_label))) in title_displayed()
84 composeTestRule.waitUntilExists(hasText(SUMMARY)) in summary_displayed()
DAppStoragePreferenceTest.kt27 import androidx.compose.ui.test.hasText
92 composeTestRule.waitUntilExists(hasText("120 byte used in internal storage")) in internalApp_displayed()
107 composeTestRule.waitUntilExists(hasText("120 byte used in external storage")) in externalApp_displayed()
DInstantAppDomainsPreferenceTest.kt26 import androidx.compose.ui.test.hasText
100 hasText(context.getString(R.string.app_launch_supported_domain_urls_title)) and in title_displayed()
111 hasText(context.getString(R.string.domain_urls_summary_none))) in noDomain()
DAppDataUsagePreferenceTest.kt28 import androidx.compose.ui.test.hasText in <lambda>()
124 composeTestRule.waitUntilExists(hasText(context.getString(R.string.no_data_usage))) in <lambda>()
137 composeTestRule.waitUntilExists(hasText("123 byte used since Oct 25, 2022")) in <lambda>()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/profileselector/
DProfileSelectorFeatureTest.kt36 import androidx.compose.ui.test.hasText
329 .onNode(hasText(resources.getString(R.string.photopicker_profile_primary_label))) in testHideQuietModeProfilesWhenRequestedPostV()
335 .onNode(hasText(resources.getString(R.string.photopicker_profile_managed_label))) in testHideQuietModeProfilesWhenRequestedPostV()
340 composeTestRule.onNode(hasText("other profile")).assertIsNotDisplayed() in testHideQuietModeProfilesWhenRequestedPostV()
407 .onNode(hasText(resources.getString(R.string.photopicker_profile_primary_label))) in testAvailableProfilesAreDisplayedPostV()
413 .onNode(hasText(resources.getString(R.string.photopicker_profile_managed_label))) in testAvailableProfilesAreDisplayedPostV()
449 .onNode(hasText(resources.getString(R.string.photopicker_profile_primary_label))) in testAvailableProfilesAreDisplayedPreV()
455 .onNode(hasText(resources.getString(R.string.photopicker_profile_managed_label))) in testAvailableProfilesAreDisplayedPreV()
DSwitchProfileBannerTest.kt33 import androidx.compose.ui.test.hasText
219 composeTestRule.onNode(hasText(expectedMessage)).assertIsDisplayed() in testSwitchProfileBannerIsDisplayedWhenLaunchingProfileIsNotPrimary()
225 .onNode(hasText(switchButtonLabel)) in testSwitchProfileBannerIsDisplayedWhenLaunchingProfileIsNotPrimary()
237 composeTestRule.onNode(hasText(expectedMessage)).assertIsNotDisplayed() in testSwitchProfileBannerIsDisplayedWhenLaunchingProfileIsNotPrimary()
238 composeTestRule.onNode(hasText(switchButtonLabel)).assertIsNotDisplayed() in testSwitchProfileBannerIsDisplayedWhenLaunchingProfileIsNotPrimary()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/preview/
DPreviewFeatureTest.kt53 import androidx.compose.ui.test.hasText
529 .onNode(hasText(deselectButtonLabel)) in testPreviewSelectionActions()
541 .onNode(hasText(selectButtonLabel)) in testPreviewSelectionActions()
630 composeTestRule.onNode(hasText(deselectButtonLabel)).assertIsNotDisplayed() in testPreviewSelectionActionsWithGrantsAwareSelection()
632 composeTestRule.onNode(hasText(selectButtonLabel)).assertIsNotDisplayed() in testPreviewSelectionActionsWithGrantsAwareSelection()
678 .onNode(hasText(buttonLabel)) in testPreviewSelectInSingleSelect()
737 .onNode(hasText(buttonLabel)) in testPreviewDoneNavigatesBack()
1175 composeTestRule.onNode(hasText(errorTitle)).assertIsDisplayed() in testVideoUiRetriablePlaybackError()
1176 composeTestRule.onNode(hasText(errorMessage)).assertIsDisplayed() in testVideoUiRetriablePlaybackError()
1178 .onNode(hasText(retryButtonLabel)) in testVideoUiRetriablePlaybackError()
[all …]
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/network/
DSimOnboardingSelectSimTest.kt28 import androidx.compose.ui.test.hasText
175 composeTestRule.waitUntilExists(hasText(NUMBER_1)) in simOnboardingSelectSimImpl_showItem_show3Items()
177 composeTestRule.waitUntilExists(hasText(NUMBER_2)) in simOnboardingSelectSimImpl_showItem_show3Items()
179 composeTestRule.waitUntilExists(hasText(NUMBER_3)) in simOnboardingSelectSimImpl_showItem_show3Items()
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/compat/builders/impl/
DListBuilderImpl.java166 checkRow(true, impl.hasText()); in addRow()
172 checkRow(true, builder.hasText()); in addRow()
213 checkRow(true, impl.hasText()); in addRating()
220 checkRow(true, impl.hasText()); in addInputRange()
227 checkRow(true, impl.hasText()); in addRange()
319 private void checkRow(boolean isTypeValid, boolean hasText) { in checkRow() argument
323 mFirstRowHasText = hasText; in checkRow()
412 boolean hasText() { in hasText() method in ListBuilderImpl.RangeBuilderImpl
563 boolean hasText() { in hasText() method in ListBuilderImpl.RatingBuilderImpl
728 boolean hasText() { in hasText() method in ListBuilderImpl.RowBuilderImpl

12