Searched refs:span (Results 1 - 25 of 72) sorted by path

123

/frameworks/base/core/java/android/inputmethodservice/
H A DExtractEditText.java207 protected void setSpan_internal(Object span, int start, int end, int flags) { argument
210 mIME.onExtractedSetSpan(span, start, end, flags);
H A DInputMethodService.java2172 public void onExtractedSetSpan(Object span, int start, int end, int flags) { argument
2178 ((Spannable) text).setSpan(span, 0, text.length(), flags);
/frameworks/base/core/java/android/os/
H A DStrictMode.java1964 * A tracked, critical time span. (e.g. during an animation.)
1967 * during rapid span entries and exits.
1988 * To be called when the critical span is complete (i.e. the
2036 // The no-op span that's used in user builds.
2075 * Enter a named critical span (e.g. an animation)
2078 * to any strictmode violation that happens while this span is
2079 * active. You must call finish() on the span when done.
2097 Span span = null;
2100 span = state.mFreeListHead;
2101 state.mFreeListHead = span
[all...]
/frameworks/base/core/java/android/service/notification/
H A DZenModeConfig.java933 final long span = time - now;
934 c = toTimeCondition(context, time, Math.round(span / (float) MINUTES_MS),
/frameworks/base/core/java/android/text/
H A DAlteredCharSequence.java70 public int getSpanStart(Object span) { argument
71 return mSpanned.getSpanStart(span);
74 public int getSpanEnd(Object span) { argument
75 return mSpanned.getSpanEnd(span);
78 public int getSpanFlags(Object span) { argument
79 return mSpanned.getSpanFlags(span);
H A DLayout.java1615 return 0; // no leading margin span;
1634 LeadingMarginSpan span = spans[i];
1635 margin += span.getLeadingMargin(useFirstLineMargin);
H A DMeasuredText.java126 // The span interval may be larger and must be restricted to [start, end[
225 MetricAffectingSpan span = spans[i];
226 if (span instanceof ReplacementSpan) {
227 replacement = (ReplacementSpan)span;
229 span.updateMeasureState(workPaint);
H A DSpanSet.java61 final E span = allSpans[i];
63 final int spanStart = spanned.getSpanStart(span);
64 final int spanEnd = spanned.getSpanEnd(span);
67 final int spanFlag = spanned.getSpanFlags(span);
69 spans[numberOfSpans] = span;
H A DSpannableStringBuilder.java306 // The following condition indicates that the span would become empty
377 if (replacedLength > 0) { // no need for span fixup on pure insertion
393 if (replacedLength > 0) { // no need for span fixup on pure insertion
421 // Add span only if this object is not yet used as a span in this string
484 // Invariants must be restored before sending span removed notifications.
574 Object span = spans[i];
575 int flags = spanned.getSpanFlags(span);
603 // No change if span start was already at replace interval boundaries before replace
622 // No change if span star
[all...]
H A DSpannableStringInternal.java87 "PARAGRAPH span must start at paragraph boundary" +
96 "PARAGRAPH span must end at paragraph boundary" +
236 // verify span class as late as possible, since it is expensive
370 // Check span data
402 Object span = mSpans[i];
403 if (span != this) {
404 hash = hash * 31 + span.hashCode();
406 hash = hash * 31 + getSpanStart(span);
407 hash = hash * 31 + getSpanEnd(span);
408 hash = hash * 31 + getSpanFlags(span);
[all...]
H A DTextLine.java172 // transition into a span
654 MetricAffectingSpan span = spans[j];
655 if (span instanceof ReplacementSpan) {
656 replacement = (ReplacementSpan)span;
658 span.updateMeasureState(wp);
663 // If we have a replacement span, we're moving either to
664 // the start or end of this span.
926 MetricAffectingSpan span = mMetricAffectingSpanSpanSet.spans[j];
927 if (span instanceof ReplacementSpan) {
928 replacement = (ReplacementSpan)span;
[all...]
H A DTextUtils.java807 throw new RuntimeException("bogus span encoding " + kind);
822 * be printed one span per line. If the CharSequence is not a Spanned,
1670 * will (correctly) create span transitions, and calling getSpans on a slice of text bounded by
1671 * one of these transitions will (correctly) include the empty overlapping span.
1689 final T span = spans[i];
1690 final int start = spanned.getSpanStart(span);
1691 final int end = spanned.getSpanEnd(span);
1701 copy[count] = span;
/frameworks/base/core/java/android/text/format/
H A DDateUtils.java775 long span = Math.abs(now - millis);
790 if (span < DAY_IN_MILLIS && sNowTime.weekDay == sThenTime.weekDay) {
/frameworks/base/core/java/android/text/util/
H A DLinkify.java164 * Examines the character span matched by the pattern and determines
396 URLSpan span = new URLSpan(url);
398 text.setSpan(span, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
/frameworks/base/core/java/android/view/
H A DScaleGestureDetector.java414 final float span;
416 span = spanY;
418 span = (float) Math.hypot(spanX, spanY);
427 if (!inAnchoredScaleMode() && mInProgress && (span < mMinSpan || configChanged)) {
430 mInitialSpan = span;
435 mInitialSpan = mPrevSpan = mCurrSpan = span;
439 if (!mInProgress && span >= minSpan &&
440 (wasInProgress || Math.abs(span - mInitialSpan) > mSpanSlop)) {
443 mPrevSpan = mCurrSpan = span;
448 // Handle motion; focal point and span/scal
[all...]
/frameworks/base/core/java/android/view/inputmethod/
H A DInputMethodManager.java719 public void notifySuggestionPicked(SuggestionSpan span, String originalString, int index) { argument
721 mService.notifySuggestionPicked(span, originalString, index);
/frameworks/base/core/java/android/webkit/
H A DFindActionModeCallback.java79 Spannable span = (Spannable) mEditText.getText();
80 int length = span.length();
84 Selection.setSelection(span, length, length);
87 span.setSpan(this, 0, length, Spannable.SPAN_INCLUSIVE_INCLUSIVE);
/frameworks/base/core/java/android/widget/
H A DDialerFilter.java361 Spannable span = (Spannable)text;
362 span.setSpan(watcher, 0, text.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE);
367 Spannable span = (Spannable)text;
368 span.setSpan(watcher, 0, text.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE);
H A DEditor.java233 // The span controller helps monitoring the changes to which the Editor needs to react:
616 * Hides the insertion and span controllers.
1134 * span.
1160 // We do not hide the span controllers, since they can be added when a new text is
1875 // The span doesn't cover the current selection start point.
1894 // There is a span that is not covered by the union. In this case, we soouldn't offer
2236 final Object span) {
2237 return (Selection.SELECTION_START == span || Selection.SELECTION_END == span)
2238 && (text.getSpanFlags(span)
2235 isNonIntermediateSelectionSpan(final Spannable text, final Object span) argument
2242 onSpanAdded(Spannable text, Object span, int start, int end) argument
2299 onSpanRemoved(Spannable text, Object span, int start, int end) argument
2308 onSpanChanged(Spannable text, Object span, int previousStart, int previousEnd, int newStart, int newEnd) argument
2326 sendEasySpanNotification(int textChangedType, EasyEditSpan span) argument
2349 onDeleteClick(EasyEditSpan span) argument
[all...]
H A DGridLayout.java667 Interval span = spec.span;
669 boolean isAtEdge = leading1 ? (span.min == 0) : (span.max == axis.getCount());
690 int index = leading ? spec.span.min : spec.span.max;
745 final Interval majorRange = majorSpec.span;
753 final Interval minorRange = minorSpec.span;
829 Interval span = spec.span;
2175 setRowSpecSpan(Interval span) argument
2179 setColumnSpecSpan(Interval span) argument
2209 public final Interval span; field in class:GridLayout.Arc
2213 Arc(Interval span, MutableInt value) argument
2524 final Interval span; field in class:GridLayout.Spec
2528 Spec(boolean startDefined, Interval span, Alignment alignment, float weight) argument
2549 copyWriteSpan(Interval span) argument
[all...]
H A DHorizontalScrollView.java192 final int span = getChildAt(0).getRight() - mScrollX - rightEdge;
193 if (span < length) {
194 return span / (float) length;
H A DListView.java3220 final int span = bounds.bottom - bounds.top;
3221 if (span < height) {
3237 final int span = bounds.bottom - bounds.top;
3238 if (span < height) {
H A DScrollView.java151 * The StrictMode "critical time span" objects to catch animation
218 final int span = getChildAt(0).getBottom() - mScrollY - bottomEdge;
219 if (span < length) {
220 return span / (float) length;
H A DTableRow.java169 for (int j = 0; j < layoutParams.span; j++) {
199 final int span = lp.span;
201 for (int i = 0; i < span; i++) {
258 // when the span is 1 (default), we need to skip 0 child
259 return layoutParams.span - 1;
299 if (layoutParams.span == 1) {
407 public int span; field in class:TableRow.LayoutParams
425 span = a.getInt(com.android.internal.R.styleable.TableRow_Cell_layout_span, 1);
426 if (span <
[all...]
H A DTextView.java8135 // If this is a span that can be sent to a remote process,
9679 * Sets a span on the specified range of text
9682 protected void setSpan_internal(Object span, int start, int end, int flags) { argument
9683 ((Editable) mText).setSpan(span, start, end, flags);

Completed in 297 milliseconds

123