Searched refs:HISTORY_SIZE (Results 1 - 5 of 5) sorted by relevance

/frameworks/base/core/java/android/view/
H A DWindowOrientationListener.java239 private static final int HISTORY_SIZE = 20; field in class:WindowOrientationListener.SensorEventListenerImpl
242 private final long[] mHistoryTimestampMS = new long[HISTORY_SIZE];
243 private final float[] mHistoryMagnitudes = new float[HISTORY_SIZE];
244 private final int[] mHistoryTiltAngles = new int[HISTORY_SIZE];
245 private final int[] mHistoryOrientationAngles = new int[HISTORY_SIZE];
580 mHistoryIndex = (index + 1) % HISTORY_SIZE;
581 if (mHistoryLength < HISTORY_SIZE) {
587 final int olderIndex = (index + HISTORY_SIZE - i) % HISTORY_SIZE;
/frameworks/base/libs/ui/
H A DInput.cpp690 const uint32_t VelocityTracker::HISTORY_SIZE; member in class:android::VelocityTracker
764 if (++mIndex == HISTORY_SIZE) {
1033 float x[HISTORY_SIZE];
1034 float y[HISTORY_SIZE];
1035 float time[HISTORY_SIZE];
1054 index = (index == 0 ? HISTORY_SIZE : index) - 1;
1055 } while (++m < HISTORY_SIZE);
/frameworks/base/voip/jni/rtp/
H A DAudioGroup.cpp89 #define HISTORY_SIZE 100 macro
370 mBufferHead = tick - HISTORY_SIZE;
374 if (tick - mBufferHead > HISTORY_SIZE) {
376 mBufferHead = tick - HISTORY_SIZE;
/frameworks/base/include/ui/
H A DInput.h697 static const uint32_t HISTORY_SIZE = 20; member in class:android::VelocityTracker
710 Movement mMovements[HISTORY_SIZE];
/frameworks/base/core/java/android/widget/
H A DTextView.java10458 private static final int HISTORY_SIZE = 5; field in class:TextView.HandleView
10461 private final long[] mPreviousOffsetsTimes = new long[HISTORY_SIZE];
10462 private final int[] mPreviousOffsets = new int[HISTORY_SIZE];
10472 mPreviousOffsetIndex = (mPreviousOffsetIndex + 1) % HISTORY_SIZE;
10482 final int iMax = Math.min(mNumberPreviousOffsets, HISTORY_SIZE);
10485 index = (mPreviousOffsetIndex - i + HISTORY_SIZE) % HISTORY_SIZE;

Completed in 366 milliseconds