Home
last modified time | relevance | path

Searched refs:mMaxHistorySize (Results 1 – 4 of 4) sorted by relevance

/aosp12/frameworks/base/services/core/java/com/android/server/timezonedetector/
H A DReferenceWithHistory.java56 private final int mMaxHistorySize; field in ReferenceWithHistory
72 this.mMaxHistorySize = maxHistorySize; in ReferenceWithHistory()
92 mValues = new ArrayDeque<>(mMaxHistorySize); in set()
95 if (mValues.size() >= mMaxHistorySize) { in set()
H A DArrayMapWithHistory.java46 private final int mMaxHistorySize; field in ArrayMapWithHistory
58 mMaxHistorySize = maxHistorySize; in ArrayMapWithHistory()
72 valueHolder = new ReferenceWithHistory<>(mMaxHistorySize); in put()
183 + "mHistorySize=" + mMaxHistorySize in toString()
/aosp12/packages/modules/GeoTZ/locationtzprovider/src/main/java/com/android/timezone/location/provider/core/
H A DReferenceWithHistory.java60 private final int mMaxHistorySize; field in ReferenceWithHistory
91 mMaxHistorySize = maxHistorySize; in ReferenceWithHistory()
112 mValues = new ArrayDeque<>(mMaxHistorySize); in set()
115 if (mValues.size() >= mMaxHistorySize) { in set()
/aosp12/packages/apps/TV/src/com/android/tv/data/
H A DWatchedHistoryManager.java98 private final int mMaxHistorySize; field in WatchedHistoryManager
109 mMaxHistorySize = maxHistorySize; in WatchedHistoryManager()
145 if (mLastIndex >= 0 && mLastIndex < mMaxHistorySize) { in loadWatchedHistory()
153 } else if (mLastIndex >= mMaxHistorySize) { in loadWatchedHistory()
154 for (long i = mLastIndex - mMaxHistorySize + 1; i <= mLastIndex; ++i) { in loadWatchedHistory()
241 return Long.toString(index % mMaxHistorySize); in getSharedPreferencesKey()