/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 | 29 manner. To ensure a great user experience, it’s also important that your app manages the audio focus 33 which request audio focus when playing audio, and which respond appropriately to changes in audio 34 focus caused by the system or other applications.</p> 52 <dt><b><a href="audio-focus.html">Managing Audio Focus</a></b></dt> 54 interact. To avoid every music app playing at the same time, Android uses audio focus to moderate 55 audio playback. Learn how to request the audio focus, listen for a loss of audio focus, and how to
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/ |
D | PipRecentsControlsView.java | 109 PipControlButtonView focus = mPipControlsView.getFocusedButton(); in startFocusGainAnimation() local 110 if (focus != null) { in startFocusGainAnimation() 111 focus.startFocusGainAnimation(); in startFocusGainAnimation() 120 PipControlButtonView focus = mPipControlsView.getFocusedButton(); in startFocusLossAnimation() local 121 if (focus != null) { in startFocusLossAnimation() 122 focus.startFocusLossAnimation(); in startFocusLossAnimation()
|
/frameworks/base/docs/html/training/keyboard-input/ |
D | navigation.jd | 55 appearance when it gains input focus.</p> 71 each UI control gets focus as expected. 72 <p>Look for any instances in which the focus moves in a way you don't expect.</p> 77 <p>Look for any instances in which the focus moves in a way you don't expect.</p> 82 does not do what you expect, specify where the focus should go in your layout, as discussed 90 the system passes input focus between elements based 93 to manually specify the focus order.</p> 96 is aligned to the left of the second button. In order to pass focus from the first button to the 97 text field, then to the second button, the layout needs to explicitly define the focus order 125 <p>Now instead of sending focus from {@code button1} to {@code button2} then {@code editText1}, the [all …]
|
/frameworks/base/docs/html/training/tv/start/ |
D | navigation.jd | 2 page.tags=tv, d-pad, focus 13 <li><a href="#focus-selection">Provide Clear Focus and Selection</a></li> 53 <li>For scrolling lists with focus, make sure that the D-pad up and down keys scroll the list, 78 The following code sample shows how to define the next control to receive focus for a {@link 99 <td>Defines the next view to receive focus when the user navigates down.</td> 103 <td>Defines the next view to receive focus when the user navigates left.</td> 107 <td>Defines the next view to receive focus when the user navigates right.</td> 111 <td>Defines the next view to receive focus when the user navigates up.</td> 118 the last control directs focus back to the first one. 123 <h2 id="focus-selection">Provide Clear Focus and Selection</h2> [all …]
|
/frameworks/support/v4/kitkat/android/support/v4/view/accessibility/ |
D | AccessibilityNodeProviderCompatKitKat.java | 34 public Object findFocus(int focus); in findFocus() argument 60 public AccessibilityNodeInfo findFocus(int focus) { in newAccessibilityNodeProviderBridge() argument 61 return (AccessibilityNodeInfo) bridge.findFocus(focus); in newAccessibilityNodeProviderBridge()
|
/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;
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | AndroidCameraCapabilities.java | 196 for (String focus : supportedFocusModes) { in buildFocusModes() 197 if (Camera.Parameters.FOCUS_MODE_AUTO.equals(focus)) { in buildFocusModes() 199 } else if (Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE.equals(focus)) { in buildFocusModes() 201 } else if (Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO.equals(focus)) { in buildFocusModes() 203 } else if (Camera.Parameters.FOCUS_MODE_EDOF.equals(focus)) { in buildFocusModes() 205 } else if (Camera.Parameters.FOCUS_MODE_FIXED.equals(focus)) { in buildFocusModes() 207 } else if (Camera.Parameters.FOCUS_MODE_INFINITY.equals(focus)) { in buildFocusModes() 209 } else if (Camera.Parameters.FOCUS_MODE_MACRO.equals(focus)) { in buildFocusModes()
|
D | CameraCapabilities.java | 347 public String stringify(FocusMode focus) { in stringify() argument 348 return toApiCase(focus.name()); in stringify() 605 public final boolean supports(FocusMode focus) { in supports() argument 606 return (focus != null && mSupportedFocusModes.contains(focus)); in supports()
|
/frameworks/base/docs/html/guide/topics/ui/ |
D | ui-events.jd | 142 <p>Remember that hardware key events are always delivered to the View currently in focus. They are … 144 currently has focus, then you can see the event travel through the <code>{@link android.view.View#d… 177 …>{@link android.view.View#onFocusChanged}</code> - Called when the view gains or loses focus.</li> 198 necessary to give focus to actionable items (like buttons) so the user can see 201 highlight items, or give focus to a particular View. Thus, there is a mode 208 Other Views that are touchable, like buttons, will not take focus when touched; they will 213 exit touch mode, and find a view to take focus. Now, the user may resume interacting 225 <p>The framework will handle routine focus movement in response to user input. 226 This includes changing the focus as Views are removed or hidden, or as new 227 Views become available. Views indicate their willingness to take focus [all …]
|
/frameworks/support/v4/java/android/support/v4/view/accessibility/ |
D | AccessibilityNodeProviderCompat.java | 133 public Object findFocus(int focus) { 134 final AccessibilityNodeInfoCompat compatInfo = compat.findFocus(focus); 259 public AccessibilityNodeInfoCompat findFocus(int focus) {
|
/frameworks/base/docs/html/guide/topics/media/ |
D | mediaplayer.jd | 25 <li><a href="#audiofocus">Handling audio focus</a></li> 463 <h3 id="audiofocus">Handling audio focus</h3> 477 you should always request audio focus. Once it has focus, it can use the sound output freely, but it 479 always listen for focus changes. If it is notified that it has lost the audio 480 focus, it should immediately either kill the audio or lower it to a quiet level 482 loud playback after it receives focus again.</p> 485 (and highly encouraged) to comply with the audio focus guidelines, but the 487 music even after losing audio focus, nothing in the system will prevent that. 491 <p>To request audio focus, you must call 501 // could not get audio focus. [all …]
|
/frameworks/base/docs/html-intl/intl/ja/training/tv/start/ |
D | navigation.jd | 2 page.tags=tv, d-pad, focus 12 <li><a href="#focus-selection">明確なフォーカスと選択を可能にする</a></li> 99 <h2 id="focus-selection">明確なフォーカスと選択を可能にする</h2>
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | InputMonitor.java | 415 InputWindowHandle focus, KeyEvent event, int policyFlags) { in interceptKeyBeforeDispatching() argument 416 WindowState windowState = focus != null ? (WindowState) focus.windowState : null; in interceptKeyBeforeDispatching() 424 InputWindowHandle focus, KeyEvent event, int policyFlags) { in dispatchUnhandledKey() argument 425 WindowState windowState = focus != null ? (WindowState) focus.windowState : null; in dispatchUnhandledKey()
|
/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/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> 128 "Add note" when a user moves focus to this button or hovers over it.</p> 137 <h2 id="focus-nav">Enabling Focus Navigation</h2> 151 focus. For information on testing directional controls, see 153 focus navigation</a>.</p> 156 <h3 id="focus-enable">Enabling view focus</h3> 160 {@code android:focusable}</a> attribute is set to {@code true}. This setting allows users to focus 162 provided by the Android framework are focusable by default and visually indicate focus by changing [all …]
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | FocusRequester.java | 144 private static String focusChangeToString(int focus) { in focusChangeToString() argument 145 switch(focus) { in focusChangeToString() 163 return "[invalid focus change" + focus + "]"; in focusChangeToString()
|
/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
|