Searched refs:mLongPressDetector (Results 1 - 3 of 3) sorted by relevance

/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/
H A DLongPressDetectorTest.java26 private LongPressDetector mLongPressDetector; field in class:LongPressDetectorTest
34 mLongPressDetector = new LongPressDetector(getInstrumentation().getTargetContext(), null);
49 mLongPressDetector.startLongPressTimerIfNeeded(event);
51 assertTrue("Should have a pending LONG_PRESS", mLongPressDetector.hasPendingMessage());
59 mLongPressDetector.startLongPressTimerIfNeeded(event);
61 assertTrue("Should have a pending LONG_PRESS", mLongPressDetector.hasPendingMessage());
64 mLongPressDetector.cancelLongPressIfNeeded(event);
65 assertTrue("Should not have a pending LONG_PRESS", !mLongPressDetector.hasPendingMessage());
104 mLongPressDetector.startLongPressTimerIfNeeded(event);
106 assertTrue("Should have a pending LONG_PRESS", mLongPressDetector
[all...]
H A DContentViewGestureHandlerTest.java40 private LongPressDetector mLongPressDetector; field in class:ContentViewGestureHandlerTest
193 mLongPressDetector = new LongPressDetector(
196 mLongPressDetector, mMockGestureDetector, mMockListener);
215 assertTrue("Should have a pending LONG_PRESS", mLongPressDetector.hasPendingMessage());
218 mLongPressDetector.cancelLongPressIfNeeded(event);
219 assertTrue("Should not have a pending LONG_PRESS", !mLongPressDetector.hasPendingMessage());
243 assertFalse("Should not have a pending LONG_PRESS", mLongPressDetector.hasPendingMessage());
270 mLongPressDetector.hasPendingMessage());
304 assertFalse("Should not have a pending LONG_PRESS", mLongPressDetector.hasPendingMessage());
362 mLongPressDetector
[all...]
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
H A DContentViewGestureHandler.java71 private LongPressDetector mLongPressDetector; field in class:ContentViewGestureHandler
270 mLongPressDetector = new LongPressDetector(context, this);
292 if (longPressDetector != null) mLongPressDetector = longPressDetector;
421 if (!mIgnoreSingleTap && !mLongPressDetector.isInLongPress()) {
456 if (mLongPressDetector.isInLongPress() || mIgnoreSingleTap) return true;
579 return mLongPressDetector;
594 mLongPressDetector.cancelLongPress();
770 mLongPressDetector.cancelLongPressIfNeeded(event);
799 if (mLongPressDetector.isInLongPress() && mLastLongPressEvent != null) {
823 mLongPressDetector
[all...]

Completed in 60 milliseconds