Home
last modified time | relevance | path

Searched refs:hasFocus (Results 1 – 25 of 100) 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()
/frameworks/native/libs/input/tests/
DInputWindow_test.cpp58 i.hasFocus = false; in TEST()
90 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.java258 final boolean hasFocus, final boolean hasWallpaper) { in populateInputWindowHandle() argument
267 inputWindowHandle.hasFocus = hasFocus; in populateInputWindowHandle()
313 if (hasFocus) { in populateInputWindowHandle()
500 final boolean hasFocus = w.isFocused(); in accept()
504 mRecentsAnimationInputConsumer.mWindowHandle, hasFocus)) { in accept()
549 inputWindowHandle, w, flags, type, isVisible, hasFocus, hasWallpaper); in accept()
573 inputWindowHandle.hasFocus = false; in populateOverlayInputInfo()
/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/native/services/inputflinger/dispatcher/
DEntry.cpp120 FocusEntry::FocusEntry(int32_t id, nsecs_t eventTime, sp<IBinder> connectionToken, bool hasFocus) in FocusEntry() argument
123 hasFocus(hasFocus) {} in FocusEntry()
128 msg += StringPrintf("FocusEvent(hasFocus=%s)", hasFocus ? "true" : "false"); in appendDescription()
/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/base/core/java/android/view/
DWindowCallbackWrapper.java107 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
108 mWrapped.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
/frameworks/base/core/jni/
Dandroid_hardware_input_InputWindowHandle.cpp59 jfieldID hasFocus; member
148 mInfo.hasFocus = env->GetBooleanField(obj, in updateInfo()
149 gInputWindowHandleClassInfo.hasFocus); in updateInfo()
323 GET_FIELD_ID(gInputWindowHandleClassInfo.hasFocus, clazz, in register_android_view_InputWindowHandle()
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/
DBaseSetupWizardActivity.java160 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
161 super.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
162 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/base/packages/SystemUI/src/com/android/systemui/keyguard/
DWorkLockActivity.java108 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
109 if (hasFocus) { in onWindowFocusChanged()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/
DGlobalActionsImeTest.java177 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
179 mHasFocus = hasFocus; in onWindowFocusChanged()
/frameworks/native/libs/input/
DInputWindow.cpp92 output.writeBool(hasFocus); in write()
130 ret.hasFocus = from.readBool(); in read()

1234