Searched refs:SingleKeyGestureDetector (Results 1 – 4 of 4) sorted by relevance
51 private SingleKeyGestureDetector mDetector;78 mDetector = SingleKeyGestureDetector.get(mContext); in setUp()82 mWaitTimeout = SingleKeyGestureDetector.MULTI_PRESS_TIMEOUT + 50; in setUp()83 mLongPressTime = SingleKeyGestureDetector.sDefaultLongPressTimeout + 50; in setUp()84 mVeryLongPressTime = SingleKeyGestureDetector.sDefaultVeryLongPressTimeout + 50; in setUp()88 mDetector.addRule(new SingleKeyGestureDetector.SingleKeyRule(KEYCODE_POWER) { in initSingleKeyGestureRules()133 mDetector.addRule(new SingleKeyGestureDetector.SingleKeyRule(KEYCODE_BACK) { in initSingleKeyGestureRules()303 final SingleKeyGestureDetector.SingleKeyRule rule = in testAddRemove()304 new SingleKeyGestureDetector.SingleKeyRule(KEYCODE_POWER) { in testAddRemove()
118 = SingleKeyGestureDetector.MULTI_PRESS_TIMEOUT + 1000L * HW_TIMEOUT_MULTIPLIER;
36 public final class SingleKeyGestureDetector { class173 static SingleKeyGestureDetector get(Context context) { in get()174 SingleKeyGestureDetector detector = new SingleKeyGestureDetector(); in get()182 private SingleKeyGestureDetector() { in SingleKeyGestureDetector() method in SingleKeyGestureDetector
661 private SingleKeyGestureDetector mSingleKeyGestureDetector;2441 private final class PowerKeyRule extends SingleKeyGestureDetector.SingleKeyRule {2503 private final class BackKeyRule extends SingleKeyGestureDetector.SingleKeyRule {2532 private final class StemPrimaryKeyRule extends SingleKeyGestureDetector.SingleKeyRule {2564 mSingleKeyGestureDetector = SingleKeyGestureDetector.get(mContext);