Home
last modified time | relevance | path

Searched refs:Resources (Results 1 – 25 of 983) sorted by relevance

12345678910>>...40

/frameworks/layoutlib/bridge/src/android/content/res/
DResources_Delegate.java46 import android.content.res.Resources.NotFoundException;
47 import android.content.res.Resources.Theme;
72 private static WeakHashMap<Resources, LayoutlibCallback> sLayoutlibCallbacks = new
74 private static WeakHashMap<Resources, BridgeContext> sContexts = new
82 public static Resources initSystem(@NonNull BridgeContext context, in initSystem()
87 assert Resources.mSystem == null : in initSystem()
89 Resources resources = new Resources(Resources_Delegate.class.getClassLoader()); in initSystem()
93 return Resources.mSystem = resources; in initSystem()
99 public static BridgeContext getContext(@NonNull Resources resources) { in getContext()
108 public static LayoutlibCallback getLayoutlibCallback(@NonNull Resources resources) { in getLayoutlibCallback()
[all …]
DResources_Theme_Delegate.java28 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()
68 Resources thisResources, Theme thisTheme, in obtainStyledAttributes()
81 Resources thisResources, Theme thisTheme, in obtainStyledAttributes()
93 Resources thisResources, Theme thisTheme, in resolveAttribute()
104 /*package*/ static TypedArray resolveAttributes(Resources thisResources, Theme thisTheme, in resolveAttributes()
/frameworks/base/core/java/android/view/
DContextThemeWrapper.java24 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/
DSQLiteGlobal.java20 import android.content.res.Resources;
79 Resources.getSystem().getString( in getDefaultJournalMode()
89 Resources.getSystem().getBoolean( in isCompatibilityWalSupported()
98 Resources.getSystem().getInteger( in getJournalSizeLimit()
107 Resources.getSystem().getString( in getDefaultSyncMode()
116 Resources.getSystem().getString( in getWALSyncMode()
125 Resources.getSystem().getInteger( in getWALAutoCheckpoint()
135 Resources.getSystem().getInteger( in getWALConnectionPoolSize()
146 Resources.getSystem().getInteger( in getIdleConnectionTimeout()
/frameworks/base/core/tests/coretests/src/android/os/
DVibrationEffectTest.java27 import android.content.res.Resources;
45 Resources r = mockRingtoneResources(new String[0]); in getRingtones_noPrebakedRingtones()
53 Resources r = mockRingtoneResources(); in getRingtones_noPrebakedRingtoneForUri()
61 Resources r = mockRingtoneResources(); in getRingtones_getPrebakedRingtone()
70 private Resources mockRingtoneResources() { in mockRingtoneResources()
78 private Resources mockRingtoneResources(String[] ringtoneUris) { in mockRingtoneResources()
79 Resources mockResources = mock(Resources.class); in mockRingtoneResources()
85 private Context mockContext(Resources r) { in mockContext()
/frameworks/base/tests/testables/src/android/testing/
DTestableResources.java21 import android.content.res.Resources;
39 private final Resources mResources;
43 public TestableResources(Resources realResources) { in TestableResources()
44 mResources = mock(Resources.class, withSettings() in TestableResources()
52 public Resources getResources() { in getResources()
89 if (value == null) throw new Resources.NotFoundException(); in answer()
92 } catch (Resources.NotFoundException e) { in answer()
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/view/
DContextThemeWrapper.java23 import android.content.res.Resources;
35 private Resources.Theme mTheme;
38 private Resources mResources;
76 public ContextThemeWrapper(Context base, Resources.Theme theme) { in ContextThemeWrapper()
108 public Resources getResources() { in getResources()
112 private Resources getResourcesInternal() { in getResourcesInternal()
141 public Resources.Theme getTheme() { in getTheme()
176 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { in onApplyThemeResource()
184 Resources.Theme theme = getBaseContext().getTheme(); in initializeTheme()
/frameworks/layoutlib/bridge/src/android/graphics/
DImageDecoder.java23 import android.content.res.Resources;
55 Resources getResources() { return null; } in getResources()
62 Resources res = getResources(); in computeDstDensity()
122 InputStreamSource(Resources res, InputStream is, int inputDensity) { in InputStreamSource()
131 final Resources mResources;
136 public Resources getResources() { return mResources; } in getResources()
154 @NonNull Resources res, @NonNull TypedValue value) { in AssetInputStreamSource()
168 private final Resources mResources;
172 public Resources getResources() { return mResources; } in getResources()
186 ResourceSource(@NonNull Resources res, int resId) { in ResourceSource()
[all …]
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
DThemedSpinnerAdapter.java21 import android.content.res.Resources;
22 import android.content.res.Resources.Theme;
52 void setDropDownViewTheme(@Nullable Resources.Theme theme); in setDropDownViewTheme()
62 Resources.Theme getDropDownViewTheme(); in getDropDownViewTheme()
123 public void setDropDownViewTheme(@Nullable Resources.Theme theme) { in setDropDownViewTheme()
139 public Resources.Theme getDropDownViewTheme() { in getDropDownViewTheme()
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/custom/
DContextWrapperFrameLayout.java21 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/
DResourcesManagerTest.java71 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 …]
DResourcesLocaleTest.java35 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()
DConfigurationBoundResourceCacheTest.java44 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/v7/appcompat/src/main/java/androidx/appcompat/app/
DResourcesFlusher.java19 import android.content.res.Resources;
45 static boolean flush(@NonNull final Resources resources) { in flush()
57 private static boolean flushLollipops(@NonNull final Resources resources) { in flushLollipops()
60 sDrawableCacheField = Resources.class.getDeclaredField("mDrawableCache"); in flushLollipops()
83 private static boolean flushMarshmallows(@NonNull final Resources resources) { in flushMarshmallows()
86 sDrawableCacheField = Resources.class.getDeclaredField("mDrawableCache"); in flushMarshmallows()
112 private static boolean flushNougats(@NonNull final Resources resources) { in flushNougats()
115 sResourcesImplField = Resources.class.getDeclaredField("mResourcesImpl"); in flushNougats()
/frameworks/base/core/java/android/widget/
DThemedSpinnerAdapter.java20 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/v7/appcompat/src/main/java/androidx/appcompat/content/res/
DAppCompatColorStateListInflater.java20 import android.content.res.Resources;
54 public static ColorStateList createFromXml(@NonNull Resources r, @NonNull XmlPullParser parser, in createFromXml()
55 @Nullable Resources.Theme theme) throws XmlPullParserException, IOException { in createFromXml()
79 private static ColorStateList createFromXmlInner(@NonNull Resources r, in createFromXmlInner()
81 @Nullable Resources.Theme theme) in createFromXmlInner()
95 private static ColorStateList inflate(@NonNull Resources r, @NonNull XmlPullParser parser, in inflate()
96 @NonNull AttributeSet attrs, @Nullable Resources.Theme theme) in inflate()
163 private static TypedArray obtainAttributes(Resources res, Resources.Theme theme, in obtainAttributes()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DBrightnessMappingStrategyTest.java29 import android.content.res.Resources;
121 Resources res = createResources(LUX_LEVELS, DISPLAY_LEVELS_BACKLIGHT); in testSimpleStrategyMappingAtControlPoints()
134 Resources res = createResources(LUX_LEVELS, DISPLAY_LEVELS_BACKLIGHT); in testSimpleStrategyMappingBetweenControlPoints()
148 Resources res = createResources(LUX_LEVELS, DISPLAY_LEVELS_BACKLIGHT); in testSimpleStrategyIgnoresNewConfiguration()
164 Resources res = createResources(LUX_LEVELS, DISPLAY_LEVELS_BACKLIGHT); in testSimpleStrategyIgnoresNullConfiguration()
177 Resources res = createResources(LUX_LEVELS, DISPLAY_LEVELS_NITS, in testPhysicalStrategyMappingAtControlPoints()
190 Resources res = createResources(LUX_LEVELS, DISPLAY_LEVELS_NITS, in testPhysicalStrategyMappingBetweenControlPoints()
207 Resources res = createResources(LUX_LEVELS, DISPLAY_LEVELS_NITS, in testPhysicalStrategyUsesNewConfigurations()
233 Resources res = createResources(LUX_LEVELS, DISPLAY_LEVELS_BACKLIGHT, in testDefaultStrategyIsPhysical()
246 Resources res = createResources(lux, DISPLAY_LEVELS_NITS, in testNonStrictlyIncreasingLuxLevelsFails()
[all …]
/frameworks/base/tests/testables/tests/src/android/testing/
DTestableResourcesTest.java23 import android.content.res.Resources;
42 Resources before = mContext.getResources(); in testLazyInit()
44 Resources after = mContext.getResources(); in testLazyInit()
55 } catch (Resources.NotFoundException e) { in testAddingResource()
72 } catch (Resources.NotFoundException e) { in testClearingResource()
86 @Test(expected = Resources.NotFoundException.class)
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
DPartner.java25 import android.content.res.Resources;
110 final Resources ourResources = context.getResources(); in getResourceEntry()
122 public Resources resources;
126 ResourceEntry(Resources resources, int id, boolean isOverlay) { in ResourceEntry()
163 final Resources res = pm.getResourcesForApplication(appInfo); in get()
183 private final Resources mResources;
185 private Partner(String packageName, Resources res) { in Partner()
194 public Resources getResources() { in getResources()
/frameworks/base/graphics/java/android/graphics/drawable/
DTransitionDrawable.java20 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()
260 TransitionState(TransitionState orig, TransitionDrawable owner, Resources res) { in TransitionState()
266 return new TransitionDrawable(this, (Resources) null); in newDrawable()
270 public Drawable newDrawable(Resources res) { in newDrawable()
/frameworks/opt/bitmap/src/com/android/bitmap/
DResourceRequestKey.java19 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/compat/src/main/java/androidx/core/graphics/drawable/
DRoundedBitmapDrawableFactory.java19 import android.content.res.Resources;
42 DefaultRoundedBitmapDrawable(Resources res, Bitmap bitmap) { in DefaultRoundedBitmapDrawable()
72 public static RoundedBitmapDrawable create(@NonNull Resources res, @Nullable Bitmap bitmap) { in create()
83 public static RoundedBitmapDrawable create(@NonNull Resources res, @NonNull String filepath) { in create()
96 public static RoundedBitmapDrawable create(@NonNull Resources res, @NonNull InputStream is) { in create()
/frameworks/support/graphics/drawable/static/api_legacy/
Dcurrent.txt4 …wable.VectorDrawableCompat create(android.content.res.Resources, int, android.content.res.Resource…
5 …mlInner(android.content.res.Resources, org.xmlpull.v1.XmlPullParser, android.util.AttributeSet, an…
D27.1.0.txt4 …wable.VectorDrawableCompat create(android.content.res.Resources, int, android.content.res.Resource…
5 …mlInner(android.content.res.Resources, org.xmlpull.v1.XmlPullParser, android.util.AttributeSet, an…
/frameworks/support/graphics/drawable/static/api/
Dcurrent.txt4 …wable.VectorDrawableCompat create(android.content.res.Resources, int, android.content.res.Resource…
5 …mlInner(android.content.res.Resources, org.xmlpull.v1.XmlPullParser, android.util.AttributeSet, an…

12345678910>>...40