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

123

/frameworks/base/libs/androidfw/include/androidfw/
H A DResourceUtils.h30 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 DAssetManager2.h172 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 DLoadedArsc.h149 // 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 DBenchmarkHelpers.h30 uint32_t resid, benchmark::State& state);
H A DBenchmarkHelpers.cpp25 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 DAsyncLayoutInflater.java81 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 DImageSwitcher.java58 * @param resid a Drawable resource id
62 public void setImageResource(@DrawableRes int resid) argument
65 image.setImageResource(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/support/v7/appcompat/src/android/support/v7/view/
H A DContextThemeWrapper.java140 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 DAssetManager2.cpp263 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 DAttributeResolution.cpp140 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 DLoadedArsc.cpp181 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/SystemUI/src/com/android/systemui/statusbar/
H A DAnimatedImageView.java38 // the same as the previous one. If this is a resid, we track that. If it's a drawable, we
101 public void setImageResource(int resid) { argument
102 if (mDrawableId == resid) return;
104 mDrawableId = resid;
105 super.setImageResource(resid);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/widget/
H A DAnimatedImageView.java73 public void setImageResource(int resid) { argument
74 super.setImageResource(resid);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DResourcesWrapper.java253 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 DTintContextWrapper.java111 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 DAppNotRespondingDialog.java62 int resid;
70 resid = com.android.internal.R.string.anr_activity_application;
74 resid = com.android.internal.R.string.anr_application_process;
79 resid = com.android.internal.R.string.anr_activity_process;
82 resid = com.android.internal.R.string.anr_process;
89 ? res.getString(resid, bidi.unicodeWrap(name1.toString()), bidi.unicodeWrap(name2.toString()))
90 : res.getString(resid, bidi.unicodeWrap(name1.toString())));
/frameworks/base/core/java/android/view/
H A DContextThemeWrapper.java137 public void setTheme(int resid) { argument
138 if (mThemeResource != resid) {
139 mThemeResource = resid;
/frameworks/base/test-runner/src/android/test/mock/
H A DMockResources.java209 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/layoutlib/bridge/src/android/content/res/
H A DResources_Theme_Delegate.java68 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
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
H A DRowInflaterTask.java55 public void onInflateFinished(View view, int resid, ViewGroup parent) { argument
/frameworks/base/core/java/android/content/pm/
H A DPackageItemInfo.java337 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 DResources.java1389 * specified by <var>resid</var> will be retrieved from this Theme's
1447 * resource <var>resid</var> which are listed in <var>attrs</var>.
1550 * @param resid The resource identifier of the desired theme
1562 public boolean resolveAttribute(int resid, TypedValue outValue, boolean resolveRefs) { argument
1563 return mThemeImpl.resolveAttribute(resid, outValue, resolveRefs);
1914 public static boolean resourceHasPackage(@AnyRes int resid) { argument
1915 return (resid >>> 24) != 0;
1922 * @param resid The resource identifier whose name is to be retrieved.
1932 public String getResourceName(@AnyRes int resid) throws NotFoundException { argument
1933 return mResourcesImpl.getResourceName(resid);
1948 getResourcePackageName(@nyRes int resid) argument
1964 getResourceTypeName(@nyRes int resid) argument
1980 getResourceEntryName(@nyRes int resid) argument
[all...]
H A DResourcesImpl.java250 String getResourceName(@AnyRes int resid) throws NotFoundException { argument
251 String str = mAssets.getResourceName(resid);
254 + Integer.toHexString(resid));
258 String getResourcePackageName(@AnyRes int resid) throws NotFoundException { argument
259 String str = mAssets.getResourcePackageName(resid);
262 + Integer.toHexString(resid));
266 String getResourceTypeName(@AnyRes int resid) throws NotFoundException { argument
267 String str = mAssets.getResourceTypeName(resid);
270 + Integer.toHexString(resid));
274 String getResourceEntryName(@AnyRes int resid) throw argument
1339 resolveAttribute(int resid, TypedValue outValue, boolean resolveRefs) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/search/
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);

Completed in 646 milliseconds

123