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

1234

/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DFocusHighlightHandler.java27 * @param hasFocus True if focus is gained; false otherwise.
29 void onItemFocused(View view, boolean hasFocus); argument
H A DFocusHighlightHelper.java144 public void onItemFocused(View view, boolean hasFocus) { argument
145 view.setSelected(hasFocus);
146 getOrCreateAnimator(view).animateFocus(hasFocus, false);
229 private void viewFocused(View view, boolean hasFocus) { argument
230 view.setSelected(hasFocus);
236 animator.animateFocus(hasFocus, false);
240 public void onItemFocused(View view, boolean hasFocus) { argument
241 viewFocused(view, hasFocus);
H A DSearchBar.java190 public void onFocusChange(View view, boolean hasFocus) {
191 if (DEBUG) Log.v(TAG, "EditText.onFocusChange " + hasFocus);
192 if (hasFocus) {
195 updateUi(hasFocus);
292 public void onFocusChange(View view, boolean hasFocus) {
293 if (DEBUG) Log.v(TAG, "SpeechOrb.onFocusChange " + hasFocus);
294 if (hasFocus) {
303 updateUi(hasFocus);
307 updateUi(hasFocus());
535 if (!hasFocus()) {
686 updateUi(boolean hasFocus) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DListOfButtonsTest.java62 assertFalse(mButtonAtTop.hasFocus());
63 assertTrue(mListView.hasFocus());
72 assertTrue(mButtonAtTop.hasFocus());
73 assertFalse(mListView.hasFocus());
80 assertTrue(mListView.hasFocus());
85 assertTrue(childOne.hasFocus());
94 mButtonAtTop.hasFocus());
95 assertTrue(mListView.hasFocus());
109 assertTrue(indexInfo, mListView.hasFocus());
114 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/base/core/tests/coretests/src/android/widget/listview/focus/
H A DAdjacentListsWithAdjacentISVsInsideTest.java54 assertTrue(mLeftListView.hasFocus());
68 assertTrue(mLeftListView.hasFocus());
81 assertTrue(mLeftListView.hasFocus());
86 assertTrue("mRightListView.hasFocus()", mRightListView.hasFocus());
/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());
H A DDisabledLongpressTest.java69 assertTrue(mSimpleView.hasFocus());
H A DDisabledTest.java76 assertTrue(mDisabled.hasFocus());
H A DLongpressTest.java65 assertTrue(mSimpleView.hasFocus());
/frameworks/base/core/java/android/widget/
H A DZoomControls.java108 public boolean hasFocus() { method in class:ZoomControls
109 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.java74 assertTrue(firstButtonOffScreen.hasFocus());
110 assertTrue("last button should have focus", lastButton.hasFocus());
132 assertTrue("we want to be at offScreenButton", offScreenButton.hasFocus());
154 assertTrue("should be back at top button", topButton.hasFocus());
172 assertTrue("we want to be at the last button", lastButton.hasFocus());
H A DRequestRectangleVisibleWithInternalScrollTest.java64 assertTrue(mScrollToBlob.hasFocus());
/frameworks/base/services/core/java/com/android/server/wm/
H A DFakeWindowImpl.java42 boolean canReceiveKeys, boolean hasFocus, boolean touchFullscreen) {
69 mWindowHandle.hasFocus = hasFocus;
39 FakeWindowImpl(WindowManagerService service, Looper looper, InputEventReceiver.Factory inputEventReceiverFactory, String name, int windowType, int layoutParamsFlags, boolean canReceiveKeys, boolean hasFocus, boolean touchFullscreen) argument
/frameworks/base/services/core/java/com/android/server/input/
H A DInputWindowHandle.java72 public boolean hasFocus; field in class:InputWindowHandle
/frameworks/base/core/java/android/view/
H A DIWindow.aidl59 void windowFocusChanged(boolean hasFocus, boolean inTouchMode);
H A DWindowCallbackWrapper.java105 public void onWindowFocusChanged(boolean hasFocus) { argument
106 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/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 244 milliseconds

1234