Searched refs:stateSet (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/util/ |
D | StateSetTest.java | 31 int[] stateSet = new int[3]; in testStateSetPositiveMatches() local 34 stateSet[0] = 1; in testStateSetPositiveMatches() 35 assertTrue(StateSet.stateSetMatches(stateSpec, stateSet)); in testStateSetPositiveMatches() 37 stateSet[0] = 2; in testStateSetPositiveMatches() 38 assertFalse(StateSet.stateSetMatches(stateSpec, stateSet)); in testStateSetPositiveMatches() 41 assertFalse(StateSet.stateSetMatches(stateSpec, stateSet)); in testStateSetPositiveMatches() 43 stateSet[1] = 1; in testStateSetPositiveMatches() 44 assertTrue(StateSet.stateSetMatches(stateSpec, stateSet)); in testStateSetPositiveMatches() 46 stateSet[2] = 12345; in testStateSetPositiveMatches() 47 assertTrue(StateSet.stateSetMatches(stateSpec, stateSet)); in testStateSetPositiveMatches() [all …]
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | StateListDrawable.java | 85 public void addState(int[] stateSet, Drawable drawable) { in addState() argument 87 mStateListState.addStateSet(stateSet, drawable); in addState() 99 protected boolean onStateChange(int[] stateSet) { in onStateChange() argument 100 int idx = mStateListState.indexOfStateSet(stateSet); in onStateChange() 102 + Arrays.toString(stateSet) + " found " + idx); in onStateChange() 109 return super.onStateChange(stateSet); in onStateChange() 243 public int getStateDrawableIndex(int[] stateSet) { in getStateDrawableIndex() argument 244 return mStateListState.indexOfStateSet(stateSet); in getStateDrawableIndex() 277 int addStateSet(int[] stateSet, Drawable drawable) { in addStateSet() argument 279 mStateSets[pos] = stateSet; in addStateSet() [all …]
|
D | Drawable.java | 461 public boolean setState(final int[] stateSet) { in setState() argument 462 if (!Arrays.equals(mStateSet, stateSet)) { in setState() 463 mStateSet = stateSet; in setState() 464 return onStateChange(stateSet); in setState()
|
/frameworks/base/core/java/android/util/ |
D | StateSet.java | 60 public static boolean stateSetMatches(int[] stateSpec, int[] stateSet) { in stateSetMatches() argument 61 if (stateSet == null) { in stateSetMatches() 65 int stateSetSize = stateSet.length; in stateSetMatches() 82 final int state = stateSet[j]; in stateSetMatches()
|
/frameworks/base/core/java/android/content/res/ |
D | ColorStateList.java | 272 public int getColorForState(int[] stateSet, int defaultColor) { in getColorForState() argument 276 if (StateSet.stateSetMatches(stateSpec, stateSet)) { in getColorForState()
|
/frameworks/base/core/java/android/widget/ |
D | ExpandableListView.java | 367 final int stateSet[] = pos.position.flatListPos == pos.groupMetadata.lastChildFlPos in getIndicator() local 370 indicator.setState(stateSet); in getIndicator()
|