Searched defs:resources (Results 1 - 25 of 84) 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);
/frameworks/layoutlib/bridge/src/android/view/
H A DPointerIcon_Delegate.java27 /*package*/ static void loadResource(PointerIcon icon, Context context, Resources resources, argument
/frameworks/support/compat/java/android/support/v4/content/res/
H A DConfigurationHelper.java39 public static int getDensityDpi(@NonNull Resources resources) { argument
41 return resources.getConfiguration().densityDpi;
43 return resources.getDisplayMetrics().densityDpi;
/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
65 const Vector<MediaResource> &resources);
70 // according to the requested resources.
72 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/compat/java/android/support/v4/graphics/drawable/
H A DDrawableWrapperApi19.java32 DrawableWrapperApi19(DrawableWrapperState state, Resources resources) { argument
33 super(state, resources);
/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/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;
/frameworks/support/compat/java/android/support/v4/graphics/
H A DTypefaceCompat.java67 Context context, FontFamilyFilesResourceEntry entry, Resources resources,
75 Context context, Resources resources, int id, String path, int style);
85 public static Typeface findFromCache(Resources resources, int id, int style) { argument
86 return sTypefaceCache.get(createResourceUid(resources, id, style));
92 * @param resources Resources instance
97 private static String createResourceUid(final Resources resources, int id, int style) { argument
98 return resources.getResourcePackageName(id) + "-" + id + "-" + style;
107 Context context, FamilyResourceEntry entry, Resources resources, int id, int style,
117 context, (FontFamilyFilesResourceEntry) entry, resources, style);
120 sTypefaceCache.put(createResourceUid(resources, i
66 createFromFontFamilyFilesResourceEntry( Context context, FontFamilyFilesResourceEntry entry, Resources resources, int style) argument
74 createFromResourcesFontFile( Context context, Resources resources, int id, String path, int style) argument
106 createFromResourcesFamilyXml( Context context, FamilyResourceEntry entry, Resources resources, int id, int style, @Nullable TextView targetView) argument
129 createFromResourcesFontFile( Context context, Resources resources, int id, String path, int style) argument
[all...]
H A DTypefaceCompatBaseImpl.java142 FontFamilyFilesResourceEntry entry, Resources resources, int style) {
148 context, resources, best.getResourceId(), best.getFileName(), style);
157 Context context, Resources resources, int id, String path, int style) {
163 if (!TypefaceCompatUtil.copyToFile(tmpFile, resources, id)) {
141 createFromFontFamilyFilesResourceEntry(Context context, FontFamilyFilesResourceEntry entry, Resources resources, int style) argument
156 createFromResourcesFontFile( Context context, Resources resources, int id, String path, int style) argument
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/picker/
H A DPickerUtility.java40 private DateConstant(Locale locale, Resources resources) { argument
57 private TimeConstant(Locale locale, Resources resources) { argument
67 public static DateConstant getDateConstantInstance(Locale locale, Resources resources) { argument
68 return new DateConstant(locale, resources);
71 public static TimeConstant getTimeConstantInstance(Locale locale, Resources resources) { argument
72 return new TimeConstant(locale, resources);

Completed in 1957 milliseconds

1234