Searched defs:getColorStateList (Results 1 - 13 of 13) sorted by relevance

/frameworks/base/core/java/android/content/res/
H A DCompatResources.java61 public ColorStateList getColorStateList(@ColorRes int id) throws NotFoundException { method in class:CompatResources
62 return getColorStateList(id, getTheme());
H A DTypedArray.java538 public ColorStateList getColorStateList(@StyleableRes int index) { method in class:TypedArray
H A DResources.java992 * @deprecated Use {@link #getColorStateList(int, Theme)} instead.
996 public ColorStateList getColorStateList(@ColorRes int id) throws NotFoundException { method in class:Resources
997 final ColorStateList csl = getColorStateList(id, null);
1001 + "Resources.getColorStateList(int, Theme) or "
1002 + "Context.getColorStateList(int).", new RuntimeException());
1026 public ColorStateList getColorStateList(@ColorRes int id, @Nullable Theme theme) method in class:Resources
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/content/res/
H A DAppCompatResources.java63 public static ColorStateList getColorStateList(@NonNull Context context, @ColorRes int resId) { method in class:AppCompatResources
66 return context.getColorStateList(resId);
83 return ContextCompat.getColorStateList(context, resId);
/frameworks/support/compat/src/main/java/androidx/core/content/
H A DContextCompat.java498 public static ColorStateList getColorStateList(@NonNull Context context, method in class:ContextCompat
501 return context.getColorStateList(id);
503 return context.getResources().getColorStateList(id);
/frameworks/support/compat/src/main/java/androidx/core/content/res/
H A DResourcesCompat.java157 * calls through to {@link Resources#getColorStateList(int)}.
172 public static ColorStateList getColorStateList(@NonNull Resources res, @ColorRes int id, method in class:ResourcesCompat
175 return res.getColorStateList(id, theme);
177 return res.getColorStateList(id);
/frameworks/base/test-mock/src/android/test/mock/
H A DMockResources.java142 public ColorStateList getColorStateList(int id) throws NotFoundException { method in class:MockResources
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DResourceHelper.java221 public static ColorStateList getColorStateList(@NonNull ResourceValue resValue, method in class:ResourceHelper
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DTintTypedArray.java166 public ColorStateList getColorStateList(int index) { method in class:TintTypedArray
171 AppCompatResources.getColorStateList(mContext, resourceId);
177 return mWrapped.getColorStateList(index);
H A DResourcesWrapper.java162 public ColorStateList getColorStateList(int id) throws NotFoundException { method in class:ResourcesWrapper
163 return mResources.getColorStateList(id);
/frameworks/layoutlib/bridge/src/android/content/res/
H A DBridgeTypedArray.java299 ColorStateList colorStateList = ResourceHelper.getColorStateList(
309 public ColorStateList getColorStateList(int index) { method in class:BridgeTypedArray
314 return ResourceHelper.getColorStateList(mResourceData[index], mContext, mTheme);
H A DResources_Delegate.java244 // Suppress possible NPE. getColorStateList will never return null, it will instead
247 return getColorStateList(resources, id, theme).getDefaultColor();
251 static ColorStateList getColorStateList(Resources resources, int id) throws NotFoundException { method in class:Resources_Delegate
252 return getColorStateList(resources, id, null);
256 static ColorStateList getColorStateList(Resources resources, int id, Theme theme) method in class:Resources_Delegate
262 ColorStateList stateList = ResourceHelper.getColorStateList(resValue.getSecond(),
/frameworks/base/core/java/android/content/
H A DContext.java641 public final ColorStateList getColorStateList(@ColorRes int id) { method in class:Context
642 return getResources().getColorStateList(id, getTheme());

Completed in 139 milliseconds