Home
last modified time | relevance | path

Searched refs:lastIndex (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/cmds/incident_helper/src/
Dih_util.cpp98 size_t lastIndex = 0; in getColumnIndices() local
102 lastIndex = line.find(s, lastIndex); in getColumnIndices()
103 if (lastIndex == std::string::npos) { in getColumnIndices()
107 lastIndex += s.length(); in getColumnIndices()
108 indices.push_back(lastIndex); in getColumnIndices()
117 int lastIndex = 0; in parseRecordByColumns() local
122 if (idx <= lastIndex) { in parseRecordByColumns()
125 idx = lastIndex + 1; in parseRecordByColumns()
128 if (lastIndex < idx && lastIndex < lineSize) { in parseRecordByColumns()
134 … fprintf(stderr, "index wrong: lastIndex: %d, idx: %d, lineSize: %d\n", lastIndex, idx, lineSize); in parseRecordByColumns()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DKernelCpuUidBpfMapReader.java103 int lastIndex = mData.indexOfKey(endUid); in removeUidsInRange() local
104 if (lastIndex < 0) { in removeUidsInRange()
106 lastIndex = mData.indexOfKey(endUid); in removeUidsInRange()
108 mData.removeAtRange(firstIndex, lastIndex - firstIndex + 1); in removeUidsInRange()
DKernelCpuUidTimeReader.java177 int lastIndex = mLastTimes.indexOfKey(endUid); in removeUidsInRange() local
178 mLastTimes.removeAtRange(firstIndex, lastIndex - firstIndex + 1); in removeUidsInRange()
DBatteryStatsImpl.java14396 final int lastIndex = mUidStats.indexOfKey(lastUidForUser); in onUserRemovedLocked() local
14397 for (int i = firstIndex; i <= lastIndex; i++) { in onUserRemovedLocked()
14403 mUidStats.removeAtRange(firstIndex, lastIndex - firstIndex + 1); in onUserRemovedLocked()
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DVNodeBuilder.java93 int lastIndex = mVNodeList.size() - 1; in onEntryEnded() local
94 mVNodeList.remove(lastIndex--); in onEntryEnded()
95 mCurrentVNode = lastIndex >= 0 ? mVNodeList.get(lastIndex) : null; in onEntryEnded()
/frameworks/base/libs/hwui/jni/
DGIFMovie.cpp384 int lastIndex = fCurrIndex; in onGetBitmap() local
385 if (lastIndex < 0) { in onGetBitmap()
387 lastIndex = 0; in onGetBitmap()
388 } else if (lastIndex > fGIF->ImageCount - 1) { in onGetBitmap()
390 lastIndex = fGIF->ImageCount - 1; in onGetBitmap()
400 for (int i = startIndex; i <= lastIndex; i++) { in onGetBitmap()
423 if (i == lastIndex || !checkIfWillBeCleared(cur)) { in onGetBitmap()
429 fLastDrawIndex = lastIndex; in onGetBitmap()
/frameworks/base/core/java/android/app/admin/
DFreezePeriod.java242 final int lastIndex = result.size() - 1; in canonicalizePeriods() local
243 if (lastIndex > 0 && result.get(lastIndex).mEndDay == DAYS_IN_YEAR in canonicalizePeriods()
245 FreezePeriod wrappedInterval = new FreezePeriod(result.get(lastIndex).mStartDay, in canonicalizePeriods()
247 result.set(lastIndex, wrappedInterval); in canonicalizePeriods()
/frameworks/base/test-runner/src/junit/textui/
DTestRunner.java164 int lastIndex= arg.lastIndexOf('.'); in start() local
165 testCase= arg.substring(0, lastIndex); in start()
166 method= arg.substring(lastIndex + 1); in start()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyguardUserSwitcherListView.java138 int lastIndex = getChildCount() - 1; in removeLastView() local
139 removeViewAt(lastIndex); in removeLastView()
/frameworks/base/core/java/android/view/
DCutoutSpecification.java391 int lastIndex = 0;
392 while ((currentIndex = specWithoutDp.indexOf(MARKER_START_CHAR, lastIndex)) != -1) {
396 sb.append(specWithoutDp, lastIndex, currentIndex);
445 lastIndex = currentIndex;
451 sb.append(specWithoutDp, lastIndex, specWithoutDp.length());
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPseudoGridView.java186 int lastIndex = viewGroup.getChildCount() - 1; in refresh() local
187 viewGroup.removeViewAt(lastIndex); in refresh()
/frameworks/base/libs/hwui/tests/scripts/
Dprep_generic.sh310 lastIndex=$(($index - 1))
317 chosenIndex=$(($lastIndex - $chosenIndex))
/frameworks/base/core/java/com/android/internal/jank/
DFrameTracker.java376 int lastIndex = -1; in getIndexOnOrAfterEnd() local
381 lastIndex = i; in getIndexOnOrAfterEnd()
387 return lastIndex; in getIndexOnOrAfterEnd()
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastQueue.java2023 int lastIndex = mHistoryNext; in dumpDebug() local
2024 int ringIndex = lastIndex; in dumpDebug()
2033 } while (ringIndex != lastIndex); in dumpDebug()
2035 lastIndex = ringIndex = mSummaryHistoryNext; in dumpDebug()
2052 } while (ringIndex != lastIndex); in dumpDebug()
2100 int lastIndex = mHistoryNext; in dumpLocked() local
2101 int ringIndex = lastIndex; in dumpLocked()
2139 } while (ringIndex != lastIndex); in dumpLocked()
2142 lastIndex = ringIndex = mSummaryHistoryNext; in dumpLocked()
2149 j > 0 && ringIndex != lastIndex;) { in dumpLocked()
[all …]
DProcessStatsService.java887 int lastIndex = 0;
984 lastIndex = Integer.parseInt(args[i]);
1157 } else if (lastIndex > 0) {
1158 pw.print("LAST STATS AT INDEX "); pw.print(lastIndex); pw.println(":");
1167 if (lastIndex >= files.size()) {
1171 file = new AtomicFile(new File(files.get(lastIndex)));
1181 pw.print("Failure reading "); pw.print(files.get(lastIndex));
/frameworks/av/media/libstagefright/foundation/
DAMessage.cpp1083 size_t lastIndex = mItems.size() - 1; in removeEntryAt() local
1084 if (index < lastIndex) { in removeEntryAt()
1085 mItems[index] = mItems[lastIndex]; in removeEntryAt()
1086 mItems[lastIndex].mName = nullptr; in removeEntryAt()
1087 mItems[lastIndex].mType = kTypeInt32; in removeEntryAt()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java440 int lastIndex = 0; in parseCSV() local
443 while ((lastIndex = value.indexOf(",", lastIndex + 1)) > 0) { in parseCSV()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowProcessController.java673 final int lastIndex = mActivities.size() - 1; in getTopActivityDisplayArea() local
674 ActivityRecord topRecord = mActivities.get(lastIndex); in getTopActivityDisplayArea()
677 for (int index = lastIndex - 1; index >= 0; --index) { in getTopActivityDisplayArea()
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/presence/publish/
DPublishControllerImpl.java317 final int lastIndex = mPublishStateCallbacks.getRegisteredCallbackCount() - 1; in clearPublishStateCallbacks() local
318 for (int index = lastIndex; index >= 0; index--) { in clearPublishStateCallbacks()
/frameworks/native/libs/binder/
DParcel.cpp435 int firstIndex = -1, lastIndex = -2; in appendFrom() local
461 lastIndex = i; in appendFrom()
464 int numObjects = lastIndex - firstIndex + 1; in appendFrom()
500 for (int i = firstIndex; i <= lastIndex; i++) { in appendFrom()
/frameworks/base/core/java/android/widget/
DListView.java3317 int lastIndex = getChildCount() - 1;
3318 View last = getChildAt(lastIndex);
3324 recycleBin.addScrapView(last, mFirstPosition+lastIndex);
3327 last = getChildAt(--lastIndex);
DEditor.java2096 int lastIndex = numberOfBlocks; in drawHardwareAccelerated() local
2114 lastIndex = Math.max(indexFirstChangedBlock, i + 1); in drawHardwareAccelerated()
2133 dynamicLayout.setIndexFirstChangedBlock(lastIndex); in drawHardwareAccelerated()
/frameworks/native/services/inputflinger/reader/mapper/
DTouchInputMapper.cpp3421 uint32_t lastIndex = mCurrentRawState.rawPointerData.idToIndex[id]; in dispatchPointerMouse() local
3423 mLastRawState.rawPointerData.pointers[lastIndex].x) * in dispatchPointerMouse()
3426 mLastRawState.rawPointerData.pointers[lastIndex].y) * in dispatchPointerMouse()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt57078 field protected int lastIndex;