HomeSort by relevance Sort by last modified time
    Searched full:focus (Results 1 - 25 of 1574) 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...]
  /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/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...]
  /external/skia/src/views/
SkWindow.cpp 176 SkView* focus = this->getFocusView();
177 if (focus == NULL)
178 focus = this;
182 return focus->doEvent(evt);
192 // send an event to the focus-view
194 SkView* focus = this->getFocusView(); local
195 if (focus == NULL)
196 focus = this;
200 if (focus->doEvent(evt))
219 //send an event to the focus-vie
221 SkView* focus = this->getFocusView(); local
    [all...]
  /frameworks/base/services/core/java/com/android/server/audio/
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...]
  /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...]
  /packages/apps/Camera/src/com/android/camera/
FocusOverlayManager.java 38 /* A class that handles everything about focus in still picture mode.
39 * This also handles the metering area because it is the same as focus area.
53 * (8) The camera has autofocus and supports focus area. Touch the screen to
55 * (9) The camera has autofocus and supports focus area. Touch the screen to
67 private static final int STATE_IDLE = 0; // Focus is not active.
68 private static final int STATE_FOCUSING = 1; // Focus is in progress.
69 // Focus is in progress and the camera should take a picture after focus finishes.
71 private static final int STATE_SUCCESS = 3; // Focus finishes and succeeds.
72 private static final int STATE_FAIL = 4; // Focus finishes and fails
    [all...]
  /frameworks/base/docs/html/training/
distribute.jd 8 <p>These classes focus on the business aspects of your app strategy, including techniques
  /frameworks/base/tests/RenderScriptTests/ShadersTest/res/raw/
depth_fs.glsl 6 // the focus range
  /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.
OnItemViewSelectedListener.java 18 * current selection is different than focus. A row or item can be selected without having focus;
19 * for example, when a row header view gains focus then the corresponding row view becomes selected.
26 * selection changes between rows, regardless if row view has focus or not.
34 * Row has focus: event is fired when focus changes between children of the row.
37 * No row has focus: the event is fired with the currently selected row and last
  /cts/tests/tests/hardware/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
  /packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
FocusOverlayManager.java 34 /* A class that handles everything about focus in still picture mode.
35 * This also handles the metering area because it is the same as focus area.
49 * (8) The camera has autofocus and supports focus area. Touch the screen to
51 * (9) The camera has autofocus and supports focus area. Touch the screen to
67 private static final int STATE_IDLE = 0; // Focus is not active.
68 private static final int STATE_FOCUSING = 1; // Focus is in progress.
69 // Focus is in progress and the camera should take a picture after focus finishes.
71 private static final int STATE_SUCCESS = 3; // Focus finishes and succeeds.
72 private static final int STATE_FAIL = 4; // Focus finishes and fails
    [all...]
  /frameworks/av/include/camera/
CameraParameters.h 252 // Current focus mode. This will not be empty. Applications should call
253 // CameraHardwareInterface.autoFocus to start the focus if focus mode is
257 // Supported focus modes.
260 // The maximum number of focus areas supported. This is the maximum length
264 // Current focus areas.
267 // KEY_MAX_NUM_FOCUS_AREAS first to know the maximum number of focus areas
268 // first. If the value is 0, focus area is not supported.
270 // Each focus area is a five-element int array. The first four elements are
276 // point. The width and height of focus areas cannot be 0 or negative
    [all...]

Completed in 1214 milliseconds

1 2 3 4 5 6 7 8 91011>>