/frameworks/base/core/java/android/view/ |
H A D | ScaleGestureDetector.java | 414 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/tools/aapt2/ |
H A D | StringPool.cpp | 169 for (const aapt::Span& span : str.spans) { 170 styleEntry->spans.emplace_back(Span{makeRef(span.name), 171 span.firstChar, span.lastChar}); 189 for (const Span& span : ref.mEntry->spans) { 190 styleEntry->spans.emplace_back(Span{ makeRef(*span.name), span.firstChar, span.lastChar }); 359 android::ResStringPool_span* span = local 362 span [all...] |
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | GridLayoutManager.java | 32 * By default, each item occupies 1 span. You can change it by providing a custom 51 * Right borders for each span. 313 int span = getSpanIndex(recycler, state, anchorInfo.mPosition); 314 while (span > 0 && anchorInfo.mPosition > 0) { 316 span = getSpanIndex(recycler, state, anchorInfo.mPosition); 333 final int span = getSpanIndex(recycler, state, position); 334 if (span != 0) { 362 throw new RuntimeException("Cannot find span group index for position " 365 Log.w(TAG, "Cannot find span size for pre layout position. " + viewPosition); 382 throw new RuntimeException("Cannot find span inde [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | GridLayout.java | 667 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 D | DialerFilter.java | 361 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);
|
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/ |
H A D | GridLayout.java | 654 Interval span = spec.span; 656 boolean isAtEdge = leading1 ? (span.min == 0) : (span.max == axis.getCount()); 681 int index = leading ? spec.span.min : spec.span.max; 736 final Interval majorRange = majorSpec.span; 744 final Interval minorRange = minorSpec.span; 808 Interval span = spec.span; 2069 setRowSpecSpan(Interval span) argument 2073 setColumnSpecSpan(Interval span) argument 2103 public final Interval span; field in class:GridLayout.Arc 2107 Arc(Interval span, MutableInt value) argument 2418 final Interval span; field in class:GridLayout.Spec 2422 Spec(boolean startDefined, Interval span, Alignment alignment, float weight) argument 2443 copyWriteSpan(Interval span) argument [all...] |
/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | CountdownConditionProvider.java | 127 final CharSequence span = 139 ACTION, ts(mTime), mTime - now, span, ts(now))); 171 final CharSequence span = 174 ts(time), time - now, span, ts(now));
|
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | ExtractEditText.java | 207 protected void setSpan_internal(Object span, int start, int end, int flags) { argument 210 mIME.onExtractedSetSpan(span, start, end, flags);
|
/frameworks/base/core/java/android/webkit/ |
H A D | FindActionModeCallback.java | 79 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/media/java/android/media/ |
H A D | SRTRenderer.java | 97 TextTrackCueSpan[] span = new TextTrackCueSpan[] { 100 cue.mLines[i++] = span; 139 TextTrackCueSpan[] span = new TextTrackCueSpan[] { 143 cue.mLines[i++] = span;
|
H A D | WebVttRenderer.java | 86 TextTrackCueSpan span = (TextTrackCueSpan) o; 87 return mTimestampMs == span.mTimestampMs && 88 mText.equals(span.mText); 127 // finish any prior span 138 // finish any pending span 496 for (TextTrackCueSpan span: spans) { 500 if (span.mTimestampMs != lastTimestamp) { 503 span.mTimestampMs)) 505 lastTimestamp = span.mTimestampMs; 507 builder.append(span [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | StreamingTextView.java | 194 DottySpan span = new DottySpan(text.charAt(m.start()), wordStart); 195 displayText.setSpan(span, wordStart, wordEnd, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); 201 ForegroundColorSpan span = new ForegroundColorSpan(color); 204 displayText.setSpan(span, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
|
/frameworks/ex/common/java/com/android/ex/editstyledtext/ |
H A D | EditStyledText.java | 1266 /* If the style of the span is added, add check case for that style */ 1329 for (Object span : spansBefore) { 1330 if (span instanceof ForegroundColorSpan || span instanceof AbsoluteSizeSpan 1331 || span instanceof MarqueeSpan || span instanceof AlignmentSpan) { 1332 int spanstart = txt.getSpanStart(span); 1333 int spanend = txt.getSpanEnd(span); 1335 Log.d(LOG_TAG, "spantype:" + span.getClass() + "," + spanstart); 1338 if (span instanceo 1668 setStyledTextSpan(Object span, int start, int end) argument 1678 setLineStyledTextSpan(Object span) argument 1728 insertImageSpan(DynamicDrawableSpan span, int curpos) argument [all...] |
/frameworks/native/libs/ui/ |
H A D | Region.cpp | 83 * First pass through, divideSpanRTL will be set because the 'previous span' (indexing into the dst 85 * compared with the span directly below, and subdivided as needed to resolve T-junctions. 90 * Second pass through, divideSpanRTL will be false since the previous span will index into the 91 * final, correctly ordered region buffer. Each rectangle will be compared with the span directly 101 // add first span immediately 112 // for all other spans, split if a t-junction exists in the span directly above 115 // new span 118 // previous span not directly adjacent, don't check for T junctions 137 // iterating over previous span RTL, quit if it's too far left 150 // if an entry in the previous span i 424 Vector<Rect> span; member in class:android::Region::rasterizer [all...] |
/frameworks/base/core/java/android/text/ |
H A D | SpannableStringInternal.java | 87 "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 D | MeasuredText.java | 126 // 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 D | TextLine.java | 172 // 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 D | SpannableStringBuilder.java | 306 // 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...] |
/frameworks/base/tools/aapt/ |
H A D | StringPool.h | 72 ResStringPool_span span; member in struct:StringPool::entry_style_span 107 status_t addStyleSpan(size_t idx, const entry_style_span& span); 169 // Optional style span information associated with each index of
|
H A D | XMLNode.cpp | 291 StringPool::entry_style_span span; local 292 span.name = element16; 294 span.name.append(String16(";")); 296 span.name.append(str, len); 297 span.name.append(String16("=")); 299 span.name.append(str, len); 301 //printf("Span: %s\n", String8(span.name).string()); 302 span.span.firstChar = span 336 StringPool::entry_style_span span = spanStack.top(); local [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/layout/table/ |
H A D | CellSpanTest.java | 52 mSpan = activity.findViewById(R.id.span); 68 assertEquals("span followed by cell is broken", spanWidth, 75 assertEquals("cell followed by span is broken", spanWidth, 83 assertEquals("span is broken", spanWidth, mSpan.getMeasuredWidth());
|
/frameworks/base/core/java/android/os/ |
H A D | StrictMode.java | 1964 * 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/docs/html/ndk/reference/ |
H A D | doxygen.css | 85 span.legend { 215 span.lineno { 222 span.lineno a { 226 span.lineno a:hover { 327 span.keyword { 331 span.keywordtype { 335 span.keywordflow { 339 span.comment { 343 span.preprocessor { 347 span [all...] |
/frameworks/base/core/java/com/android/internal/view/ |
H A D | IInputMethodManager.aidl | 72 boolean notifySuggestionPicked(in SuggestionSpan span, String originalString, int index);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | ExpandHelper.java | 181 float span = mSGD.getCurrentSpan() - mInitialTouchSpan; 182 span *= USE_SPAN ? 1f : 0f; 186 float pull = Math.abs(drag) + Math.abs(span) + 1f; 187 float hand = drag * Math.abs(drag) / pull + span * Math.abs(span) / pull; 273 if (DEBUG_SCALE) Log.d(TAG, "set initial span: " + mInitialTouchSpan);
|