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

12

/frameworks/support/v7/appcompat/src/android/support/v7/internal/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/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DAnimatedImageView.java33 // the same as the previous one. If this is a resid, we track that. If it's a drawable, we
75 public void setImageResource(int resid) { argument
76 if (mDrawableId == resid) return;
78 mDrawableId = resid;
79 super.setImageResource(resid);
/frameworks/base/core/java/android/view/
H A DContextThemeWrapper.java91 public void setTheme(int resid) { argument
92 if (mThemeResource != resid) {
93 mThemeResource = resid;
133 * @param resid The theme style resource being applied to <var>theme</var>.
137 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { argument
138 theme.applyStyle(resid, true);
/frameworks/base/core/java/android/widget/
H A DImageSwitcher.java36 public void setImageResource(@DrawableRes int resid) argument
39 image.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/base/services/core/java/com/android/server/am/
H A DAppNotRespondingDialog.java50 int resid;
58 resid = com.android.internal.R.string.anr_activity_application;
62 resid = com.android.internal.R.string.anr_application_process;
67 resid = com.android.internal.R.string.anr_activity_process;
70 resid = com.android.internal.R.string.anr_process;
75 ? res.getString(resid, name1.toString(), name2.toString())
76 : res.getString(resid, name1.toString()));
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DResourcesWrapper.java251 public String getResourceName(int resid) throws NotFoundException { argument
252 return mResources.getResourceName(resid);
256 public String getResourcePackageName(int resid) throws NotFoundException { argument
257 return mResources.getResourcePackageName(resid);
261 public String getResourceTypeName(int resid) throws NotFoundException { argument
262 return mResources.getResourceTypeName(resid);
266 public String getResourceEntryName(int resid) throws NotFoundException { argument
267 return mResources.getResourceEntryName(resid);
/frameworks/base/test-runner/src/android/test/mock/
H A DMockResources.java204 public String getResourceName(int resid) throws NotFoundException { argument
209 public String getResourcePackageName(int resid) throws NotFoundException { argument
214 public String getResourceTypeName(int resid) throws NotFoundException { argument
219 public String getResourceEntryName(int resid) throws NotFoundException { argument
H A DMockPackageManager.java380 public Drawable getDrawable(String packageName, int resid, ApplicationInfo appInfo) { argument
475 public CharSequence getText(String packageName, int resid, ApplicationInfo appInfo) { argument
480 public XmlResourceParser getXml(String packageName, int resid, 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
/frameworks/base/core/java/android/app/
H A DDatePickerDialog.java85 static int resolveDialogTheme(Context context, int resid) { argument
86 if (resid == 0) {
91 return resid;
H A DWallpaperManager.java720 * @param resid The bitmap to save.
725 public void setResource(@RawRes int resid) throws IOException { argument
734 "res:" + resources.getResourceName(resid), mContext.getOpPackageName());
739 setWallpaper(resources.openRawResource(resid), fos);
843 public boolean hasResourceWallpaper(@RawRes int resid) { argument
850 String name = "res:" + resources.getResourceName(resid);
/frameworks/base/core/java/android/content/pm/
H A DPackageItemInfo.java277 int resid = metaData.getInt(name);
278 if (resid != 0) {
279 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/base/core/java/android/content/res/
H A DResources.java1425 * specified by <var>resid</var> will be retrieved from this Theme's
1492 * resource <var>resid</var> which are listed in <var>attrs</var>.
1497 * @param resid The desired style resource.
1510 public TypedArray obtainStyledAttributes(@StyleRes int resid, @StyleableRes int[] attrs) argument
1541 AssetManager.applyStyle(mTheme, 0, resid, 0, attrs, array.mData, array.mIndices);
1676 * @param resid The resource identifier of the desired theme
1688 public boolean resolveAttribute(int resid, TypedValue outValue, boolean resolveRefs) { argument
1689 boolean got = mAssets.getThemeValue(mTheme, resid, outValue, resolveRefs);
1692 "resolveAttribute #" + Integer.toHexString(resid)
2214 public static boolean resourceHasPackage(@AnyRes int resid) { argument
2232 getResourceName(@nyRes int resid) argument
2251 getResourcePackageName(@nyRes int resid) argument
2270 getResourceTypeName(@nyRes int resid) argument
2289 getResourceEntryName(@nyRes int resid) argument
[all...]
H A DAssetManager.java712 /*package*/ native final String getResourceName(int resid); argument
713 /*package*/ native final String getResourcePackageName(int resid); argument
714 /*package*/ native final String getResourceTypeName(int resid); argument
715 /*package*/ native final String getResourceEntryName(int resid); argument
H A DTypedArray.java812 final int resid = data[index+AssetManager.STYLE_RESOURCE_ID];
813 if (resid != 0) {
814 return resid;
/frameworks/base/core/jni/
H A Dandroid_util_AssetManager.cpp695 jint resid)
703 if (!am->getResources().getResourceName(resid, true, &name)) {
738 jint resid)
746 if (!am->getResources().getResourceName(resid, true, &name)) {
758 jint resid)
766 if (!am->getResources().getResourceName(resid, true, &name)) {
782 jint resid)
790 if (!am->getResources().getResourceName(resid, true, &name)) {
1188 uint32_t resid = 0; local
1192 &resid,
694 android_content_AssetManager_getResourceName(JNIEnv* env, jobject clazz, jint resid) argument
737 android_content_AssetManager_getResourcePackageName(JNIEnv* env, jobject clazz, jint resid) argument
757 android_content_AssetManager_getResourceTypeName(JNIEnv* env, jobject clazz, jint resid) argument
781 android_content_AssetManager_getResourceEntryName(JNIEnv* env, jobject clazz, jint resid) argument
1437 uint32_t resid = 0; local
1611 uint32_t resid = 0; local
1725 uint32_t resid = 0; local
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeContext.java320 public boolean resolveThemeAttribute(int resid, TypedValue outValue, boolean resolveRefs) { argument
321 Pair<ResourceType, String> resourceInfo = Bridge.resolveResourceId(resid);
324 resourceInfo = mLayoutlibCallback.resolveResourceId(resid);
604 public final BridgeTypedArray obtainStyledAttributes(int resid, int[] attrs) argument
608 if (resid != 0) {
609 style = getStyleByDynamicId(resid);
613 ResourceReference ref = resolveId(resid);
631 map.put(resid, ta);
644 BridgeTypedArray ta = map.get(resid);
648 map.put(resid, t
[all...]
H A DBridgePackageManager.java351 public Drawable getDrawable(String packageName, int resid, ApplicationInfo appInfo) { argument
442 public CharSequence getText(String packageName, int resid, ApplicationInfo appInfo) { argument
447 public XmlResourceParser getXml(String packageName, int resid, ApplicationInfo appInfo) { argument
/frameworks/base/include/androidfw/
H A DResourceTypes.h238 #define Res_VALIDID(resid) (resid != 0)
239 #define Res_CHECKID(resid) ((resid&0xFFFF0000) != 0)
246 #define Res_INTERNALID(resid) ((resid&0xFFFF0000) != 0 && (resid&0xFF0000) == 0)
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DAlertDialog.java103 static int resolveDialogTheme(Context context, int resid) { argument
104 if (resid >= 0x01000000) { // start of real resource IDs.
105 return resid;
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DDessertCaseView.java173 for (int resid : list) {
175 loaded = BitmapFactory.decodeResource(res, resid, opts);
179 mDrawables.append(resid, d);
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DDatabaseHelper.java2731 private void loadStringSetting(SQLiteStatement stmt, String key, int resid) { argument
2732 loadSetting(stmt, key, mContext.getResources().getString(resid));
2735 private void loadBooleanSetting(SQLiteStatement stmt, String key, int resid) { argument
2737 mContext.getResources().getBoolean(resid) ? "1" : "0");
2740 private void loadIntegerSetting(SQLiteStatement stmt, String key, int resid) { argument
2742 Integer.toString(mContext.getResources().getInteger(resid)));
2745 private void loadFractionSetting(SQLiteStatement stmt, String key, int resid, int base) { argument
2747 Float.toString(mContext.getResources().getFraction(resid, base, base)));
/frameworks/base/core/java/android/content/
H A DContext.java484 * @param resid The style resource describing the theme.
486 public abstract void setTheme(@StyleRes int resid); argument
519 @StyleRes int resid, @StyleableRes int[] attrs) throws Resources.NotFoundException {
520 return getTheme().obtainStyledAttributes(resid, attrs);
518 obtainStyledAttributes( @tyleRes int resid, @StyleableRes int[] attrs) argument

Completed in 3392 milliseconds

12