OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:colorStateList
(Results
1 - 11
of
11
) sorted by null
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
ColorStateListTest.java
22
import android.content.res.
ColorStateList
;
27
* Tests of {@link android.graphics.
ColorStateList
}
44
ColorStateList
colorStateList
= mResources.getColorStateList(R.color.color1);
46
int focusColor =
colorStateList
.getColorForState(focusedState, R.color.failColor);
52
ColorStateList
colorStateList
= mResources.getColorStateList(R.color.color1);
54
int defaultColor =
colorStateList
.getColorForState(emptyState, mFailureColor);
/frameworks/base/core/java/com/android/internal/util/
NotificationColorUtil.java
20
import android.content.res.
ColorStateList
;
193
ColorStateList
colorStateList
= span.getTextColor();
194
if (
colorStateList
!= null) {
195
int[] colors =
colorStateList
.getColors();
212
new
ColorStateList
(
colorStateList
.getStates(), colors),
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
ViewBindingAdapterTest.java
21
import android.content.res.
ColorStateList
;
91
ColorStateList
colorStateList
= view.getBackgroundTintList();
92
assertEquals(mBindingObject.getBackgroundTint(),
colorStateList
.getDefaultColor());
97
colorStateList
= view.getBackgroundTintList();
98
assertEquals(mBindingObject.getBackgroundTint(),
colorStateList
.getDefaultColor());
/packages/apps/Messaging/src/com/android/messaging/util/
SwitchCompatUtils.java
20
import android.content.res.
ColorStateList
;
54
final
ColorStateList
colorStateList
, final PorterDuff.Mode mode) {
59
final Drawable newDrawable = new TintDrawableWrapper(oldDrawable,
colorStateList
, mode);
66
private static
ColorStateList
getSwitchThumbColorStateList(final Context context,
83
return new
ColorStateList
(states, colors);
86
private static
ColorStateList
getSwitchTrackColorStateList(final Context context,
102
return new
ColorStateList
(states, colors);
/frameworks/base/graphics/java/android/graphics/drawable/
GradientDrawable.java
20
import android.content.res.
ColorStateList
;
267
* @param
colorStateList
The color state list of the stroke
270
* @see #setStroke(int,
ColorStateList
, float, float)
272
public void setStroke(int width,
ColorStateList
colorStateList
) {
273
setStroke(width,
colorStateList
, 0, 0);
292
mGradientState.setStroke(width,
ColorStateList
.valueOf(color), dashWidth, dashGap);
305
* @param
colorStateList
The color state list of the stroke
310
* @see #setStroke(int,
ColorStateList
)
313
int width,
ColorStateList
colorStateList, float dashWidth, float dashGap)
[
all
...]
/cts/tests/tests/content/src/android/content/cts/
ContextTest.java
25
import android.content.res.
ColorStateList
;
185
final
ColorStateList
colorStateList
= mContext.getColorStateList(R.color.color2);
187
final int focusColor =
colorStateList
.getColorForState(focusedState, R.color.failColor);
/frameworks/base/core/java/android/content/res/
ColorStateList.java
49
* {@link android.content.res.
ColorStateList
}s are created from XML resource files defined in the
72
public class
ColorStateList
implements Parcelable {
73
private static final String TAG = "
ColorStateList
";
79
private static final SparseArray<WeakReference<
ColorStateList
>> sCache = new SparseArray<>();
92
private
ColorStateList
() {
97
* Creates a
ColorStateList
that returns the specified mapping from
100
public
ColorStateList
(int[][] states, @ColorInt int[] colors) {
108
* @return A
ColorStateList
containing a single color.
111
public static
ColorStateList
valueOf(@ColorInt int color) {
115
final
ColorStateList
cached = sCache.valueAt(index).get()
[
all
...]
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
BridgeTypedArray.java
278
* {@link android.content.res.
ColorStateList
}, then the default color from
297
ColorStateList
colorStateList
= ResourceHelper.getColorStateList(
299
if (
colorStateList
!= null) {
300
return
colorStateList
.getDefaultColor();
307
* Retrieve the
ColorStateList
for the attribute at <var>index</var>.
309
* a color or complex {@link android.content.res.
ColorStateList
} description.
313
* @return
ColorStateList
for the attribute, or null if not defined.
316
public
ColorStateList
getColorStateList(int index) {
328
// let the framework inflate the
ColorStateList
from the XML file
[
all
...]
/cts/tests/tests/content/src/android/content/res/cts/
ResourcesTest.java
27
import android.content.res.
ColorStateList
;
201
final
ColorStateList
colorStateList
= mResources.getColorStateList(R.color.color1);
203
final int focusColor =
colorStateList
.getColorForState(focusedState, R.color.failColor);
/frameworks/base/core/java/android/app/
Notification.java
28
import android.content.res.
ColorStateList
;
[
all
...]
/prebuilts/sdk/21/
android.jar
Completed in 605 milliseconds