/frameworks/base/core/java/com/android/internal/util/ |
H A D | ScreenShapeHelper.java | 16 public static int getWindowOutsetBottomPx(Resources resources) { argument 20 return resources.getInteger(com.android.internal.R.integer.config_windowOutsetBottom);
|
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
H A D | PointerIcon_Delegate.java | 27 /*package*/ static void loadResource(PointerIcon icon, Context context, Resources resources, argument
|
/frameworks/base/core/java/android/content/res/ |
H A D | ConfigurationBoundResourceCache.java | 32 * @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 D | DrawableCache.java | 22 * 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 D | CycleInterpolator.java | 46 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 D | PermissionRequest.java | 23 * 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 D | WebViewDelegate.java | 154 public int getPackageId(Resources resources, String packageName) { argument 156 resources.getAssets().getAssignedPackageIdentifiers();
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
H A D | ResourcesLocaleTest.java | 35 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 D | ConfigurationBoundResourceCacheTest.java | 202 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 D | VendorInfo.java | 30 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 D | VendorInfo.java | 29 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 D | ScriptC.java | 56 * @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 D | AnimatedVectorDrawableDupPerf.java | 64 public static AnimatedVectorDrawable create(Resources resources, int rid) { argument 66 final XmlPullParser parser = resources.getXml(rid); 78 drawable.inflate(resources, parser, attrs);
|
H A D | VectorDrawablePerformance.java | 85 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 D | SimpleInflaterTest.java | 49 protected TestInflater(@NonNull Resources resources) { argument 50 super(resources);
|
/frameworks/rs/support/java/src/android/support/v8/renderscript/ |
H A D | ScriptC.java | 54 * @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/support/compat/java/android/support/v4/content/res/ |
H A D | ConfigurationHelper.java | 42 public static int getScreenHeightDp(@NonNull Resources resources) { argument 43 return resources.getConfiguration().screenHeightDp; 55 public static int getScreenWidthDp(@NonNull Resources resources) { argument 56 return resources.getConfiguration().screenWidthDp; 68 public static int getSmallestScreenWidthDp(@NonNull Resources resources) { argument 69 return resources.getConfiguration().smallestScreenWidthDp; 78 public static int getDensityDpi(@NonNull Resources resources) { argument 80 return resources.getConfiguration().densityDpi; 82 return resources.getDisplayMetrics().densityDpi;
|
/frameworks/av/services/mediaresourcemanager/ |
H A D | ResourceManagerService.h | 40 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 D | PhotoBitmapLoaderInterface.java | 27 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/ |
H A D | TypefaceCompatBaseImpl.java | 96 FontFamilyFilesResourceEntry entry, Resources resources, int style) { 103 context, resources, best.getResourceId(), style); 95 createFromFontFamilyFilesResourceEntry(Context context, FontFamilyFilesResourceEntry entry, Resources resources, int style) argument
|
/frameworks/support/compat/kitkat/android/support/v4/graphics/drawable/ |
H A D | DrawableWrapperApi19.java | 32 DrawableWrapperApi19(DrawableWrapperState state, Resources resources) { argument 33 super(state, resources);
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | DrawableInflater.java | 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 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 D | WifiScoreReportTest.java | 63 private void setUpResources(Resources resources) { argument 64 when(resources.getInteger( 67 when(resources.getInteger( 70 when(resources.getInteger( 73 when(resources.getInteger( 76 when(resources.getInteger( 79 when(resources.getInteger( 82 when(resources.getInteger( 85 when(resources.getInteger( 88 when(resources [all...] |
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ |
H A D | SimpleInflater.java | 50 * @param resources The Resources class used to resolve given resource IDs. 52 protected SimpleInflater(@NonNull Resources resources) { argument 53 mResources = resources;
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
H A D | Partner.java | 61 return entry.resources.getDrawable(entry.id); 72 return entry.resources.getString(entry.id); 80 * @return a ResourceEntry in the partner overlay's resources, if one is defined. Otherwise the 81 * resources from the original context is returned. Clients can then get the resource by 82 * {@code entry.resources.getString(entry.id)}, or other methods available in 100 public Resources resources; field in class:Partner.ResourceEntry 104 ResourceEntry(Resources resources, int id, boolean isOverlay) { argument 105 this.resources = resources; 145 Log.w(TAG, "Failed to find resources fo [all...] |