Home
last modified time | relevance | path

Searched refs:MapItem (Results 1 – 14 of 14) sorted by relevance

/art/tools/dexfuzz/src/dexfuzz/rawdex/
DMapList.java30 public List<MapItem> mapItems;
47 mapItems = new ArrayList<MapItem>(size); in read()
49 MapItem mapItem = new MapItem(); in read()
62 for (MapItem mapItem : mapItems) { in read()
65 case MapItem.TYPE_HEADER_ITEM: in read()
68 case MapItem.TYPE_STRING_ID_ITEM: in read()
75 case MapItem.TYPE_TYPE_ID_ITEM: in read()
82 case MapItem.TYPE_PROTO_ID_ITEM: in read()
89 case MapItem.TYPE_FIELD_ID_ITEM: in read()
96 case MapItem.TYPE_METHOD_ID_ITEM: in read()
[all …]
DRawDexFile.java88 for (MapItem mapItem : mapList.mapItems) { in write()
90 case MapItem.TYPE_STRING_ID_ITEM: in write()
97 case MapItem.TYPE_STRING_DATA_ITEM: in write()
103 case MapItem.TYPE_METHOD_ID_ITEM: in write()
110 case MapItem.TYPE_FIELD_ID_ITEM: in write()
117 case MapItem.TYPE_PROTO_ID_ITEM: in write()
124 case MapItem.TYPE_TYPE_ID_ITEM: in write()
131 case MapItem.TYPE_TYPE_LIST: in write()
142 for (MapItem mapItem : mapList.mapItems) { in write()
144 case MapItem.TYPE_HEADER_ITEM: in write()
[all …]
DOffsetTracker.java302 MapItem typeListMapItem = new MapItem(); in addTypeListsToMapFile()
305 typeListMapItem.type = MapItem.TYPE_TYPE_LIST; in addTypeListsToMapFile()
311 for (MapItem mapItem : rawDexFile.mapList.mapItems) { in addTypeListsToMapFile()
312 if (mapItem.type == MapItem.TYPE_STRING_DATA_ITEM) { in addTypeListsToMapFile()
328 MapItem fieldMapItem = new MapItem(); in addFieldIdsToHeaderAndMapFile()
331 fieldMapItem.type = MapItem.TYPE_FIELD_ID_ITEM; in addFieldIdsToHeaderAndMapFile()
337 for (MapItem mapItem : rawDexFile.mapList.mapItems) { in addFieldIdsToHeaderAndMapFile()
338 if (mapItem.type == MapItem.TYPE_METHOD_ID_ITEM) { in addFieldIdsToHeaderAndMapFile()
388 for (MapItem mapItem : rawDexFile.mapList.mapItems) { in updateOffsetsInHeaderAndMapFile()
DMapItem.java21 public class MapItem implements RawDexObject { class
/art/dexlayout/
Ddex_writer.h39 struct MapItem { struct
42 MapItem() = default;
43 MapItem(uint32_t type, uint32_t size, size_t offset) in MapItem() function
47 bool operator>(const MapItem& other) const {
57 std::priority_queue<MapItem, std::vector<MapItem>, std::greater<MapItem>> { argument
59 void AddIfNotEmpty(const MapItem& item);
Ddex_writer.cc715 const MapItem& item = queue->top(); in WriteMapItems()
716 dex::MapItem map_item; in WriteMapItems()
730 queue.AddIfNotEmpty(MapItem(DexFile::kDexTypeHeaderItem, 1, 0)); in GenerateAndWriteMapItems()
731 queue.AddIfNotEmpty(MapItem(DexFile::kDexTypeStringIdItem, in GenerateAndWriteMapItems()
734 queue.AddIfNotEmpty(MapItem(DexFile::kDexTypeTypeIdItem, in GenerateAndWriteMapItems()
737 queue.AddIfNotEmpty(MapItem(DexFile::kDexTypeProtoIdItem, in GenerateAndWriteMapItems()
740 queue.AddIfNotEmpty(MapItem(DexFile::kDexTypeFieldIdItem, in GenerateAndWriteMapItems()
743 queue.AddIfNotEmpty(MapItem(DexFile::kDexTypeMethodIdItem, in GenerateAndWriteMapItems()
746 queue.AddIfNotEmpty(MapItem(DexFile::kDexTypeClassDefItem, in GenerateAndWriteMapItems()
749 queue.AddIfNotEmpty(MapItem(DexFile::kDexTypeCallSiteIdItem, in GenerateAndWriteMapItems()
[all …]
Ddex_ir.h55 class MapItem; variable
107 virtual void Dispatch(MapItem* map_item) = 0;
1329 class MapItem : public Item {
1334 DISALLOW_COPY_AND_ASSIGN(MapItem);
Ddex_ir_builder.cc338 const dex::MapItem* item = map->list_ + i; in CheckAndSetRemainingOffsets()
557 const dex::MapItem* item = map->list_ + i; in CreateCallSitesAndMethodHandles()
/art/libdexfile/dex/
Ddex_file_structs.h34 struct MapItem { struct
43 MapItem list_[1]; argument
45 size_t Size() const { return sizeof(uint32_t) + (size_ * sizeof(MapItem)); } in Size()
Ddex_file_tracking_registrar.cc234 const dex::MapItem& map_item = map_list->list_[map_ctr]; in SetAllStringDataRegistration()
236 const dex::MapItem& next_map_item = map_list->list_[map_ctr + 1]; in SetAllStringDataRegistration()
Ddex_file.cc50 using dex::MapItem;
184 size_t map_limit = header_->map_off_ + count * sizeof(MapItem); in InitializeSectionsFromMapList()
192 const MapItem& map_item = map_list->list_[i]; in InitializeSectionsFromMapList()
Ddex_file_verifier.cc661 const dex::MapItem* item = map->list_; in CheckMap()
671 if (!CheckListSize(item, count, sizeof(dex::MapItem), "map size")) { in CheckMap()
2298 const dex::MapItem* item = map->list_; in CheckIntraSection()
2369 ptr_ += sizeof(uint32_t) + (map->size_ * sizeof(dex::MapItem)); in CheckIntraSection()
2370 offset = section_offset + sizeof(uint32_t) + (map->size_ * sizeof(dex::MapItem)); in CheckIntraSection()
3248 const dex::MapItem* item = map->list_; in CheckInterSection()
/art/tools/hiddenapi/
Dhiddenapi.cc678 RoundUp(hiddenapi_class_data_.size(), kMapListAlignment) + sizeof(dex::MapItem); in Encode()
811 dex::MapItem& old_item = map->list_[map->size_ - 1]; in CreateMapListWithNewItem()
817 dex::MapItem new_item; in CreateMapListWithNewItem()
828 Append(&new_item, sizeof(dex::MapItem)); in CreateMapListWithNewItem()
/art/dex2oat/
Ddex2oat_test.cc2229 sizeof(*header) + sizeof(dex::MapList) + sizeof(dex::MapItem) * 2); in TEST_F()