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

/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DListWithMailMessages.java82 public MailMessage(String subject, String body, boolean focusable) { argument
85 mFocusable = focusable;
109 public void setFocusable(boolean focusable) { argument
110 mFocusable = focusable;
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/
H A DSwipeDismissPreferenceFragment.java85 * Sets whether or not the preferences list can be focused. If {@code focusable} is false, any
88 public void setFocusable(boolean focusable) { argument
89 if (focusable) {
/frameworks/base/core/java/android/widget/
H A DAdapterView.java212 * Indicates what focusable state is requested when calling setFocusable().
214 * determining the focusable state (such as whether its empty or the text
720 public void setFocusable(@Focusable int focusable) { argument
724 mDesiredFocusableState = focusable;
725 if ((focusable & (FOCUSABLE_AUTO | FOCUSABLE)) == 0) {
729 super.setFocusable((!empty || isInFilterMode()) ? focusable : NOT_FOCUSABLE);
733 public void setFocusableInTouchMode(boolean focusable) { argument
737 mDesiredFocusableInTouchModeState = focusable;
738 if (focusable) {
742 super.setFocusableInTouchMode(focusable
[all...]
H A DZoomButtonsController.java44 * - This window is never touchable, and by default is not focusable.
52 * - When it is focusable, it forwards uninteresting events to the owner view's
294 * Sets whether the zoom controls should be focusable. If the controls are
295 * focusable, then trackball and arrow key interactions are possible.
298 * @param focusable Whether the zoom controls should be focusable.
300 public void setFocusable(boolean focusable) { argument
302 if (focusable) {
H A DPopupWindow.java110 * if it is focusable than it needs to work with the input method, else
117 * work with an input method, regardless of whether it is focusable. This
125 * work with an input method, regardless of whether it is focusable. This
258 * <p>Create a new empty, non focusable popup window of dimension (0,0).</p>
267 * <p>Create a new empty, non focusable popup window of dimension (0,0).</p>
276 * <p>Create a new empty, non focusable popup window of dimension (0,0).</p>
285 * <p>Create a new, empty, non focusable popup window of dimension (0,0).</p>
331 * <p>Create a new empty, non focusable popup window of dimension (0,0).</p>
341 * <p>Create a new non focusable popup window which can display the
354 * <p>Create a new empty, non focusable popu
395 PopupWindow(View contentView, int width, int height, boolean focusable) argument
695 setFocusable(boolean focusable) argument
[all...]
H A DTextView.java1520 * clickable by default. By setting clickable here, we implicitly set focusable as well
1528 int focusable = getFocusable();
1538 focusable = (val.type == TypedValue.TYPE_INT_BOOLEAN)
1555 // Some apps were relying on the undefined behavior of focusable winning over
1556 // focusableInTouchMode != focusable in TextViews if both were specified in XML (usually
1557 // when starting with EditText and setting only focusable=false). To keep those apps from
1558 // breaking, re-apply the focusable attribute here.
1559 if (focusable != getFocusable()) {
1560 setFocusable(focusable);
2293 * method not to be focusable, o
[all...]
/frameworks/support/slices/view/src/main/java/androidx/slice/widget/
H A DRemoteInputView.java294 * An EditText that changes appearance based on whether it's focusable and becomes un-focusable
405 void setInnerFocusable(boolean focusable) { argument
406 setFocusableInTouchMode(focusable);
407 setFocusable(focusable);
408 setCursorVisible(focusable);
410 if (focusable) {
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DRecyclerViewFocusRecoveryTest.java303 assertThat("VH should no longer be focusable", newVh.getViewToFocus().isFocusable(),
354 assertThat("RV should always be focusable", mRecyclerView.isFocusable(), is(true));
471 assertThat("RV's first child should be focusable", fvh.getViewToFocus().isFocusable(),
866 void setFocusable(boolean focusable) { argument
867 parent1.setFocusableInTouchMode(focusable);
868 parent2.setFocusableInTouchMode(focusable);
869 textView.setFocusableInTouchMode(focusable);
870 root.setFocusableInTouchMode(focusable);
872 parent1.setFocusable(focusable);
873 parent2.setFocusable(focusable);
896 setFocusable(boolean focusable) argument
922 setFocusable(boolean focusable) argument
[all...]
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DGuidedAction.java122 * editable, or the action is focusable.
517 * @param focusable
520 public B focusable(boolean focusable) { argument
521 setFlags(focusable ? PF_FOCUSABLE : 0, PF_FOCUSABLE);
835 * Returns whether this action is focusable.
836 * @return true if the action is currently focusable, false otherwise.
843 * Sets whether this action is focusable.
844 * @param focusable Whether this action should be focusable
846 setFocusable(boolean focusable) argument
[all...]
/frameworks/support/customview/src/main/java/androidx/customview/widget/
H A DFocusStrategy.java63 // The position of the next focusable item, which is the first item if
78 // The position of the previous focusable item, which is the last item
170 final T focusable = collectionAdapter.get(focusables, i);
171 if (focusable == focused) {
176 adapter.obtainBounds(focusable, focusableRect);
179 closest = focusable;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DRemoteInputView.java484 * An EditText that changes appearance based on whether it's focusable and becomes
485 * un-focusable whenever the user navigates away from it or it becomes invisible.
615 void setInnerFocusable(boolean focusable) { argument
616 setFocusableInTouchMode(focusable);
617 setFocusable(focusable);
618 setCursorVisible(focusable);
620 if (focusable) {
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
H A DGridActivity.java457 boolean focusable = true;
459 focusable = mItemFocusables[position];
461 ((TextView) holder.itemView).setFocusable(focusable);
462 ((TextView) holder.itemView).setFocusableInTouchMode(focusable);
H A DGridWidgetTest.java2580 boolean[] focusable = new boolean[numItems];
2581 for (int i = 0; i < focusable.length; i++) {
2582 focusable[i] = true;
2585 focusable[i] = false;
2587 intent.putExtra(GridActivity.EXTRA_ITEMS_FOCUSABLE, focusable);
2622 boolean[] focusable = new boolean[numItems];
2625 focusable[i] = false;
2627 for (int i = firstFocusableIndex; i < focusable.length; i++) {
2628 focusable[i] = true;
2630 intent.putExtra(GridActivity.EXTRA_ITEMS_FOCUSABLE, focusable);
[all...]
/frameworks/base/core/java/android/view/
H A DFocusFinder.java35 * The algorithm used for finding the next focusable view in a given direction
77 * @return The next focusable view, or null if none exists.
89 * @return The next focusable view, or null if none exists.
210 // are currently focusable.
358 View focusable = focusables.get(i);
361 if (focusable == focused || focusable == root) continue;
364 focusable.getFocusedRect(mOtherRect);
365 root.offsetDescendantRectToMyCoords(focusable, mOtherRect);
369 closest = focusable;
[all...]
H A DView.java563 * {@link #isFocusableInTouchMode} is true will be focusable, such as text editing widgets.
884 * Prior to O, auto-focusable didn't exist and widgets such as ListView use hasFocusable
886 * apps that do this just because more things (clickable things) are now auto-focusable
892 * Prior to O, auto-focusable didn't exist and views marked as clickable weren't implicitly
893 * made focusable by default. As a result, apps could (incorrectly) change the clickable
894 * setting of views off the UI thread. Now that clickable can effect the focusable state,
896 * the focusable state checks). In order to prevent apps from crashing, we will handle this
926 * Use with {@link #setFocusable(int)} and <a href="#attr_android:focusable">{@code
927 * android:focusable}.
934 * Use with {@link #setFocusable(int)} and <a href="#attr_android:focusable">{
10045 setFocusable(boolean focusable) argument
10063 setFocusable(@ocusable int focusable) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DStatusBarWindowManager.java318 public void setStatusBarFocusable(boolean focusable) { argument
319 mCurrentState.statusBarFocusable = focusable;
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DSearchView.java358 boolean focusable = true;
359 focusable = a.getBoolean(R.styleable.SearchView_android_focusable, focusable);
360 setFocusable(focusable);
480 // Check if SearchView is focusable.
/frameworks/support/compat/src/main/java/androidx/core/view/accessibility/
H A DAccessibilityNodeInfoCompat.java1898 * Gets whether this node is focusable.
1900 * @return True if the node is focusable.
1907 * Sets whether this node is focusable.
1914 * @param focusable True if the node is focusable.
1917 public void setFocusable(boolean focusable) { argument
1918 mInfo.setFocusable(focusable);
3248 * Returns whether the node is explicitly marked as a focusable unit by a screen reader. Note
3250 * a focusable unit. Screen readers should generally use other signals, such as
3254 * @return {@code true} if the node is specifically marked as a focusable uni
[all...]
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/wizard/
H A DGuidedStepAttributesTest.java427 .focusable(false)
448 .focusable(false)
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DUiSelector.java389 * Set the search criteria to match widgets that are focusable.
403 public UiSelector focusable(boolean val) { method in class:UiSelector
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
H A DGuidedStepActivity.java580 .focusable(false)
H A DGuidedStepSupportActivity.java583 .focusable(false)
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
H A DGuidedStepActivity.java580 .focusable(false)
H A DGuidedStepSupportActivity.java583 .focusable(false)
/frameworks/base/core/java/android/view/accessibility/
H A DAccessibilityNodeInfo.java1765 * Gets whether this node is focusable.
1767 * @return True if the node is focusable.
1774 * Sets whether this node is focusable.
1781 * @param focusable True if the node is focusable.
1785 public void setFocusable(boolean focusable) { argument
1786 setBooleanProperty(BOOLEAN_PROPERTY_FOCUSABLE, focusable);
2357 * Returns whether the node is explicitly marked as a focusable unit by a screen reader. Note
2359 * a focusable unit. Screen readers should generally use other signals, such as
2363 * @return {@code true} if the node is specifically marked as a focusable uni
[all...]

Completed in 156 milliseconds