OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:TextLink
(Results
1 - 9
of
9
) sorted by null
/frameworks/support/textclassifier/src/main/java/androidx/textclassifier/
TextLinks.java
48
private final List<
TextLink
> mLinks;
83
private TextLinks(String fullText, ArrayList<
TextLink
> links) {
91
public Collection<
TextLink
> getLinks() {
123
for (
TextLink
link : mLinks) {
176
mLinks = in.createTypedArrayList(
TextLink
.CREATOR);
182
public static final class
TextLink
implements Parcelable {
188
* Create a new
TextLink
.
192
TextLink
(int start, int end, @NonNull Map<String, Float> entityScores) {
259
public static final Parcelable.Creator<
TextLink
> CREATOR =
260
new Parcelable.Creator<
TextLink
>() {
[
all
...]
/frameworks/base/core/java/android/view/textclassifier/
TextLinks.java
96
private final List<
TextLink
> mLinks;
98
private TextLinks(String fullText, ArrayList<
TextLink
> links) {
116
public Collection<
TextLink
> getLinks() {
140
@Nullable Function<
TextLink
, TextLinkSpan> spanFactory) {
180
mLinks = in.createTypedArrayList(
TextLink
.CREATOR);
186
public static final class
TextLink
implements Parcelable {
193
* Create a new
TextLink
.
202
TextLink
(int start, int end, Map<String, Float> entityScores,
262
"
TextLink
{start=%s, end=%s, entityScores=%s, urlSpan=%s}",
278
public static final Parcelable.Creator<
TextLink
> CREATOR
[
all
...]
TextLinksParams.java
25
import android.view.textclassifier.TextLinks.
TextLink
;
43
private static final Function<
TextLink
, TextLinkSpan> DEFAULT_SPAN_FACTORY =
44
textLink
-> new TextLinkSpan(
textLink
);
48
private final Function<
TextLink
, TextLinkSpan> mSpanFactory;
53
Function<
TextLink
, TextLinkSpan> spanFactory) {
118
for (
TextLink
link : textLinks.getLinks()) {
152
private Function<
TextLink
, TextLinkSpan> mSpanFactory = DEFAULT_SPAN_FACTORY;
171
public Builder setSpanFactory(@Nullable Function<
TextLink
, TextLinkSpan> spanFactory) {
GenerateLinksLogger.java
80
for (TextLinks.
TextLink
link : links.getLinks()) {
156
void countLink(TextLinks.
TextLink
link) {
/frameworks/support/textclassifier/src/androidTest/java/androidx/textclassifier/
TextLinksTest.java
56
CustomTextLinkSpan(@Nullable TextLinks.
TextLink
textLink
) {
57
super(
textLink
);
63
public TextLinks.TextLinkSpan createSpan(TextLinks.
TextLink
textLink
) {
64
return new CustomTextLinkSpan(
textLink
);
107
final List<TextLinks.
TextLink
> resultList = new ArrayList<>(result.getLinks());
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
TextLinksTest.java
69
final List<TextLinks.
TextLink
> resultList = new ArrayList<>(result.getLinks());
TextClassificationManagerTest.java
415
for (TextLinks.
TextLink
link : ((TextLinks) o).getLinks()) {
/cts/tests/tests/view/src/android/view/textclassifier/cts/
TextClassificationManagerTest.java
199
for (TextLinks.
TextLink
link : links.getLinks()) {
/frameworks/base/core/tests/coretests/src/android/widget/
TextViewActivityTest.java
321
TextLinks.
TextLink
textLink
= addLinkifiedTextToTextView(R.id.textview);
322
int position = (
textLink
.getStart() +
textLink
.getEnd()) / 2;
331
final TextLinks.
TextLink
textLink
= addLinkifiedTextToTextView(R.id.nonselectable_textview);
332
final int position = (
textLink
.getStart() +
textLink
.getEnd()) / 2;
357
final TextLinks.
TextLink
textLink
= addLinkifiedTextToTextView(R.id.nonselectable_textview)
[
all
...]
Completed in 301 milliseconds