Home
last modified time | relevance | path

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

12345678910>>...41

/frameworks/layoutlib/bridge/src/android/content/res/
DResources_Delegate.java52 import android.content.res.Resources.NotFoundException;
53 import android.content.res.Resources.Theme;
75 private static WeakHashMap<Resources, LayoutlibCallback> sLayoutlibCallbacks =
77 private static WeakHashMap<Resources, BridgeContext> sContexts = new WeakHashMap<>();
83 public static Resources initSystem(@NonNull BridgeContext context, in initSystem()
88 assert Resources.mSystem == null : in initSystem()
90 Resources resources = new Resources(Resources_Delegate.class.getClassLoader()); in initSystem()
94 return Resources.mSystem = resources; in initSystem()
100 public static BridgeContext getContext(@NonNull Resources resources) { in getContext()
109 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.java26 import android.content.res.Resources;
37 private Resources.Theme mTheme;
42 private Resources mResources;
80 public ContextThemeWrapper(Context base, Resources.Theme theme) { in ContextThemeWrapper()
127 public Resources getResources() { in getResources()
131 private Resources getResourcesInternal() { in getResourcesInternal()
156 public void setTheme(@Nullable Resources.Theme theme) { in setTheme()
168 public Resources.Theme getTheme() { in getTheme()
173 mThemeResource = Resources.selectDefaultTheme(mThemeResource, in getTheme()
202 protected void onApplyThemeResource(Resources.Theme theme, int resId, boolean first) { in onApplyThemeResource()
[all …]
/frameworks/base/core/java/android/database/sqlite/
DSQLiteGlobal.java20 import android.content.res.Resources;
89 Resources.getSystem().getString( in getDefaultJournalMode()
98 Resources.getSystem().getInteger( in getJournalSizeLimit()
112 Resources.getSystem().getString( in getDefaultSyncMode()
126 Resources.getSystem().getString( in getWALSyncMode()
135 Resources.getSystem().getInteger( in getWALAutoCheckpoint()
145 Resources.getSystem().getInteger( in getWALConnectionPoolSize()
156 Resources.getSystem().getInteger( in getIdleConnectionTimeout()
173 Resources.getSystem().getInteger( in getWALTruncateSize()
/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/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/robolectric/
DExternalResources.java44 public static Resources injectExternalResources(String packageName) { in injectExternalResources()
48 public static Resources injectExternalResources(PackageInfo packageInfo) { in injectExternalResources()
55 Resources resources = Resources.forPackageName(packageInfo.packageName); in injectExternalResources()
64 public static class Resources extends android.content.res.Resources { class in ExternalResources
68 public static Resources forPackageName(String packageName) { in forPackageName()
69 android.content.res.Resources res = application.getResources(); in forPackageName()
70 return new Resources( in forPackageName()
74 private Resources( in Resources() method in ExternalResources.Resources
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DHighRefreshRateDenylistTest.java26 import android.content.res.Resources;
61 final Resources r = createResources(APP1, APP2); in testDefaultDenylist()
71 final Resources r = createResources(); in testNoDefaultDenylist()
79 final Resources r = createResources(APP1); in testDefaultDenylistIsOverriddenByDeviceConfig()
91 final Resources r = createResources(APP1); in testDefaultDenylistIsOverriddenByEmptyDeviceConfig()
101 final Resources r = createResources(APP1); in testDefaultDenylistIsOverriddenByDeviceConfigUpdate()
125 final Resources r = createResources(APP1); in testOverriddenByDeviceConfigUnrelatedFlagChanged()
140 private Resources createResources(String... defaultDenylist) { in createResources()
141 Resources r = mock(Resources.class); in createResources()
/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/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/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/
DAdaptiveIconShapeDrawable.java19 import android.content.res.Resources;
20 import android.content.res.Resources.Theme;
41 public AdaptiveIconShapeDrawable(Resources resources) { in AdaptiveIconShapeDrawable()
47 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) in inflate()
53 private void init(Resources resources) { in init()
/frameworks/base/tests/testables/tests/src/android/testing/
DTestableResourcesTest.java23 import android.content.res.Resources;
43 Resources before = mContext.getResources(); in testLazyInit()
45 Resources after = mContext.getResources(); in testLazyInit()
56 } catch (Resources.NotFoundException e) { in testAddingResource()
73 } catch (Resources.NotFoundException e) { in testClearingResource()
87 @Test(expected = Resources.NotFoundException.class)
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
DPartner.java25 import android.content.res.Resources;
108 final Resources ourResources = context.getResources(); in getResourceEntry()
120 public Resources resources;
124 ResourceEntry(Resources resources, int id, boolean isOverlay) { in ResourceEntry()
162 final Resources res = pm.getResourcesForApplication(appInfo); in get()
182 private final Resources resources;
184 private Partner(String packageName, Resources res) { in Partner()
193 public Resources getResources() { in getResources()
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesLocaleTest.java36 final Resources resources = getContext().getResources(); in extractApkAndGetPath()
44 private Resources createResourcesWithApk(int rawApkId) throws Exception { in createResourcesWithApk()
50 return new Resources(assets, dm, new Configuration()); in createResourcesWithApk()
53 private static void ensureNoLanguage(Resources resources, String language) { in ensureNoLanguage()
67 final Resources resources = createResourcesWithApk(R.raw.locales); in testEnglishIsAlwaysConsideredSupported()
84 final Resources resources = createResourcesWithApk(R.raw.locales); in testSelectFirstSupportedLanguage()
DResourcesManagerTest.java92 Resources resources = mResourcesManager.getResources( in testMultipleCallsWithIdenticalParametersCacheReference()
97 Resources newResources = mResourcesManager.getResources( in testMultipleCallsWithIdenticalParametersCacheReference()
106 Resources resources = mResourcesManager.getResources( in testMultipleCallsWithDifferentParametersReturnDifferentReferences()
113 Resources newResources = mResourcesManager.getResources( in testMultipleCallsWithDifferentParametersReturnDifferentReferences()
122 Resources resources1 = mResourcesManager.getResources( in testAddingASplitCreatesANewImpl()
127 Resources resources2 = mResourcesManager.getResources( in testAddingASplitCreatesANewImpl()
139 Resources resources1 = mResourcesManager.getResources( in testUpdateConfigurationUpdatesAllAssetManagers()
144 Resources resources2 = mResourcesManager.getResources( in testUpdateConfigurationUpdatesAllAssetManagers()
152 Resources resources3 = mResourcesManager.getResources( in testUpdateConfigurationUpdatesAllAssetManagers()
185 Resources resources1 = mResourcesManager.getResources( in testTwoActivitiesWithIdenticalParametersShareImpl()
[all …]
DConfigurationBoundResourceCacheTest.java45 final Resources res = getActivity().getResources(); in testGetEmpty()
52 final Resources res = getActivity().getResources(); in testSetGet()
61 final Resources res = getActivity().getResources(); in testSetGetThemed()
71 final Resources res = getActivity().getResources(); in testMultiThreadPutGet()
83 final Resources res = getActivity().getResources(); in testVoidConfigChange()
104 final Resources res = getActivity().getResources(); in testEffectiveConfigChange()
127 final Resources res = getActivity().getResources(); in testConfigChangeMultipleResources()
162 final Resources res = getActivity().getResources(); in testConfigChangeMultipleThemes()
172 final Resources.Theme theme = i == 0 ? getActivity().getTheme() : null; in testConfigChangeMultipleThemes()
186 final Resources.Theme theme = i == 0 ? getActivity().getTheme() : null; in testConfigChangeMultipleThemes()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/app/
DResourcesThemePerfTest.java22 import android.content.res.Resources;
46 private Resources.Theme mTheme;
58 Resources.Theme destTheme = mContext.getResources().newTheme(); in applyStyle()
67 Resources.Theme destTheme = mContext.getResources().newTheme(); in rebase()
78 Resources.Theme destTheme = mContext.getResources().newTheme(); in setToSameAssetManager()
97 Resources destResources = resourcesManager.getResources(null, ai.sourceDir, in setToDifferentAssetManager()
103 Resources.Theme destTheme = destResources.newTheme(); in setToDifferentAssetManager()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DBrightnessMappingStrategyTest.java29 import android.content.res.Resources;
123 Resources res = createResources(LUX_LEVELS, DISPLAY_LEVELS_BACKLIGHT); in testSimpleStrategyMappingAtControlPoints()
138 Resources res = createResources(LUX_LEVELS, DISPLAY_LEVELS_BACKLIGHT); in testSimpleStrategyMappingBetweenControlPoints()
153 Resources res = createResources(LUX_LEVELS, DISPLAY_LEVELS_BACKLIGHT); in testSimpleStrategyIgnoresNewConfiguration()
168 Resources res = createResources(LUX_LEVELS, DISPLAY_LEVELS_BACKLIGHT); in testSimpleStrategyIgnoresNullConfiguration()
182 Resources res = createResources(LUX_LEVELS, DISPLAY_LEVELS_NITS); in testPhysicalStrategyMappingAtControlPoints()
199 Resources res = createResources(LUX_LEVELS, DISPLAY_LEVELS_NITS); in testPhysicalStrategyMappingBetweenControlPoints()
216 Resources res = createResources(LUX_LEVELS, DISPLAY_LEVELS_NITS); in testPhysicalStrategyUsesNewConfigurations()
241 Resources res = createResources(LUX_LEVELS, DISPLAY_LEVELS_NITS); in testPhysicalStrategyRecalculateSplines()
272 Resources res = createResources(LUX_LEVELS, DISPLAY_LEVELS_BACKLIGHT, in testDefaultStrategyIsPhysical()
[all …]
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/
DBlobStoreUtils.java26 import android.content.res.Resources;
35 static Resources getPackageResources(@NonNull Context context, in getPackageResources()
48 static int getDescriptionResourceId(@NonNull Resources resources, in getDescriptionResourceId()
56 final Resources resources = getPackageResources(context, packageName, userId); in getDescriptionResourceId()
58 ? Resources.ID_NULL in getDescriptionResourceId()
/frameworks/base/graphics/java/android/graphics/drawable/
DTransitionDrawable.java21 import android.content.res.Resources;
93 this(new TransitionState(null, null, null), (Resources) null); in TransitionDrawable()
96 private TransitionDrawable(TransitionState state, Resources res) { in TransitionDrawable()
105 LayerState createConstantState(LayerState state, Resources res) { in createConstantState()
264 TransitionState(TransitionState orig, TransitionDrawable owner, Resources res) { in TransitionState()
270 return new TransitionDrawable(this, (Resources) null); in newDrawable()
274 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/base/core/java/android/content/res/
DConstantState.java52 public T newInstance(Resources res) { in newInstance()
60 public T newInstance(Resources res, Resources.Theme theme) { in newInstance()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DFixedScaleDrawable.java3 import android.content.res.Resources;
4 import android.content.res.Resources.Theme;
37 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs) { } in inflate()
40 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) { } in inflate()
/frameworks/base/services/core/java/com/android/server/display/utils/
DAmbientFilterFactory.java19 import android.content.res.Resources;
60 public static AmbientFilter createBrightnessFilter(String tag, Resources resources) { in createBrightnessFilter()
80 public static AmbientFilter createColorTemperatureFilter(String tag, Resources resources) { in createColorTemperatureFilter()
94 private static float getFloat(Resources resources, int id) { in getFloat()
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/partner/
DExternalResources.java50 public static Resources injectExternalResources(String packageName) { in injectExternalResources()
54 public static Resources injectExternalResources(PackageInfo packageInfo) { in injectExternalResources()
61 Resources resources = Resources.forPackageName(packageInfo.packageName); in injectExternalResources()
70 public static class Resources extends android.content.res.Resources { class in ExternalResources
77 public static Resources forPackageName(String packageName) { in forPackageName()
78 android.content.res.Resources res = application.getResources(); in forPackageName()
79 return new Resources( in forPackageName()
237 private Resources(String packageName, AssetManager assets, DisplayMetrics metrics, in Resources() method in ExternalResources.Resources
/frameworks/base/services/core/java/com/android/server/display/whitebalance/
DDisplayWhiteBalanceFactory.java19 import android.content.res.Resources;
60 SensorManager sensorManager, Resources resources) { in create()
112 SensorManager sensorManager, Resources resources) { in createBrightnessSensor()
123 Handler handler, SensorManager sensorManager, Resources resources) { in createColorTemperatureSensor()
133 private static DisplayWhiteBalanceThrottler createThrottler(Resources resources) { in createThrottler()
148 private static float getFloat(Resources resources, int id) { in getFloat()
157 private static float[] getFloatArray(Resources resources, int id) { in getFloatArray()

12345678910>>...41