/frameworks/native/libs/input/ |
D | KeyCharacterMap.cpp | 53 int32_t metaState; member 231 char16_t KeyCharacterMap::getCharacter(int32_t keyCode, int32_t metaState) const { in getCharacter() 235 if (getKeyBehavior(keyCode, metaState, &key, &behavior)) { in getCharacter() 239 ALOGD("getCharacter: keyCode=%d, metaState=0x%08x ~ Result %d.", keyCode, metaState, result); in getCharacter() 244 bool KeyCharacterMap::getFallbackAction(int32_t keyCode, int32_t metaState, in getFallbackAction() argument 247 outFallbackAction->metaState = 0; in getFallbackAction() 252 if (getKeyBehavior(keyCode, metaState, &key, &behavior)) { in getFallbackAction() 255 outFallbackAction->metaState = metaState & ~behavior->metaState; in getFallbackAction() 262 keyCode, metaState, result ? "true" : "false", in getFallbackAction() 263 outFallbackAction->keyCode, outFallbackAction->metaState); in getFallbackAction() [all …]
|
D | InputTransport.cpp | 152 msg->body.key.metaState = body.key.metaState; in getSanitizedCopy() 177 msg->body.motion.metaState = body.motion.metaState; in getSanitizedCopy() 427 int32_t metaState, in publishKeyEvent() argument 441 deviceId, source, action, flags, keyCode, scanCode, metaState, repeatCount, in publishKeyEvent() 460 msg.body.key.metaState = metaState; in publishKeyEvent() 476 int32_t metaState, in publishMotionEvent() argument 502 deviceId, source, displayId, action, actionButton, flags, edgeFlags, metaState, in publishMotionEvent() 528 msg.body.motion.metaState = metaState; in publishMotionEvent() 1123 msg->body.key.metaState, in initializeKeyEvent() 1146 msg->body.motion.metaState, in initializeMotionEvent() [all …]
|
/frameworks/native/include/input/ |
D | KeyCharacterMap.h | 73 int32_t metaState; member 106 char16_t getCharacter(int32_t keyCode, int32_t metaState) const; 112 bool getFallbackAction(int32_t keyCode, int32_t metaState, 120 size_t numChars, int32_t metaState) const; 134 void tryRemapKey(int32_t scanCode, int32_t metaState, 157 int32_t metaState; member 198 inline explicit Property(int32_t property = 0, int32_t metaState = 0) : 199 property(property), metaState(metaState) { } in property() 202 int32_t metaState; member 239 bool getKeyBehavior(int32_t keyCode, int32_t metaState, [all …]
|
D | InputTransport.h | 86 int32_t metaState; member 106 int32_t metaState; member 251 int32_t metaState, 273 int32_t metaState,
|
D | Input.h | 395 int32_t metaState, 442 inline void setMetaState(int32_t metaState) { mMetaState = metaState; } in setMetaState() argument 611 int32_t metaState,
|
/frameworks/base/core/java/android/view/ |
D | KeyEvent.java | 1407 int code, int repeat, int metaState) { in KeyEvent() argument 1413 mMetaState = metaState; in KeyEvent() 1434 int code, int repeat, int metaState, in KeyEvent() argument 1441 mMetaState = metaState; in KeyEvent() 1464 int code, int repeat, int metaState, in KeyEvent() argument 1471 mMetaState = metaState; in KeyEvent() 1496 int code, int repeat, int metaState, in KeyEvent() argument 1503 mMetaState = metaState; in KeyEvent() 1602 int code, int repeat, int metaState, in obtain() argument 1610 ev.mMetaState = metaState; in obtain() [all …]
|
D | KeyCharacterMap.java | 291 private static native char nativeGetCharacter(long ptr, int keyCode, int metaState); in nativeGetCharacter() argument 292 private static native boolean nativeGetFallbackAction(long ptr, int keyCode, int metaState, in nativeGetFallbackAction() argument 295 private static native char nativeGetMatch(long ptr, int keyCode, char[] chars, int metaState); in nativeGetMatch() argument 367 public int get(int keyCode, int metaState) { in get() argument 368 metaState = KeyEvent.normalizeMetaState(metaState); in get() 369 char ch = nativeGetCharacter(mPtr, keyCode, metaState); in get() 396 public FallbackAction getFallbackAction(int keyCode, int metaState) { in getFallbackAction() argument 398 metaState = KeyEvent.normalizeMetaState(metaState); in getFallbackAction() 399 if (nativeGetFallbackAction(mPtr, keyCode, metaState, action)) { in getFallbackAction() 400 action.metaState = KeyEvent.normalizeMetaState(action.metaState); in getFallbackAction() [all …]
|
D | MotionEvent.java | 1524 int metaState, int buttonState, @Classification int classification, in nativeInitialize() argument 1530 PointerCoords[] pointerCoords, int metaState); in nativeAddBatch() argument 1690 PointerCoords[] pointerCoords, int metaState, int buttonState, in obtain() argument 1695 deviceId, source, displayId, action, flags, edgeFlags, metaState, buttonState, in obtain() 1737 PointerCoords[] pointerCoords, int metaState, int buttonState, in obtain() argument 1741 metaState, buttonState, xPrecision, yPrecision, deviceId, edgeFlags, source, in obtain() 1777 int metaState, float xPrecision, float yPrecision, int deviceId, in obtain() argument 1787 pointerCoords, metaState, 0, xPrecision, yPrecision, deviceId, in obtain() 1822 float x, float y, float pressure, float size, int metaState, in obtain() argument 1824 return obtain(downTime, eventTime, action, x, y, pressure, size, metaState, in obtain() [all …]
|
D | InputEventConsistencyVerifier.java | 617 private void ensureMetaStateIsNormalized(int metaState) { in ensureMetaStateIsNormalized() argument 618 final int normalizedMetaState = KeyEvent.normalizeMetaState(metaState); in ensureMetaStateIsNormalized() 619 if (normalizedMetaState != metaState) { in ensureMetaStateIsNormalized() 621 metaState, normalizedMetaState)); in ensureMetaStateIsNormalized()
|
/frameworks/native/services/inputflinger/ |
D | InputListener.cpp | 53 int32_t metaState, nsecs_t downTime) : in NotifyKeyArgs() argument 57 metaState(metaState), downTime(downTime) { in NotifyKeyArgs() 65 metaState(other.metaState), downTime(other.downTime) { in NotifyKeyArgs() 79 && metaState == rhs.metaState in operator ==() 92 int32_t action, int32_t actionButton, int32_t flags, int32_t metaState, in NotifyMotionArgs() argument 101 flags(flags), metaState(metaState), buttonState(buttonState), in NotifyMotionArgs() 116 metaState(other.metaState), buttonState(other.buttonState), in NotifyMotionArgs() 138 && metaState == rhs.metaState in operator ==()
|
/frameworks/base/core/jni/ |
D | android_view_KeyCharacterMap.cpp | 44 jfieldID metaState; member 118 jint keyCode, jint metaState) { in nativeGetCharacter() argument 120 return map->getMap()->getCharacter(keyCode, metaState); in nativeGetCharacter() 124 jint metaState, jobject fallbackActionObj) { in nativeGetFallbackAction() argument 128 bool result = map->getMap()->getFallbackAction(keyCode, metaState, &fallbackAction); in nativeGetFallbackAction() 132 env->SetIntField(fallbackActionObj, gFallbackActionClassInfo.metaState, in nativeGetFallbackAction() 133 fallbackAction.metaState); in nativeGetFallbackAction() 144 jcharArray charsArray, jint metaState) { in nativeGetMatch() argument 155 metaState); in nativeGetMatch() 244 gFallbackActionClassInfo.metaState = GetFieldIDOrDie(env, clazz, "metaState", "I"); in register_android_view_KeyCharacterMap()
|
D | android_view_KeyEvent.cpp | 85 jint metaState = env->GetIntField(eventObj, gKeyEventClassInfo.mMetaState); in android_view_KeyEvent_toNative() local 94 event->initialize(deviceId, source, displayId, action, flags, keyCode, scanCode, metaState, in android_view_KeyEvent_toNative()
|
/frameworks/native/services/inputflinger/dispatcher/ |
D | Entry.cpp | 118 int32_t keyCode, int32_t scanCode, int32_t metaState, int32_t repeatCount, in KeyEntry() argument 128 metaState(metaState), in KeyEntry() 146 keyCode, scanCode, metaState, repeatCount, policyFlags); in appendDescription() 162 int32_t actionButton, int32_t flags, int32_t metaState, in MotionEntry() argument 175 metaState(metaState), in MotionEntry() 205 actionButton, flags, metaState, buttonState, in appendDescription()
|
D | Entry.h | 91 int32_t metaState; member 108 int32_t keyCode, int32_t scanCode, int32_t metaState, int32_t repeatCount, 125 int32_t metaState; member 138 int32_t flags, int32_t metaState, int32_t buttonState,
|
/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 | InputListener.h | 75 int32_t metaState; member 82 int32_t scanCode, int32_t metaState, nsecs_t downTime); 103 int32_t metaState; member 130 int32_t metaState, int32_t buttonState, MotionClassification classification,
|
/frameworks/native/libs/input/tests/ |
D | InputPublisherAndConsumer_test.cpp | 81 constexpr int32_t metaState = AMETA_ALT_LEFT_ON | AMETA_ALT_ON; in PublishAndConsumeKeyEvent() local 87 keyCode, scanCode, metaState, repeatCount, downTime, eventTime); in PublishAndConsumeKeyEvent() 111 EXPECT_EQ(metaState, keyEvent->getMetaState()); in PublishAndConsumeKeyEvent() 142 constexpr int32_t metaState = AMETA_ALT_LEFT_ON | AMETA_ALT_ON; in PublishAndConsumeMotionEvent() local 172 flags, edgeFlags, metaState, buttonState, classification, in PublishAndConsumeMotionEvent() 197 EXPECT_EQ(metaState, motionEvent->getMetaState()); in PublishAndConsumeMotionEvent()
|
D | StructLayout_test.cpp | 46 CHECK_OFFSET(InputMessage::Body::Key, metaState, 44); in TestInputMessageAlignment() 58 CHECK_OFFSET(InputMessage::Body::Motion, metaState, 40); in TestInputMessageAlignment()
|
/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/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/base/services/core/java/com/android/server/policy/ |
D | ShortcutManager.java | 80 public Intent getIntent(KeyCharacterMap kcm, int keyCode, int metaState) { in getIntent() argument 84 boolean isShiftOn = (metaState & KeyEvent.META_SHIFT_ON) == KeyEvent.META_SHIFT_ON; in getIntent() 88 int shortcutChar = kcm.get(keyCode, metaState); in getIntent()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputDispatcher_test.cpp | 249 constexpr int32_t metaState = AMETA_NONE; in TEST_F() local 254 /*action*/ -1, 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F() 264 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F() 273 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F() 283 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F() 292 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F() 301 AMOTION_EVENT_ACTION_DOWN, 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F() 309 AMOTION_EVENT_ACTION_DOWN, 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F() 320 AMOTION_EVENT_ACTION_DOWN, 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F() 329 AMOTION_EVENT_ACTION_DOWN, 0, 0, edgeFlags, metaState, 0, classification, 0, 0, 0, 0, in TEST_F() [all …]
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | CursorInputMapper.cpp | 382 int32_t metaState = mContext->getGlobalMetaState(); in sync() local 401 metaState, buttonState, MotionClassification::NONE, in sync() 411 displayId, policyFlags, motionEventAction, 0, 0, metaState, in sync() 426 metaState, buttonState, MotionClassification::NONE, in sync() 441 0, metaState, currentButtonState, MotionClassification::NONE, in sync() 456 AMOTION_EVENT_ACTION_SCROLL, 0, 0, metaState, in sync()
|
D | RotaryEncoderInputMapper.cpp | 119 int32_t metaState = mContext->getGlobalMetaState(); in sync() local 124 metaState, /* buttonState */ 0, MotionClassification::NONE, in sync()
|
D | TouchInputMapper.cpp | 1853 int32_t metaState = mContext->getGlobalMetaState(); in dispatchVirtualKey() local 1858 scanCode, metaState, downTime); in dispatchVirtualKey() 1865 int32_t metaState = getContext()->getGlobalMetaState(); in abortTouches() local 1867 dispatchMotion(when, policyFlags, mSource, AMOTION_EVENT_ACTION_CANCEL, 0, 0, metaState, in abortTouches() 1881 int32_t metaState = getContext()->getGlobalMetaState(); in dispatchTouches() local 1888 dispatchMotion(when, policyFlags, mSource, AMOTION_EVENT_ACTION_MOVE, 0, 0, metaState, in dispatchTouches() 1922 metaState, buttonState, 0, mCurrentCookedState.deviceTimestamp, in dispatchTouches() 1935 dispatchMotion(when, policyFlags, mSource, AMOTION_EVENT_ACTION_MOVE, 0, 0, metaState, in dispatchTouches() 1954 metaState, buttonState, 0, mCurrentCookedState.deviceTimestamp, in dispatchTouches() 1967 int32_t metaState = getContext()->getGlobalMetaState(); in dispatchHoverExit() local [all …]
|