/frameworks/base/packages/SystemUI/unfold/src/com/android/systemui/unfold/config/ |
D | ResourceUnfoldTransitionConfig.kt | 17 import android.content.res.Resources 25 val id = Resources.getSystem() in <lambda>() 27 Resources.getSystem().getBoolean(id) in <lambda>() 31 val id = Resources.getSystem() in <lambda>() 33 Resources.getSystem().getBoolean(id) in <lambda>() 37 val id = Resources.getSystem() in <lambda>() 39 Resources.getSystem().getBoolean(id) in <lambda>() 43 val id = Resources.getSystem() in <lambda>() 45 Resources.getSystem().getInteger(id) in <lambda>()
|
/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/layoutlib/bridge/src/android/content/res/ |
D | Resources_Delegate.java | 48 import android.content.res.Resources.NotFoundException; 49 import android.content.res.Resources.Theme; 73 private static WeakHashMap<Resources, LayoutlibCallback> sLayoutlibCallbacks = 75 private static WeakHashMap<Resources, BridgeContext> sContexts = new WeakHashMap<>(); 81 public static Resources initSystem(@NonNull BridgeContext context, in initSystem() 86 assert Resources.mSystem == null : in initSystem() 88 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/packages/SystemUI/src/com/android/systemui/complication/dagger/ |
D | ComplicationHostViewModule.java | 19 import android.content.res.Resources; 71 static int providesComplicationPadding(@Main Resources resources) { in providesComplicationPadding() 77 static int providesComplicationMarginPositionStart(@Main Resources resources) { in providesComplicationMarginPositionStart() 83 static int providesComplicationMarginPositionTop(@Main Resources resources) { in providesComplicationMarginPositionTop() 89 static int providesComplicationMarginPositionEnd(@Main Resources resources) { in providesComplicationMarginPositionEnd() 95 static int providesComplicationMarginPositionBottom(@Main Resources resources) { in providesComplicationMarginPositionBottom() 104 static int providesComplicationsFadeOutDuration(@Main Resources resources) { in providesComplicationsFadeOutDuration() 113 static int providesComplicationsFadeOutDelay(@Main Resources resources) { in providesComplicationsFadeOutDelay() 122 static int providesComplicationsFadeInDuration(@Main Resources resources) { in providesComplicationsFadeInDuration() 131 static int providesComplicationsRestoreTimeout(@Main Resources resources) { in providesComplicationsRestoreTimeout()
|
/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 | 23 import android.content.res.Resources; 43 private final Resources mResources; 47 public TestableResources(Resources realResources) { in TestableResources() 48 mResources = mock(Resources.class, withSettings() in TestableResources() 56 public Resources getResources() { in getResources() 107 if (value == null) throw new Resources.NotFoundException(); in answer() 119 } 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; 55 final Resources r = createResources(APP1, APP2); in testDefaultDenylist() 65 final Resources r = createResources(); in testNoDefaultDenylist() 73 final Resources r = createResources(APP1); in testDefaultDenylistIsOverriddenByDeviceConfig() 85 final Resources r = createResources(APP1); in testDefaultDenylistIsOverriddenByEmptyDeviceConfig() 95 final Resources r = createResources(APP1); in testDefaultDenylistIsOverriddenByDeviceConfigUpdate() 119 final Resources r = createResources(APP1); in testOverriddenByDeviceConfigUnrelatedFlagChanged() 134 private Resources createResources(String... defaultDenylist) { in createResources() 135 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/base/packages/SystemUI/src/com/android/systemui/dreams/dagger/ |
D | DreamOverlayModule.java | 19 import android.content.res.Resources; 120 static int providesMaxBurnInOffset(@Main Resources resources) { in providesMaxBurnInOffset() 127 static long providesBurnInProtectionUpdateInterval(@Main Resources resources) { in providesBurnInProtectionUpdateInterval() 135 static long providesMillisUntilFullJitter(@Main Resources resources) { in providesMillisUntilFullJitter() 144 static int providesDreamBlurRadius(@Main Resources resources) { in providesDreamBlurRadius() 153 static long providesDreamInBlurAnimationDuration(@Main Resources resources) { in providesDreamInBlurAnimationDuration() 162 static long providesDreamInComplicationsAnimationDuration(@Main Resources resources) { in providesDreamInComplicationsAnimationDuration() 172 static int providesDreamInComplicationsTranslationY(@Main Resources resources) { in providesDreamInComplicationsTranslationY() 182 static long providesDreamInComplicationsTranslationYDuration(@Main Resources resources) { in providesDreamInComplicationsTranslationYDuration()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesManagerTest.java | 123 Resources resources = mResourcesManager.getResources( in testMultipleCallsWithIdenticalParametersCacheReference() 128 Resources newResources = mResourcesManager.getResources( in testMultipleCallsWithIdenticalParametersCacheReference() 138 Resources resources = mResourcesManager.getResources( in testMultipleCallsWithDifferentParametersReturnDifferentReferences() 145 Resources newResources = mResourcesManager.getResources( in testMultipleCallsWithDifferentParametersReturnDifferentReferences() 155 Resources resources1 = mResourcesManager.getResources( in testAddingASplitCreatesANewImpl() 160 Resources resources2 = mResourcesManager.getResources( in testAddingASplitCreatesANewImpl() 173 Resources resources1 = mResourcesManager.getResources( in testUpdateConfigurationUpdatesAllAssetManagers() 178 Resources resources2 = mResourcesManager.getResources( in testUpdateConfigurationUpdatesAllAssetManagers() 186 Resources resources3 = mResourcesManager.getResources( in testUpdateConfigurationUpdatesAllAssetManagers() 220 Resources resources1 = mResourcesManager.getResources( in testTwoActivitiesWithIdenticalParametersShareImpl() [all …]
|
D | ConfigurationBoundResourceCacheTest.java | 47 final Resources res = getActivity().getResources(); in testGetEmpty() 55 final Resources res = getActivity().getResources(); in testSetGet() 65 final Resources res = getActivity().getResources(); in testSetGetThemed() 77 final Resources res = getActivity().getResources(); in testMultiThreadPutGet() 89 final Resources res = getActivity().getResources(); in testVoidConfigChange() 111 final Resources res = getActivity().getResources(); in testEffectiveConfigChange() 136 final Resources res = getActivity().getResources(); in testConfigChangeMultipleResources() 173 final Resources res = getActivity().getResources(); in testConfigChangeMultipleThemes() 183 final Resources.Theme theme = i == 0 ? getActivity().getTheme() : null; in testConfigChangeMultipleThemes() 199 final Resources.Theme theme = i == 0 ? getActivity().getTheme() : null; in testConfigChangeMultipleThemes() [all …]
|
/frameworks/layoutlib/bridge/src/android/graphics/drawable/ |
D | AdaptiveIconDrawable_Delegate.java | 23 import android.content.res.Resources; 36 public static String getResourceString(Resources res, int resId) { in getResourceString() 45 Resources res = Resources.getSystem(); in draw() 62 Resources resources) { in createThemedVersionFromMonochrome() 69 private static int[] getColors(Resources resources) { in getColors()
|
/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/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/layoutlib/bridge/src/android/app/ |
D | Application_Delegate.java | 19 import android.content.res.Resources; 22 public static Resources getResources(Application app) { in getResources() 23 return Resources.getSystem(); in getResources()
|
/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/base/packages/SystemUI/src/com/android/systemui/util/service/dagger/ |
D | ObservableServiceModule.java | 20 import android.content.res.Resources; 48 static int providesMaxReconnectAttempts(@Main Resources resources) { in providesMaxReconnectAttempts() 55 static int provideBaseReconnectDelayMs(@Main Resources resources) { in provideBaseReconnectDelayMs() 62 static int providesMinConnectionDuration(@Main Resources resources) { in providesMinConnectionDuration()
|
/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/apex/blobstore/service/java/com/android/server/blob/ |
D | BlobStoreUtils.java | 26 import android.content.res.Resources; 37 static Resources getPackageResources(@NonNull Context context, in getPackageResources() 50 static int getDescriptionResourceId(@NonNull Resources resources, in getDescriptionResourceId() 58 final Resources resources = getPackageResources(context, packageName, userId); in getDescriptionResourceId() 60 ? Resources.ID_NULL in getDescriptionResourceId()
|
/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/base/core/java/android/content/pm/ |
D | PackageItemInfo.java | 218 @android.ravenwood.annotation.RavenwoodThrow(blockedBy = android.content.res.Resources.class) 231 @android.ravenwood.annotation.RavenwoodThrow(blockedBy = android.content.res.Resources.class) 254 @android.ravenwood.annotation.RavenwoodThrow(blockedBy = android.content.res.Resources.class) 268 @android.ravenwood.annotation.RavenwoodThrow(blockedBy = android.content.res.Resources.class) 289 @android.ravenwood.annotation.RavenwoodThrow(blockedBy = android.content.res.Resources.class) 307 @android.ravenwood.annotation.RavenwoodThrow(blockedBy = android.content.res.Resources.class) 323 @android.ravenwood.annotation.RavenwoodThrow(blockedBy = android.content.res.Resources.class) 345 @android.ravenwood.annotation.RavenwoodThrow(blockedBy = android.content.res.Resources.class) 361 @android.ravenwood.annotation.RavenwoodThrow(blockedBy = android.content.res.Resources.class) 377 @android.ravenwood.annotation.RavenwoodThrow(blockedBy = android.content.res.Resources.class) [all …]
|