Home
last modified time | relevance | path

Searched refs:focus (Results 1 – 25 of 133) sorted by relevance

123456

/frameworks/base/docs/html/training/managing-audio/
Daudio-focus.jd35 interact. To avoid every music app playing at the same time, Android uses audio focus to moderate
36 audio playback&mdash;only apps that hold the audio focus should play audio.</p>
38 <p>Before your app starts playing audio it should request&mdash;and receive&mdash;the audio focus.
39 Likewise, it should know how to listen for a loss of audio focus and respond appropriately when that
45 <p>Before your app starts playing any audio, it should hold the audio focus for the stream
51 permanent audio focus. Request transient focus when you expect to play audio for only a short time
52 (for example when playing navigation instructions). Request permanent audio focus when you
55 <p>The following snippet requests permanent audio focus on the music audio stream. You should
56 request the audio focus immediately before you begin playback, such as when the user presses
63 // Request audio focus for playback
[all …]
Dindex.jd30 manner. To ensure a great user experience, it’s also important that your app manages the audio focus
34 which request audio focus when playing audio, and which respond appropriately to changes in audio
35 focus caused by the system or other applications.</p>
53 <dt><b><a href="audio-focus.html">Managing Audio Focus</a></b></dt>
55 interact. To avoid every music app playing at the same time, Android uses audio focus to moderate
56 audio playback. Learn how to request the audio focus, listen for a loss of audio focus, and how to
/frameworks/base/core/tests/coretests/src/android/widget/focus/
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;
DGoneParentFocusedChildTest.java17 package android.widget.focus;
23 import android.widget.focus.GoneParentFocusedChild;
DListWithFooterViewAndNewLabelsTest.java17 package android.widget.focus;
19 import android.widget.focus.ListWithFooterViewAndNewLabels;
DLinearLayoutGridTest.java17 package android.widget.focus;
24 import android.widget.focus.LinearLayoutGrid;
DFocusChangeWithInterestingRectHintTest.java17 package android.widget.focus;
19 import android.widget.focus.AdjacentVerticalRectLists;
DFocusAfterRemovalTest.java17 package android.widget.focus;
19 import android.widget.focus.FocusAfterRemoval;
DDescendantFocusabilityTest.java17 package android.widget.focus;
19 import android.widget.focus.DescendantFocusability;
DVerticalFocusSearchTest.java17 package android.widget.focus;
19 import android.widget.focus.VerticalFocusSearch;
DListOfButtonsTest.java17 package android.widget.focus;
19 import android.widget.focus.ListOfButtons;
DRequestFocus.java17 package android.widget.focus;
DDescendantFocusability.java17 package android.widget.focus;
DLinearLayoutGrid.java17 package android.widget.focus;
/frameworks/base/services/java/com/android/server/wm/
DInputMonitor.java303 InputWindowHandle focus, KeyEvent event, int policyFlags) { in interceptKeyBeforeDispatching() argument
304 WindowState windowState = focus != null ? (WindowState) focus.windowState : null; in interceptKeyBeforeDispatching()
311 InputWindowHandle focus, KeyEvent event, int policyFlags) { in dispatchUnhandledKey() argument
312 WindowState windowState = focus != null ? (WindowState) focus.windowState : null; in dispatchUnhandledKey()
/frameworks/base/docs/html/guide/topics/ui/accessibility/
Dapps.jd12 <li><a href="#focus-nav">Enabling Focus Navigation</a>
14 <li><a href="#focus-enable">Enabling view focus</a></li>
15 <li><a href="#focus-order">Controlling focus order</a></li>
29 <li><a href="#test-navigation">Testing focus navigation</a></li>
112 user moves focus to this button or hovers over it.</p>
118 <h2 id="focus-nav">Enabling Focus Navigation</h2>
131 information on testing directional controls, see <a href="#test-navigation">Testing focus
134 <h3 id="focus-enable">Enabling view focus</h3>
138 {@code android:focusable}</a> attribute is set to {@code true}. This setting allows users to focus
140 provided by the Android framework are focusable by default and visually indicate focus by changing
[all …]
/frameworks/base/docs/html/guide/topics/ui/
Dui-events.jd146 <p>Remember that hardware key events are always delivered to the View currently in focus. They are …
148 currently has focus, then you can see the event travel through the <code>{@link android.view.View#d…
181 …>{@link android.view.View#onFocusChanged}</code> - Called when the view gains or loses focus.</li>
202 necessary to give focus to actionable items (like buttons) so the user can see
205 highlight items, or give focus to a particular View. Thus, there is a mode
212 Other Views that are touchable, like buttons, will not take focus when touched; they will
217 exit touch mode, and find a view to take focus. Now, the user may resume interacting
229 <p>The framework will handle routine focus movement in response to user input.
230 This includes changing the focus as Views are removed or hidden, or as new
231 Views become available. Views indicate their willingness to take focus
[all …]
/frameworks/support/v4/jellybean/android/support/v4/view/accessibility/
DAccessibilityNodeInfoCompatJellyBean.java60 public static Object findFocus(Object info, int focus) { in findFocus() argument
61 return ((AccessibilityNodeInfo) info).findFocus(focus); in findFocus()
/frameworks/base/docs/html/guide/topics/media/
Dmediaplayer.jd26 <li><a href="#audiofocus">Handling audio focus</a></li>
464 <h3 id="audiofocus">Handling audio focus</h3>
478 you should always request audio focus. Once it has focus, it can use the sound output freely, but it
480 always listen for focus changes. If it is notified that it has lost the audio
481 focus, it should immediately either kill the audio or lower it to a quiet level
483 loud playback after it receives focus again.</p>
486 (and highly encouraged) to comply with the audio focus guidelines, but the
488 music even after losing audio focus, nothing in the system will prevent that.
492 <p>To request audio focus, you must call
502 // could not get audio focus.
[all …]
Dindex.jd50 presses, which request audio focus when playing audio, and which respond appropriately to changes in
51 audio focus caused by the system or other applications.</p>
/frameworks/base/docs/html/training/tv/
Doptimizing-navigation-tv.jd61 …<li>For scrolling lists with focus, D-pad up/down keys scroll the list and Enter key selects an it…
70 For example, for an {@code android.widget.EditText}, to define the next control to receive focus, u…
84 <td>Defines the next view to receive focus when the user navigates down.</td>
88 <td>Defines the next view to receive focus when the user navigates left.</td>
92 <td>Defines the next view to receive focus when the user navigates right.</td>
96 <td>Defines the next view to receive focus when the user navigates up.</td>
102 up the navigation order as a loop, so that the last control directs focus back to the first one.
/frameworks/compile/libbcc/tests/debuginfo/target-tests/driver-simple/
DACTIVITY.java.template40 // to take appropriate action when the activity loses focus
48 // to take appropriate action when the activity loses focus
/frameworks/compile/libbcc/tests/debuginfo/target-tests/driver-int-param/
DACTIVITY.java.template44 // to take appropriate action when the activity loses focus
52 // to take appropriate action when the activity loses focus
/frameworks/compile/libbcc/tests/debuginfo/target-tests/driver-simple-exit/
DACTIVITY.java.template44 // to take appropriate action when the activity loses focus
52 // to take appropriate action when the activity loses focus
/frameworks/base/tests/RenderScriptTests/ShadersTest/res/raw/
Ddepth_fs.glsl6 // the focus range

123456