Lines Matching refs:now
183 long now = SystemClock.uptimeMillis();
184 injectKeyEvent(new KeyEvent(now, now, KeyEvent.ACTION_DOWN, keyCode, 0, 0,
187 injectKeyEvent(new KeyEvent(now, now, KeyEvent.ACTION_DOWN, keyCode, 1, 0,
191 injectKeyEvent(new KeyEvent(now, now, KeyEvent.ACTION_UP, keyCode, 0, 0,
196 long now = SystemClock.uptimeMillis();
197 injectMotionEvent(inputSource, MotionEvent.ACTION_DOWN, now, x, y, 1.0f);
198 injectMotionEvent(inputSource, MotionEvent.ACTION_UP, now, x, y, 0.0f);
205 long now = SystemClock.uptimeMillis();
206 injectMotionEvent(inputSource, MotionEvent.ACTION_DOWN, now, x1, y1, 1.0f);
207 long startTime = now;
209 while (now < endTime) {
210 long elapsedTime = now - startTime;
212 injectMotionEvent(inputSource, MotionEvent.ACTION_MOVE, now, lerp(x1, x2, alpha),
214 now = SystemClock.uptimeMillis();
216 injectMotionEvent(inputSource, MotionEvent.ACTION_UP, now, x2, y2, 0.0f);
227 long now = SystemClock.uptimeMillis();
228 injectMotionEvent(inputSource, MotionEvent.ACTION_MOVE, now, dx, dy, 0.0f);