/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/apn/ |
D | ApnEditPageProviderTest.kt | 26 import androidx.compose.ui.test.hasText 103 .performScrollToNode(hasText(proxy, true)) in proxy_displayed() 113 .performScrollToNode(hasText(port, true)) in port_displayed() 123 .performScrollToNode(hasText(apnType, true)) in apn_type_displayed() 133 .performScrollToNode(hasText(apnRoaming, true)) in apn_roaming_displayed() 144 .performScrollToNode(hasText(apnEnable, true)) in carrier_enabled_displayed() 154 .performScrollToNode(hasText(apnEnable, true)) in carrier_enabled_isChecked() 165 .performScrollToNode(hasText(apnEnable, true)) in carrier_enabled_checkChanged() 176 .performScrollToNode(hasText(networkType, true)) in network_type_displayed() 186 .performScrollToNode(hasText(networkType, true)) in network_type_changed() [all …]
|
/packages/apps/TV/tests/robotests/src/com/android/tv/guide/ |
D | ProgramItemViewTest.java | 161 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/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/cloudmedia/ |
D | MediaPreloaderTest.kt | 35 import androidx.compose.ui.test.hasText 310 composeTestRule.waitUntilExactlyOneExists(hasText(loadingDialogTitle)) in testMediaPreloaderShowsLoadingDialog() 311 composeTestRule.onNode(hasText(loadingDialogTitle)).assertIsDisplayed() in testMediaPreloaderShowsLoadingDialog() 313 .onNode(hasText(resources.getString(android.R.string.cancel))) in testMediaPreloaderShowsLoadingDialog() 356 composeTestRule.waitUntilExactlyOneExists(hasText(loadingDialogTitle)) in testMediaPreloaderCancelPreloadFromLoadingDialog() 357 composeTestRule.onNode(hasText(loadingDialogTitle)).assertIsDisplayed() in testMediaPreloaderCancelPreloadFromLoadingDialog() 359 .onNode(hasText(resources.getString(android.R.string.cancel))) in testMediaPreloaderCancelPreloadFromLoadingDialog() 367 composeTestRule.onNode(hasText(loadingDialogTitle)).assertIsNotDisplayed() in testMediaPreloaderCancelPreloadFromLoadingDialog() 450 composeTestRule.waitUntilExactlyOneExists(hasText(errorDialogTitle)) in testMediaPreloaderFailureShowsErrorDialog() 451 composeTestRule.onNode(hasText(errorDialogTitle)).assertIsDisplayed() in testMediaPreloaderFailureShowsErrorDialog() [all …]
|
D | CloudMediaFeatureTest.kt | 30 import androidx.compose.ui.test.hasText 159 hasText( in <lambda>() 208 hasText( in <lambda>()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/ |
D | SliceTester.java | 245 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/preview/ |
D | PreviewFeatureTest.kt | 49 import androidx.compose.ui.test.hasText 413 composeTestRule.onNode(hasText(deselectButtonLabel)).assertDoesNotExist() in testPreviewMediaToggleSelection() 415 .onNode(hasText(selectButtonLabel)) in testPreviewMediaToggleSelection() 427 composeTestRule.onNode(hasText(selectButtonLabel)).assertDoesNotExist() in testPreviewMediaToggleSelection() 430 .onNode(hasText(deselectButtonLabel)) in testPreviewMediaToggleSelection() 509 .onNode(hasText(deselectButtonLabel)) in testPreviewSelectionActions() 521 .onNode(hasText(selectButtonLabel)) in testPreviewSelectionActions() 571 .onNode(hasText(buttonLabel)) in testPreviewEmitsMediaSelectionConfirmedEvent() 972 composeTestRule.onNode(hasText(errorTitle)).assertIsDisplayed() in testVideoUiRetriablePlaybackError() 973 composeTestRule.onNode(hasText(errorMessage)).assertIsDisplayed() in testVideoUiRetriablePlaybackError() [all …]
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/ |
D | AppInstallerInfoPreferenceTest.kt | 27 import androidx.compose.ui.test.hasText 145 composeTestRule.waitUntilExists(hasText("More info on installer label").and(isEnabled())) in whenIsInstantApp_hasSummaryForInstant() 152 composeTestRule.waitUntilExists(hasText("App installed from installer label")) in whenNotInstantApp() 163 hasText("App installed from installer label (via initiating label)")) in whenNotInstantAppAndDifferentInitiatingPackage() 186 private val preferenceNode = hasText(context.getString(R.string.app_install_details_title))
|
D | AppInfoSettingsMoreOptionsTest.kt | 36 import androidx.compose.ui.test.hasText 153 composeTestRule.waitUntilExists(hasText(context.getString(R.string.app_factory_reset))) in uninstallUpdates_updatedSystemAppAndUserAdmin_displayed() 170 hasText(context.getString(R.string.uninstall_all_users_text)) in uninstallForAllUsers_regularAppAndPrimaryUser_displayed() 190 hasText(context.getString(R.string.uninstall_all_users_text)) in uninstallForAllUsers_appHiddenNotInQuietModeAndPrimaryUser_displayed() 230 hasText(context.getString(R.string.app_restricted_settings_lockscreen_title)) in shouldShowAccessRestrictedSettings_appOp() 259 hasText(context.getString(R.string.app_restricted_settings_lockscreen_title)) in shouldShowAccessRestrictedSettings()
|
D | AppBatteryPreferenceTest.kt | 27 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()
|
D | AppStoragePreferenceTest.kt | 27 import androidx.compose.ui.test.hasText 92 composeTestRule.waitUntilExists(hasText("120 B used in internal storage")) in internalApp_displayed() 107 composeTestRule.waitUntilExists(hasText("120 B used in external storage")) in externalApp_displayed()
|
D | AppLocalePreferenceTest.kt | 26 import androidx.compose.ui.test.hasText 103 hasText(context.getString(R.string.app_locale_preference_title)) in whenCanDisplayLocalUi_displayed() 105 composeTestRule.waitUntilExists(hasText(SUMMARY)) in whenCanDisplayLocalUi_displayed()
|
D | AppDataUsagePreferenceTest.kt | 28 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 B used since Oct 25, 2022")) in <lambda>()
|
D | InteractAcrossProfilesDetailsPreferenceTest.kt | 27 import androidx.compose.ui.test.hasText 117 composeTestRule.waitUntilExists(hasText(SUMMARY)) in hasSummary()
|
D | AppAllServicesPreferenceTest.kt | 33 import androidx.compose.ui.test.hasText 145 composeTestRule.waitUntilExists(hasText(SUMMARY)) in hasSummary()
|
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/profileselector/ |
D | ProfileSelectorFeatureTest.kt | 32 import androidx.compose.ui.test.hasText 249 .onNode(hasText(resources.getString(R.string.photopicker_profile_primary_label))) in testAvailableProfilesAreDisplayedPostV() 255 .onNode(hasText(resources.getString(R.string.photopicker_profile_managed_label))) in testAvailableProfilesAreDisplayedPostV() 291 .onNode(hasText(resources.getString(R.string.photopicker_profile_primary_label))) in testAvailableProfilesAreDisplayedPreV() 297 .onNode(hasText(resources.getString(R.string.photopicker_profile_managed_label))) in testAvailableProfilesAreDisplayedPreV()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/network/ |
D | SimOnboardingSelectSimTest.kt | 28 import androidx.compose.ui.test.hasText 177 composeTestRule.waitUntilExists(hasText(NUMBER_1)) in simOnboardingSelectSimImpl_showItem_show3Items() 179 composeTestRule.waitUntilExists(hasText(NUMBER_2)) in simOnboardingSelectSimImpl_showItem_show3Items() 181 composeTestRule.waitUntilExists(hasText(NUMBER_3)) in simOnboardingSelectSimImpl_showItem_show3Items()
|
D | SimOnboardingLabelSimTest.kt | 33 import androidx.compose.ui.test.hasText 152 composeTestRule.waitUntilExists(hasText(NUMBER_1)) in simOnboardingLabelSimImpl_showItem_show3Items() 154 composeTestRule.waitUntilExists(hasText(NUMBER_2)) in simOnboardingLabelSimImpl_showItem_show3Items() 156 composeTestRule.waitUntilExists(hasText(NUMBER_3)) in simOnboardingLabelSimImpl_showItem_show3Items()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/ |
D | MobileNetworkSwitchControllerTest.kt | 25 import androidx.compose.ui.test.hasText 134 hasText(context.getString(R.string.mobile_network_use_sim_on)) and isOn() in isChecked_subscriptionEnabled_switchIsOn() 147 hasText(context.getString(R.string.mobile_network_use_sim_on)) and isOff() in isChecked_subscriptionNotEnabled_switchIsOff()
|
/packages/apps/TvSystemUI/src/com/android/systemui/tv/media/ |
D | TvMediaOutputAdapter.java | 298 boolean hasText = groupDividerTitle != null && !groupDividerTitle.isEmpty(); in onBind() 299 mHeaderText.setVisibility(hasText ? View.VISIBLE : View.GONE); in onBind() 300 mDividerLine.setVisibility(hasText ? View.GONE : View.VISIBLE); in onBind() 301 if (hasText) { in onBind()
|
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitCarUiProxy/plugin/src/main/java/com/chassis/car/ui/plugin/toolbar/ |
D | MenuItemRenderer.java | 112 boolean hasText = !TextUtils.isEmpty(mMenuItem.getTitle()); in updateView() 118 || (!checkable && !hasIcon && !hasText)) { in updateView() 129 } else if (hasText && hasIcon && textAndIcon) { in updateView()
|
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/snackbar/ |
D | SnackbarFeatureTest.kt | 28 import androidx.compose.ui.test.hasText 172 composeTestRule.onNode(hasText(TEST_MESSAGE)).assertIsDisplayed() in testSnackbarDisplaysOnEvent() 176 composeTestRule.onNode(hasText(TEST_MESSAGE)).assertIsNotDisplayed() in testSnackbarDisplaysOnEvent()
|
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/components/mediagrid/ |
D | MediaGridTest.kt | 38 import androidx.compose.ui.test.hasText in <lambda>() 490 composeTestRule.onNode(hasText(FIRST_SEPARATOR_LABEL)).assertIsDisplayed() in <lambda>() 491 composeTestRule.onNode(hasText(SECOND_SEPARATOR_LABEL)).assertIsDisplayed() in <lambda>() 521 .assertAll(hasText(CUSTOM_ITEM_FACTORY_TEXT)) in <lambda>() 553 .assertAll(hasText(CUSTOM_ITEM_SEPARATOR_TEXT)) in <lambda>()
|
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/navigationbar/ |
D | NavigationBarFeatureTest.kt | 29 import androidx.compose.ui.test.hasText 202 .onNode(hasText(photosGridNavButtonLabel)) in testNavigationBarIsVisibleWithFeatureTabs() 207 .onNode(hasText(albumsGridNavButtonLabel)) in testNavigationBarIsVisibleWithFeatureTabs()
|
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/selectionbar/ |
D | SelectionBarFeatureTest.kt | 35 import androidx.compose.ui.test.hasText 282 composeTestRule.onNode(hasText(SimpleUiFeature.BUTTON_LABEL)).assertDoesNotExist() in testSelectionBarShowsSecondaryAction() 288 .onNode(hasText(SimpleUiFeature.BUTTON_LABEL)) in testSelectionBarShowsSecondaryAction() 331 .onNode(hasText(buttonLabel)) in testSelectionBarPrimaryAction()
|
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/overflowmenu/ |
D | OverflowMenuFeatureTest.kt | 31 import androidx.compose.ui.test.hasText 258 .onNode(hasText(SimpleUiFeature.Registration.BUTTON_LABEL)) in testOverflowMenuIsHiddenAfterItemSelected() 265 .onNode(hasText(SimpleUiFeature.Registration.BUTTON_LABEL)) in testOverflowMenuIsHiddenAfterItemSelected()
|