Searched refs:lastPos (Results 1 – 10 of 10) sorted by relevance
/aosp14/frameworks/base/core/java/com/android/internal/util/ |
H A D | FastXmlSerializer.java | 155 int lastPos = 0; in escapeAndAppendString() local 162 if (lastPos < pos) append(string, lastPos, pos-lastPos); in escapeAndAppendString() 163 lastPos = pos + 1; in escapeAndAppendString() 166 if (lastPos < pos) append(string, lastPos, pos-lastPos); in escapeAndAppendString() 173 int lastPos = start; in escapeAndAppendString() local 180 if (lastPos < pos) append(buf, lastPos, pos-lastPos); in escapeAndAppendString() 181 lastPos = pos + 1; in escapeAndAppendString() 184 if (lastPos < pos) append(buf, lastPos, pos-lastPos); in escapeAndAppendString()
|
/aosp14/frameworks/base/services/incremental/ |
H A D | path.cpp | 123 auto lastPos = result.rfind('/'); in normalize() local 124 if (lastPos == result.npos) { in normalize() 127 result.resize(lastPos); in normalize()
|
/aosp14/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
H A D | SecurityLogMonitor.java | 339 int lastPos = 0; in mergeBatchLocked() local 341 while (lastPos < mLastEvents.size() && curPos < newLogs.size()) { in mergeBatchLocked() 348 final SecurityEvent lastEvent = mLastEvents.get(lastPos); in mergeBatchLocked() 358 lastPos++; in mergeBatchLocked() 370 lastPos++; in mergeBatchLocked()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/ |
H A D | FavoritesModelTest.kt | 134 val lastPos = model.elements.size - 1 regex 135 verify(adapter).notifyItemChanged(eq(lastPos), any(Any::class.java)) 136 verify(adapter).notifyItemMoved(removed, lastPos)
|
/aosp14/frameworks/base/core/java/android/widget/ |
H A D | AbsListView.java | 5288 (lastPos == mItemCount && 5846 mCheckStates.put(lastPos, true); in confirmCheckedPositionsById() 7920 } else if (mTargetPos > lastPos) { in startWithOffset() 8011 if (lastPos == mLastSeenPos) { in run() 8027 mLastSeenPos = lastPos; in run() 8028 if (lastPos < mTargetPos) { in run() 8105 if (lastPos == mLastSeenPos) { in run() 8116 mLastSeenPos = lastPos; in run() 8117 if (lastPos > mBoundPos) { in run() 8166 } else if (position > lastPos) { in run() [all …]
|
H A D | ListView.java | 2694 final int lastPos = mFirstPosition + getChildCount() - 1; in nextSelectedPositionForDirection() local 2695 nextSelected = selectedPos != INVALID_POSITION && selectedPos <= lastPos ? in nextSelectedPositionForDirection() 2697 lastPos; in nextSelectedPositionForDirection()
|
/aosp14/frameworks/base/services/core/java/com/android/server/am/ |
H A D | AppErrors.java | 339 int lastPos = 0; in dumpLPr() local 343 pw.write(info.stack, lastPos, pos - lastPos); in dumpLPr() 345 lastPos = pos + 1; in dumpLPr() 348 if (lastPos < info.stack.length()) { in dumpLPr() 350 pw.write(info.stack, lastPos, info.stack.length() - lastPos); in dumpLPr()
|
H A D | ProcessStatsService.java | 524 int lastPos = 0; in parseStateList() local 531 if (lastPos == 0) { in parseStateList() 538 if (lastPos < (i-1)) { in parseStateList() 539 String str = arg.substring(lastPos, i); in parseStateList() 552 lastPos = i + 1; in parseStateList()
|
/aosp14/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ViewPager.java | 2215 int lastPos = -1; 2226 if (!first && ii.position != lastPos + 1) { 2230 ii.position = lastPos + 1; 2247 lastPos = ii.position; 2351 final int lastPos = mItems.get(itemCount - 1).position; 2352 for (int pos = firstPos; pos < lastPos; pos++) {
|
H A D | LinearLayoutManager.java | 1957 int lastPos = getPosition(getChildAt(0)); in validateChildOrder() local 1964 if (pos < lastPos) { in validateChildOrder() 1979 if (pos < lastPos) { in validateChildOrder()
|