Home
last modified time | relevance | path

Searched refs:keyEvent (Results 1 – 4 of 4) sorted by relevance

/development/tools/winscope/src/parsers/input/perfetto/
Dparser_key_event_test.ts62 const keyEvent = assertDefined(entry.getChildByName('keyEvent')); constant
64 expect(keyEvent?.getChildByName('eventId')?.getValue()).toEqual(263024268);
65 expect(keyEvent?.getChildByName('action')?.formattedValue()).toEqual(
68 expect(keyEvent?.getChildByName('source')?.formattedValue()).toEqual(
71 expect(keyEvent?.getChildByName('flags')?.formattedValue()).toEqual(
74 expect(keyEvent?.getChildByName('deviceId')?.getValue()).toEqual(2);
75 expect(keyEvent?.getChildByName('displayId')?.getValue()).toEqual(-1);
76 expect(keyEvent?.getChildByName('metaState')?.formattedValue()).toEqual(
79 expect(keyEvent?.getChildByName('keyCode')?.getValue()).toEqual(24);
80 expect(keyEvent?.getChildByName('scanCode')?.getValue()).toEqual(115);
Dparser_key_event.ts59 const keyEvent = await this.getKeyEventProto(index); constant
61 keyEvent,
62 windowDispatchEvents: await this.getDispatchEvents(keyEvent.eventId),
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyKeyEvent.java120 KeyEvent keyEvent = mKeyEvent; in injectEvent() local
121 if (keyEvent == null) { in injectEvent()
130 keyEvent = new KeyEvent(downTime, eventTime, mAction, mKeyCode, in injectEvent()
134 if (!InputManagerGlobal.getInstance().injectInputEvent(keyEvent, in injectEvent()
/development/samples/VirtualDeviceManager/host/src/com/example/android/vdmdemo/host/
DRemoteDisplay.java446 RemoteKeyEvent keyEvent = event.getKeyEvent();
449 .setKeyCode(keyEvent.getKeyCode())
450 .setAction(keyEvent.getAction())
454 private static VirtualKeyEvent keyEventToVirtualKeyEvent(KeyEvent keyEvent) {
456 .setEventTimeNanos((long) (keyEvent.getEventTime() * 1e6))
457 .setKeyCode(keyEvent.getKeyCode())
458 .setAction(keyEvent.getAction())