Home
last modified time | relevance | path

Searched refs:mTail (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/libs/hwui/thread/
DCommonPool.h42 constexpr bool hasWork() const { return mHead != mTail; } in hasWork()
43 constexpr bool hasSpace() const { return ((mHead + 1) % SIZE) != mTail; } in hasSpace()
45 if (mHead > mTail) { in size()
46 return mHead - mTail; in size()
48 return mTail - mHead + SIZE; in size()
54 LOG_ALWAYS_FATAL_IF(newHead == mTail, "no space"); in push()
61 LOG_ALWAYS_FATAL_IF(mTail == mHead, "empty"); in pop()
62 int index = mTail; in pop()
63 mTail = (mTail + 1) % SIZE; in pop()
72 int mTail = 0; variable
/frameworks/base/core/java/android/util/
DLongArrayQueue.java38 private int mTail; field in LongArrayQueue
52 mHead = mTail = 0; in LongArrayQueue()
73 mTail = mSize; in grow()
88 mHead = mTail = 0; in clear()
100 mValues[mTail] = value; in addLast()
101 mTail = (mTail + 1) % mValues.length; in addLast()
162 final int index = (mTail == 0) ? mValues.length - 1 : mTail - 1; in peekLast()
/frameworks/base/core/java/com/android/internal/util/
DProcFileReader.java39 private int mTail; field in ProcFileReader
59 final int length = mBuffer.length - mTail; in fillBuf()
64 final int read = mStream.read(mBuffer, mTail, length); in fillBuf()
66 mTail += read; in fillBuf()
78 System.arraycopy(mBuffer, count, mBuffer, 0, mTail - count); in consumeBuf()
79 mTail -= count; in consumeBuf()
80 if (mTail == 0) { in consumeBuf()
100 for (; i < mTail; i++) { in nextTokenIndex()
119 return mTail > 0; in hasMoreData()
135 for (; i < mTail; i++) { in finishLine()