HomeSort by relevance Sort by last modified time
    Searched full:focus (Results 1 - 25 of 1949) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/clang/test/CodeGen/
2003-08-21-BinOp-Type-Mismatch.c 7 unsigned int frame, focus; local
8 (struct bar *) focus == (focus ? ((struct bar *) frame) : 0);
  /frameworks/base/docs/html/training/managing-audio/
audio-focus.jd 1 page.title=Managing Audio Focus
19 <li><a href="#RequestFocus">Request the Audio Focus</a></li>
20 <li><a href="#HandleFocusLoss">Handle the Loss of Audio Focus</a></li>
35 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
43 <h2 id="RequestFocus">Request the Audio Focus</h2>
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 tim
    [all...]
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/rs/java/tests/RsCameraDemo/
_index.html 4 This demonstrates focus peaking implemented in RenderScript
  /packages/apps/Camera2/src/com/android/camera/ui/focus/
FocusRing.java 17 package com.android.camera.ui.focus;
22 * Primary interface for interacting with the focus ring UI.
26 * Check the state of the passive focus ring animation.
28 * @return whether the passive focus animation is running.
32 * Check the state of the active focus ring animation.
34 * @return whether the active focus animation is running.
38 * Start a passive focus animation.
42 * Start an active focus animation.
46 * Stop any currently running focus animations.
50 * Set the location of the focus ring animation center
    [all...]
FocusController.java 17 package com.android.camera.ui.focus;
28 * The focus controller interacts with the focus ring UI element.
44 * Show a passive focus animation at the center of the active area.
60 * Show a passive focus animation at the given viewX and viewY position.
61 * This is usually indicates the camera subsystem kicked off an auto-focus
79 * Show an active focus animation at the given viewX and viewY position.
94 // TODO: Enable focus sound when better audio controls exist.
101 * Stop any currently executing focus animation.
114 * Computing the correct location for the focus ring requires knowin
    [all...]
  /packages/services/Car/libvehiclenetwork/libvehiclenetwork-audio-helper/include/
vehicle-network-audio-helper-for-c.h 51 * vehicle_network_audio_helper_get_stream_focus_state can return timeout if focus is not
53 * Timeout timer will also reset if focus is taken away while having focus and stream is started.
62 * Notify stream start and reset focus timeout timer if it is not reset already.
80 * Check if target stream has focus or not. This function also checks if default timeout has passed
81 * since stream was started or since focus was lost last time.
82 * @return VEHICLE_NETWORK_AUDIO_HELPER_FOCUS_STATE_FOCUS if there is focus.
83 * VEHICLE_NETWORK_AUDIO_HELPER_FOCUS_STATE_NO_FOCUS no focus, no timeout
84 * VEHICLE_NETWORK_AUDIO_HELPER_FOCUS_STATE_FOCUS no focus, timed out
90 * Wait for focus until given timeout. It will return immediately if given stream has focus
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
EditTextRule.java 45 INode focus = findFocus(findRoot(parent)); local
46 if (focus == null) {
60 * Adds a "Request Focus" menu item.
68 final String label = hasFocus ? "Clear Focus" : "Request Focus";
80 INode focus = findFocus(findRoot(node));
81 if (focus != null && focus.getParent() != null) {
82 focus.getParent().removeChild(focus);
99 INode focus = findFocus(node); local
131 INode focus = findFocus(child); local
    [all...]
  /frameworks/base/services/core/java/com/android/server/audio/
MediaFocusControl.java 69 * Discard the current audio focus owner.
70 * Notify top of audio focus stack that it lost focus (regardless of possibility to reassign
71 * focus), remove it from the stack, and clear the remote control display.
76 // notify the current focus owner it lost focus after removing it from stack
88 // notify the top of the stack it gained focus
97 * Focus is requested, propagate the associated loss throughout the stack.
98 * @param focusGain the new focus gain that will later be added at the top of the stack
101 // going through the audio focus stack to signal new focus, traversing order doesn'
    [all...]
FocusRequester.java 33 * Class to handle all the information about a user of audio focus. The lifecycle of each
34 * instance is managed by android.media.MediaFocusControl, from its addition to the audio focus
51 * the audio focus gain request that caused the addition of this object in the focus stack.
60 * the audio focus loss received my mFocusDispatcher, is AudioManager.AUDIOFOCUS_NONE if
61 * it never lost focus.
65 * the audio attributes associated with the focus request
144 private static String focusChangeToString(int focus) {
145 switch(focus) {
163 return "[invalid focus change" + focus + "]"
    [all...]
  /frameworks/base/core/tests/coretests/src/android/widget/focus/
RequestFocusTest.java 17 package android.widget.focus;
38 * have focus become invisible or GONE.
89 assertTrue("Focus should move to bottom left", mBottomLeftButton.hasFocus());
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."
    [all...]
GoneParentFocusedChildTest.java 17 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",
  /frameworks/base/core/tests/coretests/src/android/widget/touchmode/
TouchModeFocusableTest.java 31 * Some views, like edit texts, can keep and gain focus even when in touch mode.
53 assertTrue("edit text should have focus", mEditText.isFocused());
61 assertTrue("edit text should still have focus", mEditText.isFocused());
68 assertTrue("button should have focus", mButton.isFocused());
72 assertTrue("clicking edit text should have given it focus", mEditText.isFocused());
76 // entering touch mode takes focus away from the currently focused item if it
82 assertTrue("button should have focus",
87 assertNull("nothing should have focus", getActivity().getCurrentFocus());
88 assertFalse("layout should not have focus",
TouchModeFocusChangeTest.java 30 * Make sure focus isn't kept by buttons when entering touch mode.
33 * top most focusable gets focus.
55 assertTrue("top button should have focus", mFirstButton.isFocused());
67 assertNull("activity shouldn't have focus", mActivity.getCurrentFocus());
68 assertFalse("linear layout should not have focus",
80 assertFalse("button should not have focus when touched",
85 assertTrue("first button (the top most focusable) should have gained focus",
  /packages/apps/Camera2/src/com/android/camera/
FocusOverlayManager.java 35 import com.android.camera.ui.focus.CameraCoordinateTransformer;
36 import com.android.camera.ui.focus.FocusRing;
45 /* A class that handles everything about focus in still picture mode.
46 * This also handles the metering area because it is the same as focus area.
60 * (8) The camera has autofocus and supports focus area. Touch the screen to
62 * (9) The camera has autofocus and supports focus area. Touch the screen to
79 private static final int STATE_IDLE = 0; // Focus is not active.
80 private static final int STATE_FOCUSING = 1; // Focus is in progress.
81 // Focus is in progress and the camera should take a picture after focus finishes
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
RecentsActivityLaunchState.java 49 * Returns the task to focus given the current launch state.
56 // If fast toggling, focus the front most task so that the next tap will focus the
61 // If coming from another app, focus the next task
66 // focus the front most task)
70 // If coming from home, focus the first task
  /external/skia/src/views/
SkWindow.cpp 148 SkView* focus = this->getFocusView();
149 if (focus == nullptr)
150 focus = this;
154 return focus->doEvent(evt);
164 // send an event to the focus-view
166 SkView* focus = this->getFocusView(); local
167 if (focus == nullptr)
168 focus = this;
172 if (focus->doEvent(evt))
191 //send an event to the focus-vie
193 SkView* focus = this->getFocusView(); local
    [all...]
  /packages/apps/LegacyCamera/src/com/android/camera/
FocusManager.java 41 // A class that handles everything about focus in still picture mode.
42 // This also handles the metering area because it is the same as focus area.
51 private static final int STATE_IDLE = 0; // Focus is not active.
52 private static final int STATE_FOCUSING = 1; // Focus is in progress.
53 // Focus is in progress and the camera should take a picture after focus finishes.
55 private static final int STATE_SUCCESS = 3; // Focus finishes and succeeds.
56 private static final int STATE_FAIL = 4; // Focus finishes and fails.
67 private List<Area> mFocusArea; // focus area in driver format
130 // coordinates. In tap focus, the inverted matrix converts the U
    [all...]
  /hardware/ti/omap4xxx/camera/OMXCameraAdapter/
OMXFocus.cpp 21 * This file contains functionality for handling focus configurations.
63 CAMHAL_LOGEB("Focus areas supported %d, focus areas set %d",
107 CAMHAL_LOGDA("Auto focus got canceled before doAutoFocus could be called");
127 focusControl.eFocusControl = ( OMX_IMAGE_FOCUSCONTROLTYPE ) mParameters3A.Focus;
138 } else if ( mParameters3A.Focus == OMX_IMAGE_FocusControlAuto ) {
144 CAMHAL_LOGEB("Focus status check failed 0x%x!", ret);
147 CAMHAL_LOGDB("Focus status check 0x%x!", focusStatus.eFocusStatus);
155 (mParameters3A.Focus != (OMX_IMAGE_FOCUSCONTROLTYPE)OMX_IMAGE_FocusControlAuto) )
160 //Enable focus scannin
    [all...]
  /development/samples/SupportLeanbackShowcase/app/src/main/res/values/
arrays.xml 31 <item>This description becomes visible only on focus.</item>
32 <item>This description becomes visible only on focus.</item>
33 <item>This description becomes visible only on focus.</item>
34 <item>This description becomes visible only on focus.</item>
  /frameworks/base/docs/html/training/
distribute.jd 8 <p>These classes focus on the business aspects of your app strategy, including techniques
  /frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
FocusHighlightHandler.java 19 * Interface for highlighting the item that has focus.
23 * Called when an item gains or loses focus.
26 * @param view The view whose focus is changing.
27 * @param hasFocus True if focus is gained; false otherwise.
  /cts/tests/camera/src/android/hardware/camera2/cts/helpers/
Camera2Focuser.java 37 * A focuser utility class to assist camera to do auto focus.
39 * This class need create repeating request and single request to do auto focus.
40 * The repeating request is used to get the auto focus states; the single
41 * request is used to trigger the auto focus. This class assumes the camera device
42 * supports auto-focus. Don't use this class if the camera device doesn't have focuser
65 * The callback interface to notify auto focus result.
69 * This callback is called when auto focus completes and locked.
71 * @param success true if focus was successful, false if otherwise
81 * request and receive focus state changes. The {@link AutoFocusListener} is
82 * used to notify the auto focus callback
    [all...]
  /development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/
AudioFocusHelper.java 23 * Convenience class to deal with audio focus. This class deals with everything related to audio
24 * focus: it can request and abandon focus, and will intercept focus change events and deliver
39 /** Requests audio focus. Returns whether request was successful or not. */
45 /** Abandons audio focus. Returns whether request was successful or not. */
51 * Called by AudioManager on audio focus changes. We implement this by calling our
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
Camera2Focuser.java 36 * A focuser utility class to assist camera to do auto focus.
38 * This class need create repeating request and single request to do auto focus.
39 * The repeating request is used to get the auto focus states; the single
40 * request is used to trigger the auto focus. This class assumes the camera device
41 * supports auto-focus. Don't use this class if the camera device doesn't have focuser
68 * The callback interface to notify auto focus result.
72 * This callback is called when auto focus completes and locked.
74 * @param success true if focus was successful, false if otherwise
84 * request and receive focus state changes. The {@link AutoFocusListener} is
85 * used to notify the auto focus callback
    [all...]

Completed in 996 milliseconds

1 2 3 4 5 6 7 8 91011>>