Home
last modified time | relevance | path

Searched refs:lastIdx (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/tests/JankBench/app/src/main/jni/
DBench.cpp235 size_t lastIdx = 0; in runMemoryLatencyTest() local
239 while ((sp[ni] != NULL) || (ni == lastIdx)) { in runMemoryLatencyTest()
247 sp[lastIdx] = &sp[ni]; in runMemoryLatencyTest()
248 lastIdx = ni; in runMemoryLatencyTest()
250 sp[lastIdx] = 0; in runMemoryLatencyTest()
/frameworks/base/services/core/java/com/android/server/power/stats/wakeups/
DCpuWakeupStats.java221 int lastIdx = mWakeupEvents.lastIndexOnOrBefore(elapsedRealtime - retentionDuration); in noteWakeupTimeAndReason() local
222 for (int i = lastIdx; i >= 0; i--) { in noteWakeupTimeAndReason()
225 lastIdx = mWakeupAttribution.lastIndexOnOrBefore(elapsedRealtime - retentionDuration); in noteWakeupTimeAndReason()
226 for (int i = lastIdx; i >= 0; i--) { in noteWakeupTimeAndReason()
/frameworks/base/services/core/java/com/android/server/attention/
DAttentionManagerService.java568 int lastIdx = (mStartIndex + mSize - 1) % ATTENTION_CACHE_BUFFER_SIZE; in getLast() local
569 return mSize == 0 ? null : mQueue[lastIdx]; in getLast()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DGroupHelperTest.java1178 final int lastIdx = AUTOGROUP_AT_COUNT - 1; in testAutoGrouped_diffIcon_diffColor_removeChild_updateTo_sameIcon_sameColor() local
1179 StatusBarNotification newSbn = getSbn(pkg, lastIdx, in testAutoGrouped_diffIcon_diffColor_removeChild_updateTo_sameIcon_sameColor()
1180 String.valueOf(lastIdx), UserHandle.SYSTEM, null, mock(Icon.class), in testAutoGrouped_diffIcon_diffColor_removeChild_updateTo_sameIcon_sameColor()
1188 mGroupHelper.onNotificationRemoved(notifications.get(lastIdx)); in testAutoGrouped_diffIcon_diffColor_removeChild_updateTo_sameIcon_sameColor()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/
DAlarmManagerService.java590 final int lastIdx = Math.max(0, timestamps.size() - 100); in dump() local
591 for (int j = timestamps.size() - 1; j >= lastIdx; j--) { in dump()