Searched defs:resources (Results 1 - 25 of 89) sorted by relevance

1234

/frameworks/base/core/java/com/android/internal/util/
H A DScreenShapeHelper.java16 public static int getWindowOutsetBottomPx(Resources resources) { argument
20 return resources.getInteger(com.android.internal.R.integer.config_windowOutsetBottom);
H A DUserIcons.java65 * @param resources resources object to fetch user icon / color.
69 public static Drawable getDefaultUserIcon(Resources resources, int userId, boolean light) { argument
75 Drawable icon = resources.getDrawable(R.drawable.ic_account_circle, null).mutate();
76 icon.setColorFilter(resources.getColor(colorResId, null), Mode.SRC_IN);
/frameworks/support/compat/src/main/java/androidx/core/content/res/
H A DConfigurationHelper.java40 public static int getDensityDpi(@NonNull Resources resources) { argument
42 return resources.getConfiguration().densityDpi;
44 return resources.getDisplayMetrics().densityDpi;
/frameworks/layoutlib/bridge/src/android/view/
H A DPointerIcon_Delegate.java27 /*package*/ static void loadResource(PointerIcon icon, Context context, Resources resources, argument
/frameworks/base/core/java/android/content/res/
H A DConfigurationBoundResourceCache.java32 * @param resources a Resources object from which to create new instances.
37 public T getInstance(long key, Resources resources, Resources.Theme theme) { argument
40 return entry.newInstance(resources, theme);
H A DDrawableCache.java22 * Class which can be used to cache Drawable resources against a theme.
29 * @param resources a Resources object from which to create new instances.
34 public Drawable getInstance(long key, Resources resources, Resources.Theme theme) { argument
37 return entry.newDrawable(resources, theme);
/frameworks/base/core/java/android/view/animation/
H A DCycleInterpolator.java46 public CycleInterpolator(Resources resources, Theme theme, AttributeSet attrs) { argument
51 a = resources.obtainAttributes(attrs, R.styleable.CycleInterpolator);
/frameworks/base/core/java/android/webkit/
H A DPermissionRequest.java23 * requests access to protected resources. The permission request related events
30 * New protected resources whose names are not defined here may be requested in
38 * See the WebView's release notes for information about new protected resources.
68 * the restricted resources.
71 * resources.
76 * Call this method to get the resources the web page is trying to access.
78 * @return the array of resources the web content wants to access.
83 * Call this method to grant origin the permission to access the given resources.
86 * @param resources the resources grante
92 grant(String[] resources) argument
[all...]
H A DWebViewDelegate.java154 public int getPackageId(Resources resources, String packageName) { argument
156 resources.getAssets().getAssignedPackageIdentifiers();
/frameworks/base/core/tests/coretests/src/android/content/res/
H A DResourcesLocaleTest.java35 final Resources resources = getContext().getResources();
36 try (InputStream is = resources.openRawResource(id)) {
37 File path = new File(getContext().getFilesDir(), resources.getResourceEntryName(id));
52 private static void ensureNoLanguage(Resources resources, String language) { argument
53 final String[] supportedLocales = resources.getAssets().getNonSystemLocales();
66 final Resources resources = createResourcesWithApk(R.raw.locales);
67 ensureNoLanguage(resources, "en");
73 resources.updateConfiguration(config, null);
78 resources.getConfiguration().getLocales().get(0));
83 final Resources resources
[all...]
H A DConfigurationBoundResourceCacheTest.java202 private static int calcConfigChanges(Resources resources, Configuration configuration) { argument
203 return resources.calcConfigChanges(configuration);
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/hp/
H A DVendorInfo.java30 public VendorInfo(Resources resources, int vendor_info_id) { argument
32 String[] data = resources.getStringArray(vendor_info_id);
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/xerox/
H A DVendorInfo.java29 public VendorInfo(Resources resources, int vendor_info_id) { argument
31 String[] data = resources.getStringArray(vendor_info_id);
/frameworks/base/rs/java/android/renderscript/
H A DScriptC.java56 * @param resources
59 protected ScriptC(RenderScript rs, Resources resources, int resourceID) { argument
61 long id = internalCreate(rs, resources, resourceID);
87 private static synchronized long internalCreate(RenderScript rs, Resources resources, int resourceID) { argument
90 InputStream is = resources.openRawResource(resourceID);
116 String resName = resources.getResourceEntryName(resourceID);
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
H A DAnimatedVectorDrawableDupPerf.java64 public static AnimatedVectorDrawable create(Resources resources, int rid) { argument
66 final XmlPullParser parser = resources.getXml(rid);
78 drawable.inflate(resources, parser, attrs);
H A DVectorDrawablePerformance.java85 public static VectorDrawable create(Resources resources, int rid) { argument
87 final XmlPullParser parser = resources.getXml(rid);
99 drawable.inflate(resources, parser, attrs);
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
H A DSimpleInflaterTest.java49 protected TestInflater(@NonNull Resources resources) { argument
50 super(resources);
/frameworks/rs/support/java/src/android/support/v8/renderscript/
H A DScriptC.java54 * @param resources
57 protected ScriptC(RenderScript rs, Resources resources, int resourceID) { argument
59 long id = internalCreate(rs, resources, resourceID);
88 private static synchronized long internalCreate(RenderScript rs, Resources resources, int resourceID) { argument
91 InputStream is = resources.openRawResource(resourceID);
117 String resName = resources.getResourceEntryName(resourceID);
/frameworks/av/services/mediaresourcemanager/
H A DResourceManagerService.h40 Vector<MediaResource> resources; member in struct:android::ResourceInfo
66 const Vector<MediaResource> &resources);
71 // according to the requested resources.
73 virtual bool reclaimResource(int callingPid, const Vector<MediaResource> &resources);
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/
H A DPhotoBitmapLoaderInterface.java27 public Drawable getDrawable(Resources resources) { argument
28 if (resources == null) {
29 throw new IllegalArgumentException("resources can not be null!");
43 return new BitmapDrawable(resources, bitmap);
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/app/
H A DResourcesFlusher.java45 static boolean flush(@NonNull final Resources resources) { argument
47 return flushNougats(resources);
49 return flushMarshmallows(resources);
51 return flushLollipops(resources);
57 private static boolean flushLollipops(@NonNull final Resources resources) { argument
70 drawableCache = (Map) sDrawableCacheField.get(resources);
83 private static boolean flushMarshmallows(@NonNull final Resources resources) { argument
97 drawableCache = sDrawableCacheField.get(resources);
112 private static boolean flushNougats(@NonNull final Resources resources) { argument
130 resourcesImpl = sResourcesImplField.get(resources);
[all...]
/frameworks/base/core/java/android/service/autofill/
H A DAutofillServiceInfo.java122 final Resources resources = context.getPackageManager().getResourcesForApplication(
134 afsAttributes = resources.obtainAttributes(allAttributes,
143 compatibilityPackages = parseCompatibilityPackages(parser, resources);
156 Resources resources) throws IOException, XmlPullParserException {
172 cpAttributes = resources.obtainAttributes(allAttributes,
155 parseCompatibilityPackages(XmlPullParser parser, Resources resources) argument
/frameworks/base/graphics/java/android/graphics/drawable/
H A DDrawableInflater.java69 * @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 identifiers
75 loadDrawable( @onNull Resources resources, @Nullable Theme theme, @DrawableRes int id) argument
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DVelocityBasedConnectedScoreTest.java71 private void setUpResources(Resources resources) { argument
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
H A DSimpleInflater.java50 * @param resources The Resources class used to resolve given resource IDs.
52 protected SimpleInflater(@NonNull Resources resources) { argument
53 mResources = resources;

Completed in 468 milliseconds

1234