Searched refs:resid (Results 26 - 50 of 61) sorted by relevance

123

/frameworks/base/core/java/android/content/res/
H A DResourcesImpl.java230 String getResourceName(@AnyRes int resid) throws NotFoundException { argument
231 String str = mAssets.getResourceName(resid);
234 + Integer.toHexString(resid));
238 String getResourcePackageName(@AnyRes int resid) throws NotFoundException { argument
239 String str = mAssets.getResourcePackageName(resid);
242 + Integer.toHexString(resid));
246 String getResourceTypeName(@AnyRes int resid) throws NotFoundException { argument
247 String str = mAssets.getResourceTypeName(resid);
250 + Integer.toHexString(resid));
254 String getResourceEntryName(@AnyRes int resid) throw argument
1239 resolveAttribute(int resid, TypedValue outValue, boolean resolveRefs) argument
[all...]
H A DAssetManager.java795 /*package*/ native final String getResourceName(int resid); argument
796 /*package*/ native final String getResourcePackageName(int resid); argument
797 /*package*/ native final String getResourceTypeName(int resid); argument
798 /*package*/ native final String getResourceEntryName(int resid); argument
H A DTypedArray.java880 final int resid = data[index+AssetManager.STYLE_RESOURCE_ID];
881 if (resid != 0) {
882 return resid;
/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.java108 static int resolveDialogTheme(@NonNull Context context, @StyleRes int resid) { argument
110 if (((resid >>> 24) & 0x000000ff) >= 0x00000001) { // start of real resource IDs.
111 return resid;
/frameworks/base/libs/androidfw/tests/
H A DAssetManager2_bench.cpp86 const ResTable_config* config, uint32_t resid,
111 assetmanager.GetResource(resid, false /* may_be_bag */, 0u /* density_override */, &value,
85 GetResourceBenchmark(const std::vector<std::string>& paths, const ResTable_config* config, uint32_t resid, benchmark::State& state) argument
H A DResTable_test.cpp59 uint32_t resid = local
61 ASSERT_NE(0u, resid);
66 table.getResource(resid, &val, false /*mayBeBag*/, 0u /*density*/, &flags, &selected_config),
/frameworks/base/tools/aapt2/xml/
H A DXmlDom.h85 explicit AaptAttribute(const ::aapt::Attribute& attr, const Maybe<ResourceId>& resid = {})
86 : attribute(attr), id(resid) {
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DTintTypedArray.java65 public static TintTypedArray obtainStyledAttributes(Context context, int resid, int[] attrs) { argument
66 return new TintTypedArray(context, context.obtainStyledAttributes(resid, attrs));
H A DSwitchCompat.java297 public void setSwitchTextAppearance(Context context, int resid) { argument
298 final TintTypedArray appearance = TintTypedArray.obtainStyledAttributes(context, resid,
/frameworks/base/core/java/android/app/
H A DWallpaperManager.java912 * @param resid The resource ID of the bitmap to be used as the wallpaper image
917 public void setResource(@RawRes int resid) throws IOException { argument
918 setResource(resid, FLAG_SYSTEM | FLAG_LOCK);
925 * @param resid The resource ID of the bitmap to be used as the wallpaper image
935 public int setResource(@RawRes int resid, @SetWallpaperFlags int which) argument
947 "res:" + resources.getResourceName(resid),
955 copyStreamToWallpaperFile(resources.openRawResource(resid), fos);
1223 public boolean hasResourceWallpaper(@RawRes int resid) { argument
1230 String name = "res:" + resources.getResourceName(resid);
H A DApplicationPackageManager.java1606 public CharSequence getText(String packageName, @StringRes int resid, argument
1608 ResourceName name = new ResourceName(packageName, resid);
1622 text = r.getText(resid);
1632 + Integer.toHexString(resid) + " in package "
1639 public XmlResourceParser getXml(String packageName, @XmlRes int resid, argument
1650 return r.getXml(resid);
1655 + Integer.toHexString(resid) + " in package "
/frameworks/base/libs/androidfw/include/androidfw/
H A DResourceTypes.h240 #define Res_VALIDID(resid) (resid != 0)
241 #define Res_CHECKID(resid) ((resid&0xFFFF0000) != 0)
248 #define Res_INTERNALID(resid) ((resid&0xFFFF0000) != 0 && (resid&0xFF0000) == 0)
/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)) {
1317 uint32_t resid = 0; local
1321 ssize_t newBlock = res.resolveReference(&value, block, &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
[all...]
/frameworks/base/tools/aapt2/
H A DResourceValues.cpp96 const ResourceId resid = id.value_or_default(ResourceId(0)); local
97 const bool dynamic = resid.is_valid_dynamic() && resid.package_id() != kFrameworkPackageId &&
98 resid.package_id() != kAppPackageId;
113 out_value->data = util::HostToDevice32(resid.id);
/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);
/frameworks/base/tools/aapt2/flatten/
H A DTableFlattener_test.cpp259 const ResourceId resid(context->GetPackageId(), 0x02, static_cast<uint16_t>(i));
262 CHECK(table->AddResource(name, resid, ConfigDescription::DefaultConfig(), "",
268 CHECK(table->AddResource(name, resid, sparse_config, "",
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgePackageManager.java475 public Drawable getDrawable(String packageName, int resid, ApplicationInfo appInfo) { argument
571 public CharSequence getText(String packageName, int resid, ApplicationInfo appInfo) { argument
576 public XmlResourceParser getXml(String packageName, int resid, ApplicationInfo appInfo) { argument
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DDatabaseHelper.java2657 private void loadStringSetting(SQLiteStatement stmt, String key, int resid) { argument
2658 loadSetting(stmt, key, mContext.getResources().getString(resid));
2661 private void loadBooleanSetting(SQLiteStatement stmt, String key, int resid) { argument
2663 mContext.getResources().getBoolean(resid) ? "1" : "0");
2666 private void loadIntegerSetting(SQLiteStatement stmt, String key, int resid) { argument
2668 Integer.toString(mContext.getResources().getInteger(resid)));
2671 private void loadFractionSetting(SQLiteStatement stmt, String key, int resid, int base) { argument
2673 Float.toString(mContext.getResources().getFraction(resid, base, base)));
/frameworks/base/core/java/android/content/
H A DContext.java631 * @param resid The style resource describing the theme.
633 public abstract void setTheme(@StyleRes int resid); argument
666 @StyleRes int resid, @StyleableRes int[] attrs) throws Resources.NotFoundException {
667 return getTheme().obtainStyledAttributes(resid, attrs);
665 obtainStyledAttributes( @tyleRes int resid, @StyleableRes int[] attrs) argument
H A DContextWrapper.java113 public void setTheme(int resid) { argument
114 mBase.setTheme(resid);
/frameworks/base/test-runner/src/android/test/mock/
H A DMockPackageManager.java505 public Drawable getDrawable(String packageName, int resid, ApplicationInfo appInfo) { argument
606 public CharSequence getText(String packageName, int resid, ApplicationInfo appInfo) { argument
611 public XmlResourceParser getXml(String packageName, int resid, argument
/frameworks/base/core/java/android/widget/
H A DSwitch.java303 public void setSwitchTextAppearance(Context context, @StyleRes int resid) { argument
305 context.obtainStyledAttributes(resid,
/frameworks/base/core/java/com/android/internal/policy/
H A DPhoneWindow.java1488 if (st.resid != resId) {
1489 st.resid = resId;
1504 st.resid = 0;
1517 st.resid = 0;
3314 int resid; field in class:PhoneWindow.DrawableFeatureState
3812 public void setTheme(int resid) { argument
3813 mTheme = resid;
3817 context.setTheme(resid);
/frameworks/base/services/core/java/com/android/server/
H A DVibratorService.java334 private static long[] getLongIntArray(Resources r, int resid) { argument
335 int[] ar = r.getIntArray(resid);

Completed in 603 milliseconds

123