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

123456

/frameworks/base/core/tests/coretests/src/android/widget/
H A DTextViewActivity.java44 public void onWindowFocusChanged(boolean hasFocus) { argument
45 super.onWindowFocusChanged(hasFocus);
46 if (!hasFocus) {
50 mHasWindowFocus = hasFocus;
/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/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/cards/presenters/
H A DIconCardPresenter.java45 public void onFocusChange(View v, boolean hasFocus) {
46 animateIconBackground(image.getBackground(), hasFocus);
52 private void animateIconBackground(Drawable drawable, boolean hasFocus) { argument
53 if (hasFocus) {
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/cards/presenters/
H A DIconCardPresenter.java45 public void onFocusChange(View v, boolean hasFocus) {
46 animateIconBackground(image.getBackground(), hasFocus);
52 private void animateIconBackground(Drawable drawable, boolean hasFocus) { argument
53 if (hasFocus) {
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DFocusHighlightHandler.java30 * @param hasFocus True if focus is gained; false otherwise.
33 void onItemFocused(View view, boolean hasFocus); argument
H A DFocusHighlightHelper.java165 public void onItemFocused(View view, boolean hasFocus) { argument
166 view.setSelected(hasFocus);
167 getOrCreateAnimator(view).animateFocus(hasFocus, false);
320 private void viewFocused(View view, boolean hasFocus) { argument
322 view.setSelected(hasFocus);
328 animator.animateFocus(hasFocus, false);
332 public void onItemFocused(View view, boolean hasFocus) { argument
333 viewFocused(view, hasFocus);
H A DSearchBar.java213 public void onFocusChange(View view, boolean hasFocus) {
214 if (DEBUG) Log.v(TAG, "EditText.onFocusChange " + hasFocus);
215 if (hasFocus) {
220 updateUi(hasFocus);
317 public void onFocusChange(View view, boolean hasFocus) {
318 if (DEBUG) Log.v(TAG, "SpeechOrb.onFocusChange " + hasFocus);
319 if (hasFocus) {
328 updateUi(hasFocus);
332 updateUi(hasFocus());
604 if (!hasFocus()) {
769 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/v17/leanback/tests/java/android/support/v17/leanback/widget/picker/
H A DDatePickerTest.java102 assertThat("TextView above should have focus initially", mViewAbove.hasFocus(), is(true));
111 mDatePickerInnerView.getChildAt(0).hasFocus(), is(true));
117 mDatePickerInnerView.getChildAt(2).hasFocus(), is(true));
122 mDatePickerInnerView.getChildAt(4).hasFocus(), is(true));
143 mDatePickerInnerView.getChildAt(0).hasFocus(), is(true));
151 mDatePickerInnerView.getChildAt(4).hasFocus(), is(true));
161 mDatePickerInnerView.getChildAt(4).hasFocus(), is(true));
173 assertThat("TextView above should have focus initially.", mViewAbove.hasFocus(), is(true));
179 mViewBelow.hasFocus(), is(true));
195 public void onFocusChange(View v, boolean hasFocus) {
[all...]
/frameworks/base/core/tests/coretests/src/android/view/
H A DVisibilityTest.java68 assertTrue(mVisible.hasFocus());
74 assertTrue(mInvisible.hasFocus());
89 assertTrue(mGone.hasFocus());
103 assertTrue(mGone.hasFocus());
123 assertTrue(mGone.hasFocus());
143 assertTrue(mInvisible.hasFocus());
163 assertTrue(mInvisible.hasFocus());
/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/support/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/page/
H A DSettingsIconPresenter.java38 public void onFocusChange(View v, boolean hasFocus) {
39 if (hasFocus) {
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/page/
H A DSettingsIconPresenter.java38 public void onFocusChange(View v, boolean hasFocus) {
39 if (hasFocus) {
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
H A DScrollViewButtonsAndLabelsTest.java76 assertTrue(firstButtonOffScreen.hasFocus());
112 assertTrue("last button should have focus", lastButton.hasFocus());
134 assertTrue("we want to be at offScreenButton", offScreenButton.hasFocus());
156 assertTrue("should be back at top button", topButton.hasFocus());
174 assertTrue("we want to be at the last button", lastButton.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/base/core/tests/coretests/src/android/widget/espresso/
H A DContextMenuUtils.java23 import static android.support.test.espresso.matcher.ViewMatchers.hasFocus;
48 .inRoot(withDecorView(hasFocus()));
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DFocusSearchNavigationTest.java134 assertThat(mBefore, hasFocus());
139 assertThat("vh at " + i, viewHolder, hasFocus());
143 assertThat(mAfter, hasFocus());
145 assertThat(mBefore, hasFocus());
156 assertThat(mAfter, hasFocus());
168 assertThat("vh at " + i, viewHolder, hasFocus());
173 assertThat(mBefore, hasFocus());
175 assertThat(mAfter, hasFocus());
272 static HasFocusMatcher hasFocus() { method in class:FocusSearchNavigationTest
282 return item instanceof View && ((View) item).hasFocus();
[all...]
H A DRecyclerViewFocusRecoveryTest.java155 assertThat("RV should have focus", mRecyclerView.hasFocus(), is(true));
159 assertThat("Viewholder did not receive focus", fvh.itemView.hasFocus(),
190 assertThat("RV should have focus", mRecyclerView.hasFocus(), is(true));
194 assertThat("Viewholder did not receive focus", fvh.itemView.hasFocus(),
216 assertThat("RV should have focus", mRecyclerView.hasFocus(), is(true));
220 assertThat("Viewholder did not receive focus", fvh.itemView.hasFocus(),
279 assertThat("RV should have focus", mRecyclerView.hasFocus(), is(true));
283 assertThat("Viewholder did not receive focus", fvh.itemView.hasFocus(),
396 assertThat("RV initially has no focus", mRecyclerView.hasFocus(), is(false));
402 mRecyclerView.hasFocus(), i
798 assertFocus(RecyclerView.ViewHolder viewHolder, boolean hasFocus) argument
802 assertFocus(String msg, RecyclerView.ViewHolder vh, boolean hasFocus) argument
[all...]
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
H A DKeyboardShortcutsTestCaseWithToolbar.java70 assertFalse(editText.hasFocus());
72 assertTrue(toolbar.hasFocus());
85 assertTrue(editText.hasFocus());

Completed in 2376 milliseconds

123456