• Home
  • Raw
  • Download

Lines Matching refs:value

72     std::optional<AssetManager2::SelectedValue> value = theme->GetAttribute(theme_attribute_resid);  in GetStyleBag()  local
73 if (value.has_value()) { in GetStyleBag()
74 *out_theme_flags |= value->flags; in GetStyleBag()
75 auto result = theme->GetAssetManager()->ResolveBag(*value); in GetStyleBag()
98 Res_value value; in GetXmlStyleBag() local
100 if (idx < 0 || xml_parser->getAttributeValue(idx, &value) < 0) { in GetXmlStyleBag()
104 if (value.dataType == Res_value::TYPE_ATTRIBUTE) { in GetXmlStyleBag()
106 if (std::optional<AssetManager2::SelectedValue> result = theme->GetAttribute(value.data)) { in GetXmlStyleBag()
112 if (value.dataType == Res_value::TYPE_REFERENCE) { in GetXmlStyleBag()
113 return theme->GetAssetManager()->GetBag(value.data); in GetXmlStyleBag()
153 AssetManager2::SelectedValue value{}; in ResolveAttrs() local
155 value.type = Res_value::TYPE_ATTRIBUTE; in ResolveAttrs()
156 value.data = src_values[ii]; in ResolveAttrs()
157 DEBUG_LOG("-> From values: type=0x%x, data=0x%08x", value.type, value.data); in ResolveAttrs()
161 value = AssetManager2::SelectedValue(*default_style_bag, *entry); in ResolveAttrs()
162 value.flags |= def_style_theme_flags; in ResolveAttrs()
163 DEBUG_LOG("-> From def style: type=0x%x, data=0x%08x", value.type, value.data); in ResolveAttrs()
167 if (value.type != Res_value::TYPE_NULL) { in ResolveAttrs()
169 const auto result = theme->ResolveAttributeReference(value); in ResolveAttrs()
173 DEBUG_LOG("-> Resolved attr: type=0x%x, data=0x%08x", value.type, value.data); in ResolveAttrs()
174 } else if (value.data != Res_value::DATA_NULL_EMPTY) { in ResolveAttrs()
177 value = *attr_value; in ResolveAttrs()
178 DEBUG_LOG("-> From theme: type=0x%x, data=0x%08x", value.type, value.data); in ResolveAttrs()
180 const auto result = assetmanager->ResolveReference(value, true /* cache_value */); in ResolveAttrs()
184 DEBUG_LOG("-> Resolved theme: type=0x%x, data=0x%08x", value.type, value.data); in ResolveAttrs()
189 if (value.type == Res_value::TYPE_REFERENCE && value.data == 0) { in ResolveAttrs()
191 value.type = Res_value::TYPE_NULL; in ResolveAttrs()
192 value.data = Res_value::DATA_NULL_UNDEFINED; in ResolveAttrs()
193 value.cookie = kInvalidCookie; in ResolveAttrs()
196 DEBUG_LOG("Attribute 0x%08x: type=0x%x, data=0x%08x", cur_ident, value.type, value.data); in ResolveAttrs()
199 out_values[STYLE_TYPE] = value.type; in ResolveAttrs()
200 out_values[STYLE_DATA] = value.data; in ResolveAttrs()
201 out_values[STYLE_ASSET_COOKIE] = ApkAssetsCookieToJavaCookie(value.cookie); in ResolveAttrs()
202 out_values[STYLE_RESOURCE_ID] = value.resid; in ResolveAttrs()
203 out_values[STYLE_CHANGING_CONFIGURATIONS] = value.flags; in ResolveAttrs()
204 out_values[STYLE_DENSITY] = value.config.density; in ResolveAttrs()
207 (value.type != Res_value::TYPE_NULL || value.data == Res_value::DATA_NULL_EMPTY)) { in ResolveAttrs()
256 AssetManager2::SelectedValue value{}; in ApplyStyle() local
269 value.type = attribute_value.dataType; in ApplyStyle()
270 value.data = attribute_value.data; in ApplyStyle()
272 DEBUG_LOG("-> From XML: type=0x%x, data=0x%08x", value.type, value.data); in ApplyStyle()
275 if (value.type == Res_value::TYPE_NULL && value.data != Res_value::DATA_NULL_EMPTY) { in ApplyStyle()
279 value = AssetManager2::SelectedValue(*xml_style_bag, *entry); in ApplyStyle()
280 value.flags |= xml_style_theme_flags; in ApplyStyle()
282 DEBUG_LOG("-> From style: type=0x%x, data=0x%08x, style=0x%08x", value.type, value.data, in ApplyStyle()
287 if (value.type == Res_value::TYPE_NULL && value.data != Res_value::DATA_NULL_EMPTY) { in ApplyStyle()
291 value = AssetManager2::SelectedValue(*default_style_bag, *entry); in ApplyStyle()
292 value.flags |= def_style_theme_flags; in ApplyStyle()
294 DEBUG_LOG("-> From def style: type=0x%x, data=0x%08x, style=0x%08x", value.type, value.data, in ApplyStyle()
299 if (value.type != Res_value::TYPE_NULL) { in ApplyStyle()
301 auto result = theme->ResolveAttributeReference(value); in ApplyStyle()
305 DEBUG_LOG("-> Resolved attr: type=0x%x, data=0x%08x", value.type, value.data); in ApplyStyle()
306 } else if (value.data != Res_value::DATA_NULL_EMPTY) { in ApplyStyle()
309 value = *attr_value; in ApplyStyle()
310 DEBUG_LOG("-> From theme: type=0x%x, data=0x%08x", value.type, value.data); in ApplyStyle()
312 auto result = assetmanager->ResolveReference(value, true /* cache_value */); in ApplyStyle()
316 DEBUG_LOG("-> Resolved theme: type=0x%x, data=0x%08x", value.type, value.data); in ApplyStyle()
322 if (value.type == Res_value::TYPE_REFERENCE && value.data == 0U) { in ApplyStyle()
324 value.type = Res_value::TYPE_NULL; in ApplyStyle()
325 value.data = Res_value::DATA_NULL_UNDEFINED; in ApplyStyle()
326 value.cookie = kInvalidCookie; in ApplyStyle()
329 DEBUG_LOG("Attribute 0x%08x: type=0x%x, data=0x%08x", cur_ident, value.type, value.data); in ApplyStyle()
332 out_values[STYLE_TYPE] = value.type; in ApplyStyle()
333 out_values[STYLE_DATA] = value.data; in ApplyStyle()
334 out_values[STYLE_ASSET_COOKIE] = ApkAssetsCookieToJavaCookie(value.cookie); in ApplyStyle()
335 out_values[STYLE_RESOURCE_ID] = value.resid; in ApplyStyle()
336 out_values[STYLE_CHANGING_CONFIGURATIONS] = value.flags; in ApplyStyle()
337 out_values[STYLE_DENSITY] = value.config.density; in ApplyStyle()
340 if (value.type != Res_value::TYPE_NULL || value.data == Res_value::DATA_NULL_EMPTY) { in ApplyStyle()
369 AssetManager2::SelectedValue value{}; in RetrieveAttributes() local
381 value.type = attribute_value.dataType; in RetrieveAttributes()
382 value.data = attribute_value.data; in RetrieveAttributes()
386 if (value.type != Res_value::TYPE_NULL) { in RetrieveAttributes()
388 auto result = assetmanager->ResolveReference(value); in RetrieveAttributes()
395 if (value.type == Res_value::TYPE_REFERENCE && value.data == 0U) { in RetrieveAttributes()
396 value.type = Res_value::TYPE_NULL; in RetrieveAttributes()
397 value.data = Res_value::DATA_NULL_UNDEFINED; in RetrieveAttributes()
398 value.cookie = kInvalidCookie; in RetrieveAttributes()
402 out_values[STYLE_TYPE] = value.type; in RetrieveAttributes()
403 out_values[STYLE_DATA] = value.data; in RetrieveAttributes()
404 out_values[STYLE_ASSET_COOKIE] = ApkAssetsCookieToJavaCookie(value.cookie); in RetrieveAttributes()
405 out_values[STYLE_RESOURCE_ID] = value.resid; in RetrieveAttributes()
406 out_values[STYLE_CHANGING_CONFIGURATIONS] = value.flags; in RetrieveAttributes()
407 out_values[STYLE_DENSITY] = value.config.density; in RetrieveAttributes()
410 (value.type != Res_value::TYPE_NULL || in RetrieveAttributes()
411 value.data == Res_value::DATA_NULL_EMPTY)) { in RetrieveAttributes()