Lines Matching defs:modifiers

42  * Meta states describe the pressed state of key modifiers
2000 // These bits are known to be used for purposes other than specifying modifiers.
2109 * Returns true if no modifiers keys are pressed according to the specified meta state.
2137 * If the specified modifier mask includes directional modifiers, such as
2140 * If the specified modifier mask includes non-directional modifiers, such as
2143 * If the specified modifier mask includes both directional and non-directional modifiers
2149 * @param modifiers The meta state of the modifier keys to check. May be a combination
2153 * @throws IllegalArgumentException if the modifiers parameter contains invalid modifiers
2156 public static boolean metaStateHasModifiers(int metaState, int modifiers) {
2159 // are not valid modifiers.
2160 if ((modifiers & META_INVALID_MODIFIER_MASK) != 0) {
2161 throw new IllegalArgumentException("modifiers must not contain "
2168 metaState = metaStateFilterDirectionalModifiers(metaState, modifiers,
2170 metaState = metaStateFilterDirectionalModifiers(metaState, modifiers,
2172 metaState = metaStateFilterDirectionalModifiers(metaState, modifiers,
2174 metaState = metaStateFilterDirectionalModifiers(metaState, modifiers,
2176 return metaState == modifiers;
2180 int modifiers, int basic, int left, int right) {
2181 final boolean wantBasic = (modifiers & basic) != 0;
2183 final boolean wantLeftOrRight = (modifiers & directional) != 0;
2187 throw new IllegalArgumentException("modifiers must not contain "
2218 * Returns true if only the specified modifiers keys are pressed.
2226 * If the specified modifier mask includes directional modifiers, such as
2229 * If the specified modifier mask includes non-directional modifiers, such as
2232 * If the specified modifier mask includes both directional and non-directional modifiers
2237 * @param modifiers The meta state of the modifier keys to check. May be a combination
2241 * @throws IllegalArgumentException if the modifiers parameter contains invalid modifiers
2244 public final boolean hasModifiers(int modifiers) {
2245 return metaStateHasModifiers(mMetaState, modifiers);