Lines Matching defs:modifiers

43  * Meta states describe the pressed state of key modifiers
1984 // These bits are known to be used for purposes other than specifying modifiers.
2093 * Returns true if no modifiers keys are pressed according to the specified meta state.
2121 * If the specified modifier mask includes directional modifiers, such as
2124 * If the specified modifier mask includes non-directional modifiers, such as
2127 * If the specified modifier mask includes both directional and non-directional modifiers
2133 * @param modifiers The meta state of the modifier keys to check. May be a combination
2137 * @throws IllegalArgumentException if the modifiers parameter contains invalid modifiers
2140 public static boolean metaStateHasModifiers(int metaState, int modifiers) {
2143 // are not valid modifiers.
2144 if ((modifiers & META_INVALID_MODIFIER_MASK) != 0) {
2145 throw new IllegalArgumentException("modifiers must not contain "
2152 metaState = metaStateFilterDirectionalModifiers(metaState, modifiers,
2154 metaState = metaStateFilterDirectionalModifiers(metaState, modifiers,
2156 metaState = metaStateFilterDirectionalModifiers(metaState, modifiers,
2158 metaState = metaStateFilterDirectionalModifiers(metaState, modifiers,
2160 return metaState == modifiers;
2164 int modifiers, int basic, int left, int right) {
2165 final boolean wantBasic = (modifiers & basic) != 0;
2167 final boolean wantLeftOrRight = (modifiers & directional) != 0;
2171 throw new IllegalArgumentException("modifiers must not contain "
2202 * Returns true if only the specified modifiers keys are pressed.
2210 * If the specified modifier mask includes directional modifiers, such as
2213 * If the specified modifier mask includes non-directional modifiers, such as
2216 * If the specified modifier mask includes both directional and non-directional modifiers
2221 * @param modifiers The meta state of the modifier keys to check. May be a combination
2225 * @throws IllegalArgumentException if the modifiers parameter contains invalid modifiers
2228 public final boolean hasModifiers(int modifiers) {
2229 return metaStateHasModifiers(mMetaState, modifiers);