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

123

/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);
/frameworks/support/compat/honeycomb_mr2/android/support/v4/content/res/
H A DConfigurationHelperHoneycombMr2.java25 static int getScreenHeightDp(@NonNull Resources resources) { argument
26 return resources.getConfiguration().screenHeightDp;
29 static int getScreenWidthDp(@NonNull Resources resources) { argument
30 return resources.getConfiguration().screenWidthDp;
33 static int getSmallestScreenWidthDp(@NonNull Resources resources) { argument
34 return resources.getConfiguration().smallestScreenWidthDp;
/frameworks/support/compat/jellybean-mr1/android/support/v4/content/res/
H A DConfigurationHelperJellybeanMr1.java24 static int getDensityDpi(@NonNull Resources resources) { argument
25 return resources.getConfiguration().densityDpi;
/frameworks/av/services/mediaresourcemanager/
H A DResourceManagerService.h39 Vector<MediaResource> resources; member in struct:android::ResourceInfo
64 const Vector<MediaResource> &resources);
69 // according to the requested resources.
71 virtual bool reclaimResource(int callingPid, const Vector<MediaResource> &resources);
/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...]
/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...]
/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/samsung/
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.java84 public static VectorDrawable create(Resources resources, int rid) { argument
86 final XmlPullParser parser = resources.getXml(rid);
98 drawable.inflate(resources, parser, attrs);
/frameworks/support/compat/api24/android/support/v4/view/
H A DPointerIconCompatApi24.java33 public static Object load(Resources resources, int resourceId) { argument
34 return PointerIcon.load(resources, resourceId);
/frameworks/support/compat/gingerbread/android/support/v4/content/res/
H A DConfigurationHelperGingerbread.java26 static int getScreenHeightDp(@NonNull Resources resources) { argument
27 final DisplayMetrics metrics = resources.getDisplayMetrics();
31 static int getScreenWidthDp(@NonNull Resources resources) { argument
32 final DisplayMetrics metrics = resources.getDisplayMetrics();
36 static int getSmallestScreenWidthDp(@NonNull Resources resources) { argument
38 return Math.min(getScreenWidthDp(resources), getScreenHeightDp(resources));
41 static int getDensityDpi(@NonNull Resources resources) { argument
42 return resources.getDisplayMetrics().densityDpi;
/frameworks/support/compat/honeycomb/android/support/v4/graphics/drawable/
H A DDrawableWrapperHoneycomb.java30 DrawableWrapperHoneycomb(DrawableWrapperState state, Resources resources) { argument
31 super(state, resources);
/frameworks/support/compat/java/android/support/v4/content/res/
H A DConfigurationHelper.java45 int getScreenHeightDp(@NonNull Resources resources); argument
46 int getScreenWidthDp(@NonNull Resources resources); argument
47 int getSmallestScreenWidthDp(@NonNull Resources resources); argument
48 int getDensityDpi(@NonNull Resources resources); argument
56 public int getScreenHeightDp(@NonNull Resources resources) { argument
57 return ConfigurationHelperGingerbread.getScreenHeightDp(resources);
61 public int getScreenWidthDp(@NonNull Resources resources) { argument
62 return ConfigurationHelperGingerbread.getScreenWidthDp(resources);
66 public int getSmallestScreenWidthDp(@NonNull Resources resources) { argument
67 return ConfigurationHelperGingerbread.getSmallestScreenWidthDp(resources);
71 getDensityDpi(@onNull Resources resources) argument
81 getScreenHeightDp(@onNull Resources resources) argument
86 getScreenWidthDp(@onNull Resources resources) argument
91 getSmallestScreenWidthDp(@onNull Resources resources) argument
101 getDensityDpi(@onNull Resources resources) argument
112 getScreenHeightDp(@onNull Resources resources) argument
122 getScreenWidthDp(@onNull Resources resources) argument
132 getSmallestScreenWidthDp(@onNull Resources resources) argument
142 getDensityDpi(@onNull Resources resources) argument
[all...]
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DErrorFragment.java40 void setErrorContent(Resources resources) { argument
41 setImageDrawable(resources.getDrawable(R.drawable.lb_ic_sad_cloud));
H A DErrorSupportFragment.java42 void setErrorContent(Resources resources) { argument
43 setImageDrawable(resources.getDrawable(R.drawable.lb_ic_sad_cloud));
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DErrorFragment.java40 void setErrorContent(Resources resources) { argument
41 setImageDrawable(resources.getDrawable(R.drawable.lb_ic_sad_cloud));
H A DErrorSupportFragment.java42 void setErrorContent(Resources resources) { argument
43 setImageDrawable(resources.getDrawable(R.drawable.lb_ic_sad_cloud));
/frameworks/support/v8/renderscript/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/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);

Completed in 4457 milliseconds

123