/cts/tests/tests/util/src/android/util/cts/ |
StateSetTest.java | 21 import android.util.StateSet; 24 * Test StateSet 35 int[] stateSet = {1, 2, 3}; 36 assertEquals(stateSet, StateSet.trimStateSet(stateSet, 3)); 38 int [] stateSet2 = StateSet.trimStateSet(stateSet, 2); 41 assertEquals(stateSet2[i - 1], stateSet[i - 1]); 46 int[] stateSet = {R.attr.state_window_focused [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
StateSetTest.java | 23 * Tests for {@link StateSet} 31 int[] stateSet = new int[3]; 34 stateSet[0] = 1; 35 assertTrue(StateSet.stateSetMatches(stateSpec, stateSet)); 37 stateSet[0] = 2; 38 assertFalse(StateSet.stateSetMatches(stateSpec, stateSet)); 39 // Add another state to the spec which the stateSet doesn't match 41 assertFalse(StateSet.stateSetMatches(stateSpec, stateSet)) [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
StateListDrawableTest.java | 6 import android.util.StateSet; 38 stateListDrawable.addState(StateSet.WILD_CARD, drawable); 41 Drawable drawableForState = shadow.getDrawableForState(StateSet.WILD_CARD);
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/ |
StateListDrawableTest.java | 24 import android.util.StateSet; 47 slDrawable.addState(StateSet.WILD_CARD, 61 slDrawable.addState(StateSet.WILD_CARD,
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowStateListDrawable.java | 5 import android.util.StateSet; 34 public void addState(int[] stateSet, Drawable drawable) { 35 stateToDrawable.put(createStateList(stateSet), drawable); 41 * @param stateSet Int array describing the state 44 public Drawable getDrawableForState(int[] stateSet) { 45 return stateToDrawable.get(createStateList(stateSet)); 48 private List<Integer> createStateList(int[] stateSet) { 50 if (stateSet == StateSet.WILD_CARD) { 53 for (int state : stateSet) { [all...] |
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
StateListDrawableTest.java | 34 import android.util.StateSet; 67 mStateListDrawable.addState(StateSet.WILD_CARD, null); 73 mStateListDrawable.addState(StateSet.WILD_CARD, new MockDrawable()); 98 mStateListDrawable.addState(StateSet.WILD_CARD, new MockDrawable()); 99 mStateListDrawable.addState(StateSet.WILD_CARD, new MockDrawable()); 122 assertTrue(mStateListDrawable.onStateChange(StateSet.WILD_CARD)); 131 mStateListDrawable.addState(StateSet.WILD_CARD, new MockDrawable()); 150 mStateListDrawable.onStateChange(StateSet.WILD_CARD); 172 mStateListDrawable.setState(StateSet.WILD_CARD); 194 mStateListDrawable.setState(StateSet.WILD_CARD) [all...] |
ClipDrawableTest.java | 38 import android.util.StateSet; 238 assertEquals(StateSet.WILD_CARD, mockDrawable.getState());
|
DrawableTest.java | 44 import android.util.StateSet; 425 assertEquals(StateSet.WILD_CARD, mockDrawable.getState());
|
ScaleDrawableTest.java | 37 import android.util.StateSet; 281 assertFalse(mockScaleDrawable.onStateChange(StateSet.WILD_CARD)); 528 public boolean setState(final int[] stateSet) { 530 return super.setState(stateSet);
|
LayerDrawableTest.java | 44 import android.util.StateSet; 561 assertFalse(layerDrawable.onStateChange(StateSet.WILD_CARD)); 820 public boolean setState(final int[] stateSet) { [all...] |
/frameworks/base/core/java/android/util/ |
StateSet.java | 38 public class StateSet { 39 /** @hide */ public StateSet() {} 54 * Return whether the stateSet matches the desired stateSpec. 58 * @param stateSet an array of {@link android.view.View} states 60 public static boolean stateSetMatches(int[] stateSpec, int[] stateSet) { 61 if (stateSet == null) { 65 int stateSetSize = stateSet.length; 82 final int state = stateSet[j];
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
StateListDrawable.java | 28 import android.util.StateSet; 81 * @param stateSet - An array of resource Ids to associate with the image. 85 public void addState(int[] stateSet, Drawable drawable) { 87 mStateListState.addStateSet(stateSet, drawable); 99 protected boolean onStateChange(int[] stateSet) { 100 int idx = mStateListState.indexOfStateSet(stateSet); 102 + Arrays.toString(stateSet) + " found " + idx); 104 idx = mStateListState.indexOfStateSet(StateSet.WILD_CARD); 109 return super.onStateChange(stateSet); 169 states = StateSet.trimStateSet(states, j) [all...] |
Drawable.java | 38 import android.util.StateSet; 120 private int[] mStateSet = StateSet.WILD_CARD; 457 * <p>Note: The Drawable holds a reference on to <var>stateSet</var> 461 * @param stateSet The new set of states to be displayed. 467 public boolean setState(final int[] stateSet) { 468 if (!Arrays.equals(mStateSet, stateSet)) { 469 mStateSet = stateSet; 470 return onStateChange(stateSet); [all...] |
/frameworks/base/core/java/android/content/res/ |
ColorStateList.java | 26 import android.util.StateSet; 221 stateSpec = StateSet.trimStateSet(stateSpec, j); 266 * @param stateSet an array of {@link android.view.View} states 268 * {@link ColorStateList} that matches the stateSet. 272 public int getColorForState(int[] stateSet, int defaultColor) { 276 if (StateSet.stateSetMatches(stateSpec, stateSet)) {
|
/cts/tests/tests/widget/src/android/widget/cts/ |
CheckedTextViewTest.java | 30 import android.util.StateSet; 199 assertEquals(StateSet.WILD_CARD, firstDrawable.getState()); 214 assertEquals(StateSet.WILD_CARD, secondDrawable.getState());
|
CompoundButtonTest.java | 32 import android.util.StateSet; 191 assertEquals(StateSet.WILD_CARD, firstDrawable.getState()); 200 assertEquals(StateSet.WILD_CARD, secondDrawable.getState());
|
ImageViewTest.java | 42 import android.util.StateSet; 375 assertSame(StateSet.WILD_CARD, drawable.getState());
|
/external/llvm/utils/TableGen/ |
DFAPacketizerEmitter.cpp | 134 typedef std::set<State *, less_ptr<State> > StateSet; 135 StateSet states; 283 DFA::StateSet::iterator SI = states.begin();
|
/external/regex-re2/re2/ |
dfa.cc | 172 typedef unordered_set<State*, StateHash> StateSet; 174 typedef unordered_set<State*, StateHash, StateEqual> StateSet; 363 StateSet state_cache_; // All States computed so far. 743 StateSet::iterator it = state_cache_.find(&state); 786 for (StateSet::iterator it = state_cache_.begin(); [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
SizeAdaptiveLayout.java | 35 import android.util.StateSet; 102 sld.setState(StateSet.WILD_CARD);
|
/external/clang/lib/StaticAnalyzer/Core/ |
ProgramState.cpp | 38 Mgr.StateSet.RemoveNode(s); 360 if (ProgramState *I = StateSet.FindNodeOrInsertPos(ID, InsertPos)) 372 StateSet.InsertNode(newState, InsertPos);
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
ProgramState.h | 448 /// StateSet - FoldingSet containing all the states created for analyzing 450 llvm::FoldingSet<ProgramState> StateSet;
|
/frameworks/base/core/java/android/widget/ |
AbsListView.java | 40 import android.util.StateSet; [all...] |
/prebuilts/sdk/11/ |
android.jar | |
/prebuilts/sdk/12/ |
android.jar | |