Home | History | Annotate | Download | only in util

Lines Matching defs:span

178                 for (ClickableSpan span : linkSpans) {
179 virtualViewIds.add(spannedText.getSpanStart(span));
186 final ClickableSpan span = getSpanForOffset(virtualViewId);
187 if (span != null) {
188 event.setContentDescription(getTextForSpan(span));
199 final ClickableSpan span = getSpanForOffset(virtualViewId);
200 if (span != null) {
201 info.setContentDescription(getTextForSpan(span));
208 getBoundsForSpan(span, mTempRect);
223 ClickableSpan span = getSpanForOffset(virtualViewId);
224 if (span != null) {
225 span.onClick(mView);
246 private CharSequence getTextForSpan(ClickableSpan span) {
251 spannedText.getSpanStart(span),
252 spannedText.getSpanEnd(span));
257 // Find the bounds of a span. If it spans multiple lines, it will only return the bounds for
259 private Rect getBoundsForSpan(ClickableSpan span, Rect outRect) {
266 final int spanStart = spannedText.getSpanStart(span);
267 final int spanEnd = spannedText.getSpanEnd(span);
274 // If the span is on a single line, adjust both the left and right bounds
275 // so outrect is exactly bounding the span.
279 // If the span wraps across multiple lines, only use the first line (as
281 // outrect to where the span starts, leaving the "end" of outrect at the end