/frameworks/base/libs/androidfw/include/androidfw/ |
D | ResourceUtils.h | 30 inline uint32_t fix_package_id(uint32_t resid, uint8_t package_id) { in fix_package_id() argument 31 return resid | (static_cast<uint32_t>(package_id) << 24); in fix_package_id() 34 inline uint8_t get_package_id(uint32_t resid) { in get_package_id() argument 35 return static_cast<uint8_t>((resid >> 24) & 0x000000ffu); in get_package_id() 39 inline uint8_t get_type_id(uint32_t resid) { in get_type_id() argument 40 return static_cast<uint8_t>((resid >> 16) & 0x000000ffu); in get_type_id() 43 inline uint16_t get_entry_id(uint32_t resid) { return static_cast<uint16_t>(resid & 0x0000ffffu); } in get_entry_id() argument 45 inline bool is_internal_resid(uint32_t resid) { in is_internal_resid() argument 46 return (resid & 0xffff0000u) != 0 && (resid & 0x00ff0000u) == 0; in is_internal_resid() 49 inline bool is_valid_resid(uint32_t resid) { in is_valid_resid() argument [all …]
|
D | AssetManager2.h | 172 bool GetResourceName(uint32_t resid, ResourceName* out_name); 177 bool GetResourceFlags(uint32_t resid, uint32_t* out_flags); 196 ApkAssetsCookie GetResource(uint32_t resid, bool may_be_bag, uint16_t density_override, 226 const ResolvedBag* GetBag(uint32_t resid); 248 ApkAssetsCookie FindEntry(uint32_t resid, uint16_t density_override, bool stop_at_first_match, 299 bool ApplyStyle(uint32_t resid, bool force = false); 326 ApkAssetsCookie GetAttribute(uint32_t resid, Res_value* out_value,
|
D | LoadedArsc.h | 153 bool FindEntry(uint32_t resid, const ResTable_config& config, LoadedArscEntry* out_entry, 157 const LoadedPackage* GetPackageForId(uint32_t resid) const;
|
/frameworks/base/libs/androidfw/ |
D | AssetManager2.cpp | 263 ApkAssetsCookie AssetManager2::FindEntry(uint32_t resid, uint16_t density_override, in FindEntry() argument 280 if (!is_valid_resid(resid)) { in FindEntry() 281 LOG(ERROR) << base::StringPrintf("Invalid ID 0x%08x.", resid); in FindEntry() 285 const uint32_t package_id = get_package_id(resid); in FindEntry() 286 const uint8_t type_idx = get_type_id(resid) - 1; in FindEntry() 287 const uint16_t entry_id = get_entry_id(resid); in FindEntry() 291 LOG(ERROR) << base::StringPrintf("No package ID %02x found for ID 0x%08x.", package_id, resid); in FindEntry() 336 bool AssetManager2::GetResourceName(uint32_t resid, ResourceName* out_name) { in GetResourceName() argument 342 ApkAssetsCookie cookie = FindEntry(resid, 0u /* density_override */, in GetResourceName() 348 const LoadedPackage* package = apk_assets_[cookie]->GetLoadedArsc()->GetPackageForId(resid); in GetResourceName() [all …]
|
D | AttributeResolution.cpp | 140 uint32_t resid = 0; in ResolveAttrs() local 144 theme->resolveAttributeReference(&value, block, &resid, &type_set_flags, &config); in ResolveAttrs() 157 new_block = res.resolveReference(&value, new_block, &resid, &type_set_flags, &config); in ResolveAttrs() 185 out_values[STYLE_RESOURCE_ID] = resid; in ResolveAttrs() 341 uint32_t resid = 0; in ApplyStyle() local 345 theme->resolveAttributeReference(&value, block, &resid, &type_set_flags, &config); in ApplyStyle() 360 new_block = res.resolveReference(&value, new_block, &resid, &type_set_flags, &config); in ApplyStyle() 391 out_values[STYLE_RESOURCE_ID] = resid; in ApplyStyle() 453 uint32_t resid = 0; in RetrieveAttributes() local 457 ssize_t new_block = res->resolveReference(&value, block, &resid, in RetrieveAttributes() [all …]
|
D | LoadedArsc.cpp | 181 bool LoadedArsc::FindEntry(uint32_t resid, const ResTable_config& config, in FindEntry() argument 185 const uint8_t package_id = get_package_id(resid); in FindEntry() 186 const uint8_t type_id = get_type_id(resid); in FindEntry() 187 const uint16_t entry_id = get_entry_id(resid); in FindEntry() 190 LOG(ERROR) << "Invalid ID 0x" << std::hex << resid << std::dec << "."; in FindEntry() 203 const LoadedPackage* LoadedArsc::GetPackageForId(uint32_t resid) const { in GetPackageForId() 204 const uint8_t package_id = get_package_id(resid); in GetPackageForId()
|
/frameworks/support/core-ui/java/android/support/v4/view/ |
D | AsyncLayoutInflater.java | 81 public void inflate(@LayoutRes int resid, @Nullable ViewGroup parent, in inflate() argument 88 request.resid = resid; in inflate() 100 request.resid, request.parent, false); 103 request.view, request.resid, request.parent); 110 void onInflateFinished(View view, int resid, ViewGroup parent); in onInflateFinished() argument 116 int resid; field in AsyncLayoutInflater.InflateRequest 187 request.resid, request.parent, false); in runInner() 216 obj.resid = 0; in releaseRequest()
|
/frameworks/support/v7/appcompat/src/android/support/v7/view/ |
D | ContextThemeWrapper.java | 140 public void setTheme(int resid) { in setTheme() argument 141 if (mThemeResource != resid) { in setTheme() 142 mThemeResource = resid; in setTheme() 187 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { in onApplyThemeResource() argument 188 theme.applyStyle(resid, true); in onApplyThemeResource()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | AppNotRespondingDialog.java | 62 int resid; in AppNotRespondingDialog() local 70 resid = com.android.internal.R.string.anr_activity_application; in AppNotRespondingDialog() 74 resid = com.android.internal.R.string.anr_application_process; in AppNotRespondingDialog() 79 resid = com.android.internal.R.string.anr_activity_process; in AppNotRespondingDialog() 82 resid = com.android.internal.R.string.anr_process; in AppNotRespondingDialog() 89 … ? res.getString(resid, bidi.unicodeWrap(name1.toString()), bidi.unicodeWrap(name2.toString())) in AppNotRespondingDialog() 90 : res.getString(resid, bidi.unicodeWrap(name1.toString()))); in AppNotRespondingDialog()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | ResourcesWrapper.java | 253 public String getResourceName(int resid) throws NotFoundException { in getResourceName() argument 254 return mResources.getResourceName(resid); in getResourceName() 258 public String getResourcePackageName(int resid) throws NotFoundException { in getResourcePackageName() argument 259 return mResources.getResourcePackageName(resid); in getResourcePackageName() 263 public String getResourceTypeName(int resid) throws NotFoundException { in getResourceTypeName() argument 264 return mResources.getResourceTypeName(resid); in getResourceTypeName() 268 public String getResourceEntryName(int resid) throws NotFoundException { in getResourceEntryName() argument 269 return mResources.getResourceEntryName(resid); in getResourceEntryName()
|
D | TintContextWrapper.java | 111 public void setTheme(int resid) { in setTheme() argument 113 super.setTheme(resid); in setTheme() 115 mTheme.applyStyle(resid, true); in setTheme()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | AnimatedImageView.java | 101 public void setImageResource(int resid) { in setImageResource() argument 102 if (mDrawableId == resid) return; in setImageResource() 104 mDrawableId = resid; in setImageResource() 105 super.setImageResource(resid); in setImageResource()
|
/frameworks/base/core/java/com/google/android/util/ |
D | SmileyParser.java | 71 int resid = mRes.getSmileyRes(token.getRawText()); in getSpannableString() local 72 if (resid != -1) { in getSpannableString() 73 builder.setSpan(new ImageSpan(context, resid), in getSpannableString()
|
/frameworks/base/test-runner/src/android/test/mock/ |
D | MockResources.java | 209 public String getResourceName(int resid) throws NotFoundException { in getResourceName() argument 214 public String getResourcePackageName(int resid) throws NotFoundException { in getResourcePackageName() argument 219 public String getResourceTypeName(int resid) throws NotFoundException { in getResourceTypeName() argument 224 public String getResourceEntryName(int resid) throws NotFoundException { in getResourceEntryName() argument
|
/frameworks/layoutlib/bridge/src/android/content/res/ |
D | Resources_Theme_Delegate.java | 68 int resid, int[] attrs) in obtainStyledAttributes() argument 71 BridgeTypedArray ta = RenderSessionImpl.getCurrentContext().obtainStyledAttributes(resid, in obtainStyledAttributes() 93 int resid, TypedValue outValue, in resolveAttribute() argument 96 boolean found = RenderSessionImpl.getCurrentContext().resolveThemeAttribute(resid, in resolveAttribute()
|
D | Resources_Delegate.java | 676 static String getResourceEntryName(Resources resources, int resid) throws NotFoundException { in getResourceEntryName() argument 677 Pair<ResourceType, String> resourceInfo = getResourceInfo(resources, resid, new boolean[1]); in getResourceEntryName() 681 throwException(resid, null); in getResourceEntryName() 687 static String getResourceName(Resources resources, int resid) throws NotFoundException { in getResourceName() argument 689 Pair<ResourceType, String> resourceInfo = getResourceInfo(resources, resid, platformOut); in getResourceName() 701 throwException(resid, null); in getResourceName() 706 static String getResourcePackageName(Resources resources, int resid) throws NotFoundException { in getResourcePackageName() argument 708 Pair<ResourceType, String> resourceInfo = getResourceInfo(resources, resid, platformOut); in getResourcePackageName() 716 throwException(resid, null); in getResourcePackageName() 721 static String getResourceTypeName(Resources resources, int resid) throws NotFoundException { in getResourceTypeName() argument [all …]
|
/frameworks/base/core/java/android/view/ |
D | ContextThemeWrapper.java | 137 public void setTheme(int resid) { in setTheme() argument 138 if (mThemeResource != resid) { in setTheme() 139 mThemeResource = resid; in setTheme()
|
/frameworks/base/libs/androidfw/tests/ |
D | BenchmarkHelpers.cpp | 25 uint32_t resid, benchmark::State& state) { in GetResourceBenchmarkOld() argument 46 table.getResource(resid, &value, false /*may_be_bag*/, 0u /*density*/, &flags, in GetResourceBenchmarkOld()
|
D | BenchmarkHelpers.h | 30 uint32_t resid, benchmark::State& state);
|
/frameworks/base/core/java/android/widget/ |
D | ImageSwitcher.java | 62 public void setImageResource(@DrawableRes int resid) in setImageResource() argument 65 image.setImageResource(resid); in setImageResource()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/widget/ |
D | AnimatedImageView.java | 73 public void setImageResource(int resid) { in setImageResource() argument 74 super.setImageResource(resid); in setImageResource()
|
/frameworks/base/core/java/android/content/res/ |
D | Resources.java | 1562 public boolean resolveAttribute(int resid, TypedValue outValue, boolean resolveRefs) { in resolveAttribute() argument 1563 return mThemeImpl.resolveAttribute(resid, outValue, resolveRefs); in resolveAttribute() 1914 public static boolean resourceHasPackage(@AnyRes int resid) { in resourceHasPackage() argument 1915 return (resid >>> 24) != 0; in resourceHasPackage() 1932 public String getResourceName(@AnyRes int resid) throws NotFoundException { in getResourceName() argument 1933 return mResourcesImpl.getResourceName(resid); in getResourceName() 1948 public String getResourcePackageName(@AnyRes int resid) throws NotFoundException { in getResourcePackageName() argument 1949 return mResourcesImpl.getResourcePackageName(resid); in getResourcePackageName() 1964 public String getResourceTypeName(@AnyRes int resid) throws NotFoundException { in getResourceTypeName() argument 1965 return mResourcesImpl.getResourceTypeName(resid); in getResourceTypeName() [all …]
|
D | ResourcesImpl.java | 250 String getResourceName(@AnyRes int resid) throws NotFoundException { in getResourceName() argument 251 String str = mAssets.getResourceName(resid); in getResourceName() 254 + Integer.toHexString(resid)); in getResourceName() 258 String getResourcePackageName(@AnyRes int resid) throws NotFoundException { in getResourcePackageName() argument 259 String str = mAssets.getResourcePackageName(resid); in getResourcePackageName() 262 + Integer.toHexString(resid)); in getResourcePackageName() 266 String getResourceTypeName(@AnyRes int resid) throws NotFoundException { in getResourceTypeName() argument 267 String str = mAssets.getResourceTypeName(resid); in getResourceTypeName() 270 + Integer.toHexString(resid)); in getResourceTypeName() 274 String getResourceEntryName(@AnyRes int resid) throws NotFoundException { in getResourceEntryName() argument [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageItemInfo.java | 346 int resid = metaData.getInt(name); in loadXmlMetaData() local 347 if (resid != 0) { in loadXmlMetaData() 348 return pm.getXml(packageName, resid, getApplicationInfo()); in loadXmlMetaData()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/search/ |
D | SearchablesTest.java | 375 public XmlResourceParser getXml(String packageName, int resid, ApplicationInfo appInfo) { in getXml() argument 378 MoreAsserts.assertNotEqual(resid, 0); in getXml() 381 return mRealPackageManager.getXml(packageName, resid, appInfo); in getXml()
|