Home
last modified time | relevance | path

Searched refs:type_idx (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/libs/androidfw/
DLoadedArsc.cpp306 const int type_idx = type_spec->type_spec->id - 1; in CollectConfigurations() local
308 const char16_t* type_name16 = type_string_pool_.stringAt(type_idx, &type_name_len); in CollectConfigurations()
315 const char* type_name = type_string_pool_.string8At(type_idx, &type_name_len); in CollectConfigurations()
356 ssize_t type_idx = type_string_pool_.indexOfString(type_name.data(), type_name.size()); in FindEntryByName() local
357 if (type_idx < 0) { in FindEntryByName()
366 const TypeSpec* type_spec = type_specs_[type_idx].get(); in FindEntryByName()
385 return make_resid(0x00, type_idx + type_id_offset_ + 1, entry_idx); in FindEntryByName()
677 uint8_t type_idx = static_cast<uint8_t>(entry.first); in Load() local
689 type_idx = dtohs(type_spec_ptr->idmap_entries->target_type_id) - 1; in Load()
691 loaded_package->type_specs_.editItemAt(type_idx) = std::move(type_spec_ptr); in Load()
DAssetManager2.cpp394 const uint8_t type_idx = get_type_id(resid) - 1; in FindEntry() local
429 const TypeSpec* type_spec = loaded_package->GetTypeSpecByTypeIndex(type_idx); in FindEntry()
450 const FilteredConfigGroup& filtered_group = loaded_package_impl.filtered_configs_[type_idx]; in FindEntry()
1159 const int type_idx = get_type_id(attr_resid); in ApplyStyle() local
1172 if (last_type_idx != type_idx) { in ApplyStyle()
1173 util::unique_cptr<ThemeType>& type = last_package->types[type_idx]; in ApplyStyle()
1192 last_type_idx = type_idx; in ApplyStyle()
1218 const int type_idx = get_type_id(resid); in GetAttribute() local
1219 const ThemeType* type = package->types[type_idx].get(); in GetAttribute()