Home
last modified time | relevance | path

Searched refs:textLinks (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/
DClipboardOverlayUtils.java71 public Optional<RemoteAction> getAction(TextLinks textLinks, String source) { in getAction() argument
72 return getActions(textLinks).stream().filter(remoteAction -> { in getAction()
78 private ArrayList<RemoteAction> getActions(TextLinks textLinks) { in getActions() argument
80 for (TextLinks.TextLink link : textLinks.getLinks()) { in getActions()
83 >= textLinks.getText().length() * MINIMUM_ENTITY_PROPORTION) { in getActions()
85 textLinks.getText(), link.getStart(), link.getEnd(), null); in getActions()
DClipboardModel.kt35 val textLinks: TextLinks?, constant in com.android.systemui.clipboardoverlay.ClipboardModel
84 item.textLinks, in fromClipData()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/clipboardoverlay/
DClipboardOverlayUtilsTest.java123 TextLinks.Builder textLinks = new TextLinks.Builder("test text of length 22"); in test_getAction_skipsShortEntity() local
126 textLinks.addLink(20, 22, scores); in test_getAction_skipsShortEntity()
127 textLinks.addLink(0, 22, scores); in test_getAction_skipsShortEntity()
140 RemoteAction result = mClipboardUtils.getAction(textLinks.build(), "test").orElse(null); in test_getAction_skipsShortEntity()
209 TextLinks.Builder textLinks = new TextLinks.Builder("test text of length 22"); in getFakeTextLinksBuilder() local
212 textLinks.addLink(0, 22, scores); in getFakeTextLinksBuilder()
213 textLinks.addLink(0, 22, scores); in getFakeTextLinksBuilder()
214 return textLinks; in getFakeTextLinksBuilder()
DClipboardModelTest.kt63 assertEquals(mSampleClipData.getItemAt(0).textLinks, model.textLinks) in test_textClipData()
/frameworks/base/core/java/android/view/textclassifier/
DTextLinksParams.java104 public int apply(@NonNull Spannable text, @NonNull TextLinks textLinks) { in apply() argument
106 Objects.requireNonNull(textLinks); in apply()
116 if (!textString.startsWith(textLinks.getText().toString())) { in apply()
119 if (textLinks.getLinks().isEmpty()) { in apply()
124 for (TextLink link : textLinks.getLinks()) { in apply()
/frameworks/base/core/java/android/content/
DClipData.java455 public void setTextLinks(TextLinks textLinks) { in setTextLinks() argument
456 mTextLinks = textLinks; in setTextLinks()
1371 TextLinks textLinks = in.readTypedObject(TextLinks.CREATOR); in ClipData() local
1374 item.setTextLinks(textLinks); in ClipData()