Searched refs:isInTouchMode (Results 1 - 25 of 31) sorted by relevance

12

/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DViewRootImpl_Delegate.java31 /*package*/ static boolean isInTouchMode() { method in class:ViewRootImpl_Delegate
/frameworks/base/core/tests/coretests/src/android/widget/touchmode/
H A DChangeTouchModeTest.java47 assertFalse("touch mode", getActivity().isInTouchMode());
53 assertTrue("touch mode", getActivity().isInTouchMode());
61 assertFalse("touch mode", getActivity().isInTouchMode());
78 assertFalse(otherActivity.isInTouchMode());
94 assertTrue(otherActivity.isInTouchMode());
105 assertFalse("touch mode", getActivity().isInTouchMode());
112 assertFalse(otherActivity.isInTouchMode());
114 assertTrue(otherActivity.isInTouchMode());
124 assertTrue("touch mode", getActivity().isInTouchMode());
H A DStartInTouchWithViewInFocusTest.java49 assertTrue("should start in touch mode", mEditText.isInTouchMode());
56 assertFalse("should have left touch mode", mEditText.isInTouchMode());
63 assertFalse("should have left touch mode", mEditText.isInTouchMode());
H A DTouchModeFocusChangeTest.java54 assertFalse("we should not be in touch mode", mActivity.isInTouchMode());
62 assertTrue("should be in touch mode", mActivity.isInTouchMode());
79 assertTrue("should be in touch mode", mActivity.isInTouchMode());
84 assertFalse("should be out of touch mode", mActivity.isInTouchMode());
H A DTouchModeFocusableTest.java52 assertFalse("should not be in touch mode to start off", mButton.isInTouchMode());
60 assertTrue("should be in touch mode", mButton.isInTouchMode());
71 assertTrue("clicking edit text should have entered touch mode", mButton.isInTouchMode());
86 assertTrue("should be in touch mode", mButton.isInTouchMode());
H A DFocusableInTouchModeClickTest.java39 assertTrue("should start in touch mode", getActivity().getButton1().isInTouchMode());
/frameworks/base/core/tests/coretests/src/android/util/
H A DTouchModeFlexibleAsserts.java39 !viewToTouch.isInTouchMode()) {
44 + "touch mode", viewToTouch.isInTouchMode());
51 !viewToTouch.isInTouchMode()) {
56 + "touch mode", viewToTouch.isInTouchMode());
64 while (checkForTouchMode.isInTouchMode() && amountLeft > 0) {
73 + "pressing key event, still in touch mode", checkForTouchMode.isInTouchMode());
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
H A DLLOfButtons1.java62 public boolean isInTouchMode() { method in class:LLOfButtons1
63 return mFirstButton.isInTouchMode();
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListManagedCursorTest.java67 assertTrue("List changed to touch mode", !mListView.isInTouchMode());
84 assertTrue("List not in touch mode", mListView.isInTouchMode());
103 assertTrue("List did not change to touch mode", mListView.isInTouchMode());
126 assertTrue("List not in trackball mode", !mListView.isInTouchMode());
141 assertTrue("List still in touch mode", !mListView.isInTouchMode());
167 assertTrue("List not in touch mode", mListView.isInTouchMode());
/frameworks/base/core/tests/coretests/src/android/widget/gridview/
H A DGridPaddingTest.java41 assertTrue("Not in touch mode", mGridView.isInTouchMode());
/frameworks/base/core/tests/coretests/src/android/view/menu/
H A DMenuWith1ItemTest.java47 assertFalse(mActivity.getButton().isInTouchMode());
79 mActivity.getButton().isInTouchMode());
84 assertTrue("menuItem.isInTouchMode()", menuItem.isInTouchMode());
/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DDescendantFocusabilityTest.java113 assertFalse(a.beforeDescendantsChild.isInTouchMode());
116 assertTrue(a.beforeDescendantsChild.isInTouchMode());
130 assertFalse(a.afterDescendantsChild.isInTouchMode());
133 assertTrue(a.afterDescendantsChild.isInTouchMode());
H A DScrollingThroughListOfFocusablesTest.java230 if (mListView.isInTouchMode()) {
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
H A DListWithFirstScreenUnSelectableTest.java42 assertTrue(mListView.isInTouchMode());
/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/
H A DListWithEditTextHeaderTest.java46 assertFalse("out of touch-mode", mListView.isInTouchMode());
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DListViewCompat.java145 if (adapter == null || isInTouchMode()) {
/frameworks/base/core/java/android/widget/
H A DListPopupWindow.java662 if (!mModal || mDropDownList.isInTouchMode()) {
1543 * When this boolean is true, isInTouchMode() returns true, otherwise it
1544 * returns super.isInTouchMode().
1744 public boolean isInTouchMode() { method in class:ListPopupWindow.DropDownListView
1746 return (mHijackFocus && mListSelectionHidden) || super.isInTouchMode();
H A DGridView.java236 if (adapter == null || isInTouchMode()) {
1303 setSelectedPositionInt(mAdapter == null || isInTouchMode() ?
1308 setSelectedPositionInt(mAdapter == null || isInTouchMode() ?
1578 if (!isInTouchMode()) {
H A DTabHost.java192 public void onTouchModeChanged(boolean isInTouchMode) { argument
H A DAbsListView.java1960 if (gainFocus && mSelectedPosition < 0 && !isInTouchMode()) {
2687 return (isFocused() && !isInTouchMode()) || (touchModeDrawsInPressedState() && isPressed());
2940 final int touchMode = isInTouchMode() ? TOUCH_MODE_ON : TOUCH_MODE_OFF;
3601 public void onTouchModeChanged(boolean isInTouchMode) { argument
3602 if (isInTouchMode) {
4976 final boolean inTouchMode = isInTouchMode();
5389 if (isInTouchMode()) {
5435 if (!isInTouchMode()) {
6942 if (!isInTouchMode()) {
H A DListView.java2047 if (adapter == null || isInTouchMode()) {
2087 if (adapter == null || isInTouchMode()) {
/frameworks/base/core/java/com/android/internal/widget/
H A DResolverDrawerLayout.java102 public void onTouchModeChanged(boolean isInTouchMode) {
103 if (!isInTouchMode && hasFocus() && isDescendantClipped(getFocusedChild())) {
580 if (!isInTouchMode() && isDescendantClipped(focused)) {
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DListPopupWindow.java658 if (!mModal || mDropDownList.isInTouchMode()) {
1525 * When this boolean is true, isInTouchMode() returns true, otherwise it
1526 * returns super.isInTouchMode().
1666 public boolean isInTouchMode() { method in class:ListPopupWindow.DropDownListView
1668 return (mHijackFocus && mListSelectionHidden) || super.isInTouchMode();
/frameworks/base/core/java/android/view/
H A DViewTreeObserver.java166 * @param isInTouchMode True if the view hierarchy is now in touch mode, false otherwise.
168 public void onTouchModeChanged(boolean isInTouchMode); argument
H A DFocusFinder.java106 && (!userSetNextFocus.isInTouchMode()

Completed in 322 milliseconds

12