Home
last modified time | relevance | path

Searched refs:getMetaState (Results 1 – 25 of 49) 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 …]
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()
DBaseKeyListener.java298 if (!KeyEvent.metaStateHasNoModifiers(event.getMetaState() in backspaceOrForwardDelete()
309 boolean isCtrlActive = ((event.getMetaState() & KeyEvent.META_CTRL_ON) != 0); in backspaceOrForwardDelete()
310 boolean isShiftActive = (getMetaState(content, META_SHIFT_ON, event) == 1); in backspaceOrForwardDelete()
311 boolean isAltActive = (getMetaState(content, META_ALT_ON, event) == 1); in backspaceOrForwardDelete()
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()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DEvents.java77 return hasShiftBit(e.getMetaState()); in isShiftPressed()
166 return Events.hasShiftBit(mEvent.getMetaState()); in isShiftKeyDown()
/frameworks/support/v4/java/android/support/v4/view/
DKeyEventCompat.java198 return IMPL.metaStateHasModifiers(event.getMetaState(), modifiers); in hasModifiers()
202 return IMPL.metaStateHasNoModifiers(event.getMetaState()); in hasNoModifiers()
/frameworks/base/core/java/android/view/
DInputEventConsistencyVerifier.java203 ensureMetaStateIsNormalized(event.getMetaState()); in onKeyEvent()
265 ensureMetaStateIsNormalized(event.getMetaState()); in onTrackballEvent()
340 ensureMetaStateIsNormalized(event.getMetaState()); in onTouchEvent()
469 ensureMetaStateIsNormalized(event.getMetaState()); in onGenericMotionEvent()
/frameworks/base/core/jni/
Dandroid_view_InputEventSender.cpp118 event->getKeyCode(), event->getScanCode(), event->getMetaState(), in sendKeyEvent()
140 event->getEdgeFlags(), event->getMetaState(), event->getButtonState(), in sendMotionEvent()
Dandroid_view_KeyEvent.cpp63 event->getMetaState(), in android_view_KeyEvent_fromNative()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAutoclickController.java100 mClickScheduler.updateMetaState(event.getMetaState()); in onKeyEvent()
312 mMetaState = event.getMetaState(); in update()
DMotionEventInjector.java174 mPointerProperties, mPointerCoords, event.getMetaState(), in injectEventsMainThread()
DAccessibilityGestureDetector.java442 event.getMetaState(), event.getXPrecision(), event.getYPrecision(), in mapSecondPointerToFirstPointer()
/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/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp109 EXPECT_EQ(metaState, keyEvent->getMetaState()); in PublishAndConsumeKeyEvent()
192 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/support/v7/appcompat/tests/src/android/support/v7/app/
DBaseKeyboardShortcutsTestCase.java123 event.getRepeatCount(), event.getMetaState() | KeyEvent.META_CTRL_ON); in sendControlChar()
/frameworks/native/include/input/
DInput.h332 inline int32_t getMetaState() const { return mMetaState; } in getMetaState() function
395 inline int32_t getMetaState() const { return mMetaState; } in getMetaState() function
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DAppCompatActivity.java519 event.getUnicodeChar(event.getMetaState() & ~KeyEvent.META_CTRL_MASK) == '<') { in dispatchKeyEvent()
/frameworks/base/docs/html/training/keyboard-input/
Dcommands.jd79 and {@link android.view.KeyEvent#getMetaState()}. However, the simplest solution is to check whether
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuBuilder.java808 final int metaState = event.getMetaState(); in findItemsWithShortcutForKey()
858 final int metaState = event.getMetaState(); in findItemWithShortcutForKey()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp921 virtual int32_t getMetaState() { in getMetaState() function in android::FakeInputMapper
1275 ASSERT_EQ(0, mDevice->getMetaState()); in TEST_F()
1345 ASSERT_EQ(AMETA_ALT_ON | AMETA_SHIFT_ON, mDevice->getMetaState()) in TEST_F()
1691 ASSERT_EQ(AMETA_NONE, mapper->getMetaState()); in TEST_F()
1699 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, mapper->getMetaState()); in TEST_F()
1707 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, mapper->getMetaState()); in TEST_F()
1714 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, mapper->getMetaState()); in TEST_F()
1721 ASSERT_EQ(AMETA_NONE, mapper->getMetaState()); in TEST_F()
1893 ASSERT_EQ(AMETA_CAPS_LOCK_ON, mapper->getMetaState()); in TEST_F()
1903 ASSERT_EQ(AMETA_CAPS_LOCK_ON | AMETA_NUM_LOCK_ON, mapper->getMetaState()); in TEST_F()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
DMenuBuilder.java859 final int metaState = event.getMetaState(); in findItemsWithShortcutForKey()
910 final int metaState = event.getMetaState(); in findItemWithShortcutForKey()

12