• Home
  • Raw
  • Download

Lines Matching refs:value

74   Res_value value;  in ResolveAttrs()  local
81 Res_value value; in ResolveAttrs() local
82 if (theme->GetAttribute(def_style_attr, &value, &def_style_flags) != kInvalidCookie) { in ResolveAttrs()
83 if (value.dataType == Res_value::TYPE_REFERENCE) { in ResolveAttrs()
84 def_style_res = value.data; in ResolveAttrs()
112 value.dataType = Res_value::TYPE_NULL; in ResolveAttrs()
113 value.data = Res_value::DATA_NULL_UNDEFINED; in ResolveAttrs()
122 value.dataType = Res_value::TYPE_ATTRIBUTE; in ResolveAttrs()
123 value.data = src_values[ii]; in ResolveAttrs()
125 ALOGI("-> From values: type=0x%x, data=0x%08x", value.dataType, value.data); in ResolveAttrs()
132 value = entry->value; in ResolveAttrs()
134 ALOGI("-> From def style: type=0x%x, data=0x%08x", value.dataType, value.data); in ResolveAttrs()
140 if (value.dataType != Res_value::TYPE_NULL) { in ResolveAttrs()
143 theme->ResolveAttributeReference(cookie, &value, &config, &type_set_flags, &resid); in ResolveAttrs()
148 ALOGI("-> Resolved attr: type=0x%x, data=0x%08x", value.dataType, value.data); in ResolveAttrs()
150 } else if (value.data != Res_value::DATA_NULL_EMPTY) { in ResolveAttrs()
152 ApkAssetsCookie new_cookie = theme->GetAttribute(cur_ident, &value, &type_set_flags); in ResolveAttrs()
155 ALOGI("-> From theme: type=0x%x, data=0x%08x", value.dataType, value.data); in ResolveAttrs()
158 assetmanager->ResolveReference(new_cookie, &value, &config, &type_set_flags, &resid); in ResolveAttrs()
163 ALOGI("-> Resolved theme: type=0x%x, data=0x%08x", value.dataType, value.data); in ResolveAttrs()
169 if (value.dataType == Res_value::TYPE_REFERENCE && value.data == 0) { in ResolveAttrs()
173 value.dataType = Res_value::TYPE_NULL; in ResolveAttrs()
174 value.data = Res_value::DATA_NULL_UNDEFINED; in ResolveAttrs()
179 ALOGI("Attribute 0x%08x: type=0x%x, data=0x%08x", cur_ident, value.dataType, value.data); in ResolveAttrs()
183 out_values[STYLE_TYPE] = value.dataType; in ResolveAttrs()
184 out_values[STYLE_DATA] = value.data; in ResolveAttrs()
191 (value.dataType != Res_value::TYPE_NULL || value.data == Res_value::DATA_NULL_EMPTY)) { in ResolveAttrs()
215 Res_value value; in ApplyStyle() local
222 Res_value value; in ApplyStyle() local
223 if (theme->GetAttribute(def_style_attr, &value, &def_style_flags) != kInvalidCookie) { in ApplyStyle()
224 if (value.dataType == Res_value::TYPE_REFERENCE) { in ApplyStyle()
225 def_style_resid = value.data; in ApplyStyle()
235 if (idx >= 0 && xml_parser->getAttributeValue(idx, &value) >= 0) { in ApplyStyle()
236 if (value.dataType == value.TYPE_ATTRIBUTE) { in ApplyStyle()
238 if (theme->GetAttribute(value.data, &value, &style_flags) == kInvalidCookie) { in ApplyStyle()
239 value.dataType = Res_value::TYPE_NULL; in ApplyStyle()
243 if (value.dataType == value.TYPE_REFERENCE) { in ApplyStyle()
244 style_resid = value.data; in ApplyStyle()
286 value.dataType = Res_value::TYPE_NULL; in ApplyStyle()
287 value.data = Res_value::DATA_NULL_UNDEFINED; in ApplyStyle()
299 xml_parser->getAttributeValue(xml_attr_idx, &value); in ApplyStyle()
301 ALOGI("-> From XML: type=0x%x, data=0x%08x", value.dataType, value.data); in ApplyStyle()
306 if (value.dataType == Res_value::TYPE_NULL && value.data != Res_value::DATA_NULL_EMPTY) { in ApplyStyle()
313 value = entry->value; in ApplyStyle()
316 ALOGI("-> From style: type=0x%x, data=0x%08x, style=0x%08x", value.dataType, value.data, in ApplyStyle()
322 if (value.dataType == Res_value::TYPE_NULL && value.data != Res_value::DATA_NULL_EMPTY) { in ApplyStyle()
329 value = entry->value; in ApplyStyle()
331 … ALOGI("-> From def style: type=0x%x, data=0x%08x, style=0x%08x", value.dataType, value.data, in ApplyStyle()
339 if (value.dataType != Res_value::TYPE_NULL) { in ApplyStyle()
342 theme->ResolveAttributeReference(cookie, &value, &config, &type_set_flags, &resid); in ApplyStyle()
348 ALOGI("-> Resolved attr: type=0x%x, data=0x%08x", value.dataType, value.data); in ApplyStyle()
350 } else if (value.data != Res_value::DATA_NULL_EMPTY) { in ApplyStyle()
352 ApkAssetsCookie new_cookie = theme->GetAttribute(cur_ident, &value, &type_set_flags); in ApplyStyle()
356 ALOGI("-> From theme: type=0x%x, data=0x%08x", value.dataType, value.data); in ApplyStyle()
359 assetmanager->ResolveReference(new_cookie, &value, &config, &type_set_flags, &resid); in ApplyStyle()
365 ALOGI("-> Resolved theme: type=0x%x, data=0x%08x", value.dataType, value.data); in ApplyStyle()
371 if (value.dataType == Res_value::TYPE_REFERENCE && value.data == 0) { in ApplyStyle()
375 value.dataType = Res_value::TYPE_NULL; in ApplyStyle()
376 value.data = Res_value::DATA_NULL_UNDEFINED; in ApplyStyle()
381 ALOGI("Attribute 0x%08x: type=0x%x, data=0x%08x", cur_ident, value.dataType, value.data); in ApplyStyle()
385 out_values[STYLE_TYPE] = value.dataType; in ApplyStyle()
386 out_values[STYLE_DATA] = value.data; in ApplyStyle()
393 if (value.dataType != Res_value::TYPE_NULL || value.data == Res_value::DATA_NULL_EMPTY) { in ApplyStyle()
409 Res_value value; in RetrieveAttributes() local
425 value.dataType = Res_value::TYPE_NULL; in RetrieveAttributes()
426 value.data = Res_value::DATA_NULL_UNDEFINED; in RetrieveAttributes()
437 xml_parser->getAttributeValue(ix, &value); in RetrieveAttributes()
443 if (value.dataType != Res_value::TYPE_NULL) { in RetrieveAttributes()
446 assetmanager->ResolveReference(cookie, &value, &config, &type_set_flags, &resid); in RetrieveAttributes()
453 if (value.dataType == Res_value::TYPE_REFERENCE && value.data == 0) { in RetrieveAttributes()
454 value.dataType = Res_value::TYPE_NULL; in RetrieveAttributes()
455 value.data = Res_value::DATA_NULL_UNDEFINED; in RetrieveAttributes()
460 out_values[STYLE_TYPE] = value.dataType; in RetrieveAttributes()
461 out_values[STYLE_DATA] = value.data; in RetrieveAttributes()
468 (value.dataType != Res_value::TYPE_NULL || value.data == Res_value::DATA_NULL_EMPTY)) { in RetrieveAttributes()