Home
last modified time | relevance | path

Searched refs:MapItem (Results 1 – 13 of 13) 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.cc669 const MapItem& item = queue->top(); in WriteMapItems()
670 DexFile::MapItem map_item; in WriteMapItems()
685 queue.AddIfNotEmpty(MapItem(DexFile::kDexTypeHeaderItem, 1, 0)); in GenerateAndWriteMapItems()
686 queue.AddIfNotEmpty(MapItem(DexFile::kDexTypeStringIdItem, in GenerateAndWriteMapItems()
689 queue.AddIfNotEmpty(MapItem(DexFile::kDexTypeTypeIdItem, in GenerateAndWriteMapItems()
692 queue.AddIfNotEmpty(MapItem(DexFile::kDexTypeProtoIdItem, in GenerateAndWriteMapItems()
695 queue.AddIfNotEmpty(MapItem(DexFile::kDexTypeFieldIdItem, in GenerateAndWriteMapItems()
698 queue.AddIfNotEmpty(MapItem(DexFile::kDexTypeMethodIdItem, in GenerateAndWriteMapItems()
701 queue.AddIfNotEmpty(MapItem(DexFile::kDexTypeClassDefItem, in GenerateAndWriteMapItems()
704 queue.AddIfNotEmpty(MapItem(DexFile::kDexTypeCallSiteIdItem, in GenerateAndWriteMapItems()
[all …]
Ddex_ir_builder.cc114 const DexFile::MapItem* item = map->list_ + i; in CheckAndSetRemainingOffsets()
Ddex_ir.h53 class MapItem; variable
104 virtual void Dispatch(MapItem* map_item) = 0;
1306 class MapItem : public Item {
1311 DISALLOW_COPY_AND_ASSIGN(MapItem);
Ddex_ir.cc777 const DexFile::MapItem* item = map->list_ + i; in CreateCallSitesAndMethodHandles()
/art/libdexfile/dex/
Ddex_file_tracking_registrar.cc260 const DexFile::MapItem& map_item = map_list->list_[map_ctr]; in SetAllStringDataRegistration()
262 const DexFile::MapItem& next_map_item = map_list->list_[map_ctr + 1]; in SetAllStringDataRegistration()
Ddex_file.cc182 size_t map_limit = header_->map_off_ + count * sizeof(MapItem); in InitializeSectionsFromMapList()
190 const MapItem& map_item = map_list->list_[i]; in InitializeSectionsFromMapList()
Ddex_file_verifier.cc451 const DexFile::MapItem* item = map->list_; in CheckMap()
461 if (!CheckListSize(item, count, sizeof(DexFile::MapItem), "map size")) { in CheckMap()
1872 const DexFile::MapItem* item = map->list_; in CheckIntraSection()
1927 ptr_ += sizeof(uint32_t) + (map->size_ * sizeof(DexFile::MapItem)); in CheckIntraSection()
1928 offset = section_offset + sizeof(uint32_t) + (map->size_ * sizeof(DexFile::MapItem)); in CheckIntraSection()
2806 const DexFile::MapItem* item = map->list_; in CheckInterSection()
Ddex_file.h137 struct MapItem { struct
146 MapItem list_[1]; argument