/frameworks/base/docs/html/training/managing-audio/ |
D | audio-focus.jd | 35 interact. To avoid every music app playing at the same time, Android uses audio focus to moderate 36 audio playback—only apps that hold the audio focus should play audio.</p> 38 <p>Before your app starts playing audio it should request—and receive—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 …]
|
D | index.jd | 30 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/ |
D | HorizontalFocusSearchTest.java | 17 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;
|
D | GoneParentFocusedChildTest.java | 17 package android.widget.focus; 23 import android.widget.focus.GoneParentFocusedChild;
|
D | ListWithFooterViewAndNewLabelsTest.java | 17 package android.widget.focus; 19 import android.widget.focus.ListWithFooterViewAndNewLabels;
|
D | LinearLayoutGridTest.java | 17 package android.widget.focus; 24 import android.widget.focus.LinearLayoutGrid;
|
D | FocusChangeWithInterestingRectHintTest.java | 17 package android.widget.focus; 19 import android.widget.focus.AdjacentVerticalRectLists;
|
D | FocusAfterRemovalTest.java | 17 package android.widget.focus; 19 import android.widget.focus.FocusAfterRemoval;
|
D | DescendantFocusabilityTest.java | 17 package android.widget.focus; 19 import android.widget.focus.DescendantFocusability;
|
D | VerticalFocusSearchTest.java | 17 package android.widget.focus; 19 import android.widget.focus.VerticalFocusSearch;
|
D | ListOfButtonsTest.java | 17 package android.widget.focus; 19 import android.widget.focus.ListOfButtons;
|
D | RequestFocus.java | 17 package android.widget.focus;
|
D | DescendantFocusability.java | 17 package android.widget.focus;
|
D | LinearLayoutGrid.java | 17 package android.widget.focus;
|
/frameworks/base/services/java/com/android/server/wm/ |
D | InputMonitor.java | 303 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/ |
D | apps.jd | 12 <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/ |
D | ui-events.jd | 146 <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/ |
D | AccessibilityNodeInfoCompatJellyBean.java | 60 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/ |
D | mediaplayer.jd | 26 <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 …]
|
D | index.jd | 50 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/ |
D | optimizing-navigation-tv.jd | 61 …<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/ |
D | ACTIVITY.java.template | 40 // 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/ |
D | ACTIVITY.java.template | 44 // 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/ |
D | ACTIVITY.java.template | 44 // 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/ |
D | depth_fs.glsl | 6 // the focus range
|