Home
last modified time | relevance | path

Searched refs:metaState (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/native/libs/input/
DKeyCharacterMap.cpp53 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 …]
DInputTransport.cpp250 int32_t metaState, in publishKeyEvent() argument
259 deviceId, source, action, flags, keyCode, scanCode, metaState, repeatCount, in publishKeyEvent()
277 msg.body.key.metaState = metaState; in publishKeyEvent()
292 int32_t metaState, in publishMotionEvent() argument
310 deviceId, source, action, actionButton, flags, edgeFlags, metaState, buttonState, in publishMotionEvent()
334 msg.body.motion.metaState = metaState; in publishMotionEvent()
907 msg->body.key.metaState, in initializeKeyEvent()
929 msg->body.motion.metaState, in initializeMotionEvent()
949 event->setMetaState(event->getMetaState() | msg->body.motion.metaState); in addSample()
/frameworks/native/include/input/
DKeyCharacterMap.h71 int32_t metaState; member
104 char16_t getCharacter(int32_t keyCode, int32_t metaState) const;
110 bool getFallbackAction(int32_t keyCode, int32_t metaState,
118 size_t numChars, int32_t metaState) const;
132 void tryRemapKey(int32_t scanCode, int32_t metaState,
155 int32_t metaState; member
196 inline Property(int32_t property = 0, int32_t metaState = 0) :
197 property(property), metaState(metaState) { } in property()
200 int32_t metaState; member
237 bool getKeyBehavior(int32_t keyCode, int32_t metaState,
[all …]
DInputTransport.h72 int32_t metaState; member
89 int32_t metaState; member
218 int32_t metaState,
239 int32_t metaState,
DInput.h350 int32_t metaState,
397 inline void setMetaState(int32_t metaState) { mMetaState = metaState; } in setMetaState() argument
563 int32_t metaState,
/frameworks/base/core/java/android/view/
DKeyEvent.java1364 int code, int repeat, int metaState) { in KeyEvent() argument
1370 mMetaState = metaState; in KeyEvent()
1391 int code, int repeat, int metaState, in KeyEvent() argument
1398 mMetaState = metaState; in KeyEvent()
1421 int code, int repeat, int metaState, in KeyEvent() argument
1428 mMetaState = metaState; in KeyEvent()
1453 int code, int repeat, int metaState, in KeyEvent() argument
1460 mMetaState = metaState; in KeyEvent()
1555 int code, int repeat, int metaState, in obtain() argument
1563 ev.mMetaState = metaState; in obtain()
[all …]
DKeyCharacterMap.java290 private static native char nativeGetCharacter(long ptr, int keyCode, int metaState); in nativeGetCharacter() argument
291 private static native boolean nativeGetFallbackAction(long ptr, int keyCode, int metaState, in nativeGetFallbackAction() argument
294 private static native char nativeGetMatch(long ptr, int keyCode, char[] chars, int metaState); in nativeGetMatch() argument
365 public int get(int keyCode, int metaState) { in get() argument
366 metaState = KeyEvent.normalizeMetaState(metaState); in get()
367 char ch = nativeGetCharacter(mPtr, keyCode, metaState); in get()
394 public FallbackAction getFallbackAction(int keyCode, int metaState) { in getFallbackAction() argument
396 metaState = KeyEvent.normalizeMetaState(metaState); in getFallbackAction()
397 if (nativeGetFallbackAction(mPtr, keyCode, metaState, action)) { in getFallbackAction()
398 action.metaState = KeyEvent.normalizeMetaState(action.metaState); in getFallbackAction()
[all …]
DMotionEvent.java1470 int metaState, int buttonState, in nativeInitialize() argument
1476 PointerCoords[] pointerCoords, int metaState); in nativeAddBatch() argument
1626 PointerCoords[] pointerCoords, int metaState, int buttonState, in obtain() argument
1631 deviceId, source, action, flags, edgeFlags, metaState, buttonState, in obtain()
1670 int metaState, float xPrecision, float yPrecision, int deviceId, in obtain() argument
1680 pointerCoords, metaState, 0, xPrecision, yPrecision, deviceId, in obtain()
1715 float x, float y, float pressure, float size, int metaState, in obtain() argument
1732 deviceId, InputDevice.SOURCE_UNKNOWN, action, 0, edgeFlags, metaState, 0, in obtain()
1775 int pointerCount, float x, float y, float pressure, float size, int metaState, in obtain() argument
1778 metaState, xPrecision, yPrecision, deviceId, edgeFlags); in obtain()
[all …]
DInputEventConsistencyVerifier.java612 private void ensureMetaStateIsNormalized(int metaState) { in ensureMetaStateIsNormalized() argument
613 final int normalizedMetaState = KeyEvent.normalizeMetaState(metaState); in ensureMetaStateIsNormalized()
614 if (normalizedMetaState != metaState) { in ensureMetaStateIsNormalized()
616 metaState, normalizedMetaState)); in ensureMetaStateIsNormalized()
/frameworks/support/compat/java/android/support/v4/view/
DKeyEventCompat.java35 public static int normalizeMetaState(int metaState) { in normalizeMetaState() argument
36 return KeyEvent.normalizeMetaState(metaState); in normalizeMetaState()
44 public static boolean metaStateHasModifiers(int metaState, int modifiers) { in metaStateHasModifiers() argument
45 return KeyEvent.metaStateHasModifiers(metaState, modifiers); in metaStateHasModifiers()
53 public static boolean metaStateHasNoModifiers(int metaState) { in metaStateHasNoModifiers() argument
54 return KeyEvent.metaStateHasNoModifiers(metaState); in metaStateHasNoModifiers()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
DAppCompatMenuItemShortcutsTest.java62 int keyCodeToSend, metaState; in testPerformShortcut() local
67 metaState = KeyEvent.META_SHIFT_ON; in testPerformShortcut()
69 keyCodeToSend, 0, metaState); in testPerformShortcut()
75 metaState = KeyEvent.META_ALT_ON | KeyEvent.META_SHIFT_ON; in testPerformShortcut()
77 keyCodeToSend, 0, metaState); in testPerformShortcut()
83 metaState = KeyEvent.META_CTRL_ON; in testPerformShortcut()
85 keyCodeToSend, 0, metaState); in testPerformShortcut()
/frameworks/native/services/inputflinger/
DInputListener.cpp48 int32_t metaState, nsecs_t downTime) : in NotifyKeyArgs() argument
51 metaState(metaState), downTime(downTime) { in NotifyKeyArgs()
59 metaState(other.metaState), downTime(other.downTime) { in NotifyKeyArgs()
71 int32_t action, int32_t actionButton, int32_t flags, int32_t metaState, in NotifyMotionArgs() argument
77 flags(flags), metaState(metaState), buttonState(buttonState), in NotifyMotionArgs()
90 metaState(other.metaState), buttonState(other.buttonState), in NotifyMotionArgs()
DInputListener.h63 int32_t metaState; member
70 int32_t metaState, nsecs_t downTime);
89 int32_t metaState; member
104 int32_t metaState, int32_t buttonState,
DInputDispatcher.cpp668 entry->metaState, entry->repeatCount + 1, entry->downTime); in synthesizeKeyRepeatLocked()
819 entry->action, entry->flags, entry->keyCode, entry->scanCode, entry->metaState, in logOutboundKeyDetailsLocked()
897 entry->metaState, entry->buttonState, in logOutboundMotionDetailsLocked()
1988 keyEntry->metaState, keyEntry->repeatCount, keyEntry->downTime, in startDispatchCycleLocked()
2032 motionEntry->metaState, motionEntry->buttonState, in startDispatchCycleLocked()
2356 originalMotionEntry->metaState, in splitMotionEvent()
2397 args->metaState, args->downTime); in notifyKey()
2405 int32_t metaState = args->metaState; in notifyKey() local
2411 metaState |= AMETA_FUNCTION_ON; in notifyKey()
2417 if (metaState & AMETA_META_ON && args->action == AKEY_EVENT_ACTION_DOWN) { in notifyKey()
[all …]
DInputReader.cpp2764 int32_t metaState = mContext->getGlobalMetaState(); in sync() local
2782 metaState, buttonState, AMOTION_EVENT_EDGE_FLAG_NONE, in sync()
2790 motionEventAction, 0, 0, metaState, currentButtonState, in sync()
2803 metaState, buttonState, AMOTION_EVENT_EDGE_FLAG_NONE, in sync()
2817 metaState, currentButtonState, AMOTION_EVENT_EDGE_FLAG_NONE, in sync()
2829 AMOTION_EVENT_ACTION_SCROLL, 0, 0, metaState, currentButtonState, in sync()
2943 int32_t metaState = mContext->getGlobalMetaState(); in sync() local
2947 AMOTION_EVENT_ACTION_SCROLL, 0, 0, metaState, 0, in sync()
4589 int32_t metaState = mContext->getGlobalMetaState(); in dispatchVirtualKey() local
4593 keyEventAction, keyEventFlags, keyCode, scanCode, metaState, downTime); in dispatchVirtualKey()
[all …]
/frameworks/base/core/jni/
Dandroid_view_KeyCharacterMap.cpp44 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()
Dandroid_view_KeyEvent.cpp82 jint metaState = env->GetIntField(eventObj, gKeyEventClassInfo.mMetaState); in android_view_KeyEvent_toNative() local
91 event->initialize(deviceId, source, action, flags, keyCode, scanCode, metaState, repeatCount, in android_view_KeyEvent_toNative()
/frameworks/base/core/java/android/text/method/
DMetaKeyKeyListener.java181 int metaState = event.getMetaState(); in getMetaState() local
184 metaState |= getMetaState(text); in getMetaState()
186 return metaState; in getMetaState()
232 int metaState = event.getMetaState(); in getMetaState() local
235 metaState |= getMetaState(text); in getMetaState()
240 if ((metaState & META_SELECTING) != 0) { in getMetaState()
246 return getMetaState(metaState, meta); in getMetaState()
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp80 const int32_t metaState = AMETA_ALT_LEFT_ON | AMETA_ALT_ON; in PublishAndConsumeKeyEvent() local
86 keyCode, scanCode, metaState, repeatCount, downTime, eventTime); in PublishAndConsumeKeyEvent()
109 EXPECT_EQ(metaState, keyEvent->getMetaState()); in PublishAndConsumeKeyEvent()
139 const int32_t metaState = AMETA_ALT_LEFT_ON | AMETA_ALT_ON; in PublishAndConsumeMotionEvent() local
168 flags, edgeFlags, metaState, buttonState, xOffset, yOffset, xPrecision, yPrecision, in PublishAndConsumeMotionEvent()
192 EXPECT_EQ(metaState, motionEvent->getMetaState()); in PublishAndConsumeMotionEvent()
DStructLayout_test.cpp45 CHECK_OFFSET(InputMessage::Body::Key, metaState, 40); in TestInputMessageAlignment()
56 CHECK_OFFSET(InputMessage::Body::Motion, metaState, 36); in TestInputMessageAlignment()
/frameworks/base/core/tests/coretests/src/android/util/
DKeyUtils.java98 public static KeyEvent generateKeyEvent(int keycode, int keyEventAction, int metaState) { in generateKeyEvent() argument
101 0 /* repeat */, metaState); in generateKeyEvent()
/frameworks/base/services/core/java/com/android/server/policy/
DShortcutManager.java80 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/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DInteractionController.java184 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,
DUiDevice.java330 public boolean pressKeyCode(int keyCode, int metaState) { in pressKeyCode() argument
331 Tracer.trace(keyCode, metaState); in pressKeyCode()
333 return getAutomatorBridge().getInteractionController().sendKey(keyCode, metaState); in pressKeyCode()
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/util/
DKeyboardUtil.java67 public static KeyEvent keyEvent(int keycode, int metaState) { in keyEvent() argument
69 return new KeyEvent(currentTime, currentTime, KeyEvent.ACTION_DOWN, keycode, 0, metaState); in keyEvent()

12