/frameworks/support/v4/java/android/support/v4/content/res/ |
D | ConfigurationHelper.java | 19 import android.content.res.Resources; 45 int getScreenHeightDp(@NonNull Resources resources); in getScreenHeightDp() 46 int getScreenWidthDp(@NonNull Resources resources); in getScreenWidthDp() 47 int getSmallestScreenWidthDp(@NonNull Resources resources); in getSmallestScreenWidthDp() 48 int getDensityDpi(@NonNull Resources resources); in getDensityDpi() 53 public int getScreenHeightDp(@NonNull Resources resources) { in getScreenHeightDp() 58 public int getScreenWidthDp(@NonNull Resources resources) { in getScreenWidthDp() 63 public int getSmallestScreenWidthDp(@NonNull Resources resources) { in getSmallestScreenWidthDp() 68 public int getDensityDpi(@NonNull Resources resources) { in getDensityDpi() 75 public int getScreenHeightDp(@NonNull Resources resources) { in getScreenHeightDp() [all …]
|
D | ResourcesCompat.java | 20 import android.content.res.Resources; 21 import android.content.res.Resources.NotFoundException; 22 import android.content.res.Resources.Theme; 57 public static Drawable getDrawable(@NonNull Resources res, @DrawableRes int id, in getDrawable() 90 public static Drawable getDrawableForDensity(@NonNull Resources res, @DrawableRes int id, in getDrawableForDensity() 120 public static int getColor(@NonNull Resources res, @ColorRes int id, @Nullable Theme theme) in getColor() 150 public static ColorStateList getColorStateList(@NonNull Resources res, @ColorRes int id, in getColorStateList()
|
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/ |
D | Resources_Delegate.java | 43 import android.content.res.Resources.NotFoundException; 44 import android.content.res.Resources.Theme; 62 public static Resources initSystem(BridgeContext context, in initSystem() 67 Resources resources = new Resources(assets, metrics, config); in initSystem() 70 return Resources.mSystem = resources; in initSystem() 78 Resources.mSystem.mContext = null; in disposeSystem() 79 Resources.mSystem.mLayoutlibCallback = null; in disposeSystem() 80 Resources.mSystem = null; in disposeSystem() 83 public static BridgeTypedArray newTypeArray(Resources resources, int numEntries, in newTypeArray() 88 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/v4/api23/android/support/v4/content/res/ |
D | ResourcesCompatApi23.java | 20 import android.content.res.Resources; 21 import android.content.res.Resources.NotFoundException; 22 import android.content.res.Resources.Theme; 25 public static int getColor(Resources res, int id, Theme theme) throws NotFoundException { in getColor() 29 public static ColorStateList getColorStateList(Resources res, int id, Theme theme) in getColorStateList()
|
/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/v4/api21/android/support/v4/content/res/ |
D | ResourcesCompatApi21.java | 19 import android.content.res.Resources; 20 import android.content.res.Resources.NotFoundException; 21 import android.content.res.Resources.Theme; 25 public static Drawable getDrawable(Resources res, int id, Theme theme) in getDrawable() 30 public static Drawable getDrawableForDensity(Resources res, int id, int density, Theme theme) in getDrawableForDensity()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
D | Partner.java | 25 import android.content.res.Resources; 84 final Resources ourResources = context.getResources(); in getResourceEntry() 96 public Resources resources; 100 ResourceEntry(Resources resources, int id, boolean isOverlay) { in ResourceEntry() 124 final Resources res = pm.getResourcesForApplication(appInfo); in get() 144 private final Resources mResources; 146 private Partner(String packageName, Resources res) { in Partner() 155 public Resources getResources() { in getResources()
|
/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() 162 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/support/v4/donut/android/support/v4/content/res/ |
D | ConfigurationHelperDonut.java | 20 import android.content.res.Resources; 26 static int getScreenHeightDp(@NonNull Resources resources) { in getScreenHeightDp() 31 static int getScreenWidthDp(@NonNull Resources resources) { in getScreenWidthDp() 36 static int getSmallestScreenWidthDp(@NonNull Resources resources) { in getSmallestScreenWidthDp() 41 static int getDensityDpi(@NonNull Resources resources) { in getDensityDpi()
|
/frameworks/support/v7/appcompat/src/android/support/v7/view/ |
D | ContextThemeWrapper.java | 21 import android.content.res.Resources; 34 private Resources.Theme mTheme; 42 public ContextThemeWrapper(Context base, Resources.Theme theme) { in ContextThemeWrapper() 60 public Resources.Theme getTheme() { in getTheme() 95 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { in onApplyThemeResource() 103 Resources.Theme theme = getBaseContext().getTheme(); in initializeTheme()
|
/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/core/java/android/app/ |
D | ResourcesManager.java | 27 import android.content.res.Resources; 60 private static final Predicate<WeakReference<Resources>> sEmptyReferencePredicate = 61 new Predicate<WeakReference<Resources>>() { 63 public boolean test(WeakReference<Resources> weakRef) { 89 private final ArrayList<WeakReference<Resources>> mResourceReferences = new ArrayList<>(); 96 public final ArrayList<WeakReference<Resources>> activityResources = new ArrayList<>(); 253 throw new Resources.NotFoundException("failed to add asset path " + key.mResDir); in createAssetManager() 260 throw new Resources.NotFoundException( in createAssetManager() 381 private @NonNull Resources getOrCreateResourcesForActivityLocked(@NonNull IBinder activityToken, in getOrCreateResourcesForActivityLocked() 388 WeakReference<Resources> weakResourceRef = activityResources.activityResources.get(i); in getOrCreateResourcesForActivityLocked() [all …]
|
/frameworks/support/v4/eclair/android/support/v4/graphics/drawable/ |
D | DrawableWrapperEclair.java | 20 import android.content.res.Resources; 35 DrawableWrapperEclair(DrawableWrapperState state, Resources resources) { in DrawableWrapperEclair() 45 protected Drawable newDrawableFromState(Drawable.ConstantState state, Resources res) { in newDrawableFromState() 51 @Nullable Resources res) { in DrawableWrapperStateEclair() 56 public Drawable newDrawable(@Nullable Resources res) { in newDrawable()
|
/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/support/v4/ics-mr1/android/support/v4/content/res/ |
D | ResourcesCompatIcsMr1.java | 19 import android.content.res.Resources; 20 import android.content.res.Resources.NotFoundException; 21 import android.content.res.Resources.Theme; 25 public static Drawable getDrawableForDensity(Resources res, int id, int density) in getDrawableForDensity()
|
/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()
|
/frameworks/support/v4/honeycomb_mr2/android/support/v4/content/res/ |
D | ConfigurationHelperHoneycombMr2.java | 20 import android.content.res.Resources; 25 static int getScreenHeightDp(@NonNull Resources resources) { in getScreenHeightDp() 29 static int getScreenWidthDp(@NonNull Resources resources) { in getScreenWidthDp() 33 static int getSmallestScreenWidthDp(@NonNull Resources resources) { in getSmallestScreenWidthDp()
|
/frameworks/support/v4/java/android/support/v4/graphics/drawable/ |
D | DrawableCompat.java | 20 import android.content.res.Resources; 55 void applyTheme(Drawable drawable, Resources.Theme t); in applyTheme() 58 void inflate(Drawable drawable, Resources res, XmlPullParser parser, AttributeSet attrs, in inflate() 59 Resources.Theme t) throws IOException, XmlPullParserException; in inflate() 124 public void applyTheme(Drawable drawable, Resources.Theme t) { in applyTheme() 138 public void inflate(Drawable drawable, Resources res, XmlPullParser parser, in inflate() 139 AttributeSet attrs, Resources.Theme t) in inflate() 243 public void applyTheme(Drawable drawable, Resources.Theme t) { in applyTheme() 258 public void inflate(Drawable drawable, Resources res, XmlPullParser parser, in inflate() 259 AttributeSet attrs, Resources.Theme t) in inflate() [all …]
|
/frameworks/support/v4/honeycomb/android/support/v4/graphics/drawable/ |
D | DrawableWrapperHoneycomb.java | 19 import android.content.res.Resources; 30 DrawableWrapperHoneycomb(DrawableWrapperState state, Resources resources) { in DrawableWrapperHoneycomb() 47 @Nullable Resources res) { in DrawableWrapperStateHoneycomb() 52 public Drawable newDrawable(@Nullable Resources res) { in newDrawable()
|
/frameworks/support/v4/kitkat/android/support/v4/graphics/drawable/ |
D | DrawableWrapperKitKat.java | 19 import android.content.res.Resources; 30 DrawableWrapperKitKat(DrawableWrapperState state, Resources resources) { in DrawableWrapperKitKat() 52 @Nullable Resources res) { in DrawableWrapperStateKitKat() 57 public Drawable newDrawable(@Nullable Resources res) { in newDrawable()
|