/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | ResourceUtils.h | 30 inline uint32_t fix_package_id(uint32_t resid, uint8_t package_id) { argument 31 return resid | (static_cast<uint32_t>(package_id) << 24); 34 inline uint8_t get_package_id(uint32_t resid) { argument 35 return static_cast<uint8_t>((resid >> 24) & 0x000000ffu); 39 inline uint8_t get_type_id(uint32_t resid) { argument 40 return static_cast<uint8_t>((resid >> 16) & 0x000000ffu); 43 inline uint16_t get_entry_id(uint32_t resid) { return static_cast<uint16_t>(resid & 0x0000ffffu); } argument 45 inline bool is_internal_resid(uint32_t resid) { argument 46 return (resid 49 is_valid_resid(uint32_t resid) argument [all...] |
H A D | AssetManager2.h | 172 bool GetResourceName(uint32_t resid, ResourceName* out_name); 177 bool GetResourceFlags(uint32_t resid, uint32_t* out_flags); 187 // Retrieves the best matching resource with ID `resid`. The resource value is filled into 196 ApkAssetsCookie GetResource(uint32_t resid, bool may_be_bag, uint16_t density_override, 216 // Retrieves the best matching bag/map resource with ID `resid`. 226 const ResolvedBag* GetBag(uint32_t resid); 236 // Finds the best entry for `resid` amongst all the ApkAssets. The entry can be a simple 248 ApkAssetsCookie FindEntry(uint32_t resid, uint16_t density_override, bool stop_at_first_match, 293 // Applies the style identified by `resid` to this theme. This can be called 297 // `resid` ar [all...] |
H A D | LoadedArsc.h | 149 // Finds the resource with ID `resid` with the best value for configuration `config`. 153 bool FindEntry(uint32_t resid, const ResTable_config& config, LoadedArscEntry* out_entry, 156 // Gets a pointer to the name of the package in `resid`, or nullptr if the package doesn't exist. 157 const LoadedPackage* GetPackageForId(uint32_t resid) const;
|
/frameworks/base/libs/androidfw/tests/ |
H A D | BenchmarkHelpers.h | 30 uint32_t resid, benchmark::State& state);
|
H A D | BenchmarkHelpers.cpp | 25 uint32_t resid, benchmark::State& state) { 46 table.getResource(resid, &value, false /*may_be_bag*/, 0u /*density*/, &flags, 24 GetResourceBenchmarkOld(const std::vector<std::string>& paths, const ResTable_config* config, uint32_t resid, benchmark::State& state) argument
|
/frameworks/support/core-ui/java/android/support/v4/view/ |
H A D | AsyncLayoutInflater.java | 81 public void inflate(@LayoutRes int resid, @Nullable ViewGroup parent, argument 88 request.resid = resid; 100 request.resid, request.parent, false); 103 request.view, request.resid, request.parent); 110 void onInflateFinished(View view, int resid, ViewGroup parent); argument 116 int resid; field in class:AsyncLayoutInflater.InflateRequest 187 request.resid, request.parent, false); 216 obj.resid = 0;
|
/frameworks/base/core/java/android/widget/ |
H A D | ImageSwitcher.java | 58 * @param resid a Drawable resource id 62 public void setImageResource(@DrawableRes int resid) argument 65 image.setImageResource(resid);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | AnimatedImageView.java | 37 // the same as the previous one. If this is a resid, we track that. If it's a drawable, we 89 public void setImageResource(int resid) { argument 90 if (mDrawableId == resid) return; 92 mDrawableId = resid; 93 super.setImageResource(resid);
|
/frameworks/base/core/java/com/google/android/util/ |
H A D | SmileyParser.java | 71 int resid = mRes.getSmileyRes(token.getRawText()); 72 if (resid != -1) { 73 builder.setSpan(new ImageSpan(context, resid),
|
/frameworks/support/v7/appcompat/src/android/support/v7/view/ |
H A D | ContextThemeWrapper.java | 140 public void setTheme(int resid) { argument 141 if (mThemeResource != resid) { 142 mThemeResource = resid; 183 * @param resid The theme style resource being applied to <var>theme</var>. 187 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { argument 188 theme.applyStyle(resid, true);
|
/frameworks/base/libs/androidfw/ |
H A D | AssetManager2.cpp | 263 ApkAssetsCookie AssetManager2::FindEntry(uint32_t resid, uint16_t density_override, argument 280 if (!is_valid_resid(resid)) { 281 LOG(ERROR) << base::StringPrintf("Invalid ID 0x%08x.", resid); 285 const uint32_t package_id = get_package_id(resid); 286 const uint8_t type_idx = get_type_id(resid) - 1; 287 const uint16_t entry_id = get_entry_id(resid); 291 LOG(ERROR) << base::StringPrintf("No package ID %02x found for ID 0x%08x.", package_id, resid); 336 bool AssetManager2::GetResourceName(uint32_t resid, ResourceName* out_name) { argument 342 ApkAssetsCookie cookie = FindEntry(resid, 0u /* density_override */, 348 const LoadedPackage* package = apk_assets_[cookie]->GetLoadedArsc()->GetPackageForId(resid); 376 GetResourceFlags(uint32_t resid, uint32_t* out_flags) argument 384 GetResource(uint32_t resid, bool may_be_bag, uint16_t density_override, Res_value* out_value, ResTable_config* out_selected_config, uint32_t* out_flags) argument 456 GetBag(uint32_t resid) argument 668 uint32_t resid = package->FindEntryByName(type16, entry16); local 704 ApplyStyle(uint32_t resid, bool force) argument 788 GetAttribute(uint32_t resid, Res_value* out_value, uint32_t* out_flags) const argument [all...] |
H A D | AttributeResolution.cpp | 140 uint32_t resid = 0; local 144 theme->resolveAttributeReference(&value, block, &resid, &type_set_flags, &config); 157 new_block = res.resolveReference(&value, new_block, &resid, &type_set_flags, &config); 185 out_values[STYLE_RESOURCE_ID] = resid; 341 uint32_t resid = 0; local 345 theme->resolveAttributeReference(&value, block, &resid, &type_set_flags, &config); 360 new_block = res.resolveReference(&value, new_block, &resid, &type_set_flags, &config); 391 out_values[STYLE_RESOURCE_ID] = resid; 453 uint32_t resid = 0; local 457 ssize_t new_block = res->resolveReference(&value, block, &resid, [all...] |
H A D | LoadedArsc.cpp | 181 bool LoadedArsc::FindEntry(uint32_t resid, const ResTable_config& config, argument 185 const uint8_t package_id = get_package_id(resid); 186 const uint8_t type_id = get_type_id(resid); 187 const uint16_t entry_id = get_entry_id(resid); 190 LOG(ERROR) << "Invalid ID 0x" << std::hex << resid << std::dec << "."; 203 const LoadedPackage* LoadedArsc::GetPackageForId(uint32_t resid) const { 204 const uint8_t package_id = get_package_id(resid);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/widget/ |
H A D | AnimatedImageView.java | 73 public void setImageResource(int resid) { argument 74 super.setImageResource(resid);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ResourcesWrapper.java | 253 public String getResourceName(int resid) throws NotFoundException { argument 254 return mResources.getResourceName(resid); 258 public String getResourcePackageName(int resid) throws NotFoundException { argument 259 return mResources.getResourcePackageName(resid); 263 public String getResourceTypeName(int resid) throws NotFoundException { argument 264 return mResources.getResourceTypeName(resid); 268 public String getResourceEntryName(int resid) throws NotFoundException { argument 269 return mResources.getResourceEntryName(resid);
|
H A D | TintContextWrapper.java | 111 public void setTheme(int resid) { argument 113 super.setTheme(resid); 115 mTheme.applyStyle(resid, true);
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | AppNotRespondingDialog.java | 64 int resid; 72 resid = com.android.internal.R.string.anr_activity_application; 76 resid = com.android.internal.R.string.anr_application_process; 81 resid = com.android.internal.R.string.anr_activity_process; 84 resid = com.android.internal.R.string.anr_process; 91 ? res.getString(resid, bidi.unicodeWrap(name1.toString()), bidi.unicodeWrap(name2.toString())) 92 : res.getString(resid, bidi.unicodeWrap(name1.toString())));
|
/frameworks/base/core/java/android/view/ |
H A D | ContextThemeWrapper.java | 137 public void setTheme(int resid) { argument 138 if (mThemeResource != resid) { 139 mThemeResource = resid;
|
/frameworks/base/test-runner/src/android/test/mock/ |
H A D | MockResources.java | 209 public String getResourceName(int resid) throws NotFoundException { argument 214 public String getResourcePackageName(int resid) throws NotFoundException { argument 219 public String getResourceTypeName(int resid) throws NotFoundException { argument 224 public String getResourceEntryName(int resid) throws NotFoundException { argument
|
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/ |
H A D | Resources_Theme_Delegate.java | 68 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
|
H A D | Resources_Delegate.java | 664 static String getResourceEntryName(Resources resources, int resid) throws NotFoundException { argument 665 Pair<ResourceType, String> resourceInfo = getResourceInfo(resources, resid, new boolean[1]); 669 throwException(resid, null); 675 static String getResourceName(Resources resources, int resid) throws NotFoundException { argument 677 Pair<ResourceType, String> resourceInfo = getResourceInfo(resources, resid, platformOut); 689 throwException(resid, null); 694 static String getResourcePackageName(Resources resources, int resid) throws NotFoundException { argument 696 Pair<ResourceType, String> resourceInfo = getResourceInfo(resources, resid, platformOut); 704 throwException(resid, null); 709 static String getResourceTypeName(Resources resources, int resid) throw argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
H A D | RowInflaterTask.java | 55 public void onInflateFinished(View view, int resid, ViewGroup parent) { argument
|
/frameworks/base/core/java/android/content/pm/ |
H A D | PackageItemInfo.java | 337 int resid = metaData.getInt(name); 338 if (resid != 0) { 339 return pm.getXml(packageName, resid, getApplicationInfo());
|
/frameworks/base/core/java/android/content/res/ |
H A D | Resources.java | 1388 * specified by <var>resid</var> will be retrieved from this Theme's 1446 * resource <var>resid</var> which are listed in <var>attrs</var>. 1549 * @param resid The resource identifier of the desired theme 1561 public boolean resolveAttribute(int resid, TypedValue outValue, boolean resolveRefs) { argument 1562 return mThemeImpl.resolveAttribute(resid, outValue, resolveRefs); 1913 public static boolean resourceHasPackage(@AnyRes int resid) { argument 1914 return (resid >>> 24) != 0; 1921 * @param resid The resource identifier whose name is to be retrieved. 1931 public String getResourceName(@AnyRes int resid) throws NotFoundException { argument 1932 return mResourcesImpl.getResourceName(resid); 1947 getResourcePackageName(@nyRes int resid) argument 1963 getResourceTypeName(@nyRes int resid) argument 1979 getResourceEntryName(@nyRes int resid) argument [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/search/ |
H A D | SearchablesTest.java | 364 * @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);
|