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

12

/frameworks/base/core/java/android/view/
H A DContextThemeWrapper.java48 @Override public void setTheme(int resid) { argument
49 mThemeResource = resid;
83 * @param resid The theme style resource being applied to <var>theme</var>.
87 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { argument
88 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.java100 * @param resid The Drawable to use for the checkmark.
102 public void setCheckMarkDrawable(int resid) { argument
103 if (resid != 0 && resid == mCheckMarkResource) {
107 mCheckMarkResource = resid;
H A DCompoundButton.java172 * @param resid the resource id of the drawable to use as the background
174 public void setButtonDrawable(int resid) { argument
175 if (resid != 0 && resid == mButtonResource) {
179 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.java247 public Drawable getDrawable(String packageName, int resid, ApplicationInfo appInfo) { argument
298 public CharSequence getText(String packageName, int resid, ApplicationInfo appInfo) { argument
303 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.java1601 * @param resid The resource identifier of the desired image. Can not be 0.
1610 public abstract Drawable getDrawable(String packageName, int resid, argument
1772 * @param resid The resource identifier of the desired text. Can not be 0.
1781 public abstract CharSequence getText(String packageName, int resid, argument
1790 * @param resid The resource identifier of the desired xml. Can not be 0.
1800 public abstract XmlResourceParser getXml(String packageName, int resid, argument
/frameworks/base/core/java/android/content/res/
H A DResources.java944 * specified by <var>resid</var> will be retrieved from this Theme's
953 * @param resid The resource ID of a style resource from which to
959 public void applyStyle(int resid, boolean force) { argument
960 AssetManager.applyThemeStyle(mTheme, resid, force);
1006 * resource <var>resid</var> which are listed in <var>attrs</var>.
1011 * @param resid The desired style resource.
1024 public TypedArray obtainStyledAttributes(int resid, int[] attrs) argument
1030 AssetManager.applyStyle(mTheme, 0, resid, 0, attrs,
1164 * @param resid The resource identifier of the desired theme
1176 public boolean resolveAttribute(int resid, TypedValu argument
1439 getResourceName(int resid) argument
1458 getResourcePackageName(int resid) argument
1477 getResourceTypeName(int resid) argument
1496 getResourceEntryName(int resid) argument
[all...]
H A DAssetManager.java663 /*package*/ native final String getResourceName(int resid); argument
664 /*package*/ native final String getResourcePackageName(int resid); argument
665 /*package*/ native final String getResourceTypeName(int resid); argument
666 /*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.cpp608 jint resid)
616 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)) {
683 jint resid)
691 if (!am->getResources().getResourceName(resid, &name)) {
1080 uint32_t resid = 0; local
1084 &resid,
607 android_content_AssetManager_getResourceName(JNIEnv* env, jobject clazz, jint resid) argument
642 android_content_AssetManager_getResourcePackageName(JNIEnv* env, jobject clazz, jint resid) argument
662 android_content_AssetManager_getResourceTypeName(JNIEnv* env, jobject clazz, jint resid) argument
682 android_content_AssetManager_getResourceEntryName(JNIEnv* env, jobject clazz, jint resid) argument
1241 uint32_t resid = 0; local
1354 uint32_t resid = 0; local
[all...]
/frameworks/base/core/java/android/content/
H A DContext.java205 * @param resid The style resource describing the theme.
207 public abstract void setTheme(int resid); argument
234 int resid, int[] attrs) throws Resources.NotFoundException {
235 return getTheme().obtainStyledAttributes(resid, attrs);
233 obtainStyledAttributes( int resid, int[] attrs) argument
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DDatabaseHelper.java1211 private void loadStringSetting(SQLiteStatement stmt, String key, int resid) { argument
1212 loadSetting(stmt, key, mContext.getResources().getString(resid));
1215 private void loadBooleanSetting(SQLiteStatement stmt, String key, int resid) { argument
1217 mContext.getResources().getBoolean(resid) ? "1" : "0");
1220 private void loadIntegerSetting(SQLiteStatement stmt, String key, int resid) { argument
1222 Integer.toString(mContext.getResources().getInteger(resid)));
1225 private void loadFractionSetting(SQLiteStatement stmt, String key, int resid, int base) { argument
1227 Float.toString(mContext.getResources().getFraction(resid, base, base)));
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeContext.java231 public boolean resolveThemeAttribute(int resid, TypedValue outValue, boolean resolveRefs) { argument
232 Pair<ResourceType, String> resourceInfo = Bridge.resolveResourceId(resid);
234 resourceInfo = mProjectCallback.resolveResourceId(resid);
427 public final TypedArray obtainStyledAttributes(int resid, int[] attrs) argument
430 StyleResourceValue style = getStyleByDynamicId(resid);
443 map.put(resid, ta);
456 TypedArray ta = map.get(resid);
460 map.put(resid, ta);
H A DBridgeResources.java415 public String getResourceEntryName(int resid) throws NotFoundException { argument
420 public String getResourceName(int resid) throws NotFoundException { argument
425 public String getResourceTypeName(int resid) throws NotFoundException { argument
/frameworks/base/core/java/android/webkit/
H A DBrowserFrame.java851 int resid;
854 resid = com.android.internal.R.raw.nodomain;
858 resid = com.android.internal.R.raw.loaderror;
863 resid = com.android.internal.R.drawable.btn_check_off;
883 mContext.getResources().getValue(resid, value, true);
/frameworks/base/core/java/android/app/
H A DWallpaperManager.java439 * @param resid The bitmap to save.
444 public void setResource(int resid) throws IOException { argument
449 "res:" + resources.getResourceName(resid));
454 setWallpaper(resources.openRawResource(resid), fos);
H A DContextImpl.java280 public void setTheme(int resid) { argument
281 mThemeResource = resid;
2185 @Override public Drawable getDrawable(String packageName, int resid, argument
2187 ResourceName name = new ResourceName(packageName, resid);
2201 dr = r.getDrawable(resid);
2205 Log.w(TAG, "Getting drawable 0x" + Integer.toHexString(resid)
2212 + Integer.toHexString(resid) + " from " + r
2223 + Integer.toHexString(resid) + " in package "
2489 public CharSequence getText(String packageName, int resid, argument
2491 ResourceName name = new ResourceName(packageName, resid);
2522 getXml(String packageName, int resid, ApplicationInfo appInfo) argument
[all...]
/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)

Completed in 3111 milliseconds

12