Home
last modified time | relevance | path

Searched refs:touch (Results 1 – 25 of 162) sorted by relevance

1234567

/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java138 touch("file1", HOUR_IN_MILLIS); in testDeleteOlderTypical()
139 touch("file2", 1 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical()
140 touch("file3", 2 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical()
141 touch("file4", 3 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical()
142 touch("file5", 4 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical()
148 touch("file1", -HOUR_IN_MILLIS); in testDeleteOlderInFuture()
149 touch("file2", HOUR_IN_MILLIS); in testDeleteOlderInFuture()
150 touch("file3", WEEK_IN_MILLIS); in testDeleteOlderInFuture()
154 touch("file1", -HOUR_IN_MILLIS); in testDeleteOlderInFuture()
155 touch("file2", HOUR_IN_MILLIS); in testDeleteOlderInFuture()
[all …]
/frameworks/base/docs/html/training/gestures/
Dviewgroup.jd31 … <li>Design Guide for <a href="{@docRoot}design/style/touch-feedback.html">Touch Feedback</a></li>
46 <p>Handling touch events in a {@link android.view.ViewGroup} takes special care,
48 are targets for different touch events than the {@link android.view.ViewGroup}
49 itself. To make sure that each view correctly receives the touch events intended
56 method is called whenever a touch event is detected on the surface of a
64 method gives a parent the chance to see any touch event before its children do.
67 the child view that was previously handling touch events
80 a child view horizontally, the child view should no longer get touch events, and
81 {@code MyViewGroup} should handle touch events by scrolling its contents. However,
83 the parent shouldn't intercept those touch events, because the child is the
[all …]
Dindex.jd25 … <li>Design Guide for <a href="{@docRoot}design/style/touch-feedback.html">Touch Feedback</a></li>
40 app via touch gestures. Android provides a variety of APIs to
43 <p>Although your app should not depend on touch gestures for basic behaviors (since the gestures
44 may not be available to all users in all contexts), adding touch-based
49 the accepted Android conventions for touch gestures. The <a
53 for <a href="{@docRoot}design/style/touch-feedback.html">Touch Feedback</a>. </p>
63 … Learn how to detect basic touch gestures such as scrolling, flinging, and double-tapping, using
80 touch event. </dd>
92 Learn how to implement touch-based dragging and scaling.
98 <dd>Learn how to manage touch events in a {@link android.view.ViewGroup} to
[all …]
Dmovement.jd29 … <li>Design Guide for <a href="{@docRoot}design/style/touch-feedback.html">Touch Feedback</a></li>
43 <p>This lesson describes how to track movement in touch events.</p>
47 android.view.MotionEvent#ACTION_MOVE} event whenever the current touch contact
53 <p>Because finger-based touch isn't always the most precise form of interaction,
54 detecting touch events is often based more on movement than on simple contact.
57 "touch slop." Touch slop refers to the distance in pixels a user's touch can wander
78 such as for touch drawing. See the {@link android.view.MotionEvent} reference for
81 <li>The velocity of the pointer as it moves across the touch screen.</li>
96 android.view.VelocityTracker} helps you track the velocity of touch events. This
Ddetector.jd30 … <li>Design Guide for <a href="{@docRoot}design/style/touch-feedback.html">Touch Feedback</a></li>
44 <p>A "touch gesture" occurs when a user places one or more fingers on the touch
50 <li>Gathering data about touch events.</li>
72 on the View that received the touch events.
73 For each sequence of touch events (position, pressure, size, addition of another finger, etc.)
85 <h3>Capturing touch events for an Activity or View</h3>
87 <p><p>To intercept touch events in an Activity or View, override
134 gestures without processing the individual touch events yourself. This is
137 <h3>Capturing touch events for a single view</h3>
142 setOnTouchListener()} method. This makes it possible to to listen for touch
[all …]
Dmulti.jd30 … <li>Design Guide for <a href="{@docRoot}design/style/touch-feedback.html">Touch Feedback</a></li>
44 <p>A multi-touch gesture is when multiple pointers (fingers) touch the screen
50 <p>When multiple pointers touch the screen at the same time, the system generates the
51 following touch events:</p>
77 persistent across touch events to allow tracking an individual pointer across
100 // ... Many touch events later...
149 // Single touch event
150 Log.d(DEBUG_TAG,"Single touch event");
174 <p>For more discussion of multi-touch and some examples, see the lesson <a href="scale.html">Draggi…
Dscroll.jd30 … <li>Design Guide for <a href="{@docRoot}design/style/touch-feedback.html">Touch Feedback</a></li>
50 a scrolling effect in response to touch gestures using <em>scrollers</em>.
55 scrolling animation in response to a touch event. They are similar, but
95 finger across the touch screen. Simple dragging is often implemented by overriding
113 scrolling in response to a touch event. For example, you could override
114 {@link android.view.View#onTouchEvent onTouchEvent()} to process touch
116 in response to those touch events.</p>
149 // user manipulates via touch gestures.
317 // touch), performs the zoom.
/frameworks/base/services/core/java/com/android/server/display/
DDisplayDeviceInfo.java181 public int touch; field in DisplayDeviceInfo
254 && touch == other.touch in equals()
281 touch = other.touch; in copyFrom()
303 sb.append(", touch ").append(touchToString(touch)); in toString()
319 private static String touchToString(int touch) { in touchToString() argument
320 switch (touch) { in touchToString()
328 return Integer.toString(touch); in touchToString()
/frameworks/base/docs/html/guide/topics/manifest/
Duses-configuration-element.jd9 keyboard / navigation control / touch screen." Dianne says that that's what they mean and
11 keyboard / navigation control / touch screen to work." But then what does "undefined" mean?
24 …android:<a href="#touch">reqTouchScreen</a>=["undefined" | "notouch" | "stylus" | "finger"] /&gt;<…
37 users and support devices that provide d-pad input in addition to or instead of touch. For
43 touch-style events to more advanced touch types such as {@code
137 <dt><a name="touch"></a>{@code android:reqTouchScreen}</dt>
138 <dd>The type of touch screen the application requires, if any at all.
147 <td>The application doesn't require a touch screen.
148 (The touch screen requirement is undefined.)
152 <td>The application doesn't require a touch screen.</td>
[all …]
Duses-feature-element.jd762 input is something like a d-pad, and generally not through touch or a
769 <td>The application uses basic touch interaction events, such as "click down", "click
772 only if it offers an emulated touchscreen ("fake touch" interface), or better. A device that offers
773 a fake touch interface provides a user input system that emulates a subset of touchscreen
775 touch interface. If your application requires basic point and click interaction (in other
777 Because this is the minimum level of touch interaction, your app will also be compatible with
778 devices that offer more complex touch interfaces.</p>
781 devices that provide a fake touch interface, you must also explicitly declare that a touch screen is
789 <td>The application performs distinct tracking of two or more "fingers" on a fake touch
792 only if it supports touch emulation for events that supports distinct tracking of two or more
[all …]
/frameworks/base/docs/html/training/graphics/opengl/
Dtouch.jd37 The key to making your OpenGL ES application touch interactive is expanding your implementation of
39 android.opengl.GLSurfaceView#onTouchEvent onTouchEvent()} to listen for touch events.</p>
41 <p>This lesson shows you how to listen for touch events to let users rotate an OpenGL ES object.</p>
46 <p>In order to make your OpenGL ES application respond to touch events, you must implement the
59 // MotionEvent reports input details from the touch screen
61 // interested in events where the touch position changed.
136 <p>To apply the rotation generated by touch input, comment out the code that generates an angle and
137 add {@code mAngle}, which contains the touch input generated angle:</p>
162 <img src="{@docRoot}images/opengl/ogl-triangle-touch.png">
164 <strong>Figure 1.</strong> Triangle being rotated with touch input (circle shows touch
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DFileRotatorTest.java212 touch("another_rotator.1024"); in testOtherFilesAndMalformed()
213 touch("another_rotator.1024-2048"); in testOtherFilesAndMalformed()
217 touch("rotator"); in testOtherFilesAndMalformed()
218 touch("rotator..."); in testOtherFilesAndMalformed()
219 touch("rotator.-"); in testOtherFilesAndMalformed()
220 touch("rotator.---"); in testOtherFilesAndMalformed()
221 touch("rotator.a-b"); in testOtherFilesAndMalformed()
222 touch("rotator_but_not_actually"); in testOtherFilesAndMalformed()
382 private void touch(String... names) throws IOException { in touch() method in FileRotatorTest
/frameworks/base/data/keyboards/
Dqwerty.idc19 touch.deviceType = touchScreen
20 touch.orientationAware = 1
Dqwerty2.idc19 touch.deviceType = touchScreen
20 touch.orientationAware = 1
DAndroid.mk32 $(hide) mkdir -p $(dir $@) && touch $@
/frameworks/base/docs/html/design/patterns/
Dgestures.jd2 page.tags=gesture,input,touch
67 <h4>Double touch </h4>
81 <h4>Double touch drag</h4>
86 <p>A single touch followed in quick succession by a drag up or down:</p>
Dnew.jd60 Before Android KitKat, Android's default touch feedback color was a vibrant
61 blue. Every touch resulted in a jolt of high-contrast color, in a shade that
67 In Android KitKat and beyond, touch feedback is subtle: when something is
72 branding is much easier because the default touch feedback works with
74 "/design/style/touch-feedback.html">Touch Feedback</a> page for more
100 <strong>double touch drag</strong> and <strong>double touch</strong>. These
173 <li>Using recommended touch target sizes</li>
Daccessibility.jd23 …ch</strong> is a system feature that works with TalkBack, allowing you to touch your device's scre…
30 …d haptic feedback during their navigation (such as labels, colors, icons, touch feedback) Low visi…
36 <h4>Use recommended touch target sizes</h4>
37touch target size for on screen elements. Read about <a href="{@docRoot}design/style/metrics-grids…
85 <li>Use recommended touch target sizes</li>
/frameworks/base/docs/html/guide/topics/ui/
Dui-events.jd51 (when in touch mode), or focuses upon the item with the navigation-keys or trackball and
55 This is called when the user either touches and holds the item (when in touch mode), or
66 …This is called when the user performs an action qualified as a touch event, including a press, a r…
176 …<li><code>{@link android.view.View#onTouchEvent}</code> - Called when a touch screen motion event…
185 … android.app.Activity} to intercept all touch events before they are dispatched to the window.</li>
191 upon a parent View to indicate that it should not intercept touch events with <code>{@link
199 what will accept input. If the device has touch capabilities, however, and the user
202 for interaction named "touch mode."
205 For a touch-capable device, once the user touches the screen, the device
206 will enter touch mode. From this point onward, only Views for which
[all …]
/frameworks/base/docs/html/training/
Dbest-user-input.jd9 touch screen gestures and text input through on-screen input methods and hardware keyboards.</p>
/frameworks/base/docs/html/tools/help/
DMonkeyDevice.jd42 <code><a href="#press">press()</a></code> or <code><a href="#touch">touch()</a>
52 <code><a href="#press">press()</a></code> or <code><a href="#touch">touch()</a>
62 <code><a href="#press">press()</a></code> or <code><a href="#touch">touch()</a>
115 Simulates a drag gesture (touch, hold, and move) on this device's screen.
333 <a href="#touch">touch</a>
340 Sends a touch event specified by type to the screen location specified
354 <a href="#touch">type</a>
375 <a href="#touch">wake</a>
399 <code><a href="#press">touch()</a></code> value.
418 <code><a href="#press">touch()</a></code> value.
[all …]
/frameworks/base/packages/InputDevices/
DAndroid.mk42 $(hide) mkdir -p $(dir $@) && touch $@
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
DListGetSelectedViewTest.java17 package android.widget.listview.touch;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPanelBar.java87 public PanelView selectPanelForTouch(MotionEvent touch) { in selectPanelForTouch() argument
89 return mPanels.get((int)(N * touch.getX() / getMeasuredWidth())); in selectPanelForTouch()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
DGridTouchSetSelectionTest.java17 package android.widget.gridview.touch;

1234567