Home
last modified time | relevance | path

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

1234

/frameworks/base/core/tests/coretests/src/android/widget/focus/
DDescendantFocusabilityTest.java62 assertTrue(a.beforeDescendants.isFocused()); in testBeforeDescendants()
66 assertTrue(a.beforeDescendantsChild.isFocused()); in testBeforeDescendants()
75 assertTrue(a.afterDescendantsChild.isFocused()); in testAfterDescendants()
79 assertTrue(a.afterDescendantsChild.isFocused()); in testAfterDescendants()
87 assertTrue(a.blocksDescendants.isFocused()); in testBlocksDescendants()
88 assertFalse(a.blocksDescendantsChild.isFocused()); in testBlocksDescendants()
92 assertFalse(a.blocksDescendants.isFocused()); in testBlocksDescendants()
93 assertFalse(a.blocksDescendantsChild.isFocused()); in testBlocksDescendants()
111 assertTrue(a.beforeDescendantsChild.isFocused()); in testBeforeDescendantsEnterTouchMode()
116 assertFalse(a.beforeDescendants.isFocused()); in testBeforeDescendantsEnterTouchMode()
[all …]
DListOfButtonsTest.java156 assertTrue(firstButton.isFocused()); in testGoInAndOutOfListWithItemsFocusable()
160 assertTrue(mButtonAtTop.isFocused()); in testGoInAndOutOfListWithItemsFocusable()
163 assertTrue(firstButton.isFocused()); in testGoInAndOutOfListWithItemsFocusable()
166 assertTrue(mButtonAtTop.isFocused()); in testGoInAndOutOfListWithItemsFocusable()
169 assertTrue(firstButton.isFocused()); in testGoInAndOutOfListWithItemsFocusable()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListRetainsFocusAcrossLayoutsTest.java41 getActivity().getChildOfItem(0, 0).isFocused()); in testPreconditions()
50 getActivity().getChildOfItem(0, 2).isFocused()); in testBottomButtonRetainsFocusAfterLayout()
56 getActivity().getChildOfItem(0, 2).isFocused()); in testBottomButtonRetainsFocusAfterLayout()
64 getActivity().getChildOfItem(1, 0).isFocused()); in testTopButtonOfSecondPositionRetainsFocusAfterLayout()
70 getActivity().getChildOfItem(1, 0).isFocused()); in testTopButtonOfSecondPositionRetainsFocusAfterLayout()
79 getActivity().getChildOfItem(1, 2).isFocused()); in testBottomButtonOfSecondPositionRetainsFocusAfterLayout()
85 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()
69 assertTrue("button should have focus", mButton.isFocused()); in testClickEditTextGivesItFocus()
73 assertTrue("clicking edit text should have given it focus", mEditText.isFocused()); in testClickEditTextGivesItFocus()
85 mButton.isFocused()); in testEnterTouchModeGivesFocusBackToFocusableInTouchMode()
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.java51 … assertTrue("edit text is focusable in touch mode, should have focus", mEditText.isFocused()); in testPreconditions()
58 assertTrue("should have given focus to next view", mButton.isFocused()); in DISABLE_testKeyDownLeavesTouchModeAndGoesToNextView()
65 assertTrue("edit text should still have focus", mEditText.isFocused()); in DISABLE_testNonDirectionalKeyExitsTouchMode()
DTouchModeFocusChangeTest.java64 mFirstButton.isFocused()); in testTouchButtonNotTakeFocus()
81 mFirstButton.isFocused()); in DISABLE_testLeaveTouchModeWithDpadEvent()
86 mFirstButton.isFocused()); in DISABLE_testLeaveTouchModeWithDpadEvent()
/frameworks/base/core/tests/coretests/src/android/view/
DGlobalFocusChangeTest.java58 assertFalse(mLeft.isFocused()); in testFocusChange()
59 assertTrue(mRight.isFocused()); in testFocusChange()
68 assertTrue(mLeft.isFocused()); in testEnterTouchMode()
79 assertTrue(mLeft.isFocused()); in testLeaveTouchMode()
84 assertTrue(mLeft.isFocused()); in testLeaveTouchMode()
DViewInputConnectionTest.java109 assertThat(editText1.isFocused()).isTrue(); in testInputConnectionCallbacks()
110 assertThat(editText2.isFocused()).isFalse(); in testInputConnectionCallbacks()
129 assertThat(editText1.isFocused()).isFalse(); in testInputConnectionCallbacks()
130 assertThat(editText2.isFocused()).isTrue(); in testInputConnectionCallbacks()
163 assertThat(editText1.isFocused()).isTrue(); in testInputConnectionCallbacks_nullInputConnection()
164 assertThat(editText2.isFocused()).isFalse(); in testInputConnectionCallbacks_nullInputConnection()
183 assertThat(editText1.isFocused()).isFalse(); in testInputConnectionCallbacks_nullInputConnection()
184 assertThat(editText2.isFocused()).isTrue(); in testInputConnectionCallbacks_nullInputConnection()
215 assertThat(view1.isFocused()).isTrue(); in testInputConnectionCallbacks_nonEditableInput()
216 assertThat(view2.isFocused()).isFalse(); in testInputConnectionCallbacks_nonEditableInput()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/
DAdjacentListsWithAdjacentISVsInsideTest.java56 assertTrue(mLeftIsv.isFocused()); in testPreconditions()
70 assertTrue(mLeftMiddleIsv.isFocused()); in testFocusedRectAndFocusHintWorkWithinListItemHorizontal()
74 assertTrue(mLeftIsv.isFocused()); in testFocusedRectAndFocusHintWorkWithinListItemHorizontal()
84 assertTrue(mLeftMiddleIsv.isFocused()); in testFocusTransfersOutsideOfListWhenNoCandidateInsideHorizontal()
89 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()
DListHorizontalFocusWithinItemWinsTest.java51 assertTrue("mTopLeftButton.isFocused()", mTopLeftButton.isFocused()); in testPreconditions()
59 assertTrue("mTopRightButton.isFocused()", mTopRightButton.isFocused()); in testOptionWithinItemTrumpsGlobal()
63 assertTrue("mTopLeftButton.isFocused()", mTopLeftButton.isFocused()); in testOptionWithinItemTrumpsGlobal()
DListWithEditTextHeaderTest.java50 assertTrue("header does not have focus", mListView.getChildAt(0).isFocused()); in testPreconditions()
57 assertTrue("header does not have focus", mListView.getChildAt(0).isFocused()); in testClickingHeaderKeepsFocus()
67 assertTrue("header does not have focus", mListView.getChildAt(0).isFocused()); in testClickingHeaderWhenOtherItemHasFocusGivesHeaderFocus()
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListInterleaveFocusablesTest.java101 public void assertSelectedViewFocus(boolean isFocused) { in assertSelectedViewFocus() argument
103 assertEquals("selected view focused", isFocused, view.isFocused()); in assertSelectedViewFocus()
105 + "of it having focus", !isFocused, view.isSelected()); in assertSelectedViewFocus()
DListItemFocusablesCloseTest.java56 first.getChildAt(0).isFocused()); in testPreconditions()
72 first.getChildAt(2).isFocused()); in testChangeFocusWithinItem()
81 first.getChildAt(0).isFocused()); in testChangeFocusWithinItem()
97 selectedItem.getChildAt(0).isFocused()); in testMoveDownToButtonInDifferentSelection()
DListItemFocusablesFarApartTest.java94 topButton.isFocused()); in testPanWhenNextFocusableTooFarDown()
99 topButton.isFocused()); in testPanWhenNextFocusableTooFarDown()
114 getChildOfItem(0, 2).isFocused()); in testPanWhenNextFocusableTooFarDown()
DListItemFocusableAboveUnfocusableTest.java43 assertTrue(mListView.getChildAt(0).isFocused()); in testPreconditions()
52 mListView.getChildAt(0).isFocused()); in testMovingToUnFocusableTakesFocusAway()
/frameworks/base/services/core/java/com/android/server/wm/
DRefreshRatePolicy.java171 boolean isFocused = w.isFocused(); in calculatePriority()
174 if (!isFocused && preferredModeId > 0) { in calculatePriority()
177 if (isFocused && preferredModeId == 0) { in calculatePriority()
180 if (isFocused && preferredModeId > 0) { in calculatePriority()
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
DButtonAboveTallInternalSelectionViewTest.java37 getActivity().getButtonAbove().isFocused()); in testPreconditions()
57 isv.isFocused()); in testMovingFocusDownToItemTallerThanScreenStillOnScreen()
/frameworks/base/core/java/android/app/
DTaskInfo.java328 public boolean isFocused; field in TaskInfo
510 && isFocused == that.isFocused in equalsForTaskOrganizer()
583 isFocused = source.readBoolean(); in readFromParcel()
636 dest.writeBoolean(isFocused); in writeToParcel()
679 + " isFocused=" + isFocused in toString()
/frameworks/base/core/java/android/view/
DIWindowId.aidl25 boolean isFocused(); in isFocused() method
DWindowId.java122 public boolean isFocused() { in isFocused() method in WindowId
124 return mToken.isFocused(); in isFocused()

1234