/frameworks/native/libs/input/ |
D | Keyboard.cpp | 189 static int32_t setEphemeralMetaState(int32_t mask, bool down, int32_t oldMetaState) { in setEphemeralMetaState() argument 191 if (down) { in setEphemeralMetaState() 221 static int32_t toggleLockedMetaState(int32_t mask, bool down, int32_t oldMetaState) { in toggleLockedMetaState() argument 222 if (down) { in toggleLockedMetaState() 229 int32_t updateMetaState(int32_t keyCode, bool down, int32_t oldMetaState) { in updateMetaState() argument 232 return setEphemeralMetaState(AMETA_ALT_LEFT_ON, down, oldMetaState); in updateMetaState() 234 return setEphemeralMetaState(AMETA_ALT_RIGHT_ON, down, oldMetaState); in updateMetaState() 236 return setEphemeralMetaState(AMETA_SHIFT_LEFT_ON, down, oldMetaState); in updateMetaState() 238 return setEphemeralMetaState(AMETA_SHIFT_RIGHT_ON, down, oldMetaState); in updateMetaState() 240 return setEphemeralMetaState(AMETA_SYM_ON, down, oldMetaState); in updateMetaState() [all …]
|
D | KeyCharacterMap.cpp | 497 int32_t metaState, bool down, nsecs_t time) { in addKey() argument 502 down ? AKEY_EVENT_ACTION_DOWN : AKEY_EVENT_ACTION_UP, 0, keyCode, 0, metaState, in addKey() 507 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, in addMetaKeys() argument 510 if (down) { in addMetaKeys() 572 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, in addSingleEphemeralMetaKey() argument 576 *currentMetaState = updateMetaState(keyCode, down, *currentMetaState); in addSingleEphemeralMetaKey() 577 addKey(outEvents, deviceId, keyCode, *currentMetaState, down, time); in addSingleEphemeralMetaKey() 584 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, in addDoubleEphemeralMetaKey() argument 590 specific |= addSingleEphemeralMetaKey(outEvents, deviceId, metaState, down, time, in addDoubleEphemeralMetaKey() 592 specific |= addSingleEphemeralMetaKey(outEvents, deviceId, metaState, down, time, in addDoubleEphemeralMetaKey() [all …]
|
/frameworks/base/tests/Input/src/com/android/test/input/ |
D | InputEventAssignerTest.kt | 75 val down = createMotionEvent(MotionEvent.ACTION_DOWN, 10, SOURCE_TOUCHSCREEN) in testTouchDownWithMove() constant 80 var eventId = assigner.processEvent(down) in testTouchDownWithMove() 81 assertEquals(down.id, eventId) in testTouchDownWithMove() 83 assertEquals(down.id, eventId) in testTouchDownWithMove() 87 assertEquals(down.id, eventId) in testTouchDownWithMove() 104 val down = createMotionEvent(MotionEvent.ACTION_DOWN, 10, SOURCE_MOUSE) in testMouseDownWithMove() constant 106 var eventId = assigner.processEvent(down) in testMouseDownWithMove() 107 assertEquals(down.id, eventId) in testMouseDownWithMove() 118 val down = createKeyEvent(KeyEvent.ACTION_DOWN, 20) in testKeyEvent() constant 119 var eventId = assigner.processEvent(down) in testKeyEvent() [all …]
|
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/extensions/ |
D | PointerInputScopeExt.kt | 43 val down = awaitFirstDown(pass = pass) in observeTaps() constant 44 if (shouldConsume) down.consume() in observeTaps() 62 val down = awaitFirstDown(pass = pass) in detectLongPressGesture() constant 69 onLongPress.invoke(down.position) in detectLongPressGesture()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/ |
D | FalsingCollectorImplTest.java | 272 MotionEvent down = MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 0, 0, 0); in testPassThroughGesture() local 276 mFalsingCollector.onTouchEvent(down); in testPassThroughGesture() 290 MotionEvent down = MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 0, 0, 0); in testAvoidGesture() local 294 mFalsingCollector.onTouchEvent(down); in testAvoidGesture() 320 MotionEvent down = MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 0, 0, 0); in testAvoidUnlocked_sceneContainerDisabled() local 326 mFalsingCollector.onTouchEvent(down); in testAvoidUnlocked_sceneContainerDisabled() 337 MotionEvent down = MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 0, 0, 0); in testAvoidUnlocked_sceneContainerEnabled() local 343 mFalsingCollector.onTouchEvent(down); in testAvoidUnlocked_sceneContainerEnabled() 356 MotionEvent down = MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 0, 0, 0); in testGestureWhenDozing() local 362 mFalsingCollector.onTouchEvent(down); in testGestureWhenDozing() [all …]
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | UinputBridge.java | 37 private static native void nativeSendKey(long ptr, int keyCode, boolean down); in nativeSendKey() argument 50 private static native void nativeSendGamepadKey(long ptr, int keyCode, boolean down); in nativeSendGamepadKey() argument 172 public void sendGamepadKey(IBinder token, int keyCode, boolean down) { in sendGamepadKey() argument 174 nativeSendGamepadKey(mPtr, keyCode, down); in sendGamepadKey()
|
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
D | DragAction.java | 72 .down; 138 .down; 173 .down; 190 uiController, coordinates, precision).down; 225 .down; 370 .down; in performLongPress() 384 .down; in performDoubleTap() 397 return MotionEvents.sendDown(uiController, coordinates, precision).down; in performDoubleTap()
|
D | MouseClickAction.java | 90 if (!MotionEvents.sendUp(uiController, res.down)) { in sendSingleTap() 91 MotionEvents.sendCancel(uiController, res.down); in sendSingleTap() 95 res.down.recycle(); in sendSingleTap()
|
/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/ |
D | SwipeToSceneTest.kt | 142 down(middle) in <lambda>() 176 down(middle) in <lambda>() 286 repeat(2) { i -> down(pointerId = i, middle) } in <lambda>() 323 down(middleTop) in <lambda>() 341 down(middleLeft) in <lambda>() 397 down(middleTop) in <lambda>() 418 down(middle) in <lambda>() 434 down(middle) in <lambda>() 450 down(middle) in <lambda>() 471 down(middle) in <lambda>() [all …]
|
D | DraggableHandlerTest.kt | 122 fun down(fractionOfScreen: Float) = in down() method 126 if (fractionOfScreen < 0f) error("use down()") else -down(fractionOfScreen) in down() 132 Offset(x = 0f, y = down(fractionOfScreen)) 261 onDragStarted(overSlop = down(fractionOfScreen = 0.1f)) in <lambda>() 267 val dragController = onDragStarted(overSlop = down(fractionOfScreen = 0.1f)) in <lambda>() 271 dragController.onDragDelta(pixels = down(fractionOfScreen = 0.1f)) in <lambda>() 277 val dragController = onDragStarted(overSlop = down(fractionOfScreen = 0.1f)) in <lambda>() 290 val dragController = onDragStarted(overSlop = down(fractionOfScreen = 0.1f)) in <lambda>() 303 val dragController = onDragStarted(overSlop = down(fractionOfScreen = 0.1f)) in <lambda>() 345 onDragStarted(horizontalDraggableHandler, overSlop = down(fractionOfScreen = 0.3f)) in <lambda>() [all …]
|
D | MultiPointerDraggableTest.kt | 89 down(middle) in <lambda>() 177 down(middle) in <lambda>() 297 down(middle) in <lambda>() 407 down(middle) in <lambda>() 414 down(middle) in <lambda>() 506 down(middle) in <lambda>()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputTracingTest.cpp | 138 const auto down = MotionArgsBuilder(ACTION_DOWN, AINPUT_SOURCE_TOUCHSCREEN) in tapAndExpect() local 141 mDispatcher->notifyMotion(down); in tapAndExpect() 142 s.expectMotionTraced(inboundTraceLevel, toMotionEvent(down)); in tapAndExpect() 162 const auto down = KeyArgsBuilder(ACTION_DOWN, AINPUT_SOURCE_KEYBOARD).build(); in keypressAndExpect() local 163 mDispatcher->notifyKey(down); in keypressAndExpect() 164 s.expectKeyTraced(inboundTraceLevel, toKeyEvent(down)); in keypressAndExpect() 596 const auto down = MotionArgsBuilder(ACTION_DOWN, AINPUT_SOURCE_TOUCHSCREEN) in TEST_F() local 599 s.expectMotionTraced(Level::REDACTED, toMotionEvent(down)); in TEST_F() 600 mDispatcher->notifyMotion(down); in TEST_F() 632 const auto down = MotionArgsBuilder(ACTION_DOWN, AINPUT_SOURCE_TOUCHSCREEN) in TEST_F() local [all …]
|
/frameworks/native/include/input/ |
D | KeyCharacterMap.h | 245 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time); 247 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, 250 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, 254 int32_t deviceId, int32_t metaState, bool down, nsecs_t time,
|
D | Keyboard.h | 75 extern int32_t updateMetaState(int32_t keyCode, bool down, int32_t oldMetaState);
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | KeyboardInputMapper.cpp | 256 std::list<NotifyArgs> KeyboardInputMapper::processKey(nsecs_t when, nsecs_t readTime, bool down, in processKey() argument 273 if (down) { in processKey() 321 if (updateMetaStateIfNeeded(keyCode, down)) { in processKey() 333 if (down && !keyDownIndex) { in processKey() 345 if (down && getDeviceContext().isExternal() && !mParameters.doNotWakeByDefault && in processKey() 356 down ? AKEY_EVENT_ACTION_DOWN : AKEY_EVENT_ACTION_UP, flags, in processKey() 402 bool KeyboardInputMapper::updateMetaStateIfNeeded(int32_t keyCode, bool down) { in updateMetaStateIfNeeded() argument 404 int32_t newMetaState = android::updateMetaState(keyCode, down, oldMetaState); in updateMetaStateIfNeeded()
|
D | KeyboardInputMapper.h | 94 [[nodiscard]] std::list<NotifyArgs> processKey(nsecs_t when, nsecs_t readTime, bool down, 97 bool updateMetaStateIfNeeded(int32_t keyCode, bool down);
|
D | CursorInputMapper.cpp | 247 bool down = isPointerDown(currentButtonState); in sync() local 249 if (!wasDown && down) { in sync() 252 } else if (wasDown && !down) { in sync() 304 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, down ? 1.0f : 0.0f); in sync() 326 motionEventAction = down ? AMOTION_EVENT_ACTION_DOWN : AMOTION_EVENT_ACTION_UP; in sync() 327 } else if (down || (mSource != AINPUT_SOURCE_MOUSE)) { in sync()
|
/frameworks/native/services/inputflinger/reader/mapper/accumulator/ |
D | TouchButtonAccumulator.cpp | 114 void TouchButtonAccumulator::processMappedKey(int32_t scanCode, bool down) { in processMappedKey() argument 123 mBtnStylus = down; in processMappedKey() 126 mBtnStylus2 = down; in processMappedKey()
|
D | TouchButtonAccumulator.h | 76 void processMappedKey(int32_t scanCode, bool down);
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListScrollListenerTest.java | 83 KeyEvent down = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, in testKeyScrolling() local 87 inst.sendKeySync(down); in testKeyScrolling()
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/ |
D | GridScrollListenerTest.java | 85 KeyEvent down = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, in testKeyScrolling() local 89 inst.sendKeySync(down); in testKeyScrolling()
|
/frameworks/base/data/keyboards/ |
D | Vendor_28de_Product_1102.kl | 56 # Touching the dpad (light touch without pressing down) 58 # Touching the "right stick" / mousepad (light touch without pressing down)
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | DayOfMonthCursorTest.java | 151 assertFalse(mc.down()); in testMoveDown() 157 assertTrue(mc.down()); in testMoveDown()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | InputShellCommand.java | 513 final long down = SystemClock.uptimeMillis(); in sendSwipe() local 514 injectMotionEvent(inputSource, MotionEvent.ACTION_DOWN, down, down, x1, y1, 1.0f, in sendSwipe() 521 final long endTime = down + duration; in sendSwipe() 523 final long elapsedTime = now - down; in sendSwipe() 525 injectMotionEvent(inputSource, MotionEvent.ACTION_MOVE, down, now, in sendSwipe() 529 injectMotionEvent(inputSource, MotionEvent.ACTION_UP, down, now, x2, y2, 0.0f, in sendSwipe()
|
/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/ |
D | README.md | 10 - Turn volume up or down 11 - Turn brightness up or down
|