Searched refs:resid (Results 1 - 25 of 46) sorted by relevance

12

/frameworks/support/v7/appcompat/src/android/support/v7/view/
H A DContextThemeWrapper.java48 public void setTheme(int resid) { argument
49 if (mThemeResource != resid) {
50 mThemeResource = resid;
91 * @param resid The theme style resource being applied to <var>theme</var>.
95 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { argument
96 theme.applyStyle(resid, true);
/frameworks/support/v4/java/android/support/v4/view/
H A DAsyncLayoutInflater.java81 public void inflate(@LayoutRes int resid, @Nullable ViewGroup parent, argument
88 request.resid = resid;
100 request.resid, request.parent, false);
103 request.view, request.resid, request.parent);
110 public void onInflateFinished(View view, int resid, ViewGroup parent); argument
116 int resid; field in class:AsyncLayoutInflater.InflateRequest
185 request.resid, request.parent, false);
208 obj.resid = 0;
/frameworks/base/core/java/android/widget/
H A DImageSwitcher.java36 public void setImageResource(@DrawableRes int resid) argument
39 image.setImageResource(resid);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DAnimatedImageView.java37 // the same as the previous one. If this is a resid, we track that. If it's a drawable, we
89 public void setImageResource(int resid) { argument
90 if (mDrawableId == resid) return;
92 mDrawableId = resid;
93 super.setImageResource(resid);
/frameworks/base/core/java/com/google/android/util/
H A DSmileyParser.java71 int resid = mRes.getSmileyRes(token.getRawText());
72 if (resid != -1) {
73 builder.setSpan(new ImageSpan(context, resid),
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DTintContextWrapper.java100 public void setTheme(int resid) { argument
102 super.setTheme(resid);
104 mTheme.applyStyle(resid, true);
H A DResourcesWrapper.java248 public String getResourceName(int resid) throws NotFoundException { argument
249 return mResources.getResourceName(resid);
253 public String getResourcePackageName(int resid) throws NotFoundException { argument
254 return mResources.getResourcePackageName(resid);
258 public String getResourceTypeName(int resid) throws NotFoundException { argument
259 return mResources.getResourceTypeName(resid);
263 public String getResourceEntryName(int resid) throws NotFoundException { argument
264 return mResources.getResourceEntryName(resid);
H A DTintTypedArray.java54 public static TintTypedArray obtainStyledAttributes(Context context, int resid, int[] attrs) { argument
55 return new TintTypedArray(context, context.obtainStyledAttributes(resid, attrs));
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/widget/
H A DAnimatedImageView.java73 public void setImageResource(int resid) { argument
74 super.setImageResource(resid);
/frameworks/base/services/core/java/com/android/server/am/
H A DAppNotRespondingDialog.java64 int resid;
72 resid = com.android.internal.R.string.anr_activity_application;
76 resid = com.android.internal.R.string.anr_application_process;
81 resid = com.android.internal.R.string.anr_activity_process;
84 resid = com.android.internal.R.string.anr_process;
91 ? res.getString(resid, bidi.unicodeWrap(name1.toString()), bidi.unicodeWrap(name2.toString()))
92 : res.getString(resid, bidi.unicodeWrap(name1.toString())));
/frameworks/base/core/java/android/view/
H A DContextThemeWrapper.java137 public void setTheme(int resid) { argument
138 if (mThemeResource != resid) {
139 mThemeResource = resid;
/frameworks/base/test-runner/src/android/test/mock/
H A DMockResources.java209 public String getResourceName(int resid) throws NotFoundException { argument
214 public String getResourcePackageName(int resid) throws NotFoundException { argument
219 public String getResourceTypeName(int resid) throws NotFoundException { argument
224 public String getResourceEntryName(int resid) throws NotFoundException { argument
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
H A DResources_Theme_Delegate.java68 int resid, int[] attrs)
71 BridgeTypedArray ta = RenderSessionImpl.getCurrentContext().obtainStyledAttributes(resid,
93 int resid, TypedValue outValue,
96 boolean found = RenderSessionImpl.getCurrentContext().resolveThemeAttribute(resid,
66 obtainStyledAttributes( Resources thisResources, Theme thisTheme, int resid, int[] attrs) argument
91 resolveAttribute( Resources thisResources, Theme thisTheme, int resid, TypedValue outValue, boolean resolveRefs) argument
H A DResources_Delegate.java636 static String getResourceEntryName(Resources resources, int resid) throws NotFoundException { argument
637 Pair<ResourceType, String> resourceInfo = getResourceInfo(resources, resid, new boolean[1]);
641 throwException(resid, null);
647 static String getResourceName(Resources resources, int resid) throws NotFoundException { argument
649 Pair<ResourceType, String> resourceInfo = getResourceInfo(resources, resid, platformOut);
661 throwException(resid, null);
666 static String getResourcePackageName(Resources resources, int resid) throws NotFoundException { argument
668 Pair<ResourceType, String> resourceInfo = getResourceInfo(resources, resid, platformOut);
676 throwException(resid, null);
681 static String getResourceTypeName(Resources resources, int resid) throw argument
[all...]
/frameworks/base/core/java/android/content/res/
H A DResourcesImpl.java225 String getResourceName(@AnyRes int resid) throws NotFoundException { argument
226 String str = mAssets.getResourceName(resid);
229 + Integer.toHexString(resid));
233 String getResourcePackageName(@AnyRes int resid) throws NotFoundException { argument
234 String str = mAssets.getResourcePackageName(resid);
237 + Integer.toHexString(resid));
241 String getResourceTypeName(@AnyRes int resid) throws NotFoundException { argument
242 String str = mAssets.getResourceTypeName(resid);
245 + Integer.toHexString(resid));
249 String getResourceEntryName(@AnyRes int resid) throw argument
1149 resolveAttribute(int resid, TypedValue outValue, boolean resolveRefs) argument
[all...]
H A DResources.java1359 * specified by <var>resid</var> will be retrieved from this Theme's
1416 * resource <var>resid</var> which are listed in <var>attrs</var>.
1516 * @param resid The resource identifier of the desired theme
1528 public boolean resolveAttribute(int resid, TypedValue outValue, boolean resolveRefs) { argument
1529 return mThemeImpl.resolveAttribute(resid, outValue, resolveRefs);
1874 public static boolean resourceHasPackage(@AnyRes int resid) { argument
1875 return (resid >>> 24) != 0;
1882 * @param resid The resource identifier whose name is to be retrieved.
1892 public String getResourceName(@AnyRes int resid) throws NotFoundException { argument
1893 return mResourcesImpl.getResourceName(resid);
1908 getResourcePackageName(@nyRes int resid) argument
1924 getResourceTypeName(@nyRes int resid) argument
1940 getResourceEntryName(@nyRes int resid) argument
[all...]
H A DAssetManager.java768 /*package*/ native final String getResourceName(int resid); argument
769 /*package*/ native final String getResourcePackageName(int resid); argument
770 /*package*/ native final String getResourceTypeName(int resid); argument
771 /*package*/ native final String getResourceEntryName(int resid); argument
/frameworks/base/core/java/android/content/pm/
H A DPackageItemInfo.java341 int resid = metaData.getInt(name);
342 if (resid != 0) {
343 return pm.getXml(packageName, resid, getApplicationInfo());
/frameworks/base/services/tests/servicestests/src/com/android/server/search/
H A DSearchablesTest.java364 * @param resid The resource identifier of the desired xml. Can not be 0.
375 public XmlResourceParser getXml(String packageName, int resid, ApplicationInfo appInfo) { argument
378 MoreAsserts.assertNotEqual(resid, 0);
381 return mRealPackageManager.getXml(packageName, resid, appInfo);
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DAppCompatActivity.java89 public void setTheme(@StyleRes final int resid) { argument
90 super.setTheme(resid);
92 mThemeId = resid;
H A DAlertDialog.java106 private static int resolveDialogTheme(@NonNull Context context, @StyleRes int resid) { argument
107 if (resid >= 0x01000000) { // start of real resource IDs.
108 return resid;
/frameworks/base/core/jni/
H A Dandroid_util_AssetManager.cpp770 jint resid)
778 if (!am->getResources().getResourceName(resid, true, &name)) {
813 jint resid)
821 if (!am->getResources().getResourceName(resid, true, &name)) {
833 jint resid)
841 if (!am->getResources().getResourceName(resid, true, &name)) {
857 jint resid)
865 if (!am->getResources().getResourceName(resid, true, &name)) {
1263 uint32_t resid = 0; local
1267 &resid,
769 android_content_AssetManager_getResourceName(JNIEnv* env, jobject clazz, jint resid) argument
812 android_content_AssetManager_getResourcePackageName(JNIEnv* env, jobject clazz, jint resid) argument
832 android_content_AssetManager_getResourceTypeName(JNIEnv* env, jobject clazz, jint resid) argument
856 android_content_AssetManager_getResourceEntryName(JNIEnv* env, jobject clazz, jint resid) argument
1512 uint32_t resid = 0; local
1686 uint32_t resid = 0; local
1800 uint32_t resid = 0; local
[all...]
/frameworks/base/core/java/android/app/
H A DWallpaperManager.java895 * @param resid The resource ID of the bitmap to be used as the wallpaper image
900 public void setResource(@RawRes int resid) throws IOException { argument
901 setResource(resid, FLAG_SYSTEM);
908 * @param resid The resource ID of the bitmap to be used as the wallpaper image
918 public int setResource(@RawRes int resid, @SetWallpaperFlags int which) argument
930 "res:" + resources.getResourceName(resid),
937 copyStreamToWallpaperFile(resources.openRawResource(resid), fos);
1192 public boolean hasResourceWallpaper(@RawRes int resid) { argument
1199 String name = "res:" + resources.getResourceName(resid);
/frameworks/base/include/androidfw/
H A DResourceTypes.h241 #define Res_VALIDID(resid) (resid != 0)
242 #define Res_CHECKID(resid) ((resid&0xFFFF0000) != 0)
249 #define Res_INTERNALID(resid) ((resid&0xFFFF0000) != 0 && (resid&0xFF0000) == 0)
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DDessertCaseView.java180 for (int resid : list) {
182 loaded = BitmapFactory.decodeResource(res, resid, opts);
186 mDrawables.append(resid, d);

Completed in 603 milliseconds

12