/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
H A D | KeyguardClockAccessibilityDelegateTest.java | 56 AccessibilityEvent ev = AccessibilityEvent.obtain(); 57 mView.onInitializeAccessibilityEvent(ev); 59 assertFalse(TextUtils.isEmpty(ev.getContentDescription())); 60 assertTrue(isAscii(ev.getContentDescription())); 65 AccessibilityEvent ev = AccessibilityEvent.obtain(); 66 mView.onPopulateAccessibilityEvent(ev); 68 assertFalse(isEmpty(ev.getText())); 69 assertTrue(isAscii(ev.getText()));
|
/frameworks/base/core/java/android/view/ |
H A D | GestureDetector.java | 486 * @param ev The current motion event. 490 public boolean onTouchEvent(MotionEvent ev) { argument 492 mInputEventConsistencyVerifier.onTouchEvent(ev, 0); 495 final int action = ev.getAction(); 500 mVelocityTracker.addMovement(ev); 504 final int skipIndex = pointerUp ? ev.getActionIndex() : -1; 506 (ev.getFlags() & MotionEvent.FLAG_IS_GENERATED_GESTURE) != 0; 510 final int count = ev.getPointerCount(); 513 sumX += ev.getX(i); 514 sumY += ev 696 onGenericMotionEvent(MotionEvent ev) argument [all...] |
H A D | DragEvent.java | 294 final DragEvent ev; 297 ev = new DragEvent(); 298 ev.init(action, x, y, description, data, dragAndDropPermissions, localState, 300 return ev; 302 ev = gRecyclerTop; 303 gRecyclerTop = ev.mNext; 306 ev.mRecycledLocation = null; 307 ev.mRecycled = false; 308 ev.mNext = null; 310 ev [all...] |
H A D | KeyEvent.java | 1539 final KeyEvent ev; 1541 ev = gRecyclerTop; 1542 if (ev == null) { 1545 gRecyclerTop = ev.mNext; 1548 ev.mNext = null; 1549 ev.prepareForReuse(); 1550 return ev; 1561 KeyEvent ev = obtain(); 1562 ev.mDownTime = downTime; 1563 ev [all...] |
/frameworks/base/core/java/android/net/metrics/ |
H A D | WakeupStats.java | 62 public void countEvent(WakeupEvent ev) { argument 64 switch (ev.uid) { 75 if (ev.uid >= Process.FIRST_APPLICATION_UID) { 83 switch (ev.dstHwAddr.getAddressType()) { 97 increment(ethertypes, ev.ethertype); 98 if (ev.ipNextHeader >= 0) { 99 increment(ipNextHeaders, ev.ipNextHeader);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | TaskStackViewTouchHandler.java | 168 public boolean onInterceptTouchEvent(MotionEvent ev) { argument 170 mInterceptedBySwipeHelper = isSwipingEnabled() && mSwipeHelper.onInterceptTouchEvent(ev); 175 return handleTouchEvent(ev); 179 public boolean onTouchEvent(MotionEvent ev) { argument 181 if (mInterceptedBySwipeHelper && mSwipeHelper.onTouchEvent(ev)) { 185 handleTouchEvent(ev); 216 private boolean handleTouchEvent(MotionEvent ev) { argument 223 int action = ev.getAction(); 234 mDownX = (int) ev.getX(); 235 mDownY = (int) ev 414 onGenericMotionEvent(MotionEvent ev) argument 438 getChildAtPosition(MotionEvent ev) argument [all...] |
/frameworks/support/compat/src/main/java/androidx/core/view/ |
H A D | GestureDetectorCompat.java | 51 boolean onTouchEvent(MotionEvent ev); argument 222 * @param ev The current motion event. 227 public boolean onTouchEvent(MotionEvent ev) { argument 228 final int action = ev.getAction(); 233 mVelocityTracker.addMovement(ev); 237 final int skipIndex = pointerUp ? ev.getActionIndex() : -1; 241 final int count = ev.getPointerCount(); 244 sumX += ev.getX(i); 245 sumY += ev.getY(i); 268 final int upIndex = ev 479 onTouchEvent(MotionEvent ev) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | SwipeHelper.java | 130 private float getPos(MotionEvent ev) { argument 131 return mSwipeDirection == X ? ev.getX() : ev.getY(); 134 private float getPerpendicularPos(MotionEvent ev) { argument 135 return mSwipeDirection == X ? ev.getY() : ev.getX(); 264 public boolean onInterceptTouchEvent(final MotionEvent ev) { argument 267 mMenuRowIntercepting = nmr.onInterceptTouchEvent(mCurrView, ev); 269 final int action = ev.getAction(); 278 mCurrView = mCallback.getChildAtPosition(ev); 510 onDownUpdate(View currView, MotionEvent ev) argument 517 onMoveUpdate(View view, MotionEvent ev, float totalTranslation, float delta) argument 565 onTouchEvent(MotionEvent ev) argument 667 isDismissGesture(MotionEvent ev) argument 673 isFalseGesture(MotionEvent ev) argument 691 handleUpEvent(MotionEvent ev, View animView, float velocity, float translation) argument 697 getChildAtPosition(MotionEvent ev) argument [all...] |
H A D | ExpandHelper.java | 261 public boolean onInterceptTouchEvent(MotionEvent ev) { argument 265 trackVelocity(ev); 266 final int action = ev.getAction(); 273 mSGD.onTouchEvent(ev); 284 mLastMotionY = ev.getRawY(); 285 maybeRecycleVelocityTracker(ev); 303 final float yDiff = ev.getRawY() - mInitialTouchY; 304 final float xDiff = ev.getRawX() - mInitialTouchX; 310 mLastMotionY = ev.getRawY(); 311 mInitialTouchY = ev 400 onTouchEvent(MotionEvent ev) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/analytics/ |
H A D | SensorLoggerSession.java | 124 private SensorEvent sensorEventToProto(android.hardware.SensorEvent ev, long sysTimeNanos) { argument 126 proto.setType(ev.sensor.getType()); 128 proto.setTimestamp(ev.timestamp); 129 proto.values = ev.values.clone(); 133 private TouchEvent motionEventToProto(MotionEvent ev) { argument 134 int count = ev.getPointerCount(); 136 proto.setTimeOffsetNanos(ev.getEventTimeNano() - mStartSystemTimeNanos); 137 proto.setAction(ev.getActionMasked()); 138 proto.setActionIndex(ev.getActionIndex()); 142 p.setX(ev [all...] |
/frameworks/base/services/core/java/com/android/server/trust/ |
H A D | TrustArchive.java | 119 Event ev = iter.next(); 120 if (userId != UserHandle.USER_ALL && userId != ev.userId 121 && ev.userId != UserHandle.USER_ALL) { 126 writer.printf("#%-2d %s %s: ", count, formatElapsed(ev.elapsedTimestamp), 127 dumpType(ev.type)); 129 writer.print("user="); writer.print(ev.userId); writer.print(", "); 131 if (ev.agent != null) { 134 writer.print(ev.agent.flattenToShortString()); 136 writer.print(getSimpleName(ev.agent)); 139 switch (ev [all...] |
/frameworks/av/packages/MediaComponents/src/com/android/widget/ |
H A D | ViewGroupImpl.java | 49 public boolean onTouchEvent_impl(MotionEvent ev) { argument 50 return mSuperProvider.onTouchEvent_impl(ev); 54 public boolean onTrackballEvent_impl(MotionEvent ev) { argument 55 return mSuperProvider.onTrackballEvent_impl(ev); 99 public boolean dispatchTouchEvent_impl(MotionEvent ev) { argument 100 return mSuperProvider.dispatchTouchEvent_impl(ev);
|
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/view/ |
H A D | StickyHeaderRecyclerView.java | 135 public boolean dispatchTouchEvent(MotionEvent ev) { argument 136 if (mStickyRect.contains(ev.getX(), ev.getY())) { 137 ev.offsetLocation(-mStickyRect.left, -mStickyRect.top); 138 return getHeader().dispatchTouchEvent(ev); 140 return super.dispatchTouchEvent(ev);
|
/frameworks/native/libs/vr/libbufferhubqueue/include/private/dvr/ |
H A D | epoll_file_descriptor.h | 39 int Control(int op, int target_fd, epoll_event* ev) { argument 40 if (epoll_ctl(fd_.get(), op, target_fd, ev) < 0)
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
H A D | StatusBarWindowViewTest.java | 64 MotionEvent ev = MotionEvent.obtain(now, now, MotionEvent.ACTION_UP, 0 /* x */, 0 /* y */, 66 mView.onTouchEvent(ev); 67 verify(mDragDownHelper).onTouchEvent(ev); 68 ev.recycle();
|
/frameworks/support/car/src/main/java/androidx/car/moderator/ |
H A D | SpeedBumpView.java | 82 public boolean dispatchTouchEvent(MotionEvent ev) { argument 83 return mSpeedBumpController.onTouchEvent(ev) && super.dispatchTouchEvent(ev);
|
/frameworks/support/customview/src/main/java/androidx/customview/widget/ |
H A D | ViewDragHelper.java | 855 private void saveLastMotion(MotionEvent ev) { argument 856 final int pointerCount = ev.getPointerCount(); 858 final int pointerId = ev.getPointerId(i); 863 final float x = ev.getX(i); 864 final float y = ev.getY(i); 959 * @param ev MotionEvent provided to onInterceptTouchEvent 962 public boolean shouldInterceptTouchEvent(@NonNull MotionEvent ev) { argument 963 final int action = ev.getActionMasked(); 964 final int actionIndex = ev.getActionIndex(); 975 mVelocityTracker.addMovement(ev); 1096 processTouchEvent(@onNull MotionEvent ev) argument [all...] |
/frameworks/base/services/core/java/com/android/server/connectivity/ |
H A D | IpConnectivityEventBuilder.java | 84 public static IpConnectivityEvent toProto(ConnectivityMetricsEvent ev) { argument 85 final IpConnectivityEvent out = buildEvent(ev.netId, ev.transports, ev.ifname); 86 out.timeMs = ev.timestamp; 87 if (!setEvent(out, ev.data)) { 141 IpConnectivityLogClass.DefaultNetworkEvent ev = 143 ev.finalScore = in.finalScore; 144 ev.initialScore = in.initialScore; 145 ev 344 inferLinkLayer(IpConnectivityEvent ev) argument [all...] |
/frameworks/support/frameworks/support/samples/SupportMediaDemos/src/main/java/com/example/androidx/media/ |
H A D | VideoViewTest.java | 140 public boolean onTouchEvent(MotionEvent ev) { argument 141 if (ev.getAction() == MotionEvent.ACTION_DOWN) { 143 if (ev.getRawX() < (screenWidth / 2.0f)) { 153 return super.onTouchEvent(ev); 244 public boolean onTouchEvent(MotionEvent ev) { argument 245 switch (ev.getAction()) { 247 mDX = ev.getRawX() - getX(); 248 mDY = ev.getRawY() - getY(); 249 super.onTouchEvent(ev); 253 .x(ev [all...] |
/frameworks/support/samples/SupportMediaDemos/src/main/java/com/example/androidx/media/ |
H A D | VideoViewTest.java | 140 public boolean onTouchEvent(MotionEvent ev) { argument 141 if (ev.getAction() == MotionEvent.ACTION_DOWN) { 143 if (ev.getRawX() < (screenWidth / 2.0f)) { 153 return super.onTouchEvent(ev); 244 public boolean onTouchEvent(MotionEvent ev) { argument 245 switch (ev.getAction()) { 247 mDX = ev.getRawX() - getX(); 248 mDY = ev.getRawY() - getY(); 249 super.onTouchEvent(ev); 253 .x(ev [all...] |
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
H A D | StickyHeaderListView.java | 101 public boolean dispatchTouchEvent(MotionEvent ev) { argument 102 if (mStickyRect.contains(ev.getX(), ev.getY())) { 103 ev.offsetLocation(-mStickyRect.left, -mStickyRect.top); 104 return mStickyContainer.dispatchTouchEvent(ev); 106 return super.dispatchTouchEvent(ev);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
H A D | ClipboardView.java | 53 public boolean onTouchEvent(MotionEvent ev) { argument 54 if (ev.getActionMasked() == MotionEvent.ACTION_DOWN && mCurrentClip != null) { 57 return super.onTouchEvent(ev);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
H A D | AnimationFilter.java | 125 NotificationStackScrollLayout.AnimationEvent ev = events.get(i); 127 if (ev.animationType == 131 if (ev.animationType == NotificationStackScrollLayout.AnimationEvent 134 } else if (ev.animationType == NotificationStackScrollLayout.AnimationEvent
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ResolverDrawerLayout.java | 261 public boolean onInterceptTouchEvent(MotionEvent ev) { argument 262 final int action = ev.getActionMasked(); 268 mVelocityTracker.addMovement(ev); 272 final float x = ev.getX(); 273 final float y = ev.getY(); 281 final float x = ev.getX(); 282 final float y = ev.getY(); 286 mActivePointerId = ev.getPointerId(0); 295 onSecondaryPointerUp(ev); 313 public boolean onTouchEvent(MotionEvent ev) { argument 430 onSecondaryPointerUp(MotionEvent ev) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | GestureRecorder.java | 98 public void add(MotionEvent ev) { argument 99 mRecords.add(new MotionEventRecord(ev.getEventTime(), ev)); 101 mDownTime = ev.getDownTime(); 103 if (mDownTime != ev.getDownTime()) { 105 +ev.getDownTime()+") does not match gesture downTime ("+mDownTime+")"); 108 switch (ev.getActionMasked()) { 160 public void add(MotionEvent ev) { argument 166 mCurrentGesture.add(ev);
|