/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 | 63 assertTrue(mLeftColumn.hasFocus()); in testPreconditions() 81 mMiddleColumn.hasFocus()); in testSnakeBackAndForth() 86 mRightColumn.hasFocus()); in testSnakeBackAndForth() 95 mRightColumn.hasFocus()); in testSnakeBackAndForth() 99 mMiddleColumn.hasFocus()); in testSnakeBackAndForth()
|
D | RequestFocusTest.java | 73 assertTrue("requestFocus() should work from onCreate.", mBottomRightButton.hasFocus()); in testSetUpConditions() 89 assertTrue("Focus should move to bottom left", mBottomLeftButton.hasFocus()); in testPostedRequestFocus() 130 assertTrue(clearingFocusButton.hasFocus()); in testOnFocusChangeCallbackOrderWhenClearingFocusOfFirstFocusable() 173 assertTrue(clearingFocusButton.hasFocus()); in testOnFocusChangeCallbackOrderWhenClearingFocusOfNotFirstFocusable()
|
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/picker/ |
D | DatePickerTest.java | 103 assertThat("TextView above should have focus initially", mViewAbove.hasFocus(), is(true)); in testFocusTravel() 112 mDatePickerInnerView.getChildAt(0).hasFocus(), is(true)); in testFocusTravel() 118 mDatePickerInnerView.getChildAt(2).hasFocus(), is(true)); in testFocusTravel() 123 mDatePickerInnerView.getChildAt(4).hasFocus(), is(true)); in testFocusTravel() 144 mDatePickerInnerView.getChildAt(0).hasFocus(), is(true)); in testFocusRetainedForASelectedColumn() 152 mDatePickerInnerView.getChildAt(4).hasFocus(), is(true)); in testFocusRetainedForASelectedColumn() 162 mDatePickerInnerView.getChildAt(4).hasFocus(), is(true)); in testFocusRetainedForASelectedColumn() 174 assertThat("TextView above should have focus initially.", mViewAbove.hasFocus(), is(true)); in testFocusSkippedWhenDatePickerUnFocusable() 180 mViewBelow.hasFocus(), is(true)); in testFocusSkippedWhenDatePickerUnFocusable() 196 public void onFocusChange(View v, boolean hasFocus) { in testTemporaryFocusLossWhenDeactivated() [all …]
|
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/ |
D | FocusHighlightHelper.java | 166 public void onItemFocused(View view, boolean hasFocus) { in onItemFocused() argument 167 view.setSelected(hasFocus); in onItemFocused() 168 getOrCreateAnimator(view).animateFocus(hasFocus, false); in onItemFocused() 321 private void viewFocused(View view, boolean hasFocus) { in viewFocused() argument 323 view.setSelected(hasFocus); in viewFocused() 329 animator.animateFocus(hasFocus, false); in viewFocused() 333 public void onItemFocused(View view, boolean hasFocus) { in onItemFocused() argument 334 viewFocused(view, hasFocus); in onItemFocused()
|
D | SearchBar.java | 206 public void onFocusChange(View view, boolean hasFocus) { in onFinishInflate() 207 if (DEBUG) Log.v(TAG, "EditText.onFocusChange " + hasFocus); in onFinishInflate() 208 if (hasFocus) { in onFinishInflate() 213 updateUi(hasFocus); in onFinishInflate() 310 public void onFocusChange(View view, boolean hasFocus) { in onFinishInflate() 311 if (DEBUG) Log.v(TAG, "SpeechOrb.onFocusChange " + hasFocus); in onFinishInflate() 312 if (hasFocus) { in onFinishInflate() 321 updateUi(hasFocus); in onFinishInflate() 325 updateUi(hasFocus()); in onFinishInflate() 601 if (!hasFocus()) { in startRecognition() [all …]
|
/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/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
D | RecyclerViewFocusRecoveryTest.java | 156 assertThat("RV should have focus", mRecyclerView.hasFocus(), is(true)); in testFocusRecoveryAfterRemovingFocusedChild() 160 assertThat("Viewholder did not receive focus", fvh.itemView.hasFocus(), in testFocusRecoveryAfterRemovingFocusedChild() 191 assertThat("RV should have focus", mRecyclerView.hasFocus(), is(true)); in testFocusRecoveryAfterMovingFocusedChild() 195 assertThat("Viewholder did not receive focus", fvh.itemView.hasFocus(), in testFocusRecoveryAfterMovingFocusedChild() 217 assertThat("RV should have focus", mRecyclerView.hasFocus(), is(true)); in testFocusRecoveryAfterRemovingLastChild() 221 assertThat("Viewholder did not receive focus", fvh.itemView.hasFocus(), in testFocusRecoveryAfterRemovingLastChild() 280 assertThat("RV should have focus", mRecyclerView.hasFocus(), is(true)); in testFocusRecoveryAfterChangingFocusableFlag() 284 assertThat("Viewholder did not receive focus", fvh.itemView.hasFocus(), in testFocusRecoveryAfterChangingFocusableFlag() 397 assertThat("RV initially has no focus", mRecyclerView.hasFocus(), is(false)); in requestFocusOnRV() 403 mRecyclerView.hasFocus(), is(true)); in requestFocusOnRV() [all …]
|
D | FocusSearchNavigationTest.java | 136 assertThat(mBefore, hasFocus()); in focusSearchForward() 141 assertThat("vh at " + i, viewHolder, hasFocus()); in focusSearchForward() 145 assertThat(mAfter, hasFocus()); in focusSearchForward() 147 assertThat(mBefore, hasFocus()); in focusSearchForward() 158 assertThat(mAfter, hasFocus()); in focusSearchBackwards() 170 assertThat("vh at " + i, viewHolder, hasFocus()); in focusSearchBackwards() 175 assertThat(mBefore, hasFocus()); in focusSearchBackwards() 177 assertThat(mAfter, hasFocus()); in focusSearchBackwards() 274 static HasFocusMatcher hasFocus() { in hasFocus() method in FocusSearchNavigationTest 284 return item instanceof View && ((View) item).hasFocus(); in matches()
|
D | LinearLayoutManagerTest.java | 141 toFocus.hasFocus(), is(true)); in focusedChildStaysInViewWhenRecyclerViewShrinks() 168 toFocus.hasFocus(), is(true)); in focusedChildStaysInViewWhenRecyclerViewShrinks() 257 toFocus.itemView.hasFocus(), is(true)); in topUnfocusableViewsVisibility() 279 toFocus.itemView.hasFocus(), is(true)); in topUnfocusableViewsVisibility() 342 toFocus.itemView.hasFocus(), is(true)); in bottomUnfocusableViewsVisibility() 364 toFocus.itemView.hasFocus(), is(true)); in bottomUnfocusableViewsVisibility() 428 toFocus.itemView.hasFocus(), is(true)); in leftUnfocusableViewsVisibility() 450 toFocus.itemView.hasFocus(), is(true)); in leftUnfocusableViewsVisibility() 513 toFocus.itemView.hasFocus(), is(true)); in rightUnfocusableViewsVisibility() 535 toFocus.itemView.hasFocus(), is(true)); in rightUnfocusableViewsVisibility() [all …]
|
/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()
|
/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/support/leanback/src/androidTest/java/androidx/leanback/widget/ |
D | GridActivity.java | 221 public void onFocusChange(View v, boolean hasFocus) { 222 if (hasFocus) { 238 public void onFocusChange(View v, boolean hasFocus) { 239 if (hasFocus) { 376 public void onFocusChange(View v, boolean hasFocus) { 377 if (hasFocus) { 401 if (hasFocus()) { 498 + (mUpdateSize && mRequestLayoutOnFocus && view.hasFocus() ? 1 : 0); 500 : (mUpdateSizeSecondary && mRequestLayoutOnFocus && view.hasFocus() ? 96 : 80); 503 : (mUpdateSizeSecondary && mRequestLayoutOnFocus && view.hasFocus() [all …]
|
D | PlaybackTransportRowPresenterTest.java | 334 assertTrue(mViewHolder.mProgressBar.hasFocus()); in seekAndConfirm() 368 assertTrue(mViewHolder.mProgressBar.hasFocus()); in playSeekToZero() 410 assertTrue(mViewHolder.mProgressBar.hasFocus()); in playSeekAndCancel() 446 assertTrue(mViewHolder.mProgressBar.hasFocus()); in seekHoldKeyDown() 472 assertTrue(mViewHolder.mProgressBar.hasFocus()); in seekAndCancel() 502 assertTrue(mViewHolder.mProgressBar.hasFocus()); in seekUpBetweenTwoKeyPosition() 527 assertTrue(mViewHolder.mProgressBar.hasFocus()); in seekDownBetweenTwoKeyPosition() 552 assertTrue(mViewHolder.mProgressBar.hasFocus()); in seekDownOutOfKeyPositions() 581 assertTrue(mViewHolder.mProgressBar.hasFocus()); in seekDownAheadOfKeyPositions() 608 assertTrue(mViewHolder.mProgressBar.hasFocus()); in seekUpAheadOfKeyPositions() [all …]
|
D | ControlBarTest.java | 60 assertTrue(v2.hasFocus()); in defaultFocus() 93 assertFalse(bar.hasFocus()); in persistFocus() 102 assertTrue(v3.hasFocus()); in persistFocus() 151 assertFalse(bar.hasFocus()); in getFocusables()
|
/frameworks/base/core/java/android/widget/ |
D | ZoomControls.java | 106 public boolean hasFocus() { in hasFocus() method in ZoomControls 107 return mZoomIn.hasFocus() || mZoomOut.hasFocus(); in hasFocus()
|
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/ |
D | DetailsSupportFragmentTest.java | 296 assertTrue(firstRow.hasFocus()); in navigateBetweenRowsAndVideoUsingRequestFocusInternal() 360 assertTrue(firstRow.hasFocus()); 431 assertTrue(firstRow.hasFocus()); 462 assertTrue(detailsFragment.mVideoSupportFragment.getView().hasFocus()); 507 assertTrue(firstRow.hasFocus()); 514 assertTrue(detailsFragment.getTitleView().hasFocus()); 520 assertTrue(firstRow.hasFocus()); 575 assertTrue(firstRow.hasFocus()); 580 assertTrue(firstRow.hasFocus()); 607 assertTrue(detailsFragment.mVideoSupportFragment.getView().hasFocus()); [all …]
|
D | DetailsFragmentTest.java | 299 assertTrue(firstRow.hasFocus()); in navigateBetweenRowsAndVideoUsingRequestFocusInternal() 363 assertTrue(firstRow.hasFocus()); 434 assertTrue(firstRow.hasFocus()); 465 assertTrue(detailsFragment.mVideoFragment.getView().hasFocus()); 510 assertTrue(firstRow.hasFocus()); 517 assertTrue(detailsFragment.getTitleView().hasFocus()); 523 assertTrue(firstRow.hasFocus()); 578 assertTrue(firstRow.hasFocus()); 583 assertTrue(firstRow.hasFocus()); 610 assertTrue(detailsFragment.mVideoFragment.getView().hasFocus()); [all …]
|
D | GuidedStepSupportFragmentTest.java | 233 assertTrue(viewFinish.hasFocus()); in finishGuidedStepSupportFragment_finishes_activity() 268 assertTrue(viewFinish.hasFocus()); in finishGuidedStepSupportFragment_finishes_fragments() 329 assertTrue(viewForList.hasFocus()); in subActions() 332 assertFalse(viewForList.hasFocus()); in subActions() 340 assertTrue(viewForList.hasFocus()); in subActions() 345 assertFalse(viewForList.hasFocus()); in subActions() 408 assertTrue(firstView.hasFocus()); in setActionsWhenSubActionsExpanded() 411 assertFalse(firstView.hasFocus()); in setActionsWhenSubActionsExpanded() 420 assertTrue(newFirstView.hasFocus()); in setActionsWhenSubActionsExpanded() 454 assertTrue(firstView.hasFocus()); in buttonActionsRtl()
|
D | GuidedStepFragmentTest.java | 236 assertTrue(viewFinish.hasFocus()); in finishGuidedStepFragment_finishes_activity() 271 assertTrue(viewFinish.hasFocus()); in finishGuidedStepFragment_finishes_fragments() 332 assertTrue(viewForList.hasFocus()); in subActions() 335 assertFalse(viewForList.hasFocus()); in subActions() 343 assertTrue(viewForList.hasFocus()); in subActions() 348 assertFalse(viewForList.hasFocus()); in subActions() 411 assertTrue(firstView.hasFocus()); in setActionsWhenSubActionsExpanded() 414 assertFalse(firstView.hasFocus()); in setActionsWhenSubActionsExpanded() 423 assertTrue(newFirstView.hasFocus()); in setActionsWhenSubActionsExpanded() 457 assertTrue(firstView.hasFocus()); in buttonActionsRtl()
|
/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 | 311 final boolean hasFocus, final boolean hasWallpaper) { in addInputWindowHandle() argument 320 inputWindowHandle.hasFocus = hasFocus; in addInputWindowHandle() 348 if (hasFocus) { in addInputWindowHandle() 663 final boolean hasFocus = w == mInputFocus; in accept() 672 recentsAnimationInputConsumer, hasFocus)) { in accept() 692 if (!hasFocus) { in accept() 726 inputWindowHandle, w, flags, type, isVisible, hasFocus, hasWallpaper); in accept()
|
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
D | ContextMenuUtils.java | 24 import static android.support.test.espresso.matcher.ViewMatchers.hasFocus; 56 .inRoot(withDecorView(hasFocus())); in onContextMenu() 187 .inRoot(withDecorView(hasFocus())).perform(click()); in clickMenuItem()
|
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/app/ |
D | KeyboardShortcutsTestCaseWithToolbar.java | 71 assertFalse(editText.hasFocus()); in testAccessActionBar() 73 assertTrue(toolbar.hasFocus()); in testAccessActionBar() 86 assertTrue(editText.hasFocus()); in testAccessActionBar()
|