Home
last modified time | relevance | path

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

/frameworks/base/libs/androidfw/include/androidfw/
DAssetManager2.h242 struct SelectedValue { struct
245 SelectedValue() = default; argument
246 SelectedValue(const ResolvedBag* bag, const ResolvedBag::Entry& entry) : in SelectedValue() argument
270 SelectedValue(uint8_t value_type, Res_value::data_type value_data, ApkAssetsCookie cookie, in SelectedValue() argument
284 base::expected<SelectedValue, NullOrIOError> GetResource(uint32_t resid, bool may_be_bag = false,
296 base::expected<std::monostate, NullOrIOError> ResolveReference(SelectedValue& value,
322 base::expected<const ResolvedBag*, NullOrIOError> ResolveBag(SelectedValue& value) const;
475 mutable std::unordered_map<uint32_t, SelectedValue> cached_resolved_values_;
566 std::optional<AssetManager2::SelectedValue> GetAttribute(uint32_t resid) const;
571 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.cpp1017 base::expected<AssetManager2::SelectedValue, NullOrIOError> AssetManager2::GetResource( in GetResource()
1033 return SelectedValue(Res_value::TYPE_REFERENCE, resid, result->cookie, result->type_flags, in GetResource()
1041 return SelectedValue(value.dataType, value.data, result->cookie, result->type_flags, in GetResource()
1046 AssetManager2::SelectedValue& value, bool cache_value) const { in ResolveReference()
1110 AssetManager2::SelectedValue& value) const { in ResolveBag()
1592 std::optional<AssetManager2::SelectedValue> Theme::GetAttribute(uint32_t resid) const { in GetAttribute()
1607 return AssetManager2::SelectedValue(entry_it->value.dataType, entry_it->value.data, in GetAttribute()
1615 AssetManager2::SelectedValue& value) const { in ResolveAttributeReference()
1620 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()
702 AssetManager2::SelectedValue attr_value(*bag, *entry); in NativeGetResourceBagValue()
748 AssetManager2::SelectedValue attr_value(bag, bag->entries[i]); in NativeGetResourceStringArray()
811 AssetManager2::SelectedValue attr_value(bag, bag->entries[i]); in NativeGetResourceStringArrayInfo()
850 AssetManager2::SelectedValue attr_value(bag, bag->entries[i]); in NativeGetResourceIntArray()
903 AssetManager2::SelectedValue attr_value(bag, bag->entries[i]); in NativeGetResourceArray()