Home | History | Annotate | Download | only in os

Lines Matching defs:Span

144     // How many Span tags (e.g. animations) to report.
1737 * A tracked, critical time span. (e.g. during an animation.)
1740 * during rapid span entries and exits.
1744 public static class Span {
1747 private Span mNext;
1748 private Span mPrev; // not used when in freeList, only active
1751 Span(ThreadSpanState threadState) {
1756 protected Span() {
1761 * To be called when the critical span is complete (i.e. the
1791 if (LOG_V) Log.d(TAG, "Span finished=" + mName + "; size=" + state.mActiveSize);
1809 // The no-op span that's used in user builds.
1810 private static final Span NO_OP_SPAN = new Span() {
1820 * all members of this structure (as well as the Span nodes under
1825 * the Span, hence the locking.
1828 public Span mActiveHead; // doubly-linked list.
1830 public Span mFreeListHead; // singly-linked list. only changes at head.
1848 * Enter a named critical span (e.g. an animation)
1851 * to any strictmode violation that happens while this span is
1852 * active. You must call finish() on the span when done.
1862 public static Span enterCriticalSpan(String name) {
1870 Span span = null;
1873 span = state.mFreeListHead;
1874 state.mFreeListHead = span.mNext;
1878 span = new Span(state);
1880 span.mName = name;
1881 span.mCreateMillis = SystemClock.uptimeMillis();
1882 span.mNext = state.mActiveHead;
1883 span.mPrev = null;
1884 state.mActiveHead = span;
1886 if (span.mNext != null) {
1887 span.mNext.mPrev = span;
1889 if (LOG_V) Log.d(TAG, "Span enter=" + name + "; size=" + state.mActiveSize);
1891 return span;
2046 * List of tags from active Span instances during this
2108 Span iter = state.mActiveHead;