Home
last modified time | relevance | path

Searched refs:HISTORY_SIZE (Results 1 – 16 of 16) sorted by relevance

/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/
H A DSignalController.java40 static final int HISTORY_SIZE = 64; field in SignalController
72 mHistory = new ConnectivityState[HISTORY_SIZE]; in SignalController()
73 for (int i = 0; i < HISTORY_SIZE; i++) { in SignalController()
189 mHistoryIndex = (mHistoryIndex + 1) % HISTORY_SIZE; in recordLastState()
198 for (int i = 0; i < HISTORY_SIZE; i++) { in dump()
202 for (int i = mHistoryIndex + HISTORY_SIZE - 1; in dump()
203 i >= mHistoryIndex + HISTORY_SIZE - size; i--) { in dump()
204 pw.println(" Previous State(" + (mHistoryIndex + HISTORY_SIZE - i) + "): " in dump()
205 + mHistory[i & (HISTORY_SIZE - 1)]); in dump()
H A DCallbackHandler.java49 private static final int HISTORY_SIZE = 64; field in CallbackHandler
57 private final String[] mHistory = new String[HISTORY_SIZE];
264 mHistoryIndex = (mHistoryIndex + 1) % HISTORY_SIZE; in recordLastCallback()
273 for (int i = 0; i < HISTORY_SIZE; i++) { in dump()
279 for (int i = mHistoryIndex + HISTORY_SIZE - 1; in dump()
280 i >= mHistoryIndex + HISTORY_SIZE - size; i--) { in dump()
281 pw.println(" Previous Callback(" + (mHistoryIndex + HISTORY_SIZE - i) + "): " in dump()
282 + mHistory[i & (HISTORY_SIZE - 1)]); in dump()
H A DNetworkControllerImpl.java117 private static final int HISTORY_SIZE = 16; field in NetworkControllerImpl
175 private final String[] mHistory = new String[HISTORY_SIZE];
1181 for (int i = 0; i < HISTORY_SIZE; i++) { in dump()
1186 for (int i = mHistoryIndex + HISTORY_SIZE - 1; in dump()
1187 i >= mHistoryIndex + HISTORY_SIZE - size; i--) { in dump()
1188 pw.println(" Previous NetworkCallback(" + (mHistoryIndex + HISTORY_SIZE - i) + "): " in dump()
1189 + mHistory[i & (HISTORY_SIZE - 1)]); in dump()
1437 mHistoryIndex = (mHistoryIndex + 1) % HISTORY_SIZE; in recordLastNetworkCallback()
/aosp12/frameworks/native/include/input/
H A DVelocityTracker.h194 static const uint32_t HISTORY_SIZE = 20; variable
211 Movement mMovements[HISTORY_SIZE];
269 static const uint32_t HISTORY_SIZE = 20; variable
285 Movement mMovements[HISTORY_SIZE];
306 static constexpr size_t HISTORY_SIZE = 20; variable
319 Movement mMovements[HISTORY_SIZE];
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
H A DWifiStatusTracker.java49 private static final int HISTORY_SIZE = 32; field in WifiStatusTracker
59 private final String[] mHistory = new String[HISTORY_SIZE];
348 mHistoryIndex = (mHistoryIndex + 1) % HISTORY_SIZE; in recordLastWifiNetwork()
355 for (int i = 0; i < HISTORY_SIZE; i++) { in dump()
359 for (int i = mHistoryIndex + HISTORY_SIZE - 1; in dump()
360 i >= mHistoryIndex + HISTORY_SIZE - size; i--) { in dump()
362 + (mHistoryIndex + HISTORY_SIZE - i) + "): " in dump()
363 + mHistory[i & (HISTORY_SIZE - 1)]); in dump()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DStatusBarStateControllerImpl.java76 private static final int HISTORY_SIZE = 32; field in StatusBarStateControllerImpl
107 private HistoricalState[] mHistoricalRecords = new HistoricalState[HISTORY_SIZE];
154 for (int i = 0; i < HISTORY_SIZE; i++) { in StatusBarStateControllerImpl()
499 for (int i = 0; i < HISTORY_SIZE; i++) { in dump()
502 for (int i = mHistoryIndex + HISTORY_SIZE; in dump()
503 i >= mHistoryIndex + HISTORY_SIZE - size + 1; i--) { in dump()
504 pw.println(" (" + (mHistoryIndex + HISTORY_SIZE - i + 1) + ")" in dump()
505 + mHistoricalRecords[i & (HISTORY_SIZE - 1)]); in dump()
510 mHistoryIndex = (mHistoryIndex + 1) % HISTORY_SIZE; in recordHistoricalState()
/aosp12/frameworks/native/libs/input/
H A DVelocityTracker.cpp357 if (mIndex == HISTORY_SIZE) { in addMovement()
621 index = (index == 0 ? HISTORY_SIZE : index) - 1; in getEstimator()
622 } while (x.size() < HISTORY_SIZE); in getEstimator()
885 if (++mIndex == HISTORY_SIZE) { in addMovement()
919 } while (++numTouches < HISTORY_SIZE); in getEstimator()
941 if (++index == HISTORY_SIZE) { in getEstimator()
1009 if (mIndex == HISTORY_SIZE) { in addMovement()
1136 float x[HISTORY_SIZE]; in getEstimator()
1137 float y[HISTORY_SIZE]; in getEstimator()
1138 nsecs_t time[HISTORY_SIZE]; in getEstimator()
[all …]
/aosp12/frameworks/native/services/surfaceflinger/Scheduler/
H A DLayerInfo.h216 static constexpr auto HISTORY_SIZE = 90;
289 static constexpr size_t HISTORY_SIZE = RefreshRateHistory::HISTORY_SIZE; variable
H A DLayerInfo.cpp63 if (mFrameTimes.size() > HISTORY_SIZE) { in setLastPresentTime()
119 if (mFrameTimes.size() < HISTORY_SIZE && totalDuration < HISTORY_DURATION.count()) { in hasEnoughDataForHeuristic()
284 while (mRefreshRates.size() >= HISTORY_SIZE || in add()
/aosp12/frameworks/base/services/core/java/com/android/server/display/whitebalance/
H A DAmbientSensor.java57 private static final int HISTORY_SIZE = 50; field in AmbientSensor
88 mEventsHistory = new History(HISTORY_SIZE); in AmbientSensor()
H A DDisplayWhiteBalanceController.java86 private static final int HISTORY_SIZE = 50; field in DisplayWhiteBalanceController
183 mAmbientColorTemperatureHistory = new History(HISTORY_SIZE); in DisplayWhiteBalanceController()
/aosp12/frameworks/opt/net/voip/src/jni/rtp/
H A DAudioGroup.cpp93 #define HISTORY_SIZE 100 macro
374 mBufferHead = tick - HISTORY_SIZE; in decode()
378 if (tick - mBufferHead > HISTORY_SIZE) { in decode()
380 mBufferHead = tick - HISTORY_SIZE; in decode()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/connectivity/
H A DNetworkControllerSignalTest.java432 assertEquals(0, SignalController.HISTORY_SIZE & (SignalController.HISTORY_SIZE - 1)); in testHistorySize()
/aosp12/frameworks/base/core/java/android/widget/
H A DEditor.java4832 private static final int HISTORY_SIZE = 5; field in Editor.HandleView
4835 private final long[] mPreviousOffsetsTimes = new long[HISTORY_SIZE];
4836 private final int[] mPreviousOffsets = new int[HISTORY_SIZE];
4846 mPreviousOffsetIndex = (mPreviousOffsetIndex + 1) % HISTORY_SIZE; in addPositionToTouchUpFilter()
4856 final int iMax = Math.min(mNumberPreviousOffsets, HISTORY_SIZE); in filterOnTouchUp()
4859 index = (mPreviousOffsetIndex - i + HISTORY_SIZE) % HISTORY_SIZE; in filterOnTouchUp()
/aosp12/frameworks/native/services/surfaceflinger/tests/unittests/
H A DLayerHistoryTest.cpp46 static constexpr auto PRESENT_TIME_HISTORY_SIZE = LayerInfo::HISTORY_SIZE;
/aosp12/frameworks/base/boot/hiddenapi/
H A Dhiddenapi-max-target-o.txt70188 Landroid/widget/Editor$HandleView;->HISTORY_SIZE:I