/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; 76 private static WeakHashMap<Resources, LayoutlibCallback> sLayoutlibCallbacks = 78 private static WeakHashMap<Resources, BridgeContext> sContexts = new WeakHashMap<>(); 84 public static Resources initSystem(@NonNull BridgeContext context, in initSystem() 89 assert Resources.mSystem == null : in initSystem() 91 Resources resources = new Resources(Resources_Delegate.class.getClassLoader()); in initSystem() 95 return Resources.mSystem = resources; in initSystem() 101 public static BridgeContext getContext(@NonNull Resources resources) { in getContext() 110 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/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/core/tests/coretests/src/android/content/res/ |
D | ResourcesManagerTest.java | 73 Resources resources = mResourcesManager.getResources( in testMultipleCallsWithIdenticalParametersCacheReference() 78 Resources newResources = mResourcesManager.getResources( in testMultipleCallsWithIdenticalParametersCacheReference() 87 Resources resources = mResourcesManager.getResources( in testMultipleCallsWithDifferentParametersReturnDifferentReferences() 94 Resources newResources = mResourcesManager.getResources( in testMultipleCallsWithDifferentParametersReturnDifferentReferences() 103 Resources resources1 = mResourcesManager.getResources( in testAddingASplitCreatesANewImpl() 108 Resources resources2 = mResourcesManager.getResources( in testAddingASplitCreatesANewImpl() 119 Resources resources1 = mResourcesManager.getResources( in testUpdateConfigurationUpdatesAllAssetManagers() 124 Resources resources2 = mResourcesManager.getResources( in testUpdateConfigurationUpdatesAllAssetManagers() 132 Resources resources3 = mResourcesManager.getResources( in testUpdateConfigurationUpdatesAllAssetManagers() 165 Resources resources1 = mResourcesManager.getResources( in testTwoActivitiesWithIdenticalParametersShareImpl() [all …]
|
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 | 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/services/tests/wmtests/src/com/android/server/wm/ |
D | HighRefreshRateBlacklistTest.java | 26 import android.content.res.Resources; 54 final Resources r = createResources("com.android.sample1", "com.android.sample2"); in testDefaultBlacklist() 64 final Resources r = createResources(); in testNoDefaultBlacklist() 72 final Resources r = createResources("com.android.sample1"); in testDefaultBlacklistIsOverriddenByDeviceConfig() 83 final Resources r = createResources("com.android.sample1"); in testDefaultBlacklistIsOverriddenByEmptyDeviceConfig() 92 final Resources r = createResources("com.android.sample1"); in testDefaultBlacklistIsOverriddenByDeviceConfigUpdate() 114 private Resources createResources(String... defaultBlacklist) { in createResources() 115 Resources r = mock(Resources.class); in createResources()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | BrightnessMappingStrategyTest.java | 29 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() 163 Resources res = createResources(LUX_LEVELS, DISPLAY_LEVELS_BACKLIGHT); in testSimpleStrategyIgnoresNullConfiguration() 176 Resources res = createResources(LUX_LEVELS, DISPLAY_LEVELS_NITS, in testPhysicalStrategyMappingAtControlPoints() 189 Resources res = createResources(LUX_LEVELS, DISPLAY_LEVELS_NITS, in testPhysicalStrategyMappingBetweenControlPoints() 206 Resources res = createResources(LUX_LEVELS, DISPLAY_LEVELS_NITS, in testPhysicalStrategyUsesNewConfigurations() 231 Resources res = createResources(LUX_LEVELS, DISPLAY_LEVELS_BACKLIGHT, in testDefaultStrategyIsPhysical() 244 Resources res = createResources(lux, DISPLAY_LEVELS_NITS, in testNonStrictlyIncreasingLuxLevelsFails() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | VibrationEffectTest.java | 29 import android.content.res.Resources; 60 Resources r = mockRingtoneResources(new String[0]); in getRingtones_noPrebakedRingtones() 68 Resources r = mockRingtoneResources(); in getRingtones_noPrebakedRingtoneForUri() 76 Resources r = mockRingtoneResources(); in getRingtones_getPrebakedRingtone() 160 private Resources mockRingtoneResources() { 168 private Resources mockRingtoneResources(String[] ringtoneUris) { 169 Resources mockResources = mock(Resources.class); 175 private Context mockContext(Resources r) {
|
/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/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/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/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/packages/Tethering/src/com/android/networkstack/tethering/ |
D | TetheringConfiguration.java | 27 import android.content.res.Resources; 121 Resources res = getResources(ctx, activeDataSubId); in TetheringConfiguration() 297 private static Collection<Integer> getUpstreamIfaceTypes(Resources res, boolean dunRequired) { in getUpstreamIfaceTypes() 347 private static String[] getLegacyDhcpRanges(Resources res) { in getLegacyDhcpRanges() 355 private static String getResourceString(Resources res, final int resId) { in getResourceString() 358 } catch (Resources.NotFoundException e) { in getResourceString() 363 private static boolean getResourceBoolean(Resources res, int resId, boolean defaultValue) { in getResourceBoolean() 366 } catch (Resources.NotFoundException e404) { in getResourceBoolean() 371 private static String[] getResourceStringArray(Resources res, int resId) { in getResourceStringArray() 375 } catch (Resources.NotFoundException e404) { in getResourceStringArray() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/whitebalance/ |
D | DisplayWhiteBalanceFactory.java | 19 import android.content.res.Resources; 58 SensorManager sensorManager, Resources resources) { in create() 108 SensorManager sensorManager, Resources resources) { in createBrightnessSensor() 118 public static AmbientFilter createBrightnessFilter(Resources resources) { in createBrightnessFilter() 136 Handler handler, SensorManager sensorManager, Resources resources) { in createColorTemperatureSensor() 146 private static AmbientFilter createColorTemperatureFilter(Resources resources) { in createColorTemperatureFilter() 161 private static DisplayWhiteBalanceThrottler createThrottler(Resources resources) { in createThrottler() 176 private static float getFloat(Resources resources, int id) { in getFloat() 185 private static float[] getFloatArray(Resources resources, int id) { in getFloatArray()
|
/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/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/partner/ |
D | ExternalResources.java | 49 public static Resources injectExternalResources(String packageName) { in injectExternalResources() 53 public static Resources injectExternalResources(PackageInfo packageInfo) { in injectExternalResources() 60 Resources resources = Resources.forPackageName(packageInfo.packageName); in injectExternalResources() 69 public static class Resources extends android.content.res.Resources { class in ExternalResources 76 public static Resources forPackageName(String packageName) { in forPackageName() 77 android.content.res.Resources res = application.getResources(); in forPackageName() 78 return new Resources( in forPackageName() 218 private Resources(String packageName, AssetManager assets, DisplayMetrics metrics, in Resources() method in ExternalResources.Resources
|
/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/packages/SystemUI/tests/src/com/android/systemui/ |
D | IconPackOverlayTest.java | 25 import android.content.res.Resources; 66 private Resources mResources; 90 Resources overlayResources; in testIconPack_containAllOverlayedIcons() 104 == Resources.ID_NULL) { in testIconPack_containAllOverlayedIcons() 126 Resources overlayResources; in testIconPacks_haveEqualVectorDrawableAttributes() 168 private TypedArray getAVDAttributes(Resources resources, @DrawableRes int rid) { in getAVDAttributes() 173 } catch (XmlPullParserException | IOException | Resources.NotFoundException e) { in getAVDAttributes()
|
/frameworks/base/core/java/android/app/ |
D | ResourcesManager.java | 31 import android.content.res.Resources; 70 private static final Predicate<WeakReference<Resources>> sEmptyReferencePredicate = 97 private final ArrayList<WeakReference<Resources>> mResourceReferences = new ArrayList<>(); 152 public final ArrayList<WeakReference<Resources>> activityResources = new ArrayList<>(); 304 public Display getAdjustedDisplay(final int displayId, Resources resources) { in getAdjustedDisplay() 627 private @NonNull Resources getOrCreateResourcesForActivityLocked(@NonNull IBinder activityToken, in getOrCreateResourcesForActivityLocked() 635 WeakReference<Resources> weakResourceRef = activityResources.activityResources.get(i); in getOrCreateResourcesForActivityLocked() 636 Resources resources = weakResourceRef.get(); in getOrCreateResourcesForActivityLocked() 648 Resources resources = compatInfo.needsCompatResources() ? new CompatResources(classLoader) in getOrCreateResourcesForActivityLocked() 649 : new Resources(classLoader); in getOrCreateResourcesForActivityLocked() [all …]
|
/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()
|