Searched refs:resources (Results 1 - 25 of 140) sorted by relevance

123456

/frameworks/base/libs/androidfw/tests/data/basic/
H A Dbuild21 unzip bundle.apk resources.arsc && \
22 mv resources.arsc basic.arsc && \
25 unzip bundle_de_fr.apk resources.arsc && \
26 mv resources.arsc split_de_fr.arsc && \
29 unzip bundle_hdpi-v4.apk resources.arsc && \
30 mv resources.arsc split_hdpi_v4.arsc && \
33 unzip bundle_xhdpi-v4.apk resources.arsc && \
34 mv resources.arsc split_xhdpi_v4.arsc && \
37 unzip bundle_xxhdpi-v4.apk resources.arsc && \
38 mv resources
[all...]
/frameworks/base/libs/androidfw/tests/data/overlay/
H A Dbuild19 unzip bundle.apk resources.arsc && \
20 mv resources.arsc overlay.arsc && \
/frameworks/base/libs/androidfw/tests/data/system/
H A Dbuild19 unzip bundle.apk resources.arsc && \
20 mv resources.arsc system.arsc && \
/frameworks/av/services/mediaresourcemanager/test/
H A DResourceManagerService_test.cpp115 const Vector<MediaResource> &resources) {
117 EXPECT_TRUE(isEqualResources(resources, info.resources));
252 Vector<MediaResource> resources; local
253 resources.push_back(MediaResource(String8(kResourceSecureCodec), 1));
254 resources.push_back(MediaResource(String8(kResourceGraphicMemory), 150));
263 EXPECT_FALSE(mService->reclaimResource(kLowPriorityPid, resources));
264 EXPECT_FALSE(mService->reclaimResource(kMidPriorityPid, resources));
267 EXPECT_TRUE(mService->reclaimResource(kHighPriorityPid, resources));
271 EXPECT_TRUE(mService->reclaimResource(kHighPriorityPid, resources));
114 expectEqResourceInfo(const ResourceInfo &info, sp<IResourceManagerClient> client, const Vector<MediaResource> &resources) argument
354 Vector<MediaResource> resources; local
372 Vector<MediaResource> resources; local
427 Vector<MediaResource> resources; local
[all...]
/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/base/libs/androidfw/tests/data/app/
H A Dbuild19 unzip bundle.apk resources.arsc && \
20 mv resources.arsc app.arsc && \
/frameworks/base/libs/androidfw/tests/data/feature/
H A Dbuild19 unzip bundle.apk resources.arsc && \
20 mv resources.arsc feature.arsc && \
/frameworks/base/libs/androidfw/tests/data/lib/
H A Dbuild19 unzip bundle.apk resources.arsc && \
20 mv resources.arsc lib.arsc && \
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DSpeechOrbView.java31 Resources resources = context.getResources();
33 resources.getFraction(R.fraction.lb_search_bar_speech_orb_max_level_zoom, 1, 1);
35 mNotListeningOrbColors = new Colors(resources.getColor(R.color.lb_speech_orb_not_recording),
36 resources.getColor(R.color.lb_speech_orb_not_recording_pulsed),
37 resources.getColor(R.color.lb_speech_orb_not_recording_icon));
38 mListeningOrbColors = new Colors(resources.getColor(R.color.lb_speech_orb_recording),
39 resources.getColor(R.color.lb_speech_orb_recording),
/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/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/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/tools/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/
H A DArraysCheckWidget.java10 * A widget to test obtaining arrays from resources.
23 Resources resources = context.getResources();
24 for (CharSequence chars : resources.getTextArray(R.array.array)) {
27 for (int i : resources.getIntArray(R.array.int_array)) {
30 for (String string : resources.getStringArray(R.array.string_array)) {
/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);
/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/support/design/base/android/support/design/widget/
H A DFloatingActionButtonImpl.java66 final Resources resources = mView.getResources();
69 resources.getColor(R.color.design_fab_stroke_top_outer_color),
70 resources.getColor(R.color.design_fab_stroke_top_inner_color),
71 resources.getColor(R.color.design_fab_stroke_end_inner_color),
72 resources.getColor(R.color.design_fab_stroke_end_outer_color));
/frameworks/av/services/mediaresourcemanager/
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)) {
141 Vector<MediaResource> resources = infos[j].resources; local
143 for (size_t k = 0; k < resources.size(); ++k) {
144 snprintf(buffer, SIZE, " %s\n", resources[k].toString().string());
190 const Vector<MediaResource> &resources) {
191 String8 log = String8::format("addResource(pid %d, clientId %lld, resources
186 addResource( int pid, int64_t clientId, const sp<IResourceManagerClient> client, const Vector<MediaResource> &resources) argument
239 reclaimResource( int callingPid, const Vector<MediaResource> &resources) argument
460 Vector<MediaResource> resources = infos[i].resources; local
[all...]
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/
H A DConfigGenerator.java20 import com.android.ide.common.resources.configuration.CountryCodeQualifier;
21 import com.android.ide.common.resources.configuration.DensityQualifier;
22 import com.android.ide.common.resources.configuration.FolderConfiguration;
23 import com.android.ide.common.resources.configuration.KeyboardStateQualifier;
24 import com.android.ide.common.resources.configuration.LayoutDirectionQualifier;
25 import com.android.ide.common.resources.configuration.LocaleQualifier;
26 import com.android.ide.common.resources.configuration.NavigationMethodQualifier;
27 import com.android.ide.common.resources.configuration.NetworkCodeQualifier;
28 import com.android.ide.common.resources.configuration.NightModeQualifier;
29 import com.android.ide.common.resources
[all...]
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/
H A DResourceExpr.java138 final String resources = "getRoot().getResources()";
142 if ("bool".equals(mResourceType)) return resources + ".getBoolean(" + resourceName + ")";
143 if ("color".equals(mResourceType)) return resources + ".getColor(" + resourceName + ")";
144 if ("colorStateList".equals(mResourceType)) return resources + ".getColorStateList(" + resourceName + ")";
145 if ("dimen".equals(mResourceType)) return resources + ".getDimension(" + resourceName + ")";
146 if ("dimenOffset".equals(mResourceType)) return resources + ".getDimensionPixelOffset(" + resourceName + ")";
147 if ("dimenSize".equals(mResourceType)) return resources + ".getDimensionPixelSize(" + resourceName + ")";
148 if ("drawable".equals(mResourceType)) return resources + ".getDrawable(" + resourceName + ")";
152 return resources + ".getFraction(" + resourceName + ", " + base + ", " + pbase +
156 if ("intArray".equals(mResourceType)) return resources
[all...]
/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/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/tools/layoutlib/bridge/
H A DAndroid.mk20 LOCAL_JAVA_RESOURCE_DIRS := resources
/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/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);

Completed in 668 milliseconds

123456