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

12

/frameworks/base/core/java/android/view/
H A DContextThemeWrapper.java49 @Override public void setTheme(int resid) { argument
50 mThemeResource = resid;
89 * @param resid The theme style resource being applied to <var>theme</var>.
93 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { argument
94 theme.applyStyle(resid, true);
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
H A DResources_Theme_Delegate.java46 int resid, int[] attrs)
48 return RenderSessionImpl.getCurrentContext().obtainStyledAttributes(resid, attrs);
62 int resid, TypedValue outValue,
65 resid, outValue, resolveRefs);
44 obtainStyledAttributes( Resources thisResources, Theme thisTheme, int resid, int[] attrs) argument
60 resolveAttribute( Resources thisResources, Theme thisTheme, int resid, TypedValue outValue, boolean resolveRefs) argument
/frameworks/base/core/java/android/widget/
H A DImageSwitcher.java38 public void setImageResource(int resid) argument
41 image.setImageResource(resid);
H A DCheckedTextView.java102 * @param resid The Drawable to use for the checkmark.
104 public void setCheckMarkDrawable(int resid) { argument
105 if (resid != 0 && resid == mCheckMarkResource) {
109 mCheckMarkResource = resid;
H A DCompoundButton.java173 * @param resid the resource id of the drawable to use as the background
175 public void setButtonDrawable(int resid) { argument
176 if (resid != 0 && resid == mButtonResource) {
180 mButtonResource = 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/java/com/android/server/am/
H A DAppNotRespondingDialog.java52 int resid;
60 resid = com.android.internal.R.string.anr_activity_application;
64 resid = com.android.internal.R.string.anr_application_process;
69 resid = com.android.internal.R.string.anr_activity_process;
72 resid = com.android.internal.R.string.anr_process;
77 ? res.getString(resid, name1.toString(), name2.toString())
78 : res.getString(resid, name1.toString()));
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DAnimatedImageView.java64 public void setImageResource(int resid) { argument
65 super.setImageResource(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.java249 public Drawable getDrawable(String packageName, int resid, ApplicationInfo appInfo) { argument
300 public CharSequence getText(String packageName, int resid, ApplicationInfo appInfo) { argument
305 public XmlResourceParser getXml(String packageName, int resid, argument
/frameworks/base/core/java/android/content/pm/
H A DPackageItemInfo.java214 int resid = metaData.getInt(name);
215 if (resid != 0) {
216 return pm.getXml(packageName, resid, getApplicationInfo());
H A DPackageManager.java1831 * @param resid The resource identifier of the desired image. Can not be 0.
1840 public abstract Drawable getDrawable(String packageName, int resid, argument
2002 * @param resid The resource identifier of the desired text. Can not be 0.
2011 public abstract CharSequence getText(String packageName, int resid, argument
2020 * @param resid The resource identifier of the desired xml. Can not be 0.
2030 public abstract XmlResourceParser getXml(String packageName, int resid, argument
/frameworks/base/core/java/android/app/
H A DAlertDialog.java127 static int resolveDialogTheme(Context context, int resid) { argument
128 if (resid == THEME_TRADITIONAL) {
130 } else if (resid == THEME_HOLO_DARK) {
132 } else if (resid == THEME_HOLO_LIGHT) {
134 } else if (resid == THEME_DEVICE_DEFAULT_DARK) {
136 } else if (resid == THEME_DEVICE_DEFAULT_LIGHT) {
138 } else if (resid >= 0x01000000) { // start of real resource IDs.
139 return resid;
H A DApplicationPackageManager.java564 @Override public Drawable getDrawable(String packageName, int resid, argument
566 ResourceName name = new ResourceName(packageName, resid);
580 dr = r.getDrawable(resid);
584 Log.w(TAG, "Getting drawable 0x" + Integer.toHexString(resid)
591 + Integer.toHexString(resid) + " from " + r
605 + Integer.toHexString(resid) + " in package "
876 public CharSequence getText(String packageName, int resid, argument
878 ResourceName name = new ResourceName(packageName, resid);
892 text = r.getText(resid);
902 + Integer.toHexString(resid)
909 getXml(String packageName, int resid, ApplicationInfo appInfo) argument
[all...]
H A DWallpaperManager.java452 * @param resid The bitmap to save.
457 public void setResource(int resid) throws IOException { argument
462 "res:" + resources.getResourceName(resid));
467 setWallpaper(resources.openRawResource(resid), fos);
/frameworks/base/core/java/android/content/res/
H A DResources.java1094 * specified by <var>resid</var> will be retrieved from this Theme's
1103 * @param resid The resource ID of a style resource from which to
1109 public void applyStyle(int resid, boolean force) { argument
1110 AssetManager.applyThemeStyle(mTheme, resid, force);
1156 * resource <var>resid</var> which are listed in <var>attrs</var>.
1161 * @param resid The desired style resource.
1174 public TypedArray obtainStyledAttributes(int resid, int[] attrs) argument
1180 AssetManager.applyStyle(mTheme, 0, resid, 0, attrs,
1314 * @param resid The resource identifier of the desired theme
1326 public boolean resolveAttribute(int resid, TypedValu argument
1652 getResourceName(int resid) argument
1671 getResourcePackageName(int resid) argument
1690 getResourceTypeName(int resid) argument
1709 getResourceEntryName(int resid) argument
[all...]
H A DAssetManager.java665 /*package*/ native final String getResourceName(int resid); argument
666 /*package*/ native final String getResourcePackageName(int resid); argument
667 /*package*/ native final String getResourceTypeName(int resid); argument
668 /*package*/ native final String getResourceEntryName(int resid); argument
H A DTypedArray.java571 final int resid = data[index+AssetManager.STYLE_RESOURCE_ID];
572 if (resid != 0) {
573 return resid;
/frameworks/base/core/tests/coretests/src/android/app/
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/jni/
H A Dandroid_util_AssetManager.cpp588 jint resid)
596 if (!am->getResources().getResourceName(resid, &name)) {
623 jint resid)
631 if (!am->getResources().getResourceName(resid, &name)) {
643 jint resid)
651 if (!am->getResources().getResourceName(resid, &name)) {
663 jint resid)
671 if (!am->getResources().getResourceName(resid, &name)) {
1043 uint32_t resid = 0; local
1047 &resid,
587 android_content_AssetManager_getResourceName(JNIEnv* env, jobject clazz, jint resid) argument
622 android_content_AssetManager_getResourcePackageName(JNIEnv* env, jobject clazz, jint resid) argument
642 android_content_AssetManager_getResourceTypeName(JNIEnv* env, jobject clazz, jint resid) argument
662 android_content_AssetManager_getResourceEntryName(JNIEnv* env, jobject clazz, jint resid) argument
1203 uint32_t resid = 0; local
1316 uint32_t resid = 0; local
[all...]
/frameworks/base/core/java/android/content/
H A DContext.java304 * @param resid The style resource describing the theme.
306 public abstract void setTheme(int resid); argument
339 int resid, int[] attrs) throws Resources.NotFoundException {
340 return getTheme().obtainStyledAttributes(resid, attrs);
338 obtainStyledAttributes( int resid, int[] attrs) argument
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeContext.java247 public boolean resolveThemeAttribute(int resid, TypedValue outValue, boolean resolveRefs) { argument
248 Pair<ResourceType, String> resourceInfo = Bridge.resolveResourceId(resid);
250 resourceInfo = mProjectCallback.resolveResourceId(resid);
444 public final TypedArray obtainStyledAttributes(int resid, int[] attrs) argument
447 StyleResourceValue style = getStyleByDynamicId(resid);
460 map.put(resid, ta);
473 TypedArray ta = map.get(resid);
477 map.put(resid, ta);
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DDatabaseHelper.java1576 private void loadStringSetting(SQLiteStatement stmt, String key, int resid) { argument
1577 loadSetting(stmt, key, mContext.getResources().getString(resid));
1580 private void loadBooleanSetting(SQLiteStatement stmt, String key, int resid) { argument
1582 mContext.getResources().getBoolean(resid) ? "1" : "0");
1585 private void loadIntegerSetting(SQLiteStatement stmt, String key, int resid) { argument
1587 Integer.toString(mContext.getResources().getInteger(resid)));
1590 private void loadFractionSetting(SQLiteStatement stmt, String key, int resid, int base) { argument
1592 Float.toString(mContext.getResources().getFraction(resid, base, base)));
/frameworks/base/include/utils/
H A DResourceTypes.h206 #define Res_VALIDID(resid) (resid != 0)
207 #define Res_CHECKID(resid) ((resid&0xFFFF0000) != 0)
214 #define Res_INTERNALID(resid) ((resid&0xFFFF0000) != 0 && (resid&0xFF0000) == 0)
/frameworks/base/core/java/android/webkit/
H A DBrowserFrame.java1059 int resid;
1062 resid = com.android.internal.R.raw.nodomain;
1066 resid = com.android.internal.R.raw.loaderror;
1071 resid = com.android.internal.R.drawable.btn_check_off;
1095 context.getResources().getValue(resid, value, true);

Completed in 557 milliseconds

12