Searched refs:lastIndexOnOrBefore (Results 1 – 6 of 6) sorted by relevance
88 public void lastIndexOnOrBefore() { in lastIndexOnOrBefore() method in LongSparseArrayTest100 assertThat(longSparseArray.lastIndexOnOrBefore(-1478133)).isEqualTo(-1); in lastIndexOnOrBefore()102 assertThat(longSparseArray.lastIndexOnOrBefore(time)).isEqualTo(-1); in lastIndexOnOrBefore()106 assertThat(longSparseArray.lastIndexOnOrBefore(time)).isEqualTo(0); in lastIndexOnOrBefore()110 assertThat(longSparseArray.lastIndexOnOrBefore(time)).isEqualTo(1); in lastIndexOnOrBefore()114 assertThat(longSparseArray.lastIndexOnOrBefore(time)).isEqualTo(2); in lastIndexOnOrBefore()118 assertThat(longSparseArray.lastIndexOnOrBefore(time)).isEqualTo(3); in lastIndexOnOrBefore()121 assertThat(longSparseArray.lastIndexOnOrBefore(1980732)).isEqualTo(3); in lastIndexOnOrBefore()
221 int lastIdx = mWakeupEvents.lastIndexOnOrBefore(elapsedRealtime - retentionDuration); in noteWakeupTimeAndReason()225 lastIdx = mWakeupAttribution.lastIndexOnOrBefore(elapsedRealtime - retentionDuration); in noteWakeupTimeAndReason()278 final int endIdx = mWakeupEvents.lastIndexOnOrBefore( in attemptAttributionWith()438 final int endIdx = wakingActivity.lastIndexOnOrBefore( in recordActivity()452 final int endIdx = activityForSubsystem.lastIndexOnOrBefore(endElapsed); in removeBetween()
234 public int lastIndexOnOrBefore(long key) { in lastIndexOnOrBefore() method in LongSparseArray
269 assertThat(history.mWakingActivity.get(subsystem).lastIndexOnOrBefore( in deletesActivityPastRetention()
109 assertThat(obj.mWakeupEvents.lastIndexOnOrBefore(now - retention)).isLessThan(0); in removesOldWakeups()
842 int endIndex = intervalStats.lastIndexOnOrBefore(endTime); in queryUsageStats()863 int startIndex = intervalStats.lastIndexOnOrBefore(beginTime); in queryUsageStats()905 final int index = mSortedStatFiles[i].lastIndexOnOrBefore(beginTimeStamp); in findBestFitBucket()