Home
last modified time | relevance | path

Searched refs:movement (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/native/libs/input/
DVelocityTracker.cpp384 Movement& movement = mMovements[mIndex]; in addMovement() local
385 movement.eventTime = eventTime; in addMovement()
386 movement.idBits = idBits; in addMovement()
389 movement.positions[i] = positions[i]; in addMovement()
573 const Movement& movement = mMovements[index]; in getEstimator() local
574 if (!movement.idBits.hasBit(id)) { in getEstimator()
578 nsecs_t age = newestMovement.eventTime - movement.eventTime; in getEstimator()
583 const VelocityTracker::Position& position = movement.getPosition(id); in getEstimator()
841 Movement& movement = mMovements[mIndex]; in addMovement() local
842 movement.eventTime = eventTime; in addMovement()
[all …]
/frameworks/base/docs/html/training/gestures/
Dmovement.jd43 <p>This lesson describes how to track movement in touch events.</p>
54 detecting touch events is often based more on movement than on simple contact.
55 To help apps distinguish between movement-based gestures (such as a swipe) and
56 non-movement gestures (such as a single tap), Android includes the notion of
58 before the gesture is interpreted as a movement-based gesture. For more discussion of this
63 <p>There are several different ways to track movement in a gesture, depending on
89 <p> You could have a movement-based gesture that is simply based on the distance and/or direction t…
124 // Add a user's movement to the tracker.
Dindex.jd68 <strong><a href="movement.html">Tracking Movement</a></strong>
71 Learn how to track movement.
Ddetector.jd7 next.link=movement.html
/frameworks/base/services/core/java/com/android/server/wm/
DTaskStack.java444 int movement = inOutBounds.left; in repositionDockedStackAfterRotation() local
445 inOutBounds.left -= movement; in repositionDockedStackAfterRotation()
446 inOutBounds.right -= movement; in repositionDockedStackAfterRotation()
449 movement = mTmpRect.right - inOutBounds.right; in repositionDockedStackAfterRotation()
450 inOutBounds.left += movement; in repositionDockedStackAfterRotation()
451 inOutBounds.right += movement; in repositionDockedStackAfterRotation()
454 movement = inOutBounds.top; in repositionDockedStackAfterRotation()
455 inOutBounds.top -= movement; in repositionDockedStackAfterRotation()
456 inOutBounds.bottom -= movement; in repositionDockedStackAfterRotation()
459 movement = mTmpRect.bottom - inOutBounds.bottom; in repositionDockedStackAfterRotation()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DGridLayoutManager.java2772 int movement = getMovement(direction); in onInterceptFocusSearch() local
2774 if (movement == NEXT_ITEM) { in onInterceptFocusSearch()
2782 } else if (movement == PREV_ITEM) { in onInterceptFocusSearch()
2790 } else if (movement == NEXT_ROW) { in onInterceptFocusSearch()
2794 } else if (movement == PREV_ROW) { in onInterceptFocusSearch()
2849 final int movement = getMovement(direction); in onAddFocusables() local
2861 if ((movement == NEXT_ROW || movement == PREV_ROW) && mGrid.getNumRows() <= 1) { in onAddFocusables()
2869 int inc = movement == NEXT_ITEM || movement == NEXT_ROW ? 1 : -1; in onAddFocusables()
2896 if (movement == NEXT_ITEM) { in onAddFocusables()
2904 } else if (movement == PREV_ITEM) { in onAddFocusables()
[all …]
/frameworks/base/core/java/android/inputmethodservice/
DInputMethodService.java2124 MovementMethod movement = eet.getMovementMethod(); in doMovementKey() local
2126 if (movement != null && layout != null) { in doMovementKey()
2130 if (movement.onKeyDown(eet, eet.getText(), keyCode, event)) { in doMovementKey()
2135 if (movement.onKeyUp(eet, eet.getText(), keyCode, event)) { in doMovementKey()
2139 if (movement.onKeyOther(eet, eet.getText(), event)) { in doMovementKey()
2143 if (movement.onKeyDown(eet, eet.getText(), keyCode, down)) { in doMovementKey()
2145 movement.onKeyUp(eet, eet.getText(), keyCode, up); in doMovementKey()
2147 movement.onKeyDown(eet, eet.getText(), keyCode, down); in doMovementKey()
2148 movement.onKeyUp(eet, eet.getText(), keyCode, up); in doMovementKey()
/frameworks/base/core/java/android/view/
DViewRootImpl.java4638 int movement = 0; in process() local
4641 movement = mX.generate(); in process()
4642 if (movement != 0) { in process()
4643 keycode = movement > 0 ? KeyEvent.KEYCODE_DPAD_RIGHT in process()
4649 movement = mY.generate(); in process()
4650 if (movement != 0) { in process()
4651 keycode = movement > 0 ? KeyEvent.KEYCODE_DPAD_DOWN in process()
4659 if (movement < 0) movement = -movement; in process()
4660 int accelMovement = (int)(movement * accel); in process()
4661 if (DEBUG_TRACKBALL) Log.v(mTag, "Move: movement=" + movement in process()
[all …]
/frameworks/base/docs/html/design/tv/
Dprinciples.jd25 content as possible on each screen. Use visual imagery, movement, and sound to inform and delight
Dpatterns.jd12 limits movement to up, down, left, and right. As you design your app for TV, make sure your
/frameworks/base/docs/html/training/game-controllers/
Dcontroller-input.jd95 movement properties for a specific physical control, such as
478 // Check if this event is from a joystick movement and process accordingly.
488 the {@link android.view.MotionEvent} to determine if a joystick movement it
491 <p>Note that joystick motion events may batch multiple movement samples together
500 object's movement based on the joystick input. To
523 // Process all historical movement samples in the batch
533 // Process the current movement sample in the batch (position -1)
547 <p>The snippet below shows a helper method that calculates the movement along
/frameworks/base/docs/html/training/graphics/opengl/
Dindex.jd70 <dd>Learn how to do basic movement and animation of drawn objects with OpenGL.</dd>
/frameworks/base/docs/html/guide/topics/location/
Dstrategies.jd39 providers, user movement, and location accuracy. It also handles
71 <li><b>User movement</b>
72 <p>Because the user location changes, you must account for movement by re-estimating user
169 accuracy, user movement, the multitude of methods to obtain the location, and the desire to conserve
/frameworks/base/docs/html/guide/topics/ui/
Ddrag-drop.jd13 Supports operations besides data movement.
120 Although the framework is primarily designed for data movement, you can use
123 framework in terms of data movement.
463 For data movement, this image represents the data being dragged. For other operations, the
568 movement, you may want to use <code>null</code> instead of an actual object.
706 If the drag and drop operation does not represent data movement, this may not be
800 and store it. If the drag and drop operation does not represent data movement,
Dui-events.jd67 or any movement gesture on the screen (within the bounds of the item).</dd>
225 <p>The framework will handle routine focus movement in response to user input.
234 <p>Focus movement is based on an algorithm which finds the nearest neighbor in a
/frameworks/base/docs/html/training/tv/start/
Dnavigation.jd37 directional pad (D-pad) or arrow keys. This type of control limits movement to up, down, left,
/frameworks/base/docs/html/training/transitions/
Dcustom-transitions.jd66 values. For example, a color animation needs color property values, while a movement
Doverview.jd32 <dd>Includes predefined animations for common effects such as fade out or movement.</dd>
Dtransitions.jd177 choice would be to animate the movement so that users notice the new location of the views.</p>
/frameworks/base/docs/html/guide/topics/sensors/
Dsensors_position.jd70 Position sensors are not typically used to monitor device movement or motion,
429 sensor to determine raw rotational movement or you can use the accelerometer and geomagnetic field
Dsensors_motion.jd57 <p>Motion sensors are useful for monitoring device movement, such as tilt, shake, rotation, or
58 swing. The movement is usually a reflection of direct user input (for example, a user steering a
/frameworks/base/docs/html/guide/topics/manifest/
Duses-feature-element.jd1268 two-finger gestures because the input in transformed to cursor movement
1276 A device that provides a two-finger touch trackpad for cursor movement
1298 five-finger gestures because the input in transformed to cursor movement
1306 A device that provides a five-finger touch trackpad for cursor movement
/frameworks/base/docs/html/about/versions/
Dandroid-4.1.jd36 <li><a href="#AutoFocus">Auto focus movement</a></li>
420 <h3 id="AutoFocus">Auto focus movement</h3>
423 for changes to the auto focus movement. You can register your interface with {@link
/frameworks/base/docs/html/training/articles/
Dwear-location-detection.jd33 understanding of their geographic position, movement and what's around them. With the small form
/frameworks/base/docs/html/training/tv/playback/
Dbrowse.jd301 default (if you don't call the method), but if you want to handle the back movement yourself, you

12