Home
last modified time | relevance | path

Searched refs:isInTouchMode (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/widget/touchmode/
DChangeTouchModeTest.java48 assertFalse("touch mode", getActivity().isInTouchMode()); in testPreconditions()
54 assertTrue("touch mode", getActivity().isInTouchMode()); in testTouchingScreenEntersTouchMode()
62 assertFalse("touch mode", getActivity().isInTouchMode()); in DISABLE_testDpadDirectionLeavesTouchMode()
79 assertFalse(otherActivity.isInTouchMode()); in testTouchModeFalseAcrossActivites()
95 assertTrue(otherActivity.isInTouchMode()); in testTouchModeTrueAcrossActivites()
106 assertFalse("touch mode", getActivity().isInTouchMode()); in testTouchModeChangedInOtherActivity()
113 assertFalse(otherActivity.isInTouchMode()); in testTouchModeChangedInOtherActivity()
115 assertTrue(otherActivity.isInTouchMode()); in testTouchModeChangedInOtherActivity()
125 assertTrue("touch mode", getActivity().isInTouchMode()); in testTouchModeChangedInOtherActivity()
DTouchModeFocusChangeTest.java55 assertFalse("we should not be in touch mode", mActivity.isInTouchMode()); in testPreconditions()
62 assertTrue("should be in touch mode", mActivity.isInTouchMode()); in testTouchButtonNotTakeFocus()
79 assertTrue("should be in touch mode", mActivity.isInTouchMode()); in DISABLE_testLeaveTouchModeWithDpadEvent()
84 assertFalse("should be out of touch mode", mActivity.isInTouchMode()); in DISABLE_testLeaveTouchModeWithDpadEvent()
DTouchModeFocusableTest.java52 assertFalse("should not be in touch mode to start off", mButton.isInTouchMode()); in testPreconditions()
60 assertTrue("should be in touch mode", mButton.isInTouchMode()); in testClickButtonEditTextKeepsFocus()
72 assertTrue("clicking edit text should have entered touch mode", mButton.isInTouchMode()); in testClickEditTextGivesItFocus()
88 assertTrue("should be in touch mode", mButton.isInTouchMode()); in testEnterTouchModeGivesFocusBackToFocusableInTouchMode()
DStartInTouchWithViewInFocusTest.java50 assertTrue("should start in touch mode", mEditText.isInTouchMode()); in testPreconditions()
57 assertFalse("should have left touch mode", mEditText.isInTouchMode()); in DISABLE_testKeyDownLeavesTouchModeAndGoesToNextView()
64 assertFalse("should have left touch mode", mEditText.isInTouchMode()); in DISABLE_testNonDirectionalKeyExitsTouchMode()
DFocusableInTouchModeClickTest.java39 assertTrue("should start in touch mode", getActivity().getButton1().isInTouchMode()); in testPreconditions()
/frameworks/base/core/tests/coretests/src/android/util/
DTouchModeFlexibleAsserts.java39 !viewToTouch.isInTouchMode()) { in assertInTouchModeAfterClick()
44 + "touch mode", viewToTouch.isInTouchMode()); in assertInTouchModeAfterClick()
51 !viewToTouch.isInTouchMode()) { in assertInTouchModeAfterTap()
56 + "touch mode", viewToTouch.isInTouchMode()); in assertInTouchModeAfterTap()
64 while (checkForTouchMode.isInTouchMode() && amountLeft > 0) { in assertNotInTouchModeAfterKey()
73 + "pressing key event, still in touch mode", checkForTouchMode.isInTouchMode()); in assertNotInTouchModeAfterKey()
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DDescendantFocusabilityTest.java112 assertFalse(a.beforeDescendantsChild.isInTouchMode()); in testBeforeDescendantsEnterTouchMode()
115 assertTrue(a.beforeDescendantsChild.isInTouchMode()); in testBeforeDescendantsEnterTouchMode()
129 assertFalse(a.afterDescendantsChild.isInTouchMode()); in testAfterDescendantsEnterTouchMode()
132 assertTrue(a.afterDescendantsChild.isInTouchMode()); in testAfterDescendantsEnterTouchMode()
DScrollingThroughListOfFocusablesTest.java234 if (mListView.isInTouchMode()) { in ensureNotInTouchMode()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListManagedCursorTest.java67 assertTrue("List changed to touch mode", !mListView.isInTouchMode()); in testKeyScrolling()
86 assertTrue("List did not change to touch mode", mListView.isInTouchMode()); in testKeyScrollingToTouchMode()
101 assertTrue("List still in touch mode", !mListView.isInTouchMode()); in arrowScroll()
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
DLLOfButtons1.java62 public boolean isInTouchMode() { in isInTouchMode() method in LLOfButtons1
63 return mFirstButton.isInTouchMode(); in isInTouchMode()
/frameworks/layoutlib/bridge/src/android/view/
DViewRootImpl_Delegate.java31 /*package*/ static boolean isInTouchMode() { in isInTouchMode() method in ViewRootImpl_Delegate
/frameworks/base/core/tests/coretests/src/android/widget/gridview/
DGridPaddingTest.java42 assertTrue("Not in touch mode", mGridView.isInTouchMode()); in testPreconditions()
/frameworks/base/core/tests/coretests/src/android/view/menu/
DMenuWith1ItemTest.java42 assertFalse(mActivity.getButton().isInTouchMode()); in testPreconditions()
/frameworks/base/core/java/android/widget/
DDropDownListView.java315 public boolean isInTouchMode() { in isInTouchMode() method in DropDownListView
317 return (mHijackFocus && mListSelectionHidden) || super.isInTouchMode(); in isInTouchMode()
DGridView.java253 if (adapter == null || isInTouchMode()) { in lookForSelectablePosition()
1323 setSelectedPositionInt(mAdapter == null || isInTouchMode() ? in layoutChildren()
1328 setSelectedPositionInt(mAdapter == null || isInTouchMode() ? in layoutChildren()
1605 if (!isInTouchMode()) { in setSelection()
DAbsListView.java2014 if (gainFocus && mSelectedPosition < 0 && !isInTouchMode()) { in onFocusChanged()
2792 return (isFocused() && !isInTouchMode()) || (touchModeDrawsInPressedState() && isPressed()); in shouldShowSelector()
3070 final int touchMode = isInTouchMode() ? TOUCH_MODE_ON : TOUCH_MODE_OFF; in onWindowFocusChanged()
3800 public void onTouchModeChanged(boolean isInTouchMode) { in onTouchModeChanged() argument
3801 if (isInTouchMode) { in onTouchModeChanged()
5234 final boolean inTouchMode = isInTouchMode();
5654 if (isInTouchMode()) { in handleDataChanged()
5700 if (!isInTouchMode()) { in handleDataChanged()
7335 if (!isInTouchMode()) { in setSelectionFromTop()
DTabHost.java212 public void onTouchModeChanged(boolean isInTouchMode) { in onTouchModeChanged() argument
DListPopupWindow.java720 if (!mModal || mDropDownList.isInTouchMode()) { in show()
DListView.java2255 if (adapter == null || isInTouchMode()) { in lookForSelectablePosition()
2295 if (adapter == null || isInTouchMode()) { in lookForSelectablePositionAfter()
DEditor.java5780 public void onTouchModeChanged(boolean isInTouchMode) {
5781 if (!isInTouchMode) {
6229 public void onTouchModeChanged(boolean isInTouchMode) {
6230 if (!isInTouchMode) {
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListWithFirstScreenUnSelectableTest.java45 assertTrue(mListView.isInTouchMode()); in testPreconditions()
/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/
DListWithEditTextHeaderTest.java48 assertFalse("out of touch-mode", mListView.isInTouchMode()); in testPreconditions()
/frameworks/base/core/java/com/android/internal/widget/
DResolverDrawerLayout.java123 public void onTouchModeChanged(boolean isInTouchMode) {
124 if (!isInTouchMode && hasFocus() && isDescendantClipped(getFocusedChild())) {
688 if (!isInTouchMode() && isDescendantClipped(focused)) {
/frameworks/base/core/java/android/view/
DViewTreeObserver.java186 public void onTouchModeChanged(boolean isInTouchMode); in onTouchModeChanged() argument
DFocusFinder.java201 && (!userSetNextFocus.isInTouchMode() in findNextUserSpecifiedFocus()

12