Searched refs:HISTORY_SIZE (Results 1 – 8 of 8) sorted by relevance
33 private static final int HISTORY_SIZE = 100; field in AppIdleHistory46 && (thisPeriod - lastPeriod) < HISTORY_SIZE - 1) { in addEntry()53 System.arraycopy(history, diff, history, 0, HISTORY_SIZE - diff); in addEntry()56 history[HISTORY_SIZE - i - 1] = in addEntry()57 (byte) (history[HISTORY_SIZE - diff - 1] & FLAG_LAST_STATE); in addEntry()64 packageHistory[HISTORY_SIZE - 1] = FLAG_LAST_STATE | FLAG_PARTIAL_ACTIVE; in addEntry()66 packageHistory[HISTORY_SIZE - 1] &= ~FLAG_LAST_STATE; in addEntry()82 packageHistory = new byte[HISTORY_SIZE]; in getPackageHistory()95 return (packageHistory[HISTORY_SIZE - 1] & FLAG_LAST_STATE) == 0; in isIdle()105 for (int i = 0; i < HISTORY_SIZE; i++) { in dump()
36 static final int HISTORY_SIZE = 64; field in SignalController68 mHistory = new State[HISTORY_SIZE]; in SignalController()69 for (int i = 0; i < HISTORY_SIZE; i++) { in SignalController()180 mHistory[mHistoryIndex++ & (HISTORY_SIZE - 1)].copyFrom(mLastState); in recordLastState()189 for (int i = 0; i < HISTORY_SIZE; i++) { in dump()193 for (int i = mHistoryIndex + HISTORY_SIZE - 1; in dump()194 i >= mHistoryIndex + HISTORY_SIZE - size; i--) { in dump()195 pw.println(" Previous State(" + (mHistoryIndex + HISTORY_SIZE - i) + "): " in dump()196 + mHistory[i & (HISTORY_SIZE - 1)]); in dump()
355 const uint32_t LeastSquaresVelocityTrackerStrategy::HISTORY_SIZE; member in android::LeastSquaresVelocityTrackerStrategy378 if (++mIndex == HISTORY_SIZE) { in addMovement()562 float x[HISTORY_SIZE]; in getEstimator()563 float y[HISTORY_SIZE]; in getEstimator()564 float w[HISTORY_SIZE]; in getEstimator()565 float time[HISTORY_SIZE]; in getEstimator()585 index = (index == 0 ? HISTORY_SIZE : index) - 1; in getEstimator()586 } while (++m < HISTORY_SIZE); in getEstimator()635 uint32_t nextIndex = (index + 1) % HISTORY_SIZE; in chooseWeight()812 const uint32_t LegacyVelocityTrackerStrategy::HISTORY_SIZE; member in android::LegacyVelocityTrackerStrategy[all …]
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];
66 private static final int HISTORY_SIZE = 20; field in GraphicsStatsService71 private HistoricalData[] mHistoricalLog = new HistoricalData[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()
281 assertEquals(0, SignalController.HISTORY_SIZE & (SignalController.HISTORY_SIZE - 1)); in testHistorySize()
3576 private static final int HISTORY_SIZE = 5; field in Editor.HandleView3579 private final long[] mPreviousOffsetsTimes = new long[HISTORY_SIZE];3580 private final int[] mPreviousOffsets = new int[HISTORY_SIZE];3590 mPreviousOffsetIndex = (mPreviousOffsetIndex + 1) % HISTORY_SIZE; in addPositionToTouchUpFilter()3600 final int iMax = Math.min(mNumberPreviousOffsets, HISTORY_SIZE); in filterOnTouchUp()3603 index = (mPreviousOffsetIndex - i + HISTORY_SIZE) % HISTORY_SIZE; in filterOnTouchUp()