HomeSort by relevance Sort by last modified time
    Searched refs:colorStateList (Results 1 - 19 of 19) 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/support/v7/appcompat/tests/src/android/support/v7/testutils/
TestUtilsActions.java 19 import android.content.res.ColorStateList;
89 * {@link ViewCompat#setBackgroundTintList(View, ColorStateList)} API.
91 public static ViewAction setBackgroundTintListViewCompat(final ColorStateList colorStateList) {
107 ViewCompat.setBackgroundTintList(view, colorStateList);
AppCompatTintableViewActions.java 19 import android.content.res.ColorStateList;
68 public static ViewAction setBackgroundTintList(final ColorStateList colorStateList) {
85 tintableBackgroundView.setSupportBackgroundTintList(colorStateList);
  /frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
ViewBindingAdapterTest.java 18 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 24 import android.content.res.ColorStateList;
322 * @param colorStateList The color state list of the stroke
325 * @see #setStroke(int, ColorStateList, float, float)
327 public void setStroke(int width, ColorStateList colorStateList) {
328 setStroke(width, colorStateList, 0, 0);
347 mGradientState.setStroke(width, ColorStateList.valueOf(color), dashWidth, dashGap);
360 * @param colorStateList The color state list of the stroke
365 * @see #setStroke(int, ColorStateList)
368 int width, ColorStateList colorStateList, float dashWidth, float dashGap)
    [all...]
  /frameworks/base/core/java/android/content/res/
ColorStateList.java 50 * {@link android.content.res.ColorStateList}s are created from XML resource files defined in the
125 public class ColorStateList extends ComplexColor implements Parcelable {
126 private static final String TAG = "ColorStateList";
132 private static final SparseArray<WeakReference<ColorStateList>> sCache = new SparseArray<>();
145 private ColorStateList() {
150 * Creates a ColorStateList that returns the specified mapping from
153 public ColorStateList(int[][] states, @ColorInt int[] colors) {
161 * @return A ColorStateList containing a single color.
164 public static ColorStateList valueOf(@ColorInt int color) {
168 final ColorStateList cached = sCache.valueAt(index).get()
    [all...]
  /frameworks/base/core/java/com/android/internal/util/
NotificationColorUtil.java 25 import android.content.res.ColorStateList;
199 ColorStateList colorStateList = span.getTextColor();
200 if (colorStateList != null) {
201 int[] colors = colorStateList.getColors();
218 new ColorStateList(colorStateList.getStates(), colors),
  /frameworks/base/tools/layoutlib/bridge/src/android/content/res/
BridgeTypedArray.java 274 * {@link android.content.res.ColorStateList}, then the default color from
293 ColorStateList colorStateList = ResourceHelper.getColorStateList(
295 if (colorStateList != null) {
296 return colorStateList.getDefaultColor();
303 public ColorStateList getColorStateList(int index) {
    [all...]
  /cts/tests/tests/content/src/android/content/cts/
ContextTest.java 21 import android.content.res.ColorStateList;
292 final ColorStateList colorStateList = mContext.getColorStateList(R.color.color2);
294 final int focusColor = colorStateList.getColorForState(focusedState, R.color.failColor);
  /cts/tests/tests/content/src/android/content/res/cts/
ResourcesTest.java 27 import android.content.res.ColorStateList;
202 final ColorStateList colorStateList = mResources.getColorStateList(R.color.color1);
204 final int focusColor = colorStateList.getColorForState(focusedState, R.color.failColor);
  /frameworks/base/core/java/android/app/
Notification.java 30 import android.content.res.ColorStateList;
    [all...]
  /prebuilts/sdk/21/
android.jar 
  /external/robolectric/v3/runtime/
android-all-4.1.2_r1-robolectric-0.jar 
android-all-4.2.2_r1.2-robolectric-0.jar 
android-all-4.3_r2-robolectric-0.jar 
android-all-4.4_r1-robolectric-1.jar 
android-all-5.0.0_r2-robolectric-1.jar 
android-all-5.1.1_r9-robolectric-1.jar 

Completed in 322 milliseconds