Home
last modified time | relevance | path

Searched refs:ViewConfiguration (Results 1 – 25 of 110) sorted by relevance

12345

/frameworks/base/core/java/android/view/
DGestureDetector.java239 private static final int LONGPRESS_TIMEOUT = ViewConfiguration.getLongPressTimeout();
240 private static final int TAP_TIMEOUT = ViewConfiguration.getTapTimeout();
241 private static final int DOUBLE_TAP_TIMEOUT = ViewConfiguration.getDoubleTapTimeout();
242 private static final int DOUBLE_TAP_MIN_TIME = ViewConfiguration.getDoubleTapMinTime();
445 touchSlop = ViewConfiguration.getTouchSlop(); in init()
447 doubleTapSlop = ViewConfiguration.getDoubleTapSlop(); in init()
449 mMinimumFlingVelocity = ViewConfiguration.getMinimumFlingVelocity(); in init()
450 mMaximumFlingVelocity = ViewConfiguration.getMaximumFlingVelocity(); in init()
452 final ViewConfiguration configuration = ViewConfiguration.get(context); in init()
626 + ViewConfiguration.getLongPressTimeout()); in onTouchEvent()
[all …]
DViewConfiguration.java36 public class ViewConfiguration { class
333 static final SparseArray<ViewConfiguration> sConfigurations =
334 new SparseArray<ViewConfiguration>(2);
340 public ViewConfiguration() { in ViewConfiguration() method in ViewConfiguration
380 private ViewConfiguration(Context context) { in ViewConfiguration() method in ViewConfiguration
480 public static ViewConfiguration get(Context context) { in get()
484 ViewConfiguration configuration = sConfigurations.get(density); in get()
486 configuration = new ViewConfiguration(context); in get()
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
DListTouchManyTest.java23 import android.view.ViewConfiguration;
116 Thread.sleep((long)(ViewConfiguration.getLongPressTimeout() * 1.25f)); in testPress()
154 0, -(ViewConfiguration.getTouchSlop())); in testNoScroll()
171 0, -(ViewConfiguration.getTouchSlop() + 1 + 10)); in testShortScroll()
190 lastTop - (distance - ViewConfiguration.getTouchSlop() - 1), lastChild.getTop()); in testLongScroll()
DListOfTouchablesTest.java23 import android.view.ViewConfiguration;
63 0, -(ViewConfiguration.getTouchSlop() + 1 + 10)); in testShortScroll()
82 lastTop - (distance - ViewConfiguration.getTouchSlop() - 1), lastChild.getTop()); in testLongScroll()
DListTouchBottomGravityManyTest.java23 import android.view.ViewConfiguration;
106 0, ViewConfiguration.getTouchSlop()); in testNoScroll()
128 0, ViewConfiguration.getTouchSlop() + 1 + 10); in testShortScroll()
152 + (distance - ViewConfiguration.getTouchSlop() - 1), firstChild.getTop()); in testLongScroll()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/gesture/
DConsecutiveTapsGestureDetector.java22 import android.view.ViewConfiguration;
52 int doubleTapSlop = ViewConfiguration.get(this.view.getContext()).getScaledDoubleTapSlop(); in ConsecutiveTapsGestureDetector()
54 consecutiveTapTimeout = ViewConfiguration.getDoubleTapTimeout(); in ConsecutiveTapsGestureDetector()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
DGridTouchVerticalSpacingTest.java23 import android.view.ViewConfiguration;
62 0, -(ViewConfiguration.getTouchSlop())); in testNoScroll()
79 0, -(ViewConfiguration.getTouchSlop() + 1 + 10)); in testShortScroll()
98 lastTop - (distance - ViewConfiguration.getTouchSlop() - 1), lastChild.getTop()); in testLongScroll()
DGridTouchVerticalSpacingStackFromBottomTest.java24 import android.view.ViewConfiguration;
34 private ViewConfiguration mViewConfig;
47 mViewConfig = ViewConfiguration.get(context); in setUp()
68 ViewConfiguration.getTouchSlop()); in testNoScroll()
/frameworks/base/core/java/android/widget/
DForwardingListener.java22 import android.view.ViewConfiguration;
64 mScaledTouchSlop = ViewConfiguration.get(src.getContext()).getScaledTouchSlop(); in ForwardingListener()
65 mTapTimeout = ViewConfiguration.getTapTimeout(); in ForwardingListener()
68 mLongPressTimeout = (mTapTimeout + ViewConfiguration.getLongPressTimeout()) / 2; in ForwardingListener()
/frameworks/base/cmds/uiautomator/instrumentation/testrunner-src/com/android/uiautomator/core/
DInstrumentationUiAutomatorBridge.java24 import android.view.ViewConfiguration;
58 return ViewConfiguration.getLongPressTimeout(); in getSystemLongPressTime()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/gesture/
DConsecutiveTapsGestureDetectorTest.java25 import android.view.ViewConfiguration;
54 slop = ViewConfiguration.get(application).getScaledDoubleTapSlop(); in setUp()
55 tapTimeout = ViewConfiguration.getDoubleTapTimeout(); in setUp()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DViewClickAction.java20 import android.view.ViewConfiguration;
53 long doubleTapTimeout = ViewConfiguration.getDoubleTapTimeout(); in perform()
DDragAction.java31 import android.view.ViewConfiguration;
184 long doubleTapMinimumTimeout = ViewConfiguration.getDoubleTapMinTime();
374 long longPressTimeout = (long) (ViewConfiguration.getLongPressTimeout() * 1.5f); in performLongPress()
394 long doubleTapMinimumTimeout = ViewConfiguration.getDoubleTapMinTime(); in performDoubleTap()
474 int duration = ViewConfiguration.getPressedStateDuration(); in perform()
DMouseClickAction.java22 import android.view.ViewConfiguration;
56 long doubleTapMinimumTimeout = ViewConfiguration.getDoubleTapMinTime(); in sendTap()
/frameworks/base/core/tests/coretests/src/android/view/
DBigCacheTest.java56 final int max = ViewConfiguration.get(getActivity()).getScaledMaximumDrawingCacheSize(); in testDrawingCacheBelowMaximumSize()
64 final int max = ViewConfiguration.get(getActivity()).getScaledMaximumDrawingCacheSize();
/frameworks/base/core/tests/coretests/src/android/util/
DKeyUtils.java23 import android.view.ViewConfiguration;
76 Thread.sleep((long)(ViewConfiguration.getLongPressTimeout() * 1.5f)); in longClick()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DHeadsUpTouchHelper.java21 import android.view.ViewConfiguration;
52 final ViewConfiguration configuration = ViewConfiguration.get(context); in HeadsUpTouchHelper()
DDoubleTapHelper.java21 import android.view.ViewConfiguration;
54 mTouchSlop = ViewConfiguration.get(view.getContext()).getScaledTouchSlop(); in DoubleTapHelper()
DSettingsButton.java26 import android.view.ViewConfiguration;
49 mSlop = ViewConfiguration.get(getContext()).getScaledTouchSlop(); in SettingsButton()
/frameworks/layoutlib/bridge/src/android/view/
DViewConfiguration_Accessor.java26 ViewConfiguration.sConfigurations.clear(); in clearConfigurations()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DQuickStepContract.java26 import android.view.ViewConfiguration;
114 return QUICKSTEP_TOUCH_SLOP_RATIO * ViewConfiguration.get(context).getScaledTouchSlop(); in getQuickStepTouchSlopPx()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipTouchState.java24 import android.view.ViewConfiguration;
41 private final ViewConfiguration mViewConfig;
66 public PipTouchState(ViewConfiguration viewConfig, Handler handler, in PipTouchState()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DCropView.java27 import android.view.ViewConfiguration;
249 ViewConfiguration config = ViewConfiguration.get(getContext()); in onTouchEvent()
257 now < mTouchDownTime + ViewConfiguration.getTapTimeout()) { in onTouchEvent()
/frameworks/base/test-runner/src/android/test/
DTouchUtils.java27 import android.view.ViewConfiguration;
267 final int touchSlop = ViewConfiguration.get(v.getContext()).getScaledTouchSlop(); in tapView()
307 final int touchSlop = ViewConfiguration.get(v.getContext()).getScaledTouchSlop(); in touchAndCancelView()
343 final int touchSlop = ViewConfiguration.get(v.getContext()).getScaledTouchSlop(); in clickView()
403 final int touchSlop = ViewConfiguration.get(v.getContext()).getScaledTouchSlop(); in longClickView()
410 Thread.sleep((long)(ViewConfiguration.getLongPressTimeout() * 1.5f)); in longClickView()
/frameworks/base/core/java/com/android/internal/widget/
DNestedScrollingChild.java22 import android.view.ViewConfiguration;

12345