Searched defs:resid (Results 1 - 25 of 49) sorted by relevance

12

/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/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...]
/frameworks/base/libs/androidfw/tests/
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
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/support/v7/appcompat/src/android/support/v7/widget/
H A DTintContextWrapper.java111 public void setTheme(int resid) { argument
113 super.setTheme(resid);
115 mTheme.applyStyle(resid, true);
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 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);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/widget/
H A DAnimatedImageView.java73 public void setImageResource(int resid) { argument
74 super.setImageResource(resid);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DAnimatedImageView.java37 // 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/packages/SystemUI/src/com/android/systemui/statusbar/notification/
H A DRowInflaterTask.java55 public void onInflateFinished(View view, int resid, ViewGroup parent) { argument
/frameworks/base/tools/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
H A DResources_Delegate.java664 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/core/java/android/view/
H A DContextThemeWrapper.java137 public void setTheme(int resid) { argument
138 if (mThemeResource != resid) {
139 mThemeResource = resid;
/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/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 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/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);
/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/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/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/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/support/design/src/android/support/design/widget/
H A DFloatingActionButton.java295 public void setBackgroundResource(int resid) { argument

Completed in 552 milliseconds

12