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

1 2 3

  /external/droiddriver/src/com/google/android/droiddriver/util/
Events.java 35 long downTime = SystemClock.uptimeMillis();
36 MotionEvent event = MotionEvent.obtain(downTime, downTime, MotionEvent.ACTION_DOWN, x, y, 1);
44 public static MotionEvent newTouchUpEvent(long downTime, int x, int y) {
46 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 1);
54 public static MotionEvent newTouchMoveEvent(long downTime, int x, int y) {
56 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, x, y, 1);
61 public static KeyEvent newKeyEvent(long downTime, int action, int keyCode) {
62 KeyEvent event = new KeyEvent(downTime, downTime, action, keyCode, 0 /* repeat */)
    [all...]
  /external/chromium_org/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/
TouchCommon.java 32 * @param downTime (in ms)
35 public void dragStart(float x, float y, long downTime) {
36 MotionEvent event = MotionEvent.obtain(downTime, downTime,
50 * @param downTime (in ms)
54 float toY, int stepCount, long downTime) {
63 MotionEvent event = MotionEvent.obtain(downTime, eventTime,
75 * @param downTime (in ms)
78 public void dragEnd(float x, float y, long downTime) {
80 MotionEvent event = MotionEvent.obtain(downTime, eventTime
    [all...]
TestTouchUtils.java 37 private static void sendAction(Instrumentation instrumentation, int action, long downTime,
40 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0);
53 long downTime = SystemClock.uptimeMillis();
54 sendAction(instrumentation, MotionEvent.ACTION_DOWN, downTime, x, y);
55 sendAction(instrumentation, MotionEvent.ACTION_UP, downTime, x, y);
107 long downTime = SystemClock.uptimeMillis();
108 sendAction(instrumentation, MotionEvent.ACTION_DOWN, downTime, absoluteX, absoluteY);
110 sendAction(instrumentation, MotionEvent.ACTION_UP, downTime, absoluteX, absoluteY);
131 * @return The downTime of the triggered event.
134 long downTime = SystemClock.uptimeMillis()
    [all...]
  /external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/util/
AwTestTouchUtils.java 22 private static void sendAction(View view, int action, long downTime, float x, float y) {
24 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0);
29 long downTime = SystemClock.uptimeMillis();
30 sendAction(view, MotionEvent.ACTION_DOWN, downTime, x, y);
31 return downTime;
35 float toY, int stepCount, long downTime) {
43 sendAction(view, MotionEvent.ACTION_MOVE, downTime, x, y);
47 private static void dragEnd(View view, float x, float y, long downTime) {
48 sendAction(view, MotionEvent.ACTION_UP, downTime, x, y);
70 long downTime = dragStart(view, fromX, fromY)
    [all...]
  /development/cmds/monkey/src/com/android/commands/monkey/
MonkeyKeyEvent.java 45 public MonkeyKeyEvent(long downTime, long eventTime, int action,
49 mDownTime = downTime;
80 public void setDownTime(long downTime) {
84 mDownTime = downTime;
125 long downTime = mDownTime;
126 if (downTime <= 0) {
127 downTime = eventTime;
129 keyEvent = new KeyEvent(downTime, eventTime, mAction, mKeyCode,
MonkeySourceScript.java 284 long downTime = Long.parseLong(args[0]);
293 MonkeyKeyEvent e = new MonkeyKeyEvent(downTime, eventTime, action, code, repeat,
308 long downTime = Long.parseLong(args[0]);
328 e.setDownTime(downTime)
345 long downTime = Long.parseLong(args[0]);
377 e.setDownTime(downTime)
388 e.setDownTime(downTime)
447 long downTime = SystemClock.uptimeMillis();
449 .setDownTime(downTime)
450 .setEventTime(downTime)
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
NonDistinctMultitouchHelper.java 51 final long downTime = me.getDownTime();
60 injectMotionEvent(action, me.getX(index), me.getY(index), downTime, eventTime,
74 injectMotionEvent(MotionEvent.ACTION_UP, x, y, downTime, eventTime,
89 injectMotionEvent(MotionEvent.ACTION_DOWN, x, y, downTime, eventTime,
93 injectMotionEvent(MotionEvent.ACTION_UP, x, y, downTime, eventTime,
105 final long downTime, final long eventTime, final PointerTracker tracker,
108 downTime, eventTime, action, x, y, 0 /* metaState */);
GestureTrailDrawingPoints.java 72 public void addStroke(final GestureStrokeDrawingPoints stroke, final long downTime) {
74 addStrokeLocked(stroke, downTime);
78 private void addStrokeLocked(final GestureStrokeDrawingPoints stroke, final long downTime) {
99 final int elapsedTime = (int)(downTime - mCurrentTimeBase);
107 mCurrentTimeBase = downTime - eventTimes[downIndex];
  /frameworks/base/services/core/java/com/android/server/notification/
DowntimeConditionProvider.java 50 /** Built-in zen condition provider for managing downtime */
116 mLookaheadThreshold = PropConfig.getInt(mContext, "downtime.condition.lookahead",
148 final DowntimeInfo downtime = ZenModeConfig.tryParseDowntimeConditionId(conditionId); local
149 if (downtime == null) return;
152 notifyCondition(downtime);
164 private void notifyCondition(DowntimeInfo downtime) {
167 notifyCondition(createCondition(downtime, Condition.STATE_UNKNOWN));
170 if (!downtime.equals(mConfig.toDowntimeInfo())) {
171 // not the configured downtime, consider it false
172 notifyCondition(createCondition(downtime, Condition.STATE_FALSE))
207 final DowntimeInfo downtime = ZenModeConfig.tryParseDowntimeConditionId(conditionId); local
    [all...]
  /frameworks/native/services/inputflinger/
InputListener.cpp 48 int32_t metaState, nsecs_t downTime) :
51 metaState(metaState), downTime(downTime) {
59 metaState(other.metaState), downTime(other.downTime) {
74 float xPrecision, float yPrecision, nsecs_t downTime) :
78 xPrecision(xPrecision), yPrecision(yPrecision), downTime(downTime) {
92 xPrecision(other.xPrecision), yPrecision(other.yPrecision), downTime(other.downTime) {
    [all...]
InputListener.h 64 nsecs_t downTime;
70 int32_t metaState, nsecs_t downTime);
97 nsecs_t downTime;
105 float xPrecision, float yPrecision, nsecs_t downTime);
  /cts/tests/tests/widget/src/android/widget/cts/
SeekBarTest.java 65 long downTime = SystemClock.uptimeMillis();
69 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN,
78 downTime = SystemClock.uptimeMillis();
80 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE,
87 downTime = SystemClock.uptimeMillis();
89 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP,
  /external/droiddriver/src/com/google/android/droiddriver/actions/
ClickAction.java 58 long downTime = Events.touchDown(injector, elementRect.centerX(), elementRect.centerY());
61 Events.touchUp(injector, downTime, elementRect.centerX(), elementRect.centerY());
74 long downTime = Events.touchDown(injector, elementRect.centerX(), elementRect.centerY());
78 Events.touchUp(injector, downTime, elementRect.centerX(), elementRect.centerY());
SingleKeyAction.java 61 final long downTime = SystemClock.uptimeMillis();
62 KeyEvent downEvent = Events.newKeyEvent(downTime, KeyEvent.ACTION_DOWN, keyCode);
63 KeyEvent upEvent = Events.newKeyEvent(downTime, KeyEvent.ACTION_UP, keyCode);
SwipeAction.java 193 long downTime = Events.touchDown(injector, startX, startY);
199 Events.touchMove(injector, downTime, startX + (int) (xStep * i), startY + (int) (yStep * i));
206 Events.touchUp(injector, downTime, endX, endY);
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowMotionEvent.java 24 private long downTime;
30 public static MotionEvent obtain(long downTime, long eventTime, int action, float x, float y, int metaState) {
39 shadowMotionEvent.downTime = downTime;
99 return downTime;
  /frameworks/base/core/java/android/service/notification/
ZenModeConfig.java 469 final DowntimeInfo downtime = new DowntimeInfo(); local
470 downtime.startHour = sleepStartHour;
471 downtime.startMinute = sleepStartMinute;
472 downtime.endHour = sleepEndHour;
473 downtime.endMinute = sleepEndMinute;
474 downtime.mode = sleepMode;
475 downtime.none = sleepNone;
476 return downtime;
541 // Built-in downtime conditions
542 // e.g. condition://android/downtime?start=10.00&end=7.00&mode=days%3A5%2C6&none=fals
    [all...]
  /frameworks/native/libs/input/tests/
InputPublisherAndConsumer_test.cpp 82 const nsecs_t downTime = 3;
86 keyCode, scanCode, metaState, repeatCount, downTime, eventTime);
111 EXPECT_EQ(downTime, keyEvent->getDownTime());
144 const nsecs_t downTime = 3;
168 downTime, eventTime, pointerCount,
195 EXPECT_EQ(downTime, motionEvent->getDownTime());
StructLayout_test.cpp 47 CHECK_OFFSET(InputMessage::Body::Key, downTime, 48);
58 CHECK_OFFSET(InputMessage::Body::Motion, downTime, 48);
  /cts/tests/tests/text/src/android/text/method/cts/
TouchTest.java 135 long downTime = SystemClock.uptimeMillis();
137 final MotionEvent event1 = MotionEvent.obtain(downTime, eventTime,
139 final MotionEvent event2 = MotionEvent.obtain(downTime, eventTime,
141 final MotionEvent event3 = MotionEvent.obtain(downTime, eventTime,
  /frameworks/base/test-runner/src/android/test/
TouchUtils.java 252 long downTime = SystemClock.uptimeMillis();
255 MotionEvent event = MotionEvent.obtain(downTime, eventTime,
262 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE,
268 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0);
292 long downTime = SystemClock.uptimeMillis();
295 MotionEvent event = MotionEvent.obtain(downTime, eventTime,
302 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_CANCEL,
327 long downTime = SystemClock.uptimeMillis();
330 MotionEvent event = MotionEvent.obtain(downTime, eventTime,
338 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/util/
MotionEventHelper.java 48 long downTime = e.getDownTime();
76 MotionEvent n = MotionEvent.obtain(downTime, eventTime, action,
  /packages/apps/Settings/res/xml/
zen_mode_settings.xml 68 <!-- Downtime -->
70 android:key="downtime"
  /external/chromium_org/net/url_request/
url_request_throttler_simulation_unittest.cc 11 // c) That the approximate increase in "perceived downtime" introduced by
168 // downtime, it might be interesting to count separately the
286 TimeTicks start_downtime_; // Can be 0 to say "no downtime".
595 // Returns the downtime perceived by the client, as a ratio of the
596 // actual downtime.
631 // Expected interval that we expect the ratio of downtime when anti-DDoS
632 // is enabled and downtime when anti-DDoS is not enabled to fall within.
637 // retries very rapidly on a very long downtime will tend to increase the
665 " Perceived downtime with throttling is %.4f times without.\n",
683 VerboseOut("Trial with %.2f min downtime, avg. interval %.2f min.\n"
    [all...]
  /frameworks/native/libs/input/
InputTransport.cpp 249 nsecs_t downTime,
254 "downTime=%lld, eventTime=%lld",
257 downTime, eventTime);
276 msg.body.key.downTime = downTime;
294 nsecs_t downTime,
303 "xPrecision=%f, yPrecision=%f, downTime=%lld, eventTime=%lld, "
307 xOffset, yOffset, xPrecision, yPrecision, downTime, eventTime, pointerCount);
335 msg.body.motion.downTime = downTime;
    [all...]

Completed in 974 milliseconds

1 2 3