Searched refs:HISTORY_SIZE (Results 1 – 7 of 7) sorted by relevance
37 static final int HISTORY_SIZE = 64; field in SignalController69 mHistory = new State[HISTORY_SIZE]; in SignalController()70 for (int i = 0; i < HISTORY_SIZE; i++) { in SignalController()181 mHistory[mHistoryIndex++ & (HISTORY_SIZE - 1)].copyFrom(mLastState); in recordLastState()190 for (int i = 0; i < HISTORY_SIZE; i++) { in dump()194 for (int i = mHistoryIndex + HISTORY_SIZE - 1; in dump()195 i >= mHistoryIndex + HISTORY_SIZE - size; i--) { in dump()196 pw.println(" Previous State(" + (mHistoryIndex + HISTORY_SIZE - i) + "): " in dump()197 + mHistory[i & (HISTORY_SIZE - 1)]); in dump()
356 const uint32_t LeastSquaresVelocityTrackerStrategy::HISTORY_SIZE; member in android::LeastSquaresVelocityTrackerStrategy379 if (++mIndex == HISTORY_SIZE) { in addMovement()564 float x[HISTORY_SIZE]; in getEstimator()565 float y[HISTORY_SIZE]; in getEstimator()566 float w[HISTORY_SIZE]; in getEstimator()567 float time[HISTORY_SIZE]; in getEstimator()587 index = (index == 0 ? HISTORY_SIZE : index) - 1; in getEstimator()588 } while (++m < HISTORY_SIZE); in getEstimator()637 uint32_t nextIndex = (index + 1) % HISTORY_SIZE; in chooseWeight()814 const uint32_t LegacyVelocityTrackerStrategy::HISTORY_SIZE; member in android::LegacyVelocityTrackerStrategy[all …]
58 private static final int HISTORY_SIZE = 100; field in AppIdleHistory89 final byte[] recent = new byte[HISTORY_SIZE];186 packageHistory.recent[HISTORY_SIZE - 1] = FLAG_LAST_STATE | FLAG_PARTIAL_ACTIVE; in reportUsage()196 packageHistory.recent[HISTORY_SIZE - 1] &= ~FLAG_LAST_STATE; in setIdle()204 && (thisPeriod - mLastPeriod) < HISTORY_SIZE - 1) { in shiftHistoryToNow()212 HISTORY_SIZE - diff); in shiftHistoryToNow()215 idleState.recent[HISTORY_SIZE - i - 1] = in shiftHistoryToNow()216 (byte) (idleState.recent[HISTORY_SIZE - diff - 1] & FLAG_LAST_STATE); in shiftHistoryToNow()409 for (int i = 0; i < HISTORY_SIZE; i++) { in dumpHistory()
173 static const uint32_t HISTORY_SIZE = 20; variable190 Movement mMovements[HISTORY_SIZE];248 static const uint32_t HISTORY_SIZE = 20; variable264 Movement mMovements[HISTORY_SIZE];
91 #define HISTORY_SIZE 100 macro372 mBufferHead = tick - HISTORY_SIZE; in decode()376 if (tick - mBufferHead > HISTORY_SIZE) { in decode()378 mBufferHead = tick - HISTORY_SIZE; in decode()
339 assertEquals(0, SignalController.HISTORY_SIZE & (SignalController.HISTORY_SIZE - 1)); in testHistorySize()
4249 private static final int HISTORY_SIZE = 5; field in Editor.HandleView4252 private final long[] mPreviousOffsetsTimes = new long[HISTORY_SIZE];4253 private final int[] mPreviousOffsets = new int[HISTORY_SIZE];4263 mPreviousOffsetIndex = (mPreviousOffsetIndex + 1) % HISTORY_SIZE; in addPositionToTouchUpFilter()4273 final int iMax = Math.min(mNumberPreviousOffsets, HISTORY_SIZE); in filterOnTouchUp()4276 index = (mPreviousOffsetIndex - i + HISTORY_SIZE) % HISTORY_SIZE; in filterOnTouchUp()