/frameworks/native/libs/input/ |
D | KeyCharacterMap.cpp | 53 int32_t metaState; member 229 char16_t KeyCharacterMap::getCharacter(int32_t keyCode, int32_t metaState) const { in getCharacter() 231 const Behavior* behavior = getKeyBehavior(keyCode, metaState); in getCharacter() 236 ALOGD("getCharacter: keyCode=%d, metaState=0x%08x ~ Result %d.", keyCode, metaState, result); in getCharacter() 241 bool KeyCharacterMap::getFallbackAction(int32_t keyCode, int32_t metaState, in getFallbackAction() argument 244 outFallbackAction->metaState = 0; in getFallbackAction() 247 const Behavior* behavior = getKeyBehavior(keyCode, metaState); in getFallbackAction() 251 outFallbackAction->metaState = metaState & ~behavior->metaState; in getFallbackAction() 258 keyCode, metaState, result ? "true" : "false", in getFallbackAction() 259 outFallbackAction->keyCode, outFallbackAction->metaState); in getFallbackAction() [all …]
|
/frameworks/native/include/input/ |
D | KeyCharacterMap.h | 73 int32_t metaState; member 109 char16_t getCharacter(int32_t keyCode, int32_t metaState) const; 115 bool getFallbackAction(int32_t keyCode, int32_t metaState, 123 size_t numChars, int32_t metaState) const; 145 int32_t metaState) const; 162 int32_t metaState = 0; member 203 inline explicit Property(int32_t property = 0, int32_t metaState = 0) : 204 property(property), metaState(metaState) { } in property() 207 int32_t metaState; member 243 const Behavior* getKeyBehavior(int32_t keyCode, int32_t metaState) const; [all …]
|
/frameworks/base/core/java/android/view/ |
D | KeyEvent.java | 1524 int code, int repeat, int metaState) { in KeyEvent() argument 1525 this(downTime, eventTime, action, code, repeat, metaState, KeyCharacterMap.VIRTUAL_KEYBOARD, in KeyEvent() 1546 int code, int repeat, int metaState, in KeyEvent() argument 1548 this(downTime, eventTime, action, code, repeat, metaState, deviceId, scancode, in KeyEvent() 1570 int code, int repeat, int metaState, in KeyEvent() argument 1572 this(downTime, eventTime, action, code, repeat, metaState, deviceId, scancode, flags, in KeyEvent() 1595 int code, int repeat, int metaState, in KeyEvent() argument 1597 this(downTime, eventTime, action, code, repeat, metaState, deviceId, scancode, flags, in KeyEvent() 1601 private KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState, in KeyEvent() argument 1611 mMetaState = metaState; in KeyEvent() [all …]
|
D | KeyCharacterMap.java | 301 private static native char nativeGetCharacter(long ptr, int keyCode, int metaState); in nativeGetCharacter() argument 302 private static native boolean nativeGetFallbackAction(long ptr, int keyCode, int metaState, in nativeGetFallbackAction() argument 305 private static native char nativeGetMatch(long ptr, int keyCode, char[] chars, int metaState); in nativeGetMatch() argument 391 public int get(int keyCode, int metaState) { in get() argument 392 metaState = KeyEvent.normalizeMetaState(metaState); in get() 393 char ch = nativeGetCharacter(mPtr, keyCode, metaState); in get() 420 public FallbackAction getFallbackAction(int keyCode, int metaState) { in getFallbackAction() argument 422 metaState = KeyEvent.normalizeMetaState(metaState); in getFallbackAction() 423 if (nativeGetFallbackAction(mPtr, keyCode, metaState, action)) { in getFallbackAction() 424 action.metaState = KeyEvent.normalizeMetaState(action.metaState); in getFallbackAction() [all …]
|
D | MotionEvent.java | 1689 int metaState, int buttonState, @Classification int classification, in nativeInitialize() argument 1695 PointerCoords[] pointerCoords, int metaState); in nativeAddBatch() argument 1869 @SuppressLint("ArrayReturn") @NonNull PointerCoords[] pointerCoords, int metaState, in obtain() argument 1874 metaState, buttonState, classification, 0, 0, xPrecision, yPrecision, in obtain() 1917 PointerCoords[] pointerCoords, int metaState, int buttonState, in obtain() argument 1921 metaState, buttonState, xPrecision, yPrecision, deviceId, edgeFlags, source, in obtain() 1955 PointerCoords[] pointerCoords, int metaState, int buttonState, in obtain() argument 1959 metaState, buttonState, xPrecision, yPrecision, deviceId, edgeFlags, source, in obtain() 1995 int metaState, float xPrecision, float yPrecision, int deviceId, in obtain() argument 2005 pointerCoords, metaState, 0, xPrecision, yPrecision, deviceId, in obtain() [all …]
|
D | VerifiedKeyEvent.java | 195 int metaState, argument 205 this.mMetaState = metaState; 361 int metaState = in.readInt(); in VerifiedKeyEvent() local 371 this.mMetaState = metaState; in VerifiedKeyEvent()
|
D | VerifiedMotionEvent.java | 183 int metaState, argument 193 this.mMetaState = metaState; 345 int metaState = in.readInt(); in VerifiedMotionEvent() local 355 this.mMetaState = metaState; in VerifiedMotionEvent()
|
/frameworks/base/services/tests/servicestests/res/raw/ |
D | a11y_three_finger_swipe_down_gesture.log | 2 …96.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, ed… 3 …01.0, toolType[1]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, ed… 4 …01.0, toolType[1]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, ed… 5 …49.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, ed… 6 …49.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, ed… 7 …49.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, ed… 8 …76.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, ed… 9 …11.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, ed… 10 …41.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, ed… 11 …76.0, toolType[2]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, ed… [all …]
|
D | a11y_touch_explore_gesture.log | 2 …28.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, ed… 3 …28.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, ed… 4 …28.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, ed…
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | ModifierShortcutManager.java | 122 private Intent getIntent(KeyCharacterMap kcm, int keyCode, int metaState) { in getIntent() argument 124 final boolean isShiftOn = KeyEvent.metaStateHasModifiers(metaState, KeyEvent.META_SHIFT_ON); in getIntent() 125 if (!isShiftOn && !KeyEvent.metaStateHasNoModifiers(metaState)) { in getIntent() 135 int shortcutChar = kcm.get(keyCode, metaState); in getIntent() 250 private boolean handleShortcutService(int keyCode, int metaState) { in handleShortcutService() argument 252 if ((metaState & KeyEvent.META_CTRL_ON) != 0) { in handleShortcutService() 256 if ((metaState & KeyEvent.META_ALT_ON) != 0) { in handleShortcutService() 260 if ((metaState & KeyEvent.META_SHIFT_ON) != 0) { in handleShortcutService() 264 if ((metaState & KeyEvent.META_META_ON) != 0) { in handleShortcutService() 289 private boolean handleIntentShortcut(KeyCharacterMap kcm, KeyEvent keyEvent, int metaState) { in handleIntentShortcut() argument [all …]
|
/frameworks/base/core/jni/ |
D | android_view_KeyCharacterMap.cpp | 45 jfieldID metaState; member 128 jint keyCode, jint metaState) { in nativeGetCharacter() argument 133 return map->getMap()->getCharacter(keyCode, metaState); in nativeGetCharacter() 137 jint metaState, jobject fallbackActionObj) { in nativeGetFallbackAction() argument 144 bool result = map->getMap()->getFallbackAction(keyCode, metaState, &fallbackAction); in nativeGetFallbackAction() 148 env->SetIntField(fallbackActionObj, gFallbackActionClassInfo.metaState, in nativeGetFallbackAction() 149 fallbackAction.metaState); in nativeGetFallbackAction() 165 jcharArray charsArray, jint metaState) { in nativeGetMatch() argument 177 size_t(numChars), metaState); in nativeGetMatch() 279 gFallbackActionClassInfo.metaState = GetFieldIDOrDie(env, clazz, "metaState", "I"); in register_android_view_KeyCharacterMap()
|
/frameworks/native/services/inputflinger/ |
D | NotifyArgs.cpp | 48 int32_t metaState, nsecs_t downTime) in NotifyKeyArgs() argument 59 metaState(metaState), in NotifyKeyArgs() 68 int32_t flags, int32_t metaState, int32_t buttonState, MotionClassification classification, in NotifyMotionArgs() argument 82 metaState(metaState), in NotifyMotionArgs() 107 actionButton == rhs.actionButton && flags == rhs.flags && metaState == rhs.metaState && in operator ==()
|
/frameworks/native/services/inputflinger/dispatcher/ |
D | Entry.cpp | 40 entry.metaState, in verifiedKeyEventFromKeyEntry() 56 entry.metaState, in verifiedMotionEventFromMotionEntry() 156 int32_t keyCode, int32_t scanCode, int32_t metaState, int32_t repeatCount, in KeyEntry() argument 166 metaState(metaState), in KeyEntry() 185 keyCode, scanCode, metaState, repeatCount, policyFlags); in getDescription() 214 int32_t actionButton, int32_t flags, int32_t metaState, in MotionEntry() argument 227 metaState(metaState), in MotionEntry() 257 MotionEvent::actionToString(action).c_str(), actionButton, flags, metaState, in getDescription()
|
D | Entry.h | 137 int32_t metaState; member 154 int32_t metaState, int32_t repeatCount, nsecs_t downTime); 168 int32_t metaState; member 183 int32_t metaState, int32_t buttonState, MotionClassification classification,
|
/frameworks/base/services/tests/wmtests/src/com/android/server/policy/ |
D | ShortcutKeyTestBase.java | 99 int metaState = 0; in sendKeyCombination() local 103 0 /*repeat*/, metaState, KeyCharacterMap.VIRTUAL_KEYBOARD, 0 /*scancode*/, in sendKeyCombination() 108 metaState |= MODIFIER.getOrDefault(keyCode, 0); in sendKeyCombination() 125 0, metaState, KeyCharacterMap.VIRTUAL_KEYBOARD, 0 /*scancode*/, 0 /*flags*/, in sendKeyCombination() 128 metaState &= ~MODIFIER.getOrDefault(keyCode, 0); in sendKeyCombination()
|
/frameworks/base/core/java/android/text/method/ |
D | MetaKeyKeyListener.java | 182 int metaState = event.getMetaState(); in getMetaState() local 185 metaState |= getMetaState(text); in getMetaState() 187 return metaState; in getMetaState() 233 int metaState = event.getMetaState(); in getMetaState() local 236 metaState |= getMetaState(text); in getMetaState() 241 if ((metaState & META_SELECTING) != 0) { in getMetaState() 247 return getMetaState(metaState, meta); in getMetaState()
|
/frameworks/native/services/inputflinger/include/ |
D | NotifyArgs.h | 70 int32_t metaState; member 78 int32_t flags, int32_t keyCode, int32_t scanCode, int32_t metaState, 99 int32_t metaState; member 127 int32_t actionButton, int32_t flags, int32_t metaState, int32_t buttonState,
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | KeyUtils.java | 92 public static KeyEvent generateKeyEvent(int keycode, int keyEventAction, int metaState) { in generateKeyEvent() argument 95 0 /* repeat */, metaState); in generateKeyEvent()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/ |
D | GestureLogParser.java | 37 final int metaState; in getMotionEventFromLogLine() local 60 metaState = findInt(line, "metaState=(\\d+)"); in getMotionEventFromLogLine() 69 pointerCount, properties, pointerCoords, metaState, buttonState, in getMotionEventFromLogLine()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | VerifiedKeyEventTest.kt | 51 assertEquals(META_STATE, event.metaState) in testConstructor() 163 assertEquals(event1.metaState, event2.metaState) in compareVerifiedKeyEvents()
|
D | VerifiedMotionEventTest.kt | 56 assertEquals(META_STATE, event.metaState) in testConstructor() 187 assertEquals(event1.metaState, event2.metaState) in compareVerifiedMotionEvents()
|
/frameworks/native/services/inputflinger/tests/ |
D | NotifyArgs_test.cpp | 44 int32_t metaState = AMETA_SCROLL_LOCK_ON; in TEST() local 74 action, actionButton, flags, metaState, buttonState, classification, in TEST()
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | InteractionController.java | 184 public boolean sendKeyAndWaitForEvent(final int keyCode, final int metaState, in sendKeyAndWaitForEvent() argument 191 keyCode, 0, metaState, KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, in sendKeyAndWaitForEvent() 195 keyCode, 0, metaState, KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, in sendKeyAndWaitForEvent() 541 public boolean sendKey(int keyCode, int metaState) { 543 Log.d(LOG_TAG, "sendKey (" + keyCode + ", " + metaState + ")"); 548 keyCode, 0, metaState, KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, 552 keyCode, 0, metaState, KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0,
|
/frameworks/native/libs/input/tests/ |
D | StructLayout_test.cpp | 47 CHECK_OFFSET(InputMessage::Body::Key, metaState, 76); in TestInputMessageAlignment() 61 CHECK_OFFSET(InputMessage::Body::Motion, metaState, 72); in TestInputMessageAlignment() 183 sizeof(VerifiedKeyEvent::scanCode) + sizeof(VerifiedKeyEvent::metaState) + in TestVerifiedEventSize() 191 sizeof(VerifiedMotionEvent::flags) + sizeof(VerifiedMotionEvent::metaState) + in TestVerifiedEventSize()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
D | KeyEventHandling.java | 233 int metaState = 0; in javaToAndroidKeyEvent() local 235 metaState |= KeyEvent.META_ALT_ON; in javaToAndroidKeyEvent() 238 metaState |= KeyEvent.META_META_ON; in javaToAndroidKeyEvent() 241 metaState |= KeyEvent.META_CTRL_ON; in javaToAndroidKeyEvent() 244 metaState |= KeyEvent.META_SHIFT_ON; in javaToAndroidKeyEvent() 248 metaState |= KeyEvent.META_CAPS_LOCK_ON; in javaToAndroidKeyEvent() 251 metaState |= KeyEvent.META_NUM_LOCK_ON; in javaToAndroidKeyEvent() 264 metaState, 1, 0, 0, InputDevice.SOURCE_KEYBOARD, null); in javaToAndroidKeyEvent()
|