Lines Matching defs:modifiers

45  * Meta states describe the pressed state of key modifiers
1959 // These bits are known to be used for purposes other than specifying modifiers.
2068 * Returns true if no modifiers keys are pressed according to the specified meta state.
2096 * If the specified modifier mask includes directional modifiers, such as
2099 * If the specified modifier mask includes non-directional modifiers, such as
2102 * If the specified modifier mask includes both directional and non-directional modifiers
2108 * @param modifiers The meta state of the modifier keys to check. May be a combination
2112 * @throws IllegalArgumentException if the modifiers parameter contains invalid modifiers
2115 public static boolean metaStateHasModifiers(int metaState, int modifiers) {
2118 // are not valid modifiers.
2119 if ((modifiers & META_INVALID_MODIFIER_MASK) != 0) {
2120 throw new IllegalArgumentException("modifiers must not contain "
2127 metaState = metaStateFilterDirectionalModifiers(metaState, modifiers,
2129 metaState = metaStateFilterDirectionalModifiers(metaState, modifiers,
2131 metaState = metaStateFilterDirectionalModifiers(metaState, modifiers,
2133 metaState = metaStateFilterDirectionalModifiers(metaState, modifiers,
2135 return metaState == modifiers;
2139 int modifiers, int basic, int left, int right) {
2140 final boolean wantBasic = (modifiers & basic) != 0;
2142 final boolean wantLeftOrRight = (modifiers & directional) != 0;
2146 throw new IllegalArgumentException("modifiers must not contain "
2177 * Returns true if only the specified modifiers keys are pressed.
2185 * If the specified modifier mask includes directional modifiers, such as
2188 * If the specified modifier mask includes non-directional modifiers, such as
2191 * If the specified modifier mask includes both directional and non-directional modifiers
2196 * @param modifiers The meta state of the modifier keys to check. May be a combination
2200 * @throws IllegalArgumentException if the modifiers parameter contains invalid modifiers
2203 public final boolean hasModifiers(int modifiers) {
2204 return metaStateHasModifiers(mMetaState, modifiers);