Home
last modified time | relevance | path

Searched refs:getMetaState (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/base/core/java/android/text/method/
DMetaKeyKeyListener.java159 public static final int getMetaState(CharSequence text) { in getMetaState() method in MetaKeyKeyListener
180 public static final int getMetaState(final CharSequence text, final KeyEvent event) { in getMetaState() method in MetaKeyKeyListener
181 int metaState = event.getMetaState(); in getMetaState()
184 metaState |= getMetaState(text); in getMetaState()
199 public static final int getMetaState(CharSequence text, int meta) { in getMetaState() method in MetaKeyKeyListener
230 public static final int getMetaState(final CharSequence text, final int meta, in getMetaState() method in MetaKeyKeyListener
232 int metaState = event.getMetaState(); in getMetaState()
235 metaState |= getMetaState(text); in getMetaState()
246 return getMetaState(metaState, meta); in getMetaState()
457 public static final int getMetaState(long state) { in getMetaState() method in MetaKeyKeyListener
[all …]
DBaseKeyListener.java67 if (!KeyEvent.metaStateHasNoModifiers(event.getMetaState() in backspaceOrForwardDelete()
78 if (getMetaState(content, META_ALT_ON, event) == 1) { in backspaceOrForwardDelete()
88 || getMetaState(content, META_SHIFT_ON) == 1) { in backspaceOrForwardDelete()
DTouch.java133 boolean cap = (event.getMetaState() & KeyEvent.META_SHIFT_ON) != 0 in onTouchEvent()
134 || MetaKeyKeyListener.getMetaState(buffer, in onTouchEvent()
136 || MetaKeyKeyListener.getMetaState(buffer, in onTouchEvent()
DArrowKeyMovementMethod.java34 return ((MetaKeyKeyListener.getMetaState(buffer, MetaKeyKeyListener.META_SHIFT_ON) == 1) || in isSelecting()
35 (MetaKeyKeyListener.getMetaState(buffer, MetaKeyKeyListener.META_SELECTING) != 0)); in isSelecting()
58 && MetaKeyKeyListener.getMetaState(buffer, in handleMovementKey()
DDialerKeyListener.java56 int meta = getMetaState(content, event); in lookup()
DNumberKeyListener.java44 return event.getMatch(getAcceptedChars(), getMetaState(content, event)); in lookup()
DBaseMovementMethod.java99 if ((event.getMetaState() & KeyEvent.META_SHIFT_ON) != 0) { in onGenericMotionEvent()
138 int metaState = MetaKeyKeyListener.getMetaState(buffer, event) in getMovementMetaState()
DQwertyKeyListener.java111 int i = event.getUnicodeChar(getMetaState(content, event)); in onKeyDown()
/frameworks/support/v4/java/android/support/v4/view/
DKeyEventCompat.java188 return IMPL.metaStateHasModifiers(event.getMetaState(), modifiers); in hasModifiers()
192 return IMPL.metaStateHasNoModifiers(event.getMetaState()); in hasNoModifiers()
/frameworks/base/core/java/android/view/
DInputEventConsistencyVerifier.java199 ensureMetaStateIsNormalized(event.getMetaState()); in onKeyEvent()
261 ensureMetaStateIsNormalized(event.getMetaState()); in onTrackballEvent()
336 ensureMetaStateIsNormalized(event.getMetaState()); in onTouchEvent()
465 ensureMetaStateIsNormalized(event.getMetaState()); in onGenericMotionEvent()
DMotionEvent.java2166 public final int getMetaState() { in getMetaState() method in MotionEvent
2992 msg.append(", metaState=").append(KeyEvent.metaStateToString(getMetaState())); in toString()
/frameworks/base/native/android/
Dinput.cpp70 return static_cast<const KeyEvent*>(key_event)->getMetaState(); in AKeyEvent_getMetaState()
94 return static_cast<const MotionEvent*>(motion_event)->getMetaState(); in AMotionEvent_getMetaState()
/frameworks/base/core/jni/
Dandroid_view_InputEventSender.cpp117 event->getKeyCode(), event->getScanCode(), event->getMetaState(), in sendKeyEvent()
138 event->getEdgeFlags(), event->getMetaState(), event->getButtonState(), in sendMotionEvent()
Dandroid_view_KeyEvent.cpp60 event->getMetaState(), in android_view_KeyEvent_fromNative()
Dandroid_view_MotionEvent.cpp429 event->setMetaState(event->getMetaState() | metaState); in android_view_MotionEvent_nativeAddBatch()
495 return event->getMetaState(); in android_view_MotionEvent_nativeGetMetaState()
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp109 EXPECT_EQ(metaState, keyEvent->getMetaState()); in PublishAndConsumeKeyEvent()
191 EXPECT_EQ(metaState, motionEvent->getMetaState()); in PublishAndConsumeMotionEvent()
DInputEvent_test.cpp192 ASSERT_EQ(AMETA_ALT_ON, event.getMetaState()); in TEST_F()
307 ASSERT_EQ(AMETA_ALT_ON, event->getMetaState()); in assertEqualsEventWithHistory()
443 ASSERT_EQ(AMETA_CTRL_ON, event.getMetaState()); in TEST_F()
/frameworks/native/include/input/
DInput.h277 inline int32_t getMetaState() const { return mMetaState; } in getMetaState() function
345 inline int32_t getMetaState() const { return mMetaState; } in getMetaState() function
/frameworks/base/docs/html/training/keyboard-input/
Dcommands.jd79 and {@link android.view.KeyEvent#getMetaState()}. However, the simplest solution is to check whether
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
DMenuBuilder.java826 final int metaState = event.getMetaState(); in findItemsWithShortcutForKey()
879 final int metaState = event.getMetaState(); in findItemWithShortcutForKey()
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuBuilder.java788 final int metaState = event.getMetaState(); in findItemsWithShortcutForKey()
838 final int metaState = event.getMetaState(); in findItemWithShortcutForKey()
/frameworks/base/services/input/tests/
DInputReader_test.cpp903 virtual int32_t getMetaState() { in getMetaState() function in android::FakeInputMapper
1257 ASSERT_EQ(0, mDevice->getMetaState()); in TEST_F()
1327 ASSERT_EQ(AMETA_ALT_ON | AMETA_SHIFT_ON, mDevice->getMetaState()) in TEST_F()
1673 ASSERT_EQ(AMETA_NONE, mapper->getMetaState()); in TEST_F()
1681 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, mapper->getMetaState()); in TEST_F()
1689 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, mapper->getMetaState()); in TEST_F()
1696 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, mapper->getMetaState()); in TEST_F()
1703 ASSERT_EQ(AMETA_NONE, mapper->getMetaState()); in TEST_F()
1875 ASSERT_EQ(AMETA_CAPS_LOCK_ON, mapper->getMetaState()); in TEST_F()
1885 ASSERT_EQ(AMETA_CAPS_LOCK_ON | AMETA_NUM_LOCK_ON, mapper->getMetaState()); in TEST_F()
[all …]
/frameworks/base/services/input/
DInputReader.h543 int32_t getMetaState();
944 virtual int32_t getMetaState();
1025 virtual int32_t getMetaState();
/frameworks/base/core/java/android/text/
DLayout.java1315 int caps = TextKeyListener.getMetaState(editingBuffer, TextKeyListener.META_SHIFT_ON) | in getCursorPath()
1316 TextKeyListener.getMetaState(editingBuffer, TextKeyListener.META_SELECTING); in getCursorPath()
1317 int fn = TextKeyListener.getMetaState(editingBuffer, TextKeyListener.META_ALT_ON); in getCursorPath()
/frameworks/base/core/java/android/view/inputmethod/
DBaseInputConnection.java494 if (start == end && MetaKeyKeyListener.getMetaState(content, in setSelection()

12