Home
last modified time | relevance | path

Searched refs:SelectedValue (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/libs/androidfw/include/androidfw/
DAssetManager2.h249 struct SelectedValue { struct
252 SelectedValue() = default; argument
253 SelectedValue(const ResolvedBag* bag, const ResolvedBag::Entry& entry) in SelectedValue() function
282 SelectedValue(uint8_t value_type, Res_value::data_type value_data, ApkAssetsCookie cookie, in SelectedValue() function
296 base::expected<SelectedValue, NullOrIOError> GetResource(uint32_t resid, bool may_be_bag = false,
308 base::expected<std::monostate, NullOrIOError> ResolveReference(SelectedValue& value,
334 base::expected<const ResolvedBag*, NullOrIOError> ResolveBag(SelectedValue& value) const;
490 mutable std::unordered_map<uint32_t, SelectedValue> cached_resolved_values_;
581 std::optional<AssetManager2::SelectedValue> GetAttribute(uint32_t resid) const;
586 AssetManager2::SelectedValue& value) const;
/frameworks/base/libs/androidfw/
DAttributeResolution.cpp72 std::optional<AssetManager2::SelectedValue> value = theme->GetAttribute(theme_attribute_resid); in GetStyleBag()
106 if (std::optional<AssetManager2::SelectedValue> result = theme->GetAttribute(value.data)) { in GetXmlStyleBag()
153 AssetManager2::SelectedValue value{}; in ResolveAttrs()
161 value = AssetManager2::SelectedValue(*default_style_bag, *entry); in ResolveAttrs()
256 AssetManager2::SelectedValue value{}; in ApplyStyle()
279 value = AssetManager2::SelectedValue(*xml_style_bag, *entry); in ApplyStyle()
291 value = AssetManager2::SelectedValue(*default_style_bag, *entry); in ApplyStyle()
369 AssetManager2::SelectedValue value{}; in RetrieveAttributes()
DAssetManager2.cpp1089 base::expected<AssetManager2::SelectedValue, NullOrIOError> AssetManager2::GetResource( in GetResource()
1105 return SelectedValue(Res_value::TYPE_REFERENCE, resid, result->cookie, result->type_flags, in GetResource()
1113 return SelectedValue(value.dataType, value.data, result->cookie, result->type_flags, in GetResource()
1118 AssetManager2::SelectedValue& value, bool cache_value) const { in ResolveReference()
1185 AssetManager2::SelectedValue& value) const { in ResolveBag()
1685 std::optional<AssetManager2::SelectedValue> Theme::GetAttribute(uint32_t resid) const { in GetAttribute()
1700 return AssetManager2::SelectedValue(entry_it->value.dataType, entry_it->value.data, in GetAttribute()
1708 AssetManager2::SelectedValue& value) const { in ResolveAttributeReference()
1713 std::optional<AssetManager2::SelectedValue> result = GetAttribute(value.data); in ResolveAttributeReference()
/frameworks/base/cmds/idmap2/idmap2/
DLookup.cpp81 void PrintValue(AssetManager2* const am, const AssetManager2::SelectedValue& value, in PrintValue()
132 AssetManager2::SelectedValue entry(bag, bag->entries[i]); in GetValue()
/frameworks/base/libs/androidfw/tests/
DAssetManager2_test.cpp493 AssetManager2::SelectedValue value{}; in TEST_F()
508 AssetManager2::SelectedValue value{}; in TEST_F()
521 AssetManager2::SelectedValue value{}; in TEST_F()
540 AssetManager2::SelectedValue value{}; in TEST_F()
557 AssetManager2::SelectedValue value{}; in TEST_F()
DIdmap_test.cpp68 const AssetManager2::SelectedValue& value) { in GetStringFromApkAssets()
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp120 static jint CopyValue(JNIEnv* env, const AssetManager2::SelectedValue& value, in CopyValue()
728 AssetManager2::SelectedValue attr_value(*bag, *entry); in NativeGetResourceBagValue()
774 AssetManager2::SelectedValue attr_value(bag, bag->entries[i]); in NativeGetResourceStringArray()
837 AssetManager2::SelectedValue attr_value(bag, bag->entries[i]); in NativeGetResourceStringArrayInfo()
876 AssetManager2::SelectedValue attr_value(bag, bag->entries[i]); in NativeGetResourceIntArray()
929 AssetManager2::SelectedValue attr_value(bag, bag->entries[i]); in NativeGetResourceArray()