Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/template/app/
DAppListTest.kt26 import androidx.compose.ui.test.hasText in <lambda>()
59 matcher = hasText(OPTION_0), in <lambda>()
70 matcher = hasText(OPTION_0), in <lambda>()
85 matcher = hasText(context.getString(R.string.no_applications)), in <lambda>()
95 matcher = hasText(APP_ENTRY_A.label), in <lambda>()
105 matcher = hasText(HEADER), in <lambda>()
123 matcher = hasText(GROUP_A), in <lambda>()
DAppInfoTest.kt26 import androidx.compose.ui.test.hasText
56 composeTestRule.waitUntilExists(hasText(LABEL)) in appInfoLabel_isDisplayed()
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/lifecycle/
DFlowExtTest.kt20 import androidx.compose.ui.test.hasText
44 composeTestRule.waitUntilExists(hasText(TEXT)) in collectAsCallbackWithLifecycle()
57 composeTestRule.waitUntilExists(hasText(NEW_TEXT)) in collectAsCallbackWithLifecycle_changed()
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/framework/compose/
DNavControllerWrapperTest.kt24 import androidx.compose.ui.test.hasText
66 composeTestRule.waitUntilExists(hasText(ROUTE_A)) in navigate_canNavigateBack()
84 composeTestRule.waitUntilExists(hasText(ROUTE_A)) in navigate_canNavigateAndPopUpCurrent()
DOnBackEffectTest.kt23 import androidx.compose.ui.test.hasText
56 composeTestRule.waitUntilExists(hasText(ROUTE_A)) in onBackEffect()
/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/
DMovableElementTest.kt38 import androidx.compose.ui.test.hasText
105 hasText("count: 3") and in modifierElementIsDuplicatedDuringTransitions()
113 hasText("count: 0") and in modifierElementIsDuplicatedDuringTransitions()
209 hasText("count: 3") and in movableElementIsMovedAndComposedOnlyOnce()
230 hasText("count: 3") and in movableElementIsMovedAndComposedOnlyOnce()
DElementTest.kt56 import androidx.compose.ui.test.hasText in <lambda>()
1609 rule.onNode(hasText(fooInA)).assertIsDisplayed() in <lambda>()
1610 rule.onNode(hasText(fooInB)).assertDoesNotExist() in <lambda>()
1620 rule.onNode(hasText(fooInA)).assertDoesNotExist() in <lambda>()
1621 rule.onNode(hasText(fooInB)).assertIsDisplayed() in <lambda>()
1628 rule.onNode(hasText(fooInA)).assertIsDisplayed() in <lambda>()
1629 rule.onNode(hasText(fooInB)).assertDoesNotExist() in <lambda>()
/frameworks/base/libs/hwui/
DDisplayList.h144 [[nodiscard]] bool hasText() const { in hasText() function
145 return mImpl && mImpl->hasText(); in hasText()
170 bool hasText() const { return false; } in hasText() function
316 [[nodiscard]] bool hasText() const { in hasText() function
317 return apply([](const auto& it) -> auto { return it.hasText(); }); in hasText()
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/widget/editor/
DSettingsDropdownCheckBoxTest.kt23 import androidx.compose.ui.test.hasText
142 onNode(hasRole(Role.DropdownList) and hasText(text))
145 onNode(hasAnyAncestor(isPopup()) and hasText(option.text))
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenuItemView.java235 public boolean hasText() { in hasText() method in ActionMenuItemView
275 return hasText() && mItemData.getIcon() == null; in needsDividerBefore()
279 return hasText(); in needsDividerAfter()
284 final boolean textVisible = hasText(); in onMeasure()
/frameworks/base/packages/SettingsLib/Spa/testutils/src/com/android/settingslib/spa/testutils/
DComposeContentTestRuleExt.kt30 import androidx.compose.ui.test.hasText
56 onNode(hasAnyAncestor(isDialog()) and hasText(text)) in ComposeContentTestRule()
/frameworks/base/core/java/android/text/
DClipboardManager.java40 public abstract boolean hasText(); in hasText() method in ClipboardManager
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaDisplayList.h98 bool hasText() const { return mDisplayList.hasText(); } in hasText() function
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ui/binder/
DActionButtonViewBinder.kt65 private fun setMargins(iconView: View, textView: View, hasText: Boolean) { in setMargins()
68 if (hasText) { in setMargins()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DOverlayActionChip.java120 private void updatePadding(boolean hasText) { in updatePadding() argument
125 if (hasText) { in updatePadding()
/frameworks/base/core/java/android/widget/
DActionMenuView.java231 lp.preventEdgeOffset = isGeneratedItem && ((ActionMenuItemView) child).hasText(); in onMeasureExactFormat()
411 final boolean hasText = itemView != null && itemView.hasText(); in measureChildForCells()
414 if (cellsRemaining > 0 && (!hasText || cellsRemaining >= 2)) { in measureChildForCells()
422 if (hasText && cellsUsed < 2) cellsUsed = 2; in measureChildForCells()
425 final boolean expandable = !lp.isOverflowButton && hasText; in measureChildForCells()
DSearchView.java907 final boolean hasText = !TextUtils.isEmpty(mSearchSrcTextView.getText()); in updateViewsVisibility()
910 updateSubmitButton(hasText); in updateViewsVisibility()
922 updateVoiceButton(!hasText); in updateViewsVisibility()
948 private void updateSubmitButton(boolean hasText) { in updateSubmitButton() argument
951 && (hasText || !mVoiceButtonEnabled)) { in updateSubmitButton()
969 final boolean hasText = !TextUtils.isEmpty(mSearchSrcTextView.getText()); in updateCloseButton()
972 final boolean showClose = hasText || (mIconifiedByDefault && !mExpandedInActionView); in updateCloseButton()
976 closeButtonImg.setState(hasText ? ENABLED_STATE_SET : EMPTY_STATE_SET); in updateCloseButton()
1294 boolean hasText = !TextUtils.isEmpty(text); in onTextChanged()
1295 updateSubmitButton(hasText); in onTextChanged()
[all …]
/frameworks/layoutlib/bridge/src/android/content/
DClipboardManager.java122 public boolean hasText() { in hasText() method in ClipboardManager
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/framework/
DBrowseActivityTest.kt21 import androidx.compose.ui.test.hasText
132 composeTestRule.waitUntilExists(hasText(SppDialog.CONTENT)) in browseContent_dialog()
/frameworks/base/libs/hwui/canvas/
DCanvasOpBuffer.h107 [[nodiscard]] bool hasText() const { return mHas.text; } in hasText() function
/frameworks/base/core/java/com/android/internal/widget/
DScrollingTabContainerView.java463 final boolean hasText = !TextUtils.isEmpty(text); in update()
464 if (hasText) { in update()
486 setTooltipText(hasText? null : tab.getContentDescription()); in update()
/frameworks/base/libs/hwui/tests/unit/
DRenderNodeTests.cpp346 EXPECT_FALSE(rootNode.get()->getDisplayList().hasText()); in TEST()
360 EXPECT_FALSE(rootNode.get()->getDisplayList().hasText()); in TEST()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSliceView.java447 boolean hasText = !TextUtils.isEmpty(getText()); in updatePadding()
451 setPadding(0, padding, 0, hasText ? padding : 0); in updatePadding()
/frameworks/base/core/java/android/content/
DClipboardManager.java365 public boolean hasText() { in hasText() method in ClipboardManager
DClipData.java659 boolean hasText = false; in coerceToHtmlOrStyledText()
665 hasText = true; in coerceToHtmlOrStyledText()
671 if (hasHtml || hasText) { in coerceToHtmlOrStyledText()

12