Home
last modified time | relevance | path

Searched refs:hasFocus (Results 1 – 25 of 88) sorted by relevance

1234

/frameworks/base/core/tests/coretests/src/android/widget/focus/
DListOfButtonsTest.java64 assertFalse(mButtonAtTop.hasFocus()); in testPreconditions()
65 assertTrue(mListView.hasFocus()); in testPreconditions()
74 assertTrue(mButtonAtTop.hasFocus()); in testNavigateToButtonAbove()
75 assertFalse(mListView.hasFocus()); in testNavigateToButtonAbove()
82 assertTrue(mListView.hasFocus()); in testNavigateToSecondItem()
87 assertTrue(childOne.hasFocus()); in testNavigateToSecondItem()
96 mButtonAtTop.hasFocus()); in testNavigateUpAboveAndBackOut()
97 assertTrue(mListView.hasFocus()); in testNavigateUpAboveAndBackOut()
111 assertTrue(indexInfo, mListView.hasFocus()); in TODO_testNavigateThroughAllButtonsAndBack()
116 assertTrue(indexInfo, button.hasFocus()); in TODO_testNavigateThroughAllButtonsAndBack()
[all …]
DFocusAfterRemovalTest.java67 assertTrue(mTopLeftButton.hasFocus()); in testSetUpConditions()
80 mTopRightButton.hasFocus()); in testFocusLeavesWhenParentLayoutIsGone()
89 assertTrue(mBottomLeftButton.hasFocus()); in testFocusLeavesWhenParentLayoutInvisible()
97 mTopRightButton.hasFocus()); in testFocusLeavesWhenParentLayoutInvisible()
105 assertTrue(mTopRightButton.hasFocus()); in testFocusLeavesWhenFocusedViewBecomesGone()
112 mTopLeftButton.hasFocus()); in testFocusLeavesWhenFocusedViewBecomesGone()
121 assertTrue(mBottomRightButton.hasFocus()); in testFocusLeavesWhenFocusedViewBecomesInvisible()
128 mTopLeftButton.hasFocus()); in testFocusLeavesWhenFocusedViewBecomesInvisible()
DFocusChangeWithInterestingRectHintTest.java62 assertTrue(mLeftColumn.hasFocus()); in testPreconditions()
80 mMiddleColumn.hasFocus()); in testSnakeBackAndForth()
85 mRightColumn.hasFocus()); in testSnakeBackAndForth()
94 mRightColumn.hasFocus()); in testSnakeBackAndForth()
98 mMiddleColumn.hasFocus()); in testSnakeBackAndForth()
DRequestFocusTest.java75 assertTrue("requestFocus() should work from onCreate.", mBottomRightButton.hasFocus()); in testSetUpConditions()
91 assertTrue("Focus should move to bottom left", mBottomLeftButton.hasFocus()); in testPostedRequestFocus()
132 assertTrue(clearingFocusButton.hasFocus()); in testOnFocusChangeCallbackOrderWhenClearingFocusOfFirstFocusable()
175 assertTrue(clearingFocusButton.hasFocus()); in testOnFocusChangeCallbackOrderWhenClearingFocusOfNotFirstFocusable()
DGoneParentFocusedChildTest.java43 getActivity().getButton().hasFocus()); in testPreconditinos()
DListWithFooterViewAndNewLabelsTest.java58 assertTrue(mButton.hasFocus()); in FAILING_testPreconditions()
/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/
DAdjacentListsWithAdjacentISVsInsideTest.java55 assertTrue(mLeftListView.hasFocus()); in testPreconditions()
69 assertTrue(mLeftListView.hasFocus()); in testFocusedRectAndFocusHintWorkWithinListItemHorizontal()
83 assertTrue(mLeftListView.hasFocus()); in testFocusTransfersOutsideOfListWhenNoCandidateInsideHorizontal()
88 assertTrue("mRightListView.hasFocus()", mRightListView.hasFocus()); in testFocusTransfersOutsideOfListWhenNoCandidateInsideHorizontal()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/tv/
DPipControlButtonView.java50 public void onFocusChange(View v, boolean hasFocus) {
51 if (hasFocus) {
58 mFocusChangeListener.onFocusChange(PipControlButtonView.this, hasFocus);
188 if (mButtonImageView.hasFocus()) { in startFocusLossAnimation()
205 mDescriptionTextView.setAlpha(mButtonImageView.hasFocus() ? 1f : 0f); in reset()
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
DScrollViewButtonsAndLabelsTest.java77 assertTrue(firstButtonOffScreen.hasFocus()); in testArrowScrollDownOffScreenVerticalFadingEdge()
113 assertTrue("last button should have focus", lastButton.hasFocus()); in testArrowScrollDownToBottomElementOnScreen()
135 assertTrue("we want to be at offScreenButton", offScreenButton.hasFocus()); in testArrowScrollUpOffScreenVerticalFadingEdge()
157 assertTrue("should be back at top button", topButton.hasFocus()); in testArrowScrollUpToTopElementOnScreen()
175 assertTrue("we want to be at the last button", lastButton.hasFocus()); in goToBottomButton()
DRequestRectangleVisibleTest.java101 assertTrue(mClickToScrollFromAbove.hasFocus()); in testScrollToOffScreenRectangleFromTop()
142 assertTrue(mClickToScrollFromBelow.hasFocus()); in testScrollToOffScreenRectangleFromBottom()
184 while(!view.hasFocus()) { in pressDownUntilViewInFocus()
/frameworks/base/core/java/android/widget/
DZoomControls.java113 public boolean hasFocus() { in hasFocus() method in ZoomControls
114 return mZoomIn.hasFocus() || mZoomOut.hasFocus(); in hasFocus()
DDropDownListView.java346 public boolean hasFocus() { in hasFocus() method in DropDownListView
347 return mHijackFocus || super.hasFocus(); in hasFocus()
DTabHost.java361 && (mCurrentView.hasFocus())) { in dispatchKeyEvent()
401 public void dispatchWindowFocusChanged(boolean hasFocus) { in dispatchWindowFocusChanged() argument
403 mCurrentView.dispatchWindowFocusChanged(hasFocus); in dispatchWindowFocusChanged()
445 if (!mTabWidget.hasFocus()) { in setCurrentTab()
/frameworks/native/libs/input/tests/
DInputWindow_test.cpp57 i.hasFocus = false; in TEST()
89 ASSERT_EQ(i.hasFocus, i2.hasFocus); in TEST()
/frameworks/base/core/tests/coretests/src/android/widget/touchmode/
DTouchModeFocusChangeTest.java66 mFirstButton.hasFocus()); in testTouchButtonNotTakeFocus()
69 mActivity.getLayout().hasFocus()); in testTouchButtonNotTakeFocus()
/frameworks/base/services/core/java/com/android/server/wm/
DInputMonitor.java252 final boolean hasFocus, final boolean hasWallpaper) { in populateInputWindowHandle() argument
261 inputWindowHandle.hasFocus = hasFocus; in populateInputWindowHandle()
295 if (hasFocus) { in populateInputWindowHandle()
472 final boolean hasFocus = w.isFocused(); in accept()
481 recentsAnimationInputConsumer.mWindowHandle, hasFocus)) { in accept()
530 inputWindowHandle, w, flags, type, isVisible, hasFocus, hasWallpaper); in accept()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DContextMenuUtils.java24 import static androidx.test.espresso.matcher.ViewMatchers.hasFocus;
57 .inRoot(withDecorView(hasFocus())); in onContextMenu()
188 .inRoot(withDecorView(hasFocus())).perform(click()); in clickMenuItem()
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListItemFocusablesCloseTest.java108 getActivity().getChildOfItem(1, 0).hasFocus()); in testMoveUpToButtonInDifferentSelection()
114 getActivity().getChildOfItem(0, 2).hasFocus()); in testMoveUpToButtonInDifferentSelection()
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/
DBaseSetupWizardActivity.java156 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
157 super.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
158 if (hasFocus) { in onWindowFocusChanged()
/frameworks/base/core/jni/
Dandroid_hardware_input_InputWindowHandle.cpp57 jfieldID hasFocus; member
148 mInfo.hasFocus = env->GetBooleanField(obj, in updateInfo()
149 gInputWindowHandleClassInfo.hasFocus); in updateInfo()
317 GET_FIELD_ID(gInputWindowHandleClassInfo.hasFocus, clazz, in register_android_view_InputWindowHandle()
/frameworks/base/core/java/android/view/
DWindowCallbackWrapper.java107 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
108 mWrapped.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DWorkLockActivity.java98 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
99 if (hasFocus) { in onWindowFocusChanged()
/frameworks/base/core/java/android/app/
DNativeActivity.java252 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
253 super.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
255 onWindowFocusChangedNative(mNativeHandle, hasFocus); in onWindowFocusChanged()
/frameworks/native/libs/input/
DInputWindow.cpp90 output.writeBool(hasFocus); in write()
133 ret.hasFocus = from.readBool(); in read()
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
DBaselineAlignmentZeroWidthAndWeightTest.java50 assertTrue(mShowButton.hasFocus()); in testComputeTexViewWithoutIllegalArgumentException()

1234