Searched refs:focus (Results 1 - 25 of 39) sorted by path

12

/frameworks/base/core/java/android/view/
H A DViewRootImpl.java1217 // shown for the first time the next time it gets focus.
1792 // handle first focus request
2348 // Lazily load the accessibility focus drawable.
2387 // going to make the focus visible... otherwise we scroll
2391 // to update the scroll position if the focus has changed (in which
2396 View focus = mRealFocusedView;
2398 // When in touch mode, focus points to the previously focused view,
2401 if (focus == null || focus.mAttachInfo != mAttachInfo) {
2406 if (focus !
[all...]
/frameworks/base/core/java/android/view/accessibility/
H A DAccessibilityNodeInfo.java85 * Action that gives input focus to the node.
90 * Action that clears input focus of the node.
115 * Action that gives accessibility focus to the node.
120 * Action that clears accessibility focus of the node.
240 * The input focus.
245 * The accessibility focus.
436 * Find the view that has the specified focus type. The search starts from
439 * @param focus The focus to find. One of {@link #FOCUS_INPUT} or
446 public AccessibilityNodeInfo findFocus(int focus) { argument
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DAdjacentVerticalRectLists.java17 package android.widget.focus;
31 * rectangle of the previously focused view. The view taking focus can use this
35 * that report interesting rects when giving up focus, and use interesting rects
36 * when taking focus to best select the internal row to show as selected.
H A DDescendantFocusability.java17 package android.widget.focus;
H A DDescendantFocusabilityTest.java17 package android.widget.focus;
19 import android.widget.focus.DescendantFocusability;
H A DFocusAfterRemoval.java17 package android.widget.focus;
29 * focus should go somewhere).
H A DFocusAfterRemovalTest.java17 package android.widget.focus;
19 import android.widget.focus.FocusAfterRemoval;
31 * have focus become invisible or GONE.
70 // if a parent layout becomes GONE when one of its children has focus,
71 // make sure the focus moves to something visible (bug 827087)
79 assertTrue("focus should jump to visible button",
96 assertTrue("focus should jump to visible button",
111 assertTrue("focus should jump to visible button",
127 assertTrue("focus should jump to visible button",
H A DFocusChangeWithInterestingRectHintTest.java17 package android.widget.focus;
19 import android.widget.focus.AdjacentVerticalRectLists;
32 * rectangle of the previously focused view. The view taking focus can use this
36 * that report interesting rects when giving up focus, and use interesting rects
37 * when taking focus to best select the internal row to show as selected.
H A DGoneParentFocusedChild.java17 package android.widget.focus;
29 * GONE and one of its children has focus; the activity should get
H A DGoneParentFocusedChildTest.java17 package android.widget.focus;
23 import android.widget.focus.GoneParentFocusedChild;
27 * have focus. (part of investigation into issue 945150).
42 assertTrue("button should have focus",
H A DHorizontalFocusSearch.java17 package android.widget.focus;
H A DHorizontalFocusSearchTest.java17 package android.widget.focus;
19 import android.widget.focus.HorizontalFocusSearch;
27 import static android.widget.focus.VerticalFocusSearchTest.FocusSearchAlg;
28 import static android.widget.focus.VerticalFocusSearchTest.NewFocusSearchAlg;
31 * Tests that focus searching works on a horizontal linear layout of buttons of
H A DLinearLayoutGrid.java17 package android.widget.focus;
H A DLinearLayoutGridTest.java17 package android.widget.focus;
24 import android.widget.focus.LinearLayoutGrid;
27 * Tests focus searching between buttons within a grid that are touching, for example,
H A DListOfButtons.java17 package android.widget.focus;
H A DListOfButtonsTest.java17 package android.widget.focus;
19 import android.widget.focus.ListOfButtons;
31 * Tests that focus works as expected when navigating into and out of
93 assertFalse("button at top should have focus back",
117 // pressing down again shouldn't matter; make sure last item keeps focus
137 assertTrue("button at top should have focus back",
H A DListOfEditTexts.java17 package android.widget.focus;
H A DListOfInternalSelectionViews.java17 package android.widget.focus;
H A DListWithFooterViewAndNewLabels.java17 package android.widget.focus;
H A DListWithFooterViewAndNewLabelsTest.java17 package android.widget.focus;
19 import android.widget.focus.ListWithFooterViewAndNewLabels;
H A DListWithMailMessages.java17 package android.widget.focus;
H A DRequestFocus.java17 package android.widget.focus;
36 // bottom right button starts with the focus.
39 bottomRightButton.setText("I should have focus");
H A DRequestFocusTest.java17 package android.widget.focus;
38 * have focus become invisible or GONE.
106 * This tests checks the case in which the first focusable View clears focus.
107 * In such a case the framework tries to give the focus to another View starting
108 * from the top. Hence, the framework will try to give focus to the view that
109 * wants to clear its focus.
120 // Make sure that the clearing focus View is the first focusable.
123 assertSame("The clearing focus button is the first focusable.",
125 assertSame("The gaining focus button is the first focusable.",
128 // Focus the clearing focus butto
[all...]
H A DScrollingThroughListOfFocusablesTest.java17 package android.widget.focus;
H A DVerticalFocusSearch.java17 package android.widget.focus;
30 * vertical layout to excercise some core focus searching.

Completed in 275 milliseconds

12