Home | History | Annotate | Download | only in os

Lines Matching defs:span

182     // How many Span tags (e.g. animations) to report.
2157 * A tracked, critical time span. (e.g. during an animation.)
2159 * <p>The object itself is a linked list node, to avoid any allocations during rapid span
2164 public static class Span {
2167 private Span mNext;
2168 private Span mPrev; // not used when in freeList, only active
2171 Span(ThreadSpanState threadState) {
2176 protected Span() {
2181 * To be called when the critical span is complete (i.e. the animation is done animating).
2209 if (LOG_V) Log.d(TAG, "Span finished=" + mName + "; size=" + state.mActiveSize);
2227 // The no-op span that's used in user builds.
2228 private static final Span NO_OP_SPAN =
2229 new Span() {
2239 * structure (as well as the Span nodes under it) are guarded by the ThreadSpanState object
2242 * where they created the Span, hence the locking.
2245 public Span mActiveHead; // doubly-linked list.
2247 public Span mFreeListHead; // singly-linked list. only changes at head.
2267 * Enter a named critical span (e.g. an animation)
2270 * that happens while this span is active. You must call finish() on the span when done.
2279 public static Span enterCriticalSpan(String name) {
2287 Span span = null;
2290 span = state.mFreeListHead;
2291 state.mFreeListHead = span.mNext;
2295 span = new Span(state);
2297 span.mName = name;
2298 span.mCreateMillis = SystemClock.uptimeMillis();
2299 span.mNext = state.mActiveHead;
2300 span.mPrev = null;
2301 state.mActiveHead = span;
2303 if (span.mNext != null) {
2304 span.mNext.mPrev = span;
2306 if (LOG_V) Log.d(TAG, "Span enter=" + name + "; size=" + state.mActiveSize);
2308 return span;
2479 Span instances during this violation, or null for none. */
2522 Span iter = state.mActiveHead;