Home
last modified time | relevance | path

Searched refs:isFocused (Results 1 – 25 of 45) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/widget/focus/
DDescendantFocusabilityTest.java63 assertTrue(a.beforeDescendants.isFocused()); in testBeforeDescendants()
67 assertTrue(a.beforeDescendantsChild.isFocused()); in testBeforeDescendants()
76 assertTrue(a.afterDescendantsChild.isFocused()); in testAfterDescendants()
80 assertTrue(a.afterDescendantsChild.isFocused()); in testAfterDescendants()
88 assertTrue(a.blocksDescendants.isFocused()); in testBlocksDescendants()
89 assertFalse(a.blocksDescendantsChild.isFocused()); in testBlocksDescendants()
93 assertFalse(a.blocksDescendants.isFocused()); in testBlocksDescendants()
94 assertFalse(a.blocksDescendantsChild.isFocused()); in testBlocksDescendants()
112 assertTrue(a.beforeDescendantsChild.isFocused()); in testBeforeDescendantsEnterTouchMode()
117 assertFalse(a.beforeDescendants.isFocused()); in testBeforeDescendantsEnterTouchMode()
[all …]
DListOfButtonsTest.java153 assertTrue(firstButton.isFocused()); in testGoInAndOutOfListWithItemsFocusable()
157 assertTrue(mButtonAtTop.isFocused()); in testGoInAndOutOfListWithItemsFocusable()
160 assertTrue(firstButton.isFocused()); in testGoInAndOutOfListWithItemsFocusable()
163 assertTrue(mButtonAtTop.isFocused()); in testGoInAndOutOfListWithItemsFocusable()
166 assertTrue(firstButton.isFocused()); in testGoInAndOutOfListWithItemsFocusable()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListRetainsFocusAcrossLayoutsTest.java42 getActivity().getChildOfItem(0, 0).isFocused()); in testPreconditions()
51 getActivity().getChildOfItem(0, 2).isFocused()); in testBottomButtonRetainsFocusAfterLayout()
57 getActivity().getChildOfItem(0, 2).isFocused()); in testBottomButtonRetainsFocusAfterLayout()
65 getActivity().getChildOfItem(1, 0).isFocused()); in testTopButtonOfSecondPositionRetainsFocusAfterLayout()
71 getActivity().getChildOfItem(1, 0).isFocused()); in testTopButtonOfSecondPositionRetainsFocusAfterLayout()
80 getActivity().getChildOfItem(1, 2).isFocused()); in testBottomButtonOfSecondPositionRetainsFocusAfterLayout()
86 getActivity().getChildOfItem(1, 2).isFocused()); in testBottomButtonOfSecondPositionRetainsFocusAfterLayout()
/frameworks/base/core/tests/coretests/src/android/widget/scroll/arrowscroll/
DTallTextAboveButtonTest.java51 getActivity().getScrollView().isFocused()); in testPreconditions()
61 + "into view", mBottomButton.isFocused()); in testGainFocusAsScrolledOntoScreen()
65 getActivity().getScrollView().isFocused()); in testGainFocusAsScrolledOntoScreen()
71 assertTrue("button should have focus", mBottomButton.isFocused()); in testScrollingButtonOffScreenLosesFocus()
74 getActivity().getScrollView().isFocused()); in testScrollingButtonOffScreenLosesFocus()
DButtonsWithTallTextViewInBetweenTest.java88 mTopButton.isFocused()); in testPanTopButtonOffScreenLosesFocus()
90 assertTrue("scroll view should be focused", mScrollView.isFocused()); in testPanTopButtonOffScreenLosesFocus()
103 assertTrue("bottombutton.isFocused", mBottomButton.isFocused()); in testScrollDownToBottomButton()
120 assertTrue("bottombutton.isFocused", mBottomButton.isFocused()); in testPanBottomButtonOffScreenLosesFocus()
138 mBottomButton.isFocused()); in testPanBottomButtonOffScreenLosesFocus()
140 assertTrue("scroll view should be focused", mScrollView.isFocused()); in testPanBottomButtonOffScreenLosesFocus()
DShortButtonsTest.java62 assertTrue(prefix + " to have focus", button.isFocused()); in testScrollDownToBottomThroughButtons()
86 assertTrue("lastButton.isFocused()", lastButton.isFocused()); in testScrollFromBottomToTopThroughButtons()
91 assertTrue(prefix + " to have focus", button.isFocused()); in testScrollFromBottomToTopThroughButtons()
/frameworks/base/core/tests/coretests/src/android/widget/touchmode/
DTouchModeFocusableTest.java53 assertTrue("edit text should have focus", mEditText.isFocused()); in testPreconditions()
61 assertTrue("edit text should still have focus", mEditText.isFocused()); in testClickButtonEditTextKeepsFocus()
68 assertTrue("button should have focus", mButton.isFocused()); in testClickEditTextGivesItFocus()
72 assertTrue("clicking edit text should have given it focus", mEditText.isFocused()); in testClickEditTextGivesItFocus()
83 mButton.isFocused()); in testEnterTouchModeGivesFocusBackToFocusableInTouchMode()
DTouchModeFocusChangeTest.java55 assertTrue("top button should have focus", mFirstButton.isFocused()); in testPreconditions()
64 mFirstButton.isFocused()); in testTouchButtonNotTakeFocus()
81 mFirstButton.isFocused()); in DISABLE_testLeaveTouchModeWithDpadEvent()
86 mFirstButton.isFocused()); in DISABLE_testLeaveTouchModeWithDpadEvent()
DFocusableInTouchModeClickTest.java40 assertTrue(getActivity().getButton1().isFocused()); in testPreconditions()
47 getActivity().getButton2().isFocused()); in testClickGivesFocusNoClickFired()
60 assertFalse("button shouldn't have focus", getActivity().getButton2().isFocused()); in testTapGivesFocusNoClickFired()
DStartInTouchWithViewInFocusTest.java50 … assertTrue("edit text is focusable in touch mode, should have focus", mEditText.isFocused()); in testPreconditions()
57 assertTrue("should have given focus to next view", mButton.isFocused()); in DISABLE_testKeyDownLeavesTouchModeAndGoesToNextView()
64 assertTrue("edit text should still have focus", mEditText.isFocused()); in DISABLE_testNonDirectionalKeyExitsTouchMode()
/frameworks/base/core/tests/coretests/src/android/view/
DGlobalFocusChangeTest.java56 assertFalse(mLeft.isFocused()); in testFocusChange()
57 assertTrue(mRight.isFocused()); in testFocusChange()
66 assertTrue(mLeft.isFocused()); in testEnterTouchMode()
77 assertTrue(mLeft.isFocused()); in testLeaveTouchMode()
82 assertTrue(mLeft.isFocused()); in testLeaveTouchMode()
/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/
DAdjacentListsWithAdjacentISVsInsideTest.java55 assertTrue(mLeftIsv.isFocused()); in testPreconditions()
69 assertTrue(mLeftMiddleIsv.isFocused()); in testFocusedRectAndFocusHintWorkWithinListItemHorizontal()
73 assertTrue(mLeftIsv.isFocused()); in testFocusedRectAndFocusHintWorkWithinListItemHorizontal()
82 assertTrue(mLeftMiddleIsv.isFocused()); in testFocusTransfersOutsideOfListWhenNoCandidateInsideHorizontal()
87 assertTrue("mRightMiddleIsv.isFocused()", mRightMiddleIsv.isFocused()); in testFocusTransfersOutsideOfListWhenNoCandidateInsideHorizontal()
DListButtonsDiagonalAcrossItemsTest.java61 assertTrue("left button focused", mLeftButton.isFocused()); in testPreconditions()
89 assertTrue("left should still be focused", mLeftButton.isFocused()); in testGoingRightDoesNotChangeSelection()
96 assertTrue("mCenterButton.isFocused()", mCenterButton.isFocused()); in testGoingLeftDoesNotChangeSelection()
102 assertTrue("center should still be focused", mCenterButton.isFocused()); in testGoingLeftDoesNotChangeSelection()
DListWithEditTextHeaderTest.java47 assertTrue("header does not have focus", mListView.getChildAt(0).isFocused()); in testPreconditions()
54 assertTrue("header does not have focus", mListView.getChildAt(0).isFocused()); in testClickingHeaderKeepsFocus()
63 assertTrue("header does not have focus", mListView.getChildAt(0).isFocused()); in testClickingHeaderWhenOtherItemHasFocusGivesHeaderFocus()
DListHorizontalFocusWithinItemWinsTest.java53 assertTrue("mTopLeftButton.isFocused()", mTopLeftButton.isFocused()); in testPreconditions()
67 assertTrue("mTopRightButton.isFocused()", mTopRightButton.isFocused()); in testOptionWithinItemTrumpsGlobal()
71 assertTrue("mTopLeftButton.isFocused()", mTopLeftButton.isFocused()); in testOptionWithinItemTrumpsGlobal()
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListInterleaveFocusablesTest.java100 public void assertSelectedViewFocus(boolean isFocused) { in assertSelectedViewFocus() argument
102 assertEquals("selected view focused", isFocused, view.isFocused()); in assertSelectedViewFocus()
104 + "of it having focus", !isFocused, view.isSelected()); in assertSelectedViewFocus()
DListItemFocusablesCloseTest.java55 first.getChildAt(0).isFocused()); in testPreconditions()
71 first.getChildAt(2).isFocused()); in testChangeFocusWithinItem()
80 first.getChildAt(0).isFocused()); in testChangeFocusWithinItem()
96 selectedItem.getChildAt(0).isFocused()); in testMoveDownToButtonInDifferentSelection()
DListItemFocusablesFarApartTest.java93 topButton.isFocused()); in testPanWhenNextFocusableTooFarDown()
98 topButton.isFocused()); in testPanWhenNextFocusableTooFarDown()
113 getChildOfItem(0, 2).isFocused()); in testPanWhenNextFocusableTooFarDown()
DListItemFocusableAboveUnfocusableTest.java42 assertTrue(mListView.getChildAt(0).isFocused()); in testPreconditions()
51 mListView.getChildAt(0).isFocused()); in testMovingToUnFocusableTakesFocusAway()
/frameworks/base/core/tests/coretests/src/android/accessibilityservice/
DInterrogationActivityTest.java100 assertFalse(button.isFocused()); in testFindAccessibilityNodeInfoByViewId()
239 assertFalse(button.isFocused()); in testPerformAccessibilityActionFocus()
247 assertTrue(button.isFocused()); in testPerformAccessibilityActionFocus()
269 assertFalse(button.isFocused()); in testPerformAccessibilityActionClearFocus()
277 assertTrue(button.isFocused()); in testPerformAccessibilityActionClearFocus()
285 assertFalse(button.isFocused()); in testPerformAccessibilityActionClearFocus()
415 assertNotSame(button.isFocused(), source.isFocused()); in testAccessibilityEventGetSource()
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
DButtonAboveTallInternalSelectionViewTest.java36 getActivity().getButtonAbove().isFocused()); in testPreconditions()
56 isv.isFocused()); in testMovingFocusDownToItemTallerThanScreenStillOnScreen()
/frameworks/support/v4/java/android/support/v4/view/accessibility/
DAccessibilityNodeInfoCompat.java57 public boolean isFocused(Object info); in isFocused() method
171 public boolean isFocused(Object info) { in isFocused() method in AccessibilityNodeInfoCompat.AccessibilityNodeInfoStubImpl
384 public boolean isFocused(Object info) { in isFocused() method in AccessibilityNodeInfoCompat.AccessibilityNodeInfoIcsImpl
385 return AccessibilityNodeInfoCompatIcs.isFocused(info); in isFocused()
871 public boolean isFocused() { in isFocused() method in AccessibilityNodeInfoCompat
872 return IMPL.isFocused(mInfo); in isFocused()
/frameworks/support/v4/ics/android/support/v4/view/accessibility/
DAccessibilityNodeInfoCompatIcs.java120 public static boolean isFocused(Object info) { in isFocused() method in AccessibilityNodeInfoCompatIcs
121 return ((AccessibilityNodeInfo) info).isFocused(); in isFocused()
/frameworks/base/core/java/android/inputmethodservice/
DExtractEditText.java135 @Override public boolean isFocused() { in isFocused() method in ExtractEditText
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityNodeInfo.java455 public boolean isFocused() { in isFocused() method in AccessibilityNodeInfo
1116 builder.append("; focused: ").append(isFocused()); in toString()

12