HomeSort by relevance Sort by last modified time
    Searched refs:Resources (Results 326 - 350 of 2334) sorted by null

<<11121314151617181920>>

  /packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/
MediaAppInfo.java 21 import android.content.res.Resources;
54 Resources.Theme theme = packageContext.getTheme();
  /developers/build/prebuilts/gradle/AppRestrictions/Application/src/main/java/com/example/android/apprestrictions/
GetRestrictionsReceiver.java 24 import android.content.res.Resources;
57 public static void populateBooleanEntry(Resources res, RestrictionEntry entry) {
63 public static void populateChoiceEntry(Resources res, RestrictionEntry reSingleChoice) {
76 public static void populateMultiEntry(Resources res, RestrictionEntry reMultiSelect) {
92 Resources res = context.getResources();
  /developers/samples/android/content/multiuser/AppRestrictions/Application/src/main/java/com/example/android/apprestrictions/
GetRestrictionsReceiver.java 24 import android.content.res.Resources;
57 public static void populateBooleanEntry(Resources res, RestrictionEntry entry) {
63 public static void populateChoiceEntry(Resources res, RestrictionEntry reSingleChoice) {
76 public static void populateMultiEntry(Resources res, RestrictionEntry reMultiSelect) {
92 Resources res = context.getResources();
  /development/samples/browseable/AppRestrictions/src/com.example.android.apprestrictions/
GetRestrictionsReceiver.java 24 import android.content.res.Resources;
57 public static void populateBooleanEntry(Resources res, RestrictionEntry entry) {
63 public static void populateChoiceEntry(Resources res, RestrictionEntry reSingleChoice) {
76 public static void populateMultiEntry(Resources res, RestrictionEntry reMultiSelect) {
92 Resources res = context.getResources();
  /device/linaro/bootloader/edk2/MdeModulePkg/Library/NonDiscoverableDeviceRegistrationLib/
NonDiscoverableDeviceRegistrationLib.c 152 Device->Resources = (EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *)(Device + 1);
156 Desc = &Device->Resources [Index];
171 End = (EFI_ACPI_END_TAG_DESCRIPTOR *)&Device->Resources [NumMmioResources];
191 DevicePath->BaseAddress = Device->Resources [0].AddrRangeMin;
192 DevicePath->ResourceType = Device->Resources [0].ResType;
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
QualifiersTest.java 9 import android.content.res.Resources;
21 private Resources resources; field in class:QualifiersTest
25 resources = RuntimeEnvironment.application.getResources();
56 assertThat(resources.getQuantityString(R.plurals.minute, 2)).isEqualTo(
57 resources.getString(R.string.minute_plural));
66 assertThat(resources.getConfiguration().smallestScreenWidthDp).isEqualTo(320);
75 assertThat(resources.getConfiguration().smallestScreenWidthDp).isEqualTo(720);
80 assertThat(resources.getString(R.string.hello)).isEqualTo("Zdravo");
85 assertThat(resources.getBoolean(R.bool.value_only_present_in_w320dp)).isTrue()
    [all...]
RobolectricTest.java 15 import android.content.res.Resources;
103 assertThat(Resources.getSystem().getDisplayMetrics().density).isEqualTo(1.0f);
106 assertThat(Resources.getSystem().getDisplayMetrics().density).isEqualTo(1.5f);
115 assertThat(Resources.getSystem().getDisplayMetrics().widthPixels)
117 assertThat(Resources.getSystem().getDisplayMetrics().heightPixels)
128 assertThat(Resources.getSystem().getDisplayMetrics().widthPixels).isEqualTo(100);
129 assertThat(Resources.getSystem().getDisplayMetrics().heightPixels).isEqualTo(200);
  /frameworks/base/core/java/android/os/storage/
DiskInfo.java 21 import android.content.res.Resources;
98 final Resources res = Resources.getSystem();
117 final Resources res = Resources.getSystem();
  /frameworks/base/graphics/java/android/graphics/drawable/
DrawableInflater.java 26 import android.content.res.Resources;
27 import android.content.res.Resources.Theme;
51 private final Resources mRes;
69 * @param resources the resources from which the drawable should be loaded
76 @NonNull Resources resources, @Nullable Theme theme, @DrawableRes int id) {
77 return resources.getDrawable(id, theme);
81 * Constructs a new drawable inflater using the specified resources and
84 * @param res the resources used to resolve resource identifier
    [all...]
Drawable.java 32 import android.content.res.Resources;
33 import android.content.res.Resources.Theme;
175 * guide. For information and examples of creating drawable resources (XML or bitmap files that
177 * <a href="{@docRoot}guide/topics/resources/drawable-resource.html">Drawable Resources</a>
195 * The source density to use when looking up resources using
196 * {@link Resources#getDrawableForDensity(int, int, Theme)}. A value of 0 means there is no
202 * resolution icons from external Resources packages, which do not execute custom code.
203 * This is all to support the {@link Resources#getDrawableForDensity(int, int, Theme)} API.
    [all...]
AnimationDrawable.java 27 import android.content.res.Resources;
29 import android.content.res.Resources.Theme;
289 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme)
302 private void inflateChildElements(Resources r, XmlPullParser parser, AttributeSet attrs,
385 AnimationState(AnimationState orig, AnimationDrawable owner, Resources res) {
407 public Drawable newDrawable(Resources res) {
436 private AnimationDrawable(AnimationState state, Resources res) {
LevelListDrawable.java 25 import android.content.res.Resources;
27 import android.content.res.Resources.Theme;
54 * href="{@docRoot}guide/topics/resources/drawable-resource.html">Drawable Resources</a>.</p>
88 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme)
96 private void inflateChildElements(Resources r, XmlPullParser parser, AttributeSet attrs,
179 LevelListState(LevelListState orig, LevelListDrawable owner, Resources res) {
221 public Drawable newDrawable(Resources res) {
246 private LevelListDrawable(LevelListState state, Resources res) {
  /frameworks/support/compat/src/main/java/androidx/core/graphics/
TypefaceCompat.java 22 import android.content.res.Resources;
77 public static Typeface findFromCache(@NonNull Resources resources, int id, int style) {
78 return sTypefaceCache.get(createResourceUid(resources, id, style));
84 * @param resources Resources instance
89 private static String createResourceUid(final Resources resources, int id, int style) {
90 return resources.getResourcePackageName(id) + "-" + id + "-" + style;
101 @NonNull Resources resources, int id, int style
    [all...]
  /packages/apps/Calendar/tests/src/com/android/calendar/
DbTestUtils.java 23 import android.content.res.Resources;
51 private Resources resources; field in class:DbTestUtils.FakeContext
54 FakeContext(ContentResolver contentResolver, Resources resources) {
56 this.resources = resources;
65 public Resources getResources() {
66 return resources;
173 public DbTestUtils(Resources resources)
    [all...]
  /packages/apps/PackageInstaller/src/android/support/wearable/view/
WearableDialogHelper.java 21 import android.content.res.Resources;
45 @VisibleForTesting /* package */ Resources mResources;
46 @VisibleForTesting /* package */ Resources.Theme mTheme;
57 * @param resources the Resources used to obtain Drawables from resource IDs.
60 public WearableDialogHelper(@NonNull Resources resources, @NonNull Resources.Theme theme) {
61 mResources = resources;
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
KeyboardTextsSet.java 20 import android.content.res.Resources;
39 private Resources mResources;
45 final Resources res = context.getResources();
53 public void setLocale(final Locale locale, final Resources res,
142 protected String job(final Resources res) {
  /external/jacoco/org.jacoco.report.test/src/org/jacoco/report/internal/html/table/
TableTest.java 33 import org.jacoco.report.internal.html.resources.Resources;
48 private Resources resources; field in class:TableTest
60 resources = new Resources(root);
89 Resources resources, ReportOutputFolder base) {
95 Resources resources, ReportOutputFolder base)
    [all...]
  /frameworks/support/compat/src/androidTest/java/androidx/core/content/res/
ResourcesCompatTest.java 27 import android.content.res.Resources;
50 private Resources mResources;
68 final Resources.Theme yellowTheme = mResources.newTheme();
74 final Resources.Theme lilacTheme = mResources.newTheme();
99 final Resources.Theme yellowTheme = mResources.newTheme();
113 final Resources.Theme lilacTheme = mResources.newTheme();
139 final Resources.Theme yellowTheme = mResources.newTheme();
147 final Resources.Theme lilacTheme = mResources.newTheme();
236 final Resources.Theme yellowTheme = mResources.newTheme();
239 final Resources.Theme lilacTheme = mResources.newTheme()
    [all...]
  /frameworks/base/core/java/android/app/
ResourcesManager.java 29 import android.content.res.Resources;
67 private static final Predicate<WeakReference<Resources>> sEmptyReferencePredicate =
76 * The global configuration upon which all Resources are based. Multi-window Resources
91 private final ArrayList<WeakReference<Resources>> mResourceReferences = new ArrayList<>();
131 * in our LRU cache. Bonus resources :)
136 * Resources and base configuration override associated with an Activity.
140 public final ArrayList<WeakReference<Resources>> activityResources = new ArrayList<>();
144 * Each Activity may has a base override configuration that is applied to each Resources object,
166 * Invalidate and destroy any resources that reference content under th
603 Resources resources = weakResourceRef.get(); local
615 Resources resources = compatInfo.needsCompatResources() ? new CompatResources(classLoader) local
636 Resources resources = weakResourceRef.get(); local
648 Resources resources = compatInfo.needsCompatResources() ? new CompatResources(classLoader) local
795 final Resources resources; local
917 Resources resources = weakResRef.get(); local
    [all...]
  /frameworks/base/core/java/com/android/internal/graphics/drawable/
AnimationScaleListDrawable.java 22 import android.content.res.Resources;
23 import android.content.res.Resources.Theme;
57 @Nullable Resources res) {
77 public void inflate(@NonNull Resources r, @NonNull XmlPullParser parser,
93 private void inflateChildElements(@NonNull Resources r, @NonNull XmlPullParser parser,
183 Resources res) {
221 public Drawable newDrawable(Resources res) {
  /frameworks/support/compat/src/main/java/androidx/core/graphics/drawable/
WrappedDrawableApi14.java 20 import android.content.res.Resources;
52 WrappedDrawableApi14(@NonNull DrawableWrapperState state, @Nullable Resources res) {
73 private void updateLocalState(@Nullable Resources res) {
363 DrawableWrapperState(@Nullable DrawableWrapperState orig, @Nullable Resources res) {
380 public abstract Drawable newDrawable(@Nullable Resources res);
395 @Nullable DrawableWrapperState orig, @Nullable Resources res) {
401 public Drawable newDrawable(@Nullable Resources res) {
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
AdvancedSettingsFragment.java 21 import android.content.res.Resources;
49 final Resources res = getResources();
106 final Resources res = getResources();
119 final Resources res = getResources();
133 final Resources res = getResources();
177 final Resources res = getResources();
228 final Resources res = getResources();
  /frameworks/support/compat/src/main/java/androidx/core/content/res/
ResourcesCompat.java 25 import android.content.res.Resources;
26 import android.content.res.Resources.NotFoundException;
27 import android.content.res.Resources.Theme;
54 * Helper for accessing features in {@link android.content.res.Resources}.
66 * simply calls through to {@link Resources#getDrawable(int)}.
79 public static Drawable getDrawable(@NonNull Resources res, @DrawableRes int id,
94 * this method simply calls through to {@link Resources#getDrawable(int)}.
97 * calls through to Resources#getDrawableForDensity(int, int).
112 public static Drawable getDrawableForDensity(@NonNull Resources res, @DrawableRes int id,
129 * calls through to {@link Resources#getColor(int)}
336 final Resources resources = context.getResources(); local
    [all...]
  /packages/apps/Dialer/java/com/android/dialer/calllogutils/
CallTypeIconsView.java 46 private static Resources resources; field in class:CallTypeIconsView
47 private static Resources largeResouces;
66 if (resources == null) {
67 resources = new Resources(context, false);
70 largeResouces = new Resources(context, true);
85 width += drawable.getIntrinsicWidth() + resources.iconMargin;
98 width += resources.videoCall.getIntrinsicWidth() + resources.iconMargin
158 Resources resources = useLargeIcons ? largeResouces : CallTypeIconsView.resources; local
187 Resources resources = useLargeIcons ? largeResouces : CallTypeIconsView.resources; local
    [all...]
  /external/guava/guava/src/com/google/common/io/
Resources.java 35 * Provides utility methods for working with resources in the classpath.
37 * are usually not appropriate for HTTP or other non-classpath resources.
47 public final class Resources {
48 private Resources() {}
77 return "Resources.asByteSource(" + url + ")";
139 * {@code Resources.asCharSource(url, charset).readLines()}.
182 * resources from the class path. In environments where different threads can
188 * loader that loaded this class ({@code Resources}) will be used instead.
195 Resources.class.getClassLoader());

Completed in 794 milliseconds

<<11121314151617181920>>