/frameworks/base/tools/layoutlib/bridge/src/android/content/res/ |
D | Resources_Delegate.java | 44 import android.content.res.Resources.NotFoundException; 45 import android.content.res.Resources.Theme; 70 public static Resources initSystem(BridgeContext context, in initSystem() 75 Resources resources = new Resources(Resources_Delegate.class.getClassLoader()); in initSystem() 79 return Resources.mSystem = resources; in initSystem() 88 Resources.mSystem.mContext = null; in disposeSystem() 89 Resources.mSystem.mLayoutlibCallback = null; in disposeSystem() 90 Resources.mSystem = null; in disposeSystem() 93 public static BridgeTypedArray newTypeArray(Resources resources, int numEntries, in newTypeArray() 98 private static Pair<ResourceType, String> getResourceInfo(Resources resources, int id, in getResourceInfo() [all …]
|
D | Resources_Theme_Delegate.java | 28 import android.content.res.Resources.NotFoundException; 29 import android.content.res.Resources.Theme; 30 import android.content.res.Resources.ThemeKey; 56 Resources thisResources, Theme thisTheme, in obtainStyledAttributes() 67 Resources thisResources, Theme thisTheme, in obtainStyledAttributes() 80 Resources thisResources, Theme thisTheme, in obtainStyledAttributes() 92 Resources thisResources, Theme thisTheme, in resolveAttribute() 103 /*package*/ static TypedArray resolveAttributes(Resources thisResources, Theme thisTheme, in resolveAttributes()
|
/frameworks/base/core/java/android/view/ |
D | ContextThemeWrapper.java | 24 import android.content.res.Resources; 32 private Resources.Theme mTheme; 35 private Resources mResources; 73 public ContextThemeWrapper(Context base, Resources.Theme theme) { in ContextThemeWrapper() 120 public Resources getResources() { in getResources() 124 private Resources getResourcesInternal() { in getResourcesInternal() 151 public Resources.Theme getTheme() { in getTheme() 156 mThemeResource = Resources.selectDefaultTheme(mThemeResource, in getTheme() 185 protected void onApplyThemeResource(Resources.Theme theme, int resId, boolean first) { in onApplyThemeResource() 193 final Resources.Theme theme = getBaseContext().getTheme(); in initializeTheme()
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteGlobal.java | 19 import android.content.res.Resources; 75 Resources.getSystem().getString( in getDefaultJournalMode() 84 Resources.getSystem().getInteger( in getJournalSizeLimit() 93 Resources.getSystem().getString( in getDefaultSyncMode() 102 Resources.getSystem().getString( in getWALSyncMode() 111 Resources.getSystem().getInteger( in getWALAutoCheckpoint() 121 Resources.getSystem().getInteger( in getWALConnectionPoolSize()
|
/frameworks/support/v7/appcompat/src/android/support/v7/view/ |
D | ContextThemeWrapper.java | 25 import android.content.res.Resources; 41 private Resources.Theme mTheme; 44 private Resources mResources; 82 public ContextThemeWrapper(Context base, Resources.Theme theme) { in ContextThemeWrapper() 123 public Resources getResources() { in getResources() 127 private Resources getResourcesInternal() { in getResourcesInternal() 152 public Resources.Theme getTheme() { in getTheme() 187 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { in onApplyThemeResource() 195 Resources.Theme theme = getBaseContext().getTheme(); in initializeTheme()
|
/frameworks/support/compat/java/android/support/v4/content/res/ |
D | ConfigurationHelper.java | 22 import android.content.res.Resources; 42 public static int getScreenHeightDp(@NonNull Resources resources) { in getScreenHeightDp() 55 public static int getScreenWidthDp(@NonNull Resources resources) { in getScreenWidthDp() 68 public static int getSmallestScreenWidthDp(@NonNull Resources resources) { in getSmallestScreenWidthDp() 78 public static int getDensityDpi(@NonNull Resources resources) { in getDensityDpi()
|
D | ResourcesCompat.java | 24 import android.content.res.Resources; 25 import android.content.res.Resources.NotFoundException; 26 import android.content.res.Resources.Theme; 75 public static Drawable getDrawable(@NonNull Resources res, @DrawableRes int id, in getDrawable() 108 public static Drawable getDrawableForDensity(@NonNull Resources res, @DrawableRes int id, in getDrawableForDensity() 138 public static int getColor(@NonNull Resources res, @ColorRes int id, @Nullable Theme theme) in getColor() 168 public static ColorStateList getColorStateList(@NonNull Resources res, @ColorRes int id, in getColorStateList() 217 final Resources resources = context.getResources(); in loadFont() 228 @NonNull Context context, Resources wrapper, TypedValue value, int id, int style, in loadFont()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | ThemedSpinnerAdapter.java | 21 import android.content.res.Resources; 22 import android.content.res.Resources.Theme; 51 void setDropDownViewTheme(@Nullable Resources.Theme theme); in setDropDownViewTheme() 61 Resources.Theme getDropDownViewTheme(); in getDropDownViewTheme() 122 public void setDropDownViewTheme(@Nullable Resources.Theme theme) { in setDropDownViewTheme() 138 public Resources.Theme getDropDownViewTheme() { in getDropDownViewTheme()
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/custom/ |
D | ContextWrapperFrameLayout.java | 21 import android.content.res.Resources; 39 private final Resources mResources; 47 public Resources getResources() { in getResources() 52 public static class CustomResources extends Resources { 53 public CustomResources(Resources res) { in CustomResources()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesManagerTest.java | 71 Resources resources = mResourcesManager.getResources( in testMultipleCallsWithIdenticalParametersCacheReference() 76 Resources newResources = mResourcesManager.getResources( in testMultipleCallsWithIdenticalParametersCacheReference() 85 Resources resources = mResourcesManager.getResources( in testMultipleCallsWithDifferentParametersReturnDifferentReferences() 92 Resources newResources = mResourcesManager.getResources( in testMultipleCallsWithDifferentParametersReturnDifferentReferences() 101 Resources resources1 = mResourcesManager.getResources( in testAddingASplitCreatesANewImpl() 106 Resources resources2 = mResourcesManager.getResources( in testAddingASplitCreatesANewImpl() 117 Resources resources1 = mResourcesManager.getResources( in testUpdateConfigurationUpdatesAllAssetManagers() 122 Resources resources2 = mResourcesManager.getResources( in testUpdateConfigurationUpdatesAllAssetManagers() 130 Resources resources3 = mResourcesManager.getResources( in testUpdateConfigurationUpdatesAllAssetManagers() 163 Resources resources1 = mResourcesManager.getResources( in testTwoActivitiesWithIdenticalParametersShareImpl() [all …]
|
D | ResourcesLocaleTest.java | 35 final Resources resources = getContext().getResources(); in extractApkAndGetPath() 43 private Resources createResourcesWithApk(int rawApkId) throws Exception { in createResourcesWithApk() 49 return new Resources(assets, dm, new Configuration()); in createResourcesWithApk() 52 private static void ensureNoLanguage(Resources resources, String language) { in ensureNoLanguage() 66 final Resources resources = createResourcesWithApk(R.raw.locales); in testEnglishIsAlwaysConsideredSupported() 83 final Resources resources = createResourcesWithApk(R.raw.locales); in testSelectFirstSupportedLanguage()
|
D | ConfigurationBoundResourceCacheTest.java | 44 final Resources res = getActivity().getResources(); in testGetEmpty() 51 final Resources res = getActivity().getResources(); in testSetGet() 60 final Resources res = getActivity().getResources(); in testSetGetThemed() 70 final Resources res = getActivity().getResources(); in testMultiThreadPutGet() 82 final Resources res = getActivity().getResources(); in testVoidConfigChange() 103 final Resources res = getActivity().getResources(); in testEffectiveConfigChange() 126 final Resources res = getActivity().getResources(); in testConfigChangeMultipleResources() 161 final Resources res = getActivity().getResources(); in testConfigChangeMultipleThemes() 171 final Resources.Theme theme = i == 0 ? getActivity().getTheme() : null; in testConfigChangeMultipleThemes() 185 final Resources.Theme theme = i == 0 ? getActivity().getTheme() : null; in testConfigChangeMultipleThemes() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | ThemedSpinnerAdapter.java | 20 import android.content.res.Resources; 21 import android.content.res.Resources.Theme; 42 void setDropDownViewTheme(@Nullable Resources.Theme theme); in setDropDownViewTheme() 52 Resources.Theme getDropDownViewTheme(); in getDropDownViewTheme()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
D | Partner.java | 25 import android.content.res.Resources; 88 final Resources ourResources = context.getResources(); in getResourceEntry() 100 public Resources resources; 104 ResourceEntry(Resources resources, int id, boolean isOverlay) { in ResourceEntry() 141 final Resources res = pm.getResourcesForApplication(appInfo); in get() 161 private final Resources mResources; 163 private Partner(String packageName, Resources res) { in Partner() 172 public Resources getResources() { in getResources()
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
D | ResourcesFlusher.java | 20 import android.content.res.Resources; 44 static boolean flush(@NonNull final Resources resources) { in flush() 56 private static boolean flushLollipops(@NonNull final Resources resources) { in flushLollipops() 59 sDrawableCacheField = Resources.class.getDeclaredField("mDrawableCache"); in flushLollipops() 82 private static boolean flushMarshmallows(@NonNull final Resources resources) { in flushMarshmallows() 85 sDrawableCacheField = Resources.class.getDeclaredField("mDrawableCache"); in flushMarshmallows() 111 private static boolean flushNougats(@NonNull final Resources resources) { in flushNougats() 114 sResourcesImplField = Resources.class.getDeclaredField("mResourcesImpl"); in flushNougats()
|
/frameworks/support/v7/appcompat/src/android/support/v7/content/res/ |
D | AppCompatColorStateListInflater.java | 23 import android.content.res.Resources; 53 public static ColorStateList createFromXml(@NonNull Resources r, @NonNull XmlPullParser parser, in createFromXml() 54 @Nullable Resources.Theme theme) throws XmlPullParserException, IOException { in createFromXml() 78 private static ColorStateList createFromXmlInner(@NonNull Resources r, in createFromXmlInner() 80 @Nullable Resources.Theme theme) in createFromXmlInner() 94 private static ColorStateList inflate(@NonNull Resources r, @NonNull XmlPullParser parser, in inflate() 95 @NonNull AttributeSet attrs, @Nullable Resources.Theme theme) in inflate() 162 private static TypedArray obtainAttributes(Resources res, Resources.Theme theme, in obtainAttributes()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | TransitionDrawable.java | 20 import android.content.res.Resources; 89 this(new TransitionState(null, null, null), (Resources) null); in TransitionDrawable() 92 private TransitionDrawable(TransitionState state, Resources res) { in TransitionDrawable() 101 LayerState createConstantState(LayerState state, Resources res) { in createConstantState() 248 TransitionState(TransitionState orig, TransitionDrawable owner, Resources res) { in TransitionState() 254 return new TransitionDrawable(this, (Resources) null); in newDrawable() 258 public Drawable newDrawable(Resources res) { in newDrawable()
|
D | Drawable.java | 32 import android.content.res.Resources; 33 import android.content.res.Resources.Theme; 1158 public static Drawable createFromResourceStream(Resources res, TypedValue value, in createFromResourceStream() 1172 public static Drawable createFromResourceStream(Resources res, TypedValue value, in createFromResourceStream() 1216 public static Drawable createFromXml(@NonNull Resources r, @NonNull XmlPullParser parser) in createFromXml() 1227 public static Drawable createFromXml(@NonNull Resources r, @NonNull XmlPullParser parser, in createFromXml() 1238 public static Drawable createFromXmlForDensity(@NonNull Resources r, in createFromXmlForDensity() 1269 public static Drawable createFromXmlInner(@NonNull Resources r, @NonNull XmlPullParser parser, in createFromXmlInner() 1281 public static Drawable createFromXmlInner(@NonNull Resources r, @NonNull XmlPullParser parser, in createFromXmlInner() 1292 static Drawable createFromXmlInnerForDensity(@NonNull Resources r, in createFromXmlInnerForDensity() [all …]
|
/frameworks/base/core/java/android/app/ |
D | ResourcesManager.java | 28 import android.content.res.Resources; 63 private static final Predicate<WeakReference<Resources>> sEmptyReferencePredicate = 64 new Predicate<WeakReference<Resources>>() { 66 public boolean test(WeakReference<Resources> weakRef) { 92 private final ArrayList<WeakReference<Resources>> mResourceReferences = new ArrayList<>(); 99 public final ArrayList<WeakReference<Resources>> activityResources = new ArrayList<>(); 245 public Display getAdjustedDisplay(final int displayId, Resources resources) { in getAdjustedDisplay() 439 private @NonNull Resources getOrCreateResourcesForActivityLocked(@NonNull IBinder activityToken, in getOrCreateResourcesForActivityLocked() 447 WeakReference<Resources> weakResourceRef = activityResources.activityResources.get(i); in getOrCreateResourcesForActivityLocked() 448 Resources resources = weakResourceRef.get(); in getOrCreateResourcesForActivityLocked() [all …]
|
/frameworks/support/compat/kitkat/android/support/v4/graphics/drawable/ |
D | DrawableWrapperApi19.java | 19 import android.content.res.Resources; 32 DrawableWrapperApi19(DrawableWrapperState state, Resources resources) { in DrawableWrapperApi19() 54 @Nullable Resources res) { in DrawableWrapperStateKitKat() 59 public Drawable newDrawable(@Nullable Resources res) { in newDrawable()
|
/frameworks/support/core-utils/java/android/support/v4/graphics/drawable/ |
D | RoundedBitmapDrawableFactory.java | 19 import android.content.res.Resources; 37 DefaultRoundedBitmapDrawable(Resources res, Bitmap bitmap) { in DefaultRoundedBitmapDrawable() 66 public static RoundedBitmapDrawable create(Resources res, Bitmap bitmap) { in create() 76 public static RoundedBitmapDrawable create(Resources res, in create() 89 public static RoundedBitmapDrawable create(Resources res, in create()
|
/frameworks/support/compat/tests/java/android/support/v4/content/res/ |
D | ResourcesCompatTest.java | 26 import android.content.res.Resources; 42 private Resources mResources; 59 final Resources.Theme yellowTheme = mResources.newTheme(); in testGetColor() 65 final Resources.Theme lilacTheme = mResources.newTheme(); in testGetColor() 90 final Resources.Theme yellowTheme = mResources.newTheme(); in testGetColorStateList() 104 final Resources.Theme lilacTheme = mResources.newTheme(); in testGetColorStateList() 130 final Resources.Theme yellowTheme = mResources.newTheme(); in testGetDrawable() 138 final Resources.Theme lilacTheme = mResources.newTheme(); in testGetDrawable() 227 final Resources.Theme yellowTheme = mResources.newTheme(); in testGetDrawableForDensityThemed() 230 final Resources.Theme lilacTheme = mResources.newTheme(); in testGetDrawableForDensityThemed() [all …]
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | DecorContext.java | 21 import android.content.res.Resources; 36 private Resources mActivityResources; 38 public DecorContext(Context context, Resources activityResources) { in DecorContext() 62 public Resources getResources() { in getResources()
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
D | ResourceRequestKey.java | 19 import android.content.res.Resources; 29 private Resources mResources; 36 public static ResourceRequestKey from(Resources res, int resId) { in from() 43 private ResourceRequestKey(Resources res, int resId) { in ResourceRequestKey()
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/ |
D | TintResourcesTest.java | 22 import android.content.res.Resources; 44 final Resources tintResources = new TintResources(getActivity(), testResources); in testTintResourcesDelegateBackToOriginalResources() 54 private static class TestResources extends Resources { 57 public TestResources(Resources res) { in TestResources()
|