Home
last modified time | relevance | path

Searched refs:PointerState (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/tests/MultiDeviceInput/src/test/multideviceinput/
DMainActivity.kt28 enum class PointerState { class
37 var state: PointerState
42 private val leftState = SharedScaledPointerSize(5f, 20f, PointerState.NONE)
43 private val rightState = SharedScaledPointerSize(5f, 20f, PointerState.NONE)
DDrawingView.kt104 PointerState.DOWN -> { in onScale()
107 PointerState.HOVER -> { in onScale()
166 myState?.state = PointerState.DOWN in processTouchEvent()
168 myState?.state = PointerState.NONE in processTouchEvent()
184 myState?.state = PointerState.HOVER in processHoverEvent()
186 myState?.state = PointerState.NONE in processHoverEvent()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java65 private static final PointerState EMPTY_POINTER_STATE = new PointerState();
67 public static class PointerState { class in PointerLocationView
96 public PointerState() { in PointerState() method in PointerLocationView.PointerState
149 private final SparseArray<PointerState> mPointers = new SparseArray<PointerState>();
305 final PointerState ps = mPointers.valueAt(p); in onDraw()
419 final PointerState ps = mPointers.get(mActivePointerId, EMPTY_POINTER_STATE); in drawLabels()
612 PointerState ps = mPointers.get(id); in onPointerEvent()
614 ps = new PointerState(); in onPointerEvent()
642 final PointerState ps = mCurDown ? mPointers.get(id) : null; in onPointerEvent()
655 final PointerState ps = mCurDown ? mPointers.get(id) : null; in onPointerEvent()
[all …]