Lines Matching refs:state
23 * represents the state of a {@link android.view.View} (e.g. focused,
27 * A state spec is an array of signed ints where each element
29 * {@link android.view.View} state.
31 * Utils dealing with state sets.
33 * In theory we could encapsulate the state set and state spec arrays
47 * @param stateSetOrSpec a state set or state spec.
82 final int state = stateSet[j];
83 if (state == 0) {
86 // We didn't find this must-match state.
93 if (state == stateSpecState) {
99 // Any match of a must-not-match state returns false.
106 // find a must-match state.
114 * Return whether the state matches the desired stateSpec.
118 * @param state a {@link android.view.View} state
120 public static boolean stateSetMatches(int[] stateSpec, int state) {
129 if (state != stateSpecState) {
134 if (state == -stateSpecState) {