Lines Matching refs:metaState
1413 * @param metaState Flags indicating which meta keys are currently pressed.
1416 int code, int repeat, int metaState) {
1422 mMetaState = metaState;
1438 * @param metaState Flags indicating which meta keys are currently pressed.
1443 int code, int repeat, int metaState,
1450 mMetaState = metaState;
1467 * @param metaState Flags indicating which meta keys are currently pressed.
1473 int code, int repeat, int metaState,
1480 mMetaState = metaState;
1498 * @param metaState Flags indicating which meta keys are currently pressed.
1505 int code, int repeat, int metaState,
1512 mMetaState = metaState;
1607 int code, int repeat, int metaState,
1615 ev.mMetaState = metaState;
2039 * @param metaState The meta state.
2042 public static int normalizeMetaState(int metaState) {
2043 if ((metaState & (META_SHIFT_LEFT_ON | META_SHIFT_RIGHT_ON)) != 0) {
2044 metaState |= META_SHIFT_ON;
2046 if ((metaState & (META_ALT_LEFT_ON | META_ALT_RIGHT_ON)) != 0) {
2047 metaState |= META_ALT_ON;
2049 if ((metaState & (META_CTRL_LEFT_ON | META_CTRL_RIGHT_ON)) != 0) {
2050 metaState |= META_CTRL_ON;
2052 if ((metaState & (META_META_LEFT_ON | META_META_RIGHT_ON)) != 0) {
2053 metaState |= META_META_ON;
2055 if ((metaState & MetaKeyKeyListener.META_CAP_LOCKED) != 0) {
2056 metaState |= META_CAPS_LOCK_ON;
2058 if ((metaState & MetaKeyKeyListener.META_ALT_LOCKED) != 0) {
2059 metaState |= META_ALT_ON;
2061 if ((metaState & MetaKeyKeyListener.META_SYM_LOCKED) != 0) {
2062 metaState |= META_SYM_ON;
2064 return metaState & META_ALL_MASK;
2078 * @param metaState The meta state to consider.
2082 public static boolean metaStateHasNoModifiers(int metaState) {
2083 return (normalizeMetaState(metaState) & META_MODIFIER_MASK) == 0;
2107 * @param metaState The meta state to consider.
2115 public static boolean metaStateHasModifiers(int metaState, int modifiers) {
2126 metaState = normalizeMetaState(metaState) & META_MODIFIER_MASK;
2127 metaState = metaStateFilterDirectionalModifiers(metaState, modifiers,
2129 metaState = metaStateFilterDirectionalModifiers(metaState, modifiers,
2131 metaState = metaStateFilterDirectionalModifiers(metaState, modifiers,
2133 metaState = metaStateFilterDirectionalModifiers(metaState, modifiers,
2135 return metaState == modifiers;
2138 private static int metaStateFilterDirectionalModifiers(int metaState,
2150 return metaState & ~directional;
2152 return metaState & ~basic;
2154 return metaState;
2531 * @param metaState The meta key modifier state.
2534 public int getUnicodeChar(int metaState) {
2535 return getKeyCharacterMap().get(mKeyCode, metaState);
2574 * @param metaState The preferred meta key modifier state.
2577 public char getMatch(char[] chars, int metaState) {
2578 return getKeyCharacterMap().getMatch(mKeyCode, chars, metaState);
2789 msg.append(", metaState=").append(metaStateToString(mMetaState));
2869 * @param metaState The meta state.
2873 public static String metaStateToString(int metaState) {
2874 if (metaState == 0) {
2879 while (metaState != 0) {
2880 final boolean isSet = (metaState & 1) != 0;
2881 metaState >>>= 1; // unsigned shift!
2885 if (metaState == 0) {