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

12

/frameworks/base/core/java/com/android/internal/util/
H A DScreenShapeHelper.java23 public static int getWindowOutsetBottomPx(Resources resources) { argument
27 return resources.getInteger(com.android.internal.R.integer.config_windowOutsetBottom);
/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);
H A DResourceManagerService.cpp45 static bool hasResourceType(String8 type, Vector<MediaResource> resources) { argument
46 for (size_t i = 0; i < resources.size(); ++i) {
47 if (resources[i].mType == type) {
56 if (hasResourceType(type, infos[i].resources)) {
121 Vector<MediaResource> resources = infos[j].resources; local
123 for (size_t k = 0; k < resources.size(); ++k) {
124 snprintf(buffer, SIZE, " %s\n", resources[k].toString().string());
170 const Vector<MediaResource> &resources) {
171 String8 log = String8::format("addResource(pid %d, clientId %lld, resources
166 addResource( int pid, int64_t clientId, const sp<IResourceManagerClient> client, const Vector<MediaResource> &resources) argument
219 reclaimResource( int callingPid, const Vector<MediaResource> &resources) argument
436 Vector<MediaResource> resources = infos[i].resources; local
[all...]
/frameworks/base/core/java/android/content/res/
H A DConfigurationBoundResourceCache.java31 * @param resources the resources to use when creating new instances
33 public ConfigurationBoundResourceCache(Resources resources) { argument
34 mResources = resources;
H A DDrawableCache.java22 * Class which can be used to cache Drawable resources against a theme.
30 * @param resources the resources to use when creating new instances
32 public DrawableCache(Resources resources) { argument
33 mResources = resources;
/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.java128 public int getPackageId(Resources resources, String packageName) { argument
130 resources.getAssets().getAssignedPackageIdentifiers();
/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);
94 private static synchronized long internalCreate(RenderScript rs, Resources resources, int resourceID) { argument
97 InputStream is = resources.openRawResource(resourceID);
123 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.java74 public static VectorDrawable create(Resources resources, int rid) { argument
76 final XmlPullParser parser = resources.getXml(rid);
88 drawable.inflate(resources, parser, attrs);
/frameworks/base/tools/layoutlib/bridge/src/android/animation/
H A DAnimatorInflater_Delegate.java39 /*package*/ static Animator loadAnimator(Resources resources, Theme theme, int id) argument
41 return loadAnimator(resources, theme, id, 1);
45 /*package*/ static Animator loadAnimator(Resources resources, Theme theme, int id, argument
/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);
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DTintContextWrapper.java54 * This class allows us to intercept calls so that we can tint resources (if applicable).
60 public TintResources(Resources resources, TintManager tintManager) { argument
61 super(resources);
/frameworks/base/core/tests/coretests/src/android/content/res/
H A DConfigurationBoundResourceCacheTest.java187 private int calcConfigChanges(Resources resources, Configuration configuration) argument
194 return (Integer) mCalcConfigChanges.invoke(resources, configuration);
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DFragmentShader.java46 public Builder setShader(Resources resources, int resourceID) { argument
47 mBuilder.setShader(resources, resourceID);
H A DVertexShader.java42 public Builder setShader(Resources resources, int resourceID) { argument
43 mBuilder.setShader(resources, resourceID);
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
H A DPartner.java55 return entry.resources.getDrawable(entry.id);
66 return entry.resources.getString(entry.id);
74 * @return a ResourceEntry in the partner overlay's resources, if one is defined. Otherwise the
75 * resources from the original context is returned. Clients can then get the resource by
76 * {@code entry.resources.getString(entry.id)}, or other methods available in
94 public Resources resources; field in class:Partner.ResourceEntry
98 ResourceEntry(Resources resources, int id, boolean isOverlay) { argument
99 this.resources = resources;
126 Log.w(TAG, "Failed to find resources fo
[all...]
/frameworks/av/media/libmedia/
H A DIResourceManagerService.cpp77 const Vector<MediaResource> &resources) {
83 writeToParcel(&data, resources);
97 virtual bool reclaimResource(int callingPid, const Vector<MediaResource> &resources) { argument
101 writeToParcel(&data, resources);
135 Vector<MediaResource> resources; local
136 readFromParcel(data, &resources);
137 addResource(pid, clientId, client, resources);
152 Vector<MediaResource> resources; local
153 readFromParcel(data, &resources);
154 bool ret = reclaimResource(callingPid, resources);
73 addResource( int pid, int64_t clientId, const sp<IResourceManagerClient> client, const Vector<MediaResource> &resources) argument
[all...]
/frameworks/base/core/java/android/text/
H A DAutoText.java76 private AutoText(Resources resources) { argument
77 mLocale = resources.getConfiguration().locale;
78 init(resources);
84 * @param view to get the resources from
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
H A DErrorCalculator.java47 public ErrorCalculator(Context c, Resources resources) { argument
48 int width = resources.getDimensionPixelSize(R.dimen.layer_width);
49 int height = resources.getDimensionPixelSize(R.dimen.layer_height);
H A DResourceModifiers.java60 public static void init(Resources resources) { argument
61 sInstance = new ResourceModifiers(resources);
64 public ResourceModifiers(Resources resources) { argument
65 mBitmap = BitmapFactory.decodeResource(resources, R.drawable.sunset1);
69 mDrawWidth = resources.getDimensionPixelSize(R.dimen.layer_width);
70 mDrawHeight = resources.getDimensionPixelSize(R.dimen.layer_height);
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/
H A DLayoutXmlProcessor.java58 public LayoutXmlProcessor(String applicationPackage, List<File> resources, argument
62 mResources = resources;
67 public static List<File> getLayoutFiles(List<File> resources) { argument
69 for (File resource : resources) {
/frameworks/support/v17/leanback/src/android/support/v17/leanback/system/
H A DSettings.java114 public Customizations(Resources resources, String packageName) { argument
115 mResources = resources;
131 Resources resources = null;
137 resources = pm.getResourcesForApplication(packageName);
141 if (resources != null) {
146 return resources == null ? null : new Customizations(resources, packageName);

Completed in 588 milliseconds

12