Fix typo in varibale name

Change-Id: I7ea6c59b7c980e93c88a6cf0fef97592d411c3ba
This commit is contained in:
Tadashi G. Takaoka 2013-12-17 12:15:02 +09:00
parent fcacde3dad
commit dd4937848a

View file

@ -167,10 +167,10 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
private static boolean sInGesture = false; private static boolean sInGesture = false;
private static long sGestureFirstDownTime; private static long sGestureFirstDownTime;
private static TimeRecorder sTimeRecorder; private static TimeRecorder sTimeRecorder;
private static final InputPointers sAggregratedPointers = new InputPointers( private static final InputPointers sAggregatedPointers = new InputPointers(
GestureStroke.DEFAULT_CAPACITY); GestureStroke.DEFAULT_CAPACITY);
private static int sLastRecognitionPointSize = 0; // synchronized using sAggregratedPointers private static int sLastRecognitionPointSize = 0; // synchronized using sAggregatedPointers
private static long sLastRecognitionTime = 0; // synchronized using sAggregratedPointers private static long sLastRecognitionTime = 0; // synchronized using sAggregatedPointers
static final class BogusMoveEventDetector { static final class BogusMoveEventDetector {
// Move these thresholds to resource. // Move these thresholds to resource.
@ -737,8 +737,8 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
Log.d(TAG, String.format("[%d] onStartBatchInput", mPointerId)); Log.d(TAG, String.format("[%d] onStartBatchInput", mPointerId));
} }
sInGesture = true; sInGesture = true;
synchronized (sAggregratedPointers) { synchronized (sAggregatedPointers) {
sAggregratedPointers.reset(); sAggregatedPointers.reset();
sLastRecognitionPointSize = 0; sLastRecognitionPointSize = 0;
sLastRecognitionTime = 0; sLastRecognitionTime = 0;
sListener.onStartBatchInput(); sListener.onStartBatchInput();
@ -769,10 +769,10 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
} }
private void updateBatchInput(final long eventTime) { private void updateBatchInput(final long eventTime) {
synchronized (sAggregratedPointers) { synchronized (sAggregatedPointers) {
final GestureStroke stroke = mGestureStrokeWithPreviewPoints; final GestureStroke stroke = mGestureStrokeWithPreviewPoints;
stroke.appendIncrementalBatchPoints(sAggregratedPointers); stroke.appendIncrementalBatchPoints(sAggregatedPointers);
final int size = sAggregratedPointers.getPointerSize(); final int size = sAggregatedPointers.getPointerSize();
if (size > sLastRecognitionPointSize if (size > sLastRecognitionPointSize
&& stroke.hasRecognitionTimePast(eventTime, sLastRecognitionTime)) { && stroke.hasRecognitionTimePast(eventTime, sLastRecognitionTime)) {
if (DEBUG_LISTENER) { if (DEBUG_LISTENER) {
@ -780,18 +780,18 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
size)); size));
} }
sTimerProxy.startUpdateBatchInputTimer(this); sTimerProxy.startUpdateBatchInputTimer(this);
sListener.onUpdateBatchInput(sAggregratedPointers); sListener.onUpdateBatchInput(sAggregatedPointers);
// The listener may change the size of the pointers (when auto-committing // The listener may change the size of the pointers (when auto-committing
// for example), so we need to get the size from the pointers again. // for example), so we need to get the size from the pointers again.
sLastRecognitionPointSize = sAggregratedPointers.getPointerSize(); sLastRecognitionPointSize = sAggregatedPointers.getPointerSize();
sLastRecognitionTime = eventTime; sLastRecognitionTime = eventTime;
} }
} }
} }
private void mayEndBatchInput(final long eventTime) { private void mayEndBatchInput(final long eventTime) {
synchronized (sAggregratedPointers) { synchronized (sAggregatedPointers) {
mGestureStrokeWithPreviewPoints.appendAllBatchPoints(sAggregratedPointers); mGestureStrokeWithPreviewPoints.appendAllBatchPoints(sAggregatedPointers);
if (getActivePointerTrackerCount() == 1) { if (getActivePointerTrackerCount() == 1) {
sInGesture = false; sInGesture = false;
sTimeRecorder.onEndBatchInput(eventTime); sTimeRecorder.onEndBatchInput(eventTime);
@ -799,9 +799,9 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
if (!mIsTrackingForActionDisabled) { if (!mIsTrackingForActionDisabled) {
if (DEBUG_LISTENER) { if (DEBUG_LISTENER) {
Log.d(TAG, String.format("[%d] onEndBatchInput : batchPoints=%d", Log.d(TAG, String.format("[%d] onEndBatchInput : batchPoints=%d",
mPointerId, sAggregratedPointers.getPointerSize())); mPointerId, sAggregatedPointers.getPointerSize()));
} }
sListener.onEndBatchInput(sAggregratedPointers); sListener.onEndBatchInput(sAggregatedPointers);
} }
} }
} }