/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | ListOfButtonsTest.java | 64 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 …]
|
D | FocusAfterRemovalTest.java | 67 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()
|
D | FocusChangeWithInterestingRectHintTest.java | 62 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()
|
D | RequestFocusTest.java | 75 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()
|
D | GoneParentFocusedChildTest.java | 43 getActivity().getButton().hasFocus()); in testPreconditinos()
|
D | ListWithFooterViewAndNewLabelsTest.java | 58 assertTrue(mButton.hasFocus()); in FAILING_testPreconditions()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/ |
D | AdjacentListsWithAdjacentISVsInsideTest.java | 55 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/ |
D | PipControlButtonView.java | 50 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/ |
D | ScrollViewButtonsAndLabelsTest.java | 77 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()
|
D | RequestRectangleVisibleTest.java | 101 assertTrue(mClickToScrollFromAbove.hasFocus()); in testScrollToOffScreenRectangleFromTop() 142 assertTrue(mClickToScrollFromBelow.hasFocus()); in testScrollToOffScreenRectangleFromBottom() 184 while(!view.hasFocus()) { in pressDownUntilViewInFocus()
|
/frameworks/base/core/java/android/widget/ |
D | ZoomControls.java | 113 public boolean hasFocus() { in hasFocus() method in ZoomControls 114 return mZoomIn.hasFocus() || mZoomOut.hasFocus(); in hasFocus()
|
D | DropDownListView.java | 346 public boolean hasFocus() { in hasFocus() method in DropDownListView 347 return mHijackFocus || super.hasFocus(); in hasFocus()
|
/frameworks/native/libs/input/tests/ |
D | InputWindow_test.cpp | 58 i.hasFocus = false; in TEST() 90 ASSERT_EQ(i.hasFocus, i2.hasFocus); in TEST()
|
/frameworks/base/core/tests/coretests/src/android/widget/touchmode/ |
D | TouchModeFocusChangeTest.java | 66 mFirstButton.hasFocus()); in testTouchButtonNotTakeFocus() 69 mActivity.getLayout().hasFocus()); in testTouchButtonNotTakeFocus()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | InputMonitor.java | 258 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/ |
D | ContextMenuUtils.java | 24 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/ |
D | Entry.cpp | 120 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/ |
D | ListItemFocusablesCloseTest.java | 108 getActivity().getChildOfItem(1, 0).hasFocus()); in testMoveUpToButtonInDifferentSelection() 114 getActivity().getChildOfItem(0, 2).hasFocus()); in testMoveUpToButtonInDifferentSelection()
|
/frameworks/base/core/java/android/view/ |
D | WindowCallbackWrapper.java | 107 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument 108 mWrapped.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
|
/frameworks/base/core/jni/ |
D | android_hardware_input_InputWindowHandle.cpp | 59 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/ |
D | BaseSetupWizardActivity.java | 160 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/ |
D | NativeActivity.java | 252 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/ |
D | WorkLockActivity.java | 108 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument 109 if (hasFocus) { in onWindowFocusChanged()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/ |
D | GlobalActionsImeTest.java | 177 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument 179 mHasFocus = hasFocus; in onWindowFocusChanged()
|
/frameworks/native/libs/input/ |
D | InputWindow.cpp | 92 output.writeBool(hasFocus); in write() 130 ret.hasFocus = from.readBool(); in read()
|