/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()
|
D | TabHost.java | 361 && (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/ |
D | InputWindow_test.cpp | 57 i.hasFocus = false; in TEST() 89 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 | 252 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/ |
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/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/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/ |
D | BaseSetupWizardActivity.java | 156 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument 157 super.onWindowFocusChanged(hasFocus); in onWindowFocusChanged() 158 if (hasFocus) { in onWindowFocusChanged()
|
/frameworks/base/core/jni/ |
D | android_hardware_input_InputWindowHandle.cpp | 57 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/ |
D | WindowCallbackWrapper.java | 107 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument 108 mWrapped.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | WorkLockActivity.java | 98 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument 99 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/native/libs/input/ |
D | InputWindow.cpp | 90 output.writeBool(hasFocus); in write() 133 ret.hasFocus = from.readBool(); in read()
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/ |
D | BaselineAlignmentZeroWidthAndWeightTest.java | 50 assertTrue(mShowButton.hasFocus()); in testComputeTexViewWithoutIllegalArgumentException()
|