Searched refs:hasFocus (Results 1 - 25 of 142) sorted by relevance

123456

/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DListOfButtonsTest.java64 assertFalse(mButtonAtTop.hasFocus());
65 assertTrue(mListView.hasFocus());
74 assertTrue(mButtonAtTop.hasFocus());
75 assertFalse(mListView.hasFocus());
82 assertTrue(mListView.hasFocus());
87 assertTrue(childOne.hasFocus());
96 mButtonAtTop.hasFocus());
97 assertTrue(mListView.hasFocus());
111 assertTrue(indexInfo, mListView.hasFocus());
116 assertTrue(indexInfo, button.hasFocus());
[all...]
H A DFocusAfterRemovalTest.java67 assertTrue(mTopLeftButton.hasFocus());
80 mTopRightButton.hasFocus());
89 assertTrue(mBottomLeftButton.hasFocus());
97 mTopRightButton.hasFocus());
105 assertTrue(mTopRightButton.hasFocus());
112 mTopLeftButton.hasFocus());
121 assertTrue(mBottomRightButton.hasFocus());
128 mTopLeftButton.hasFocus());
H A DFocusChangeWithInterestingRectHintTest.java63 assertTrue(mLeftColumn.hasFocus());
81 mMiddleColumn.hasFocus());
86 mRightColumn.hasFocus());
95 mRightColumn.hasFocus());
99 mMiddleColumn.hasFocus());
H A DGoneParentFocusedChildTest.java43 getActivity().getButton().hasFocus());
H A DListWithFooterViewAndNewLabelsTest.java59 assertTrue(mButton.hasFocus());
H A DRequestFocusTest.java73 assertTrue("requestFocus() should work from onCreate.", mBottomRightButton.hasFocus());
89 assertTrue("Focus should move to bottom left", mBottomLeftButton.hasFocus());
130 assertTrue(clearingFocusButton.hasFocus());
173 assertTrue(clearingFocusButton.hasFocus());
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DFocusHighlightHandler.java31 * @param hasFocus True if focus is gained; false otherwise.
34 void onItemFocused(View view, boolean hasFocus); argument
H A DFocusHighlightHelper.java166 public void onItemFocused(View view, boolean hasFocus) { argument
167 view.setSelected(hasFocus);
168 getOrCreateAnimator(view).animateFocus(hasFocus, false);
321 private void viewFocused(View view, boolean hasFocus) { argument
323 view.setSelected(hasFocus);
329 animator.animateFocus(hasFocus, false);
333 public void onItemFocused(View view, boolean hasFocus) { argument
334 viewFocused(view, hasFocus);
H A DSearchBar.java206 public void onFocusChange(View view, boolean hasFocus) {
207 if (DEBUG) Log.v(TAG, "EditText.onFocusChange " + hasFocus);
208 if (hasFocus) {
213 updateUi(hasFocus);
310 public void onFocusChange(View view, boolean hasFocus) {
311 if (DEBUG) Log.v(TAG, "SpeechOrb.onFocusChange " + hasFocus);
312 if (hasFocus) {
321 updateUi(hasFocus);
325 updateUi(hasFocus());
601 if (!hasFocus()) {
755 updateUi(boolean hasFocus) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/
H A DAdjacentListsWithAdjacentISVsInsideTest.java55 assertTrue(mLeftListView.hasFocus());
69 assertTrue(mLeftListView.hasFocus());
83 assertTrue(mLeftListView.hasFocus());
88 assertTrue("mRightListView.hasFocus()", mRightListView.hasFocus());
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/picker/
H A DDatePickerTest.java103 assertThat("TextView above should have focus initially", mViewAbove.hasFocus(), is(true));
112 mDatePickerInnerView.getChildAt(0).hasFocus(), is(true));
118 mDatePickerInnerView.getChildAt(2).hasFocus(), is(true));
123 mDatePickerInnerView.getChildAt(4).hasFocus(), is(true));
144 mDatePickerInnerView.getChildAt(0).hasFocus(), is(true));
152 mDatePickerInnerView.getChildAt(4).hasFocus(), is(true));
162 mDatePickerInnerView.getChildAt(4).hasFocus(), is(true));
174 assertThat("TextView above should have focus initially.", mViewAbove.hasFocus(), is(true));
180 mViewBelow.hasFocus(), is(true));
196 public void onFocusChange(View v, boolean hasFocus) {
[all...]
/frameworks/base/core/java/android/widget/
H A DZoomControls.java106 public boolean hasFocus() { method in class:ZoomControls
107 return mZoomIn.hasFocus() || mZoomOut.hasFocus();
/frameworks/base/core/tests/coretests/src/android/widget/touchmode/
H A DTouchModeFocusChangeTest.java65 assertFalse("button.hasFocus",
66 mFirstButton.hasFocus());
69 mActivity.getLayout().hasFocus());
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
H A DScrollViewButtonsAndLabelsTest.java77 assertTrue(firstButtonOffScreen.hasFocus());
113 assertTrue("last button should have focus", lastButton.hasFocus());
135 assertTrue("we want to be at offScreenButton", offScreenButton.hasFocus());
157 assertTrue("should be back at top button", topButton.hasFocus());
175 assertTrue("we want to be at the last button", lastButton.hasFocus());
H A DRequestRectangleVisibleWithInternalScrollTest.java64 assertTrue(mScrollToBlob.hasFocus());
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/tv/
H A DPipControlButtonView.java50 public void onFocusChange(View v, boolean hasFocus) {
51 if (hasFocus) {
58 mFocusChangeListener.onFocusChange(PipControlButtonView.this, hasFocus);
188 if (mButtonImageView.hasFocus()) {
205 mDescriptionTextView.setAlpha(mButtonImageView.hasFocus() ? 1f : 0f);
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DFocusSearchNavigationTest.java136 assertThat(mBefore, hasFocus());
141 assertThat("vh at " + i, viewHolder, hasFocus());
145 assertThat(mAfter, hasFocus());
147 assertThat(mBefore, hasFocus());
158 assertThat(mAfter, hasFocus());
170 assertThat("vh at " + i, viewHolder, hasFocus());
175 assertThat(mBefore, hasFocus());
177 assertThat(mAfter, hasFocus());
274 static HasFocusMatcher hasFocus() { method in class:FocusSearchNavigationTest
284 return item instanceof View && ((View) item).hasFocus();
[all...]
H A DRecyclerViewFocusRecoveryTest.java156 assertThat("RV should have focus", mRecyclerView.hasFocus(), is(true));
160 assertThat("Viewholder did not receive focus", fvh.itemView.hasFocus(),
191 assertThat("RV should have focus", mRecyclerView.hasFocus(), is(true));
195 assertThat("Viewholder did not receive focus", fvh.itemView.hasFocus(),
217 assertThat("RV should have focus", mRecyclerView.hasFocus(), is(true));
221 assertThat("Viewholder did not receive focus", fvh.itemView.hasFocus(),
280 assertThat("RV should have focus", mRecyclerView.hasFocus(), is(true));
284 assertThat("Viewholder did not receive focus", fvh.itemView.hasFocus(),
397 assertThat("RV initially has no focus", mRecyclerView.hasFocus(), is(false));
403 mRecyclerView.hasFocus(), i
799 assertFocus(RecyclerView.ViewHolder viewHolder, boolean hasFocus) argument
803 assertFocus(String msg, RecyclerView.ViewHolder vh, boolean hasFocus) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DContextMenuUtils.java24 import static android.support.test.espresso.matcher.ViewMatchers.hasFocus;
56 .inRoot(withDecorView(hasFocus()));
187 .inRoot(withDecorView(hasFocus())).perform(click());
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/app/
H A DKeyboardShortcutsTestCaseWithToolbar.java71 assertFalse(editText.hasFocus());
73 assertTrue(toolbar.hasFocus());
86 assertTrue(editText.hasFocus());
/frameworks/base/core/java/android/view/
H A DWindowCallbackWrapper.java107 public void onWindowFocusChanged(boolean hasFocus) { argument
108 mWrapped.onWindowFocusChanged(hasFocus);
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
H A DListItemFocusablesCloseTest.java107 getActivity().getChildOfItem(1, 0).hasFocus());
113 getActivity().getChildOfItem(0, 2).hasFocus());
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
H A DGridActivity.java221 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...]
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
H A DBaselineAlignmentZeroWidthAndWeightTest.java51 assertTrue(mShowButton.hasFocus());
/frameworks/base/core/tests/coretests/src/android/widget/layout/table/
H A DAddColumnTest.java54 assertTrue(mAddRow.hasFocus());

Completed in 308 milliseconds

123456