/frameworks/layoutlib/bridge/src/android/content/res/ |
D | Resources_Delegate.java | 52 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 …]
|
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() 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/ |
D | ContextThemeWrapper.java | 26 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/ |
D | SQLiteGlobal.java | 20 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/ |
D | TestableResources.java | 21 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/ |
D | ExternalResources.java | 44 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/ |
D | HighRefreshRateDenylistTest.java | 26 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/ |
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/layoutlib/bridge/src/android/graphics/ |
D | ImageDecoder.java | 23 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/ |
D | AdaptiveIconShapeDrawable.java | 19 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/ |
D | TestableResourcesTest.java | 23 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/ |
D | Partner.java | 25 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/ |
D | ResourcesLocaleTest.java | 36 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()
|
D | ResourcesManagerTest.java | 92 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 …]
|
D | ConfigurationBoundResourceCacheTest.java | 45 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/ |
D | ResourcesThemePerfTest.java | 22 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/ |
D | BrightnessMappingStrategyTest.java | 29 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/ |
D | BlobStoreUtils.java | 26 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/ |
D | TransitionDrawable.java | 21 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/ |
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/base/core/java/android/content/res/ |
D | ConstantState.java | 52 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/ |
D | FixedScaleDrawable.java | 3 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/ |
D | AmbientFilterFactory.java | 19 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/ |
D | ExternalResources.java | 50 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/ |
D | DisplayWhiteBalanceFactory.java | 19 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()
|