Home
last modified time | relevance | path

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

123

/frameworks/native/libs/input/
DKeyCharacterMap.cpp53 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/
DKeyCharacterMap.h73 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/
DKeyEvent.java1524 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 …]
DKeyCharacterMap.java301 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 …]
DMotionEvent.java1689 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 …]
DVerifiedKeyEvent.java195 int metaState, argument
205 this.mMetaState = metaState;
361 int metaState = in.readInt(); in VerifiedKeyEvent() local
371 this.mMetaState = metaState; in VerifiedKeyEvent()
DVerifiedMotionEvent.java183 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/
Da11y_three_finger_swipe_down_gesture.log2 …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 …]
Da11y_touch_explore_gesture.log2 …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/
DModifierShortcutManager.java122 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/
Dandroid_view_KeyCharacterMap.cpp45 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/
DNotifyArgs.cpp48 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/
DEntry.cpp40 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()
DEntry.h137 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/
DShortcutKeyTestBase.java99 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/
DMetaKeyKeyListener.java182 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/
DNotifyArgs.h70 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/
DKeyUtils.java92 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/
DGestureLogParser.java37 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/
DVerifiedKeyEventTest.kt51 assertEquals(META_STATE, event.metaState) in testConstructor()
163 assertEquals(event1.metaState, event2.metaState) in compareVerifiedKeyEvents()
DVerifiedMotionEventTest.kt56 assertEquals(META_STATE, event.metaState) in testConstructor()
187 assertEquals(event1.metaState, event2.metaState) in compareVerifiedMotionEvents()
/frameworks/native/services/inputflinger/tests/
DNotifyArgs_test.cpp44 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/
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,
/frameworks/native/libs/input/tests/
DStructLayout_test.cpp47 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/
DKeyEventHandling.java233 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()

123