Home
last modified time | relevance | path

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

12345

/frameworks/support/v4/java/android/support/v4/view/
DViewConfigurationCompat.java19 import android.view.ViewConfiguration;
30 public int getScaledPagingTouchSlop(ViewConfiguration config); in getScaledPagingTouchSlop()
31 public boolean hasPermanentMenuKey(ViewConfiguration config); in hasPermanentMenuKey()
39 public int getScaledPagingTouchSlop(ViewConfiguration config) { in getScaledPagingTouchSlop()
44 public boolean hasPermanentMenuKey(ViewConfiguration config) { in hasPermanentMenuKey()
55 public int getScaledPagingTouchSlop(ViewConfiguration config) { in getScaledPagingTouchSlop()
65 public boolean hasPermanentMenuKey(ViewConfiguration config) { in hasPermanentMenuKey()
76 public boolean hasPermanentMenuKey(ViewConfiguration config) { in hasPermanentMenuKey()
104 public static int getScaledPagingTouchSlop(ViewConfiguration config) { in getScaledPagingTouchSlop()
112 public static boolean hasPermanentMenuKey(ViewConfiguration config) { in hasPermanentMenuKey()
DGestureDetectorCompat.java29 import android.view.ViewConfiguration;
62 private static final int LONGPRESS_TIMEOUT = ViewConfiguration.getLongPressTimeout();
63 private static final int TAP_TIMEOUT = ViewConfiguration.getTapTimeout();
64 private static final int DOUBLE_TAP_TIMEOUT = ViewConfiguration.getDoubleTapTimeout();
174 final ViewConfiguration configuration = ViewConfiguration.get(context); in init()
/frameworks/base/core/java/android/view/
DViewConfiguration.java32 public class ViewConfiguration { class
242 static final SparseArray<ViewConfiguration> sConfigurations =
243 new SparseArray<ViewConfiguration>(2);
249 public ViewConfiguration() { in ViewConfiguration() method in ViewConfiguration
278 private ViewConfiguration(Context context) { in ViewConfiguration() method in ViewConfiguration
358 public static ViewConfiguration get(Context context) { in get()
362 ViewConfiguration configuration = sConfigurations.get(density); in get()
364 configuration = new ViewConfiguration(context); in get()
DGestureDetector.java201 private static final int LONGPRESS_TIMEOUT = ViewConfiguration.getLongPressTimeout();
202 private static final int TAP_TIMEOUT = ViewConfiguration.getTapTimeout();
203 private static final int DOUBLE_TAP_TIMEOUT = ViewConfiguration.getDoubleTapTimeout();
204 private static final int DOUBLE_TAP_MIN_TIME = ViewConfiguration.getDoubleTapMinTime();
392 touchSlop = ViewConfiguration.getTouchSlop(); in init()
394 doubleTapSlop = ViewConfiguration.getDoubleTapSlop(); in init()
396 mMinimumFlingVelocity = ViewConfiguration.getMinimumFlingVelocity(); in init()
397 mMaximumFlingVelocity = ViewConfiguration.getMaximumFlingVelocity(); in init()
399 final ViewConfiguration configuration = ViewConfiguration.get(context); in init()
DTouchDelegate.java22 import android.view.ViewConfiguration;
93 mSlop = ViewConfiguration.get(delegateView.getContext()).getScaledTouchSlop(); in TouchDelegate()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DCheckLongPressHelper.java21 import android.view.ViewConfiguration;
44 mScaledTouchSlop = ViewConfiguration.get(v.getContext()).getScaledTouchSlop(); in CheckLongPressHelper()
45 mLongPressTimeout = ViewConfiguration.getLongPressTimeout(); in CheckLongPressHelper()
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
DListTouchManyTest.java25 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.java24 import android.view.ViewConfiguration;
64 0, -(ViewConfiguration.getTouchSlop() + 1 + 10)); in testShortScroll()
83 lastTop - (distance - ViewConfiguration.getTouchSlop() - 1), lastChild.getTop()); in testLongScroll()
DListTouchBottomGravityManyTest.java25 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/support/v4/froyo/android/support/v4/view/
DViewConfigurationCompatFroyo.java19 import android.view.ViewConfiguration;
25 public static int getScaledPagingTouchSlop(ViewConfiguration config) { in getScaledPagingTouchSlop()
/frameworks/support/v4/ics/android/support/v4/view/
DViewConfigurationCompatICS.java19 import android.view.ViewConfiguration;
25 static boolean hasPermanentMenuKey(ViewConfiguration config) { in hasPermanentMenuKey()
/frameworks/base/core/tests/coretests/src/android/view/
DBigCacheTest.java25 import android.view.ViewConfiguration;
58 final int max = ViewConfiguration.get(getActivity()).getScaledMaximumDrawingCacheSize(); in testDrawingCacheBelowMaximumSize()
66 final int max = ViewConfiguration.get(getActivity()).getScaledMaximumDrawingCacheSize();
DBigCache.java28 import android.view.ViewConfiguration;
44 final int cacheSize = ViewConfiguration.getMaximumDrawingCacheSize(); in onCreate()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
DGridTouchVerticalSpacingTest.java25 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.java26 import android.view.ViewConfiguration;
34 private ViewConfiguration mViewConfig;
47 mViewConfig = ViewConfiguration.get(context); in setUp()
68 ViewConfiguration.getTouchSlop()); in testNoScroll()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNavigationBarViewTaskSwitchHelper.java23 import android.view.ViewConfiguration;
40 ViewConfiguration configuration = ViewConfiguration.get(context); in NavigationBarViewTaskSwitchHelper()
/frameworks/base/cmds/uiautomator/instrumentation/testrunner-src/com/android/uiautomator/core/
DInstrumentationUiAutomatorBridge.java24 import android.view.ViewConfiguration;
58 return ViewConfiguration.getLongPressTimeout(); in getSystemLongPressTime()
/frameworks/base/docs/html/training/gestures/
Dviewgroup.jd18 <li><a href="#vc">Use ViewConfiguration Constants</a></li>
95 ViewConfiguration vc = ViewConfiguration.get(view.getContext());
132 // Touch slop should be calculated using ViewConfiguration
166 <h2 id="vc">Use ViewConfiguration Constants</h2>
168 <p>The above snippet uses the current {@link android.view.ViewConfiguration} to initialize
170 android.view.ViewConfiguration} class to access common distances, speeds, and
179 <p>Two other commonly used {@link android.view.ViewConfiguration} methods are
180 {@link android.view.ViewConfiguration#getScaledMinimumFlingVelocity getScaledMinimumFlingVelocity()…
181 and {@link android.view.ViewConfiguration#getScaledMaximumFlingVelocity getScaledMaximumFlingVeloci…
185 <pre>ViewConfiguration vc = ViewConfiguration.get(view.getContext());
/frameworks/base/core/tests/coretests/src/android/util/
DKeyUtils.java28 import android.view.ViewConfiguration;
82 Thread.sleep((long)(ViewConfiguration.getLongPressTimeout() * 1.5f)); in longClick()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/
DActionBarPolicy.java25 import android.view.ViewConfiguration;
53 return !ViewConfigurationCompat.hasPermanentMenuKey(ViewConfiguration.get(mContext)); in showsOverflowMenuButton()
/frameworks/base/tools/layoutlib/bridge/src/android/view/
DViewConfiguration_Accessor.java26 ViewConfiguration.sConfigurations.clear(); in clearConfigurations()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DCropView.java28 import android.view.ViewConfiguration;
250 ViewConfiguration config = ViewConfiguration.get(getContext()); in onTouchEvent()
258 now < mTouchDownTime + ViewConfiguration.getTapTimeout()) { in onTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyButtonView.java37 import android.view.ViewConfiguration;
98 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in KeyButtonView()
188 postDelayed(mCheckLongPress, ViewConfiguration.getLongPressTimeout()); in onTouchEvent()
/frameworks/base/test-runner/src/android/test/
DTouchUtils.java27 import android.view.ViewConfiguration;
261 final int touchSlop = ViewConfiguration.get(v.getContext()).getScaledTouchSlop(); in tapView()
301 final int touchSlop = ViewConfiguration.get(v.getContext()).getScaledTouchSlop(); in touchAndCancelView()
337 final int touchSlop = ViewConfiguration.get(v.getContext()).getScaledTouchSlop(); in clickView()
397 final int touchSlop = ViewConfiguration.get(v.getContext()).getScaledTouchSlop(); in longClickView()
404 Thread.sleep((long)(ViewConfiguration.getLongPressTimeout() * 1.5f)); in longClickView()
/frameworks/base/core/java/com/android/internal/widget/
DSwipeDismissLayout.java27 import android.view.ViewConfiguration;
112 ViewConfiguration vc = ViewConfiguration.get(getContext()); in init()

12345