Home
last modified time | relevance | path

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

12

/frameworks/support/v4/java/android/support/v4/view/
DKeyEventCompat.java31 public int normalizeMetaState(int metaState); in normalizeMetaState() argument
32 public boolean metaStateHasModifiers(int metaState, int modifiers); in metaStateHasModifiers() argument
33 public boolean metaStateHasNoModifiers(int metaState); in metaStateHasNoModifiers() argument
53 private static int metaStateFilterDirectionalModifiers(int metaState, in metaStateFilterDirectionalModifiers() argument
63 return metaState & ~directional; in metaStateFilterDirectionalModifiers()
65 return metaState & ~basic; in metaStateFilterDirectionalModifiers()
67 return metaState; in metaStateFilterDirectionalModifiers()
72 public int normalizeMetaState(int metaState) { in normalizeMetaState() argument
73 if ((metaState & (KeyEvent.META_SHIFT_LEFT_ON | KeyEvent.META_SHIFT_RIGHT_ON)) != 0) { in normalizeMetaState()
74 metaState |= KeyEvent.META_SHIFT_ON; in normalizeMetaState()
[all …]
/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.cpp247 int32_t metaState, in publishKeyEvent() argument
256 deviceId, source, action, flags, keyCode, scanCode, metaState, repeatCount, in publishKeyEvent()
274 msg.body.key.metaState = metaState; in publishKeyEvent()
289 int32_t metaState, in publishMotionEvent() argument
307 deviceId, source, action, actionButton, flags, edgeFlags, metaState, buttonState, in publishMotionEvent()
331 msg.body.motion.metaState = metaState; in publishMotionEvent()
893 msg->body.key.metaState, in initializeKeyEvent()
915 msg->body.motion.metaState, in initializeMotionEvent()
935 event->setMetaState(event->getMetaState() | msg->body.motion.metaState); in addSample()
DInput.cpp61 int32_t metaState, in initialize() argument
70 mMetaState = metaState; in initialize()
222 int32_t metaState, in initialize() argument
238 mMetaState = metaState; in initialize()
/frameworks/base/core/java/android/view/
DKeyEvent.java1330 int code, int repeat, int metaState) { in KeyEvent() argument
1336 mMetaState = metaState; in KeyEvent()
1357 int code, int repeat, int metaState, in KeyEvent() argument
1364 mMetaState = metaState; in KeyEvent()
1387 int code, int repeat, int metaState, in KeyEvent() argument
1394 mMetaState = metaState; in KeyEvent()
1419 int code, int repeat, int metaState, in KeyEvent() argument
1426 mMetaState = metaState; in KeyEvent()
1521 int code, int repeat, int metaState, in obtain() argument
1529 ev.mMetaState = metaState; in obtain()
[all …]
DKeyCharacterMap.java291 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
366 public int get(int keyCode, int metaState) { in get() argument
367 metaState = KeyEvent.normalizeMetaState(metaState); in get()
368 char ch = nativeGetCharacter(mPtr, keyCode, metaState); in get()
395 public FallbackAction getFallbackAction(int keyCode, int metaState) { in getFallbackAction() argument
397 metaState = KeyEvent.normalizeMetaState(metaState); in getFallbackAction()
398 if (nativeGetFallbackAction(mPtr, keyCode, metaState, action)) { in getFallbackAction()
399 action.metaState = KeyEvent.normalizeMetaState(action.metaState); in getFallbackAction()
[all …]
DMotionEvent.java1378 int metaState, int buttonState, in nativeInitialize() argument
1386 PointerCoords[] pointerCoords, int metaState); in nativeAddBatch() argument
1496 PointerCoords[] pointerCoords, int metaState, int buttonState, in obtain() argument
1501 deviceId, source, action, flags, edgeFlags, metaState, buttonState, in obtain()
1540 int metaState, float xPrecision, float yPrecision, int deviceId, in obtain() argument
1550 pointerCoords, metaState, 0, xPrecision, yPrecision, deviceId, in obtain()
1585 float x, float y, float pressure, float size, int metaState, in obtain() argument
1602 deviceId, InputDevice.SOURCE_UNKNOWN, action, 0, edgeFlags, metaState, 0, in obtain()
1645 int pointerCount, float x, float y, float pressure, float size, int metaState, in obtain() argument
1648 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/native/include/input/
DKeyCharacterMap.h68 int32_t metaState; member
101 char16_t getCharacter(int32_t keyCode, int32_t metaState) const;
107 bool getFallbackAction(int32_t keyCode, int32_t metaState,
115 size_t numChars, int32_t metaState) const;
147 int32_t metaState; member
185 inline Property(int32_t property = 0, int32_t metaState = 0) :
186 property(property), metaState(metaState) { } in property()
189 int32_t metaState; member
226 bool getKeyBehavior(int32_t keyCode, int32_t metaState,
235 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time);
[all …]
DInputTransport.h72 int32_t metaState; member
89 int32_t metaState; member
218 int32_t metaState,
239 int32_t metaState,
DInput.h331 int32_t metaState,
378 inline void setMetaState(int32_t metaState) { mMetaState = metaState; } in setMetaState() argument
544 int32_t metaState,
/frameworks/support/v4/honeycomb/android/support/v4/view/
DKeyEventCompatHoneycomb.java25 public static int normalizeMetaState(int metaState) { in normalizeMetaState() argument
26 return KeyEvent.normalizeMetaState(metaState); in normalizeMetaState()
29 public static boolean metaStateHasModifiers(int metaState, int modifiers) { in metaStateHasModifiers() argument
30 return KeyEvent.metaStateHasModifiers(metaState, modifiers); in metaStateHasModifiers()
33 public static boolean metaStateHasNoModifiers(int metaState) { in metaStateHasNoModifiers() argument
34 return KeyEvent.metaStateHasNoModifiers(metaState); in metaStateHasNoModifiers()
/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()
1956 keyEntry->metaState, keyEntry->repeatCount, keyEntry->downTime, in startDispatchCycleLocked()
2000 motionEntry->metaState, motionEntry->buttonState, in startDispatchCycleLocked()
2324 originalMotionEntry->metaState, in splitMotionEvent()
2365 args->metaState, args->downTime); in notifyKey()
2373 int32_t metaState = args->metaState; in notifyKey() local
2379 metaState |= AMETA_FUNCTION_ON; in notifyKey()
2385 if (metaState & AMETA_META_ON && args->action == AKEY_EVENT_ACTION_DOWN) { in notifyKey()
[all …]
DInputReader.cpp2626 int32_t metaState = mContext->getGlobalMetaState(); in sync() local
2644 metaState, buttonState, AMOTION_EVENT_EDGE_FLAG_NONE, in sync()
2652 motionEventAction, 0, 0, metaState, currentButtonState, in sync()
2665 metaState, buttonState, AMOTION_EVENT_EDGE_FLAG_NONE, in sync()
2679 metaState, currentButtonState, AMOTION_EVENT_EDGE_FLAG_NONE, in sync()
2691 AMOTION_EVENT_ACTION_SCROLL, 0, 0, metaState, currentButtonState, in sync()
4318 int32_t metaState = mContext->getGlobalMetaState(); in dispatchVirtualKey() local
4322 keyEventAction, keyEventFlags, keyCode, scanCode, metaState, downTime); in dispatchVirtualKey()
4329 int32_t metaState = getContext()->getGlobalMetaState(); in abortTouches() local
4332 metaState, buttonState, AMOTION_EVENT_EDGE_FLAG_NONE, in abortTouches()
[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/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DInteractionController.java186 public boolean sendKeyAndWaitForEvent(final int keyCode, final int metaState, in sendKeyAndWaitForEvent() argument
193 keyCode, 0, metaState, KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, in sendKeyAndWaitForEvent()
197 keyCode, 0, metaState, KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, in sendKeyAndWaitForEvent()
543 public boolean sendKey(int keyCode, int metaState) {
545 Log.d(LOG_TAG, "sendKey (" + keyCode + ", " + metaState + ")");
550 keyCode, 0, metaState, KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0,
554 keyCode, 0, metaState, KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0,
DUiDevice.java327 public boolean pressKeyCode(int keyCode, int metaState) { in pressKeyCode() argument
328 Tracer.trace(keyCode, metaState); in pressKeyCode()
330 return getAutomatorBridge().getInteractionController().sendKey(keyCode, metaState); in pressKeyCode()
/frameworks/base/services/core/java/com/android/server/policy/
DShortcutManager.java75 public Intent getIntent(KeyCharacterMap kcm, int keyCode, int metaState) { in getIntent() argument
79 int shortcutChar = kcm.get(keyCode, metaState); in getIntent()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp821 void setMetaState(int32_t metaState) { in setMetaState() argument
822 mMetaState = metaState; in setMetaState()
1589 ASSERT_EQ(AMETA_NONE, args.metaState); in TEST_F()
1604 ASSERT_EQ(AMETA_NONE, args.metaState); in TEST_F()
1621 ASSERT_EQ(AMETA_NONE, args.metaState); in TEST_F()
1638 ASSERT_EQ(AMETA_NONE, args.metaState); in TEST_F()
1655 ASSERT_EQ(AMETA_NONE, args.metaState); in TEST_F()
1672 ASSERT_EQ(AMETA_NONE, args.metaState); in TEST_F()
1694 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, args.metaState); in TEST_F()
1702 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, args.metaState); in TEST_F()
[all …]

12