OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:stateSet
(Results
1 - 15
of
15
) sorted by null
/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
...]
/frameworks/base/core/java/android/util/
StateSet.java
38
public class
StateSet
{
52
* Return whether the
stateSet
matches the desired stateSpec.
56
* @param
stateSet
an array of {@link android.view.View} states
58
public static boolean stateSetMatches(int[] stateSpec, int[]
stateSet
) {
59
if (
stateSet
== null) {
63
int stateSetSize =
stateSet
.length;
80
final int state =
stateSet
[j];
/frameworks/base/graphics/java/android/graphics/drawable/
StateListDrawable.java
27
import android.util.
StateSet
;
74
* @param
stateSet
- An array of resource Ids to associate with the image.
78
public void addState(int[]
stateSet
, Drawable drawable) {
80
mStateListState.addStateSet(
stateSet
, drawable);
92
protected boolean onStateChange(int[]
stateSet
) {
93
int idx = mStateListState.indexOfStateSet(
stateSet
);
95
idx = mStateListState.indexOfStateSet(
StateSet
.WILD_CARD);
100
return super.onStateChange(
stateSet
);
156
states =
StateSet
.trimStateSet(states, j);
224
* @param
stateSet
the state set to look u
[
all
...]
Drawable.java
31
import android.util.
StateSet
;
102
private int[] mStateSet =
StateSet
.WILD_CARD;
387
* <p>Note: The Drawable holds a reference on to <var>
stateSet
</var>
391
* @param
stateSet
The new set of states to be displayed.
397
public boolean setState(final int[]
stateSet
) {
398
if (!Arrays.equals(mStateSet,
stateSet
)) {
399
mStateSet =
stateSet
;
400
return onStateChange(
stateSet
);
[
all
...]
/cts/tests/tests/util/src/android/util/cts/
StateSetTest.java
21
import android.util.
StateSet
;
28
* Test
StateSet
30
@TestTargetClass(
StateSet
.class)
46
int[]
stateSet
= {1, 2, 3};
47
assertEquals(
stateSet
,
StateSet
.trimStateSet(
stateSet
, 3));
49
int [] stateSet2 =
StateSet
.trimStateSet(
stateSet
, 2);
52
assertEquals(stateSet2[i - 1],
stateSet
[i - 1])
[
all
...]
/external/webkit/WebCore/accessibility/gtk/
AccessibilityObjectWrapperAtk.cpp
461
static void setAtkStateSetFromCoreObject(AccessibilityObject* coreObject, AtkStateSet*
stateSet
)
468
atk_state_set_add_state(
stateSet
, ATK_STATE_CHECKED);
477
atk_state_set_add_state(
stateSet
, ATK_STATE_EDITABLE);
481
atk_state_set_add_state(
stateSet
, ATK_STATE_ENABLED);
482
atk_state_set_add_state(
stateSet
, ATK_STATE_SENSITIVE);
486
atk_state_set_add_state(
stateSet
, ATK_STATE_FOCUSABLE);
489
atk_state_set_add_state(
stateSet
, ATK_STATE_FOCUSED);
494
atk_state_set_add_state(
stateSet
, ATK_STATE_INDETERMINATE);
497
atk_state_set_add_state(
stateSet
, ATK_STATE_MULTISELECTABLE);
502
atk_state_set_add_state(
stateSet
, ATK_STATE_PRESSED)
[
all
...]
/frameworks/base/core/java/android/content/res/
ColorStateList.java
26
import android.util.
StateSet
;
219
stateSpec =
StateSet
.trimStateSet(stateSpec, j);
264
* @param
stateSet
an array of {@link android.view.View} states
266
* {@link ColorStateList} that matches the
stateSet
.
270
public int getColorForState(int[]
stateSet
, int defaultColor) {
274
if (
StateSet
.stateSetMatches(stateSpec,
stateSet
)) {
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
StateListDrawableTest.java
34
import android.util.
StateSet
;
82
mStateListDrawable.addState(
StateSet
.WILD_CARD, null);
88
mStateListDrawable.addState(
StateSet
.WILD_CARD, new MockDrawable());
123
mStateListDrawable.addState(
StateSet
.WILD_CARD, new MockDrawable());
124
mStateListDrawable.addState(
StateSet
.WILD_CARD, new MockDrawable());
147
assertTrue(mStateListDrawable.onStateChange(
StateSet
.WILD_CARD));
163
mStateListDrawable.addState(
StateSet
.WILD_CARD, new MockDrawable());
189
mStateListDrawable.onStateChange(
StateSet
.WILD_CARD);
217
mStateListDrawable.setState(
StateSet
.WILD_CARD);
239
mStateListDrawable.setState(
StateSet
.WILD_CARD)
[
all
...]
ScaleDrawableTest.java
42
import android.util.
StateSet
;
359
assertFalse(mockScaleDrawable.onStateChange(
StateSet
.WILD_CARD));
643
public boolean setState(final int[]
stateSet
) {
645
return super.setState(
stateSet
);
LayerDrawableTest.java
49
import android.util.
StateSet
;
693
assertFalse(layerDrawable.onStateChange(
StateSet
.WILD_CARD));
[
all
...]
/frameworks/base/core/java/android/widget/
ExpandableListView.java
363
final int
stateSet
[] = pos.position.flatListPos == pos.groupMetadata.lastChildFlPos
366
indicator.setState(
stateSet
);
[
all
...]
/prebuilt/sdk/4/
android.jar
/prebuilt/sdk/6/
android.jar
/prebuilt/sdk/5/
android.jar
/prebuilt/sdk/7/
android.jar
Completed in 624 milliseconds