Home
last modified time | relevance | path

Searched refs:ItemType (Results 1 – 25 of 82) sorted by relevance

1234

/external/smali/dexlib/src/main/java/org/jf/dexlib/
DItemType.java36 public enum ItemType { enum
57 private final static TreeMap<Integer, ItemType> itemTypeIntegerMap;
61 itemTypeIntegerMap = new TreeMap<Integer, ItemType>();
63 for (ItemType itemType: ItemType.values()) {
97 private ItemType(int mapValue, int sectionIndex, int itemAlignment, String typeName) { in ItemType() method in ItemType
112 public static ItemType fromInt(int itemType) { in fromInt()
DDexFile.java393 int mapOffset = readContext.getSectionOffset(ItemType.TYPE_MAP_LIST); in DexFile()
427 int sectionOffset = readContext.getSectionOffset(section.ItemType); in DexFile()
429 int sectionSize = readContext.getSectionSize(section.ItemType); in DexFile()
459 public Section getSectionForType(ItemType itemType) { in getSectionForType()
653 …while (sectionsPosition < sections.length && sections[sectionsPosition].ItemType.isIndexedItem()) { in place()
676 offset = AlignmentUtils.alignOffset(offset, ItemType.TYPE_MAP_LIST.ItemAlignment); in place()
737 new IndexedSection<StringIdItem>(this, ItemType.TYPE_STRING_ID_ITEM);
743 new IndexedSection<TypeIdItem>(this, ItemType.TYPE_TYPE_ID_ITEM);
749 new IndexedSection<ProtoIdItem>(this, ItemType.TYPE_PROTO_ID_ITEM);
755 new IndexedSection<FieldIdItem>(this, ItemType.TYPE_FIELD_ID_ITEM);
[all …]
DMapItem.java70 ItemType itemType = ItemType.fromInt(in.readShort()); in readItem()
94 writeSectionInfo(out, ItemType.TYPE_HEADER_ITEM, 1, 0); in writeItem()
100 writeSectionInfo(out, section.ItemType, section.getItems().size(), section.getOffset()); in writeItem()
106 writeSectionInfo(out, ItemType.TYPE_MAP_LIST, 1, dexFile.MapItem.getOffset()); in writeItem()
110 …private void writeSectionInfo(AnnotatedOutput out, ItemType itemType, int sectionSize, int section… in writeSectionInfo()
125 public ItemType getItemType() { in getItemType()
126 return ItemType.TYPE_MAP_LIST; in getItemType()
DSection.java63 public final ItemType ItemType; field in Section
75 protected Section(DexFile dexFile, ItemType itemType) { in Section()
78 this.ItemType = itemType; in Section()
88 offset = AlignmentUtils.alignOffset(offset, ItemType.ItemAlignment); in placeAt()
95 offset = AlignmentUtils.alignOffset(offset, ItemType.ItemAlignment); in placeAt()
112 out.annotate(0, this.ItemType.TypeName + " section"); in writeTo()
118 out.alignTo(ItemType.ItemAlignment); in writeTo()
139 in.alignTo(ItemType.ItemAlignment); in readFrom()
DOffsettedSection.java34 public OffsettedSection(DexFile dexFile, ItemType itemType) { in OffsettedSection()
43 in.alignTo(ItemType.ItemAlignment); in readItems()
45 T item = (T)ItemFactory.makeItem(ItemType, DexFile); in readItems()
51 readContext.setItemsForSection(ItemType, items); in readItems()
DReadContext.java107 public Item getOffsettedItemByOffset(ItemType itemType, int offset) { in getOffsettedItemByOffset()
126 public Item getOptionalOffsettedItemByOffset(ItemType itemType, int offset) { in getOptionalOffsettedItemByOffset()
146 public void addSection(final ItemType itemType, int sectionSize, int sectionOffset) { in addSection()
174 public void setItemsForSection(ItemType itemType, List<? extends Item> items) { in setItemsForSection()
189 public int getSectionSize(ItemType itemType) { in getSectionSize()
197 public int getSectionOffset(ItemType itemType) { in getSectionOffset()
DHeaderItem.java117 readContext.addSection(ItemType.TYPE_MAP_LIST, 1, sectionOffset); in readItem()
122 readContext.addSection(ItemType.TYPE_STRING_ID_ITEM, sectionSize, sectionOffset); in readItem()
127 readContext.addSection(ItemType.TYPE_TYPE_ID_ITEM, sectionSize, sectionOffset); in readItem()
132 readContext.addSection(ItemType.TYPE_PROTO_ID_ITEM, sectionSize, sectionOffset); in readItem()
137 readContext.addSection(ItemType.TYPE_FIELD_ID_ITEM, sectionSize, sectionOffset); in readItem()
142 readContext.addSection(ItemType.TYPE_METHOD_ID_ITEM, sectionSize, sectionOffset); in readItem()
147 readContext.addSection(ItemType.TYPE_CLASS_DEF_ITEM, sectionSize, sectionOffset); in readItem()
258 public ItemType getItemType() { in getItemType()
259 return ItemType.TYPE_HEADER_ITEM; in getItemType()
DIndexedSection.java41 public IndexedSection(DexFile dexFile, ItemType itemType) { in IndexedSection()
48 T item = (T)ItemFactory.makeItem(ItemType, DexFile); in readItems()
77 …ceptionWithContext.withContext(ex, "Error occured while retrieving the " + this.ItemType.TypeName + in getItemByIndex()
DStringIdItem.java96 …stringDataItem = (StringDataItem)readContext.getOffsettedItemByOffset(ItemType.TYPE_STRING_DATA_IT… in readItem()
115 public ItemType getItemType() { in getItemType()
116 return ItemType.TYPE_STRING_ID_ITEM; in getItemType()
DAnnotationSetRefList.java80 ItemType.TYPE_ANNOTATION_SET_ITEM, in.readInt()); in readItem()
105 public ItemType getItemType() { in getItemType()
106 return ItemType.TYPE_ANNOTATION_SET_REF_LIST; in getItemType()
DClassDefItem.java132 …implementedInterfaces = (TypeListItem)readContext.getOptionalOffsettedItemByOffset(ItemType.TYPE_T… in readItem()
136 ItemType.TYPE_ANNOTATIONS_DIRECTORY_ITEM, in.readInt()); in readItem()
137 …classData = (ClassDataItem)readContext.getOptionalOffsettedItemByOffset(ItemType.TYPE_CLASS_DATA_I… in readItem()
139 ItemType.TYPE_ENCODED_ARRAY_ITEM, in.readInt()); in readItem()
174 public ItemType getItemType() { in getItemType()
175 return ItemType.TYPE_CLASS_DEF_ITEM; in getItemType()
DAnnotationSetItem.java85 …annotations[i] = (AnnotationItem)readContext.getOffsettedItemByOffset(ItemType.TYPE_ANNOTATION_ITE… in readItem()
125 public ItemType getItemType() { in getItemType()
126 return ItemType.TYPE_ANNOTATION_SET_ITEM; in getItemType()
DProtoIdItem.java99 …parameters = (TypeListItem)readContext.getOptionalOffsettedItemByOffset(ItemType.TYPE_TYPE_LIST, i… in readItem()
126 public ItemType getItemType() { in getItemType()
127 return ItemType.TYPE_PROTO_ID_ITEM; in getItemType()
/external/webkit/Source/WebCore/bindings/v8/
DV8Collection.h63 template<class Collection, class ItemType> static v8::Handle<v8::Value> getNamedPropertyOfCollectio… in getNamedPropertyOfCollection()
70 return getV8Object<ItemType>(collection->namedItem(propertyName)); in getNamedPropertyOfCollection()
74 template<class Collection, class ItemType> static v8::Handle<v8::Value> collectionNamedPropertyGett… in collectionNamedPropertyGetter()
85 return getNamedPropertyOfCollection<Collection, ItemType>(name, info.Holder()); in collectionNamedPropertyGetter()
89 template<class Collection, class ItemType> static v8::Handle<v8::Value> getIndexedPropertyOfCollect… in getIndexedPropertyOfCollection()
95 return getV8Object<ItemType>(collection->item(index)); in getIndexedPropertyOfCollection()
99 template<class Collection, class ItemType> static v8::Handle<v8::Value> collectionIndexedPropertyGe… in collectionIndexedPropertyGetter()
101 return getIndexedPropertyOfCollection<Collection, ItemType>(index, info.Holder()); in collectionIndexedPropertyGetter()
158 template<class Collection, class ItemType> static void setCollectionIndexedGetter(v8::Handle<v8::Fu… in setCollectionIndexedGetter()
160 …->SetIndexedPropertyHandler(collectionIndexedPropertyGetter<Collection, ItemType>, 0, 0, 0, collec… in setCollectionIndexedGetter()
[all …]
/external/dexmaker/src/dx/java/com/android/dx/dex/file/
DMapItem.java35 private final ItemType type;
81 ItemType currentType = null; in addMap()
87 ItemType type = item.itemType(); in addMap()
112 new UniformListItem<MapItem>(ItemType.TYPE_MAP_LIST, items)); in addMap()
124 private MapItem(ItemType type, Section section, Item firstItem, in MapItem()
168 this.type = ItemType.TYPE_MAP_LIST; in MapItem()
177 public ItemType itemType() { in itemType()
178 return ItemType.TYPE_MAP_ITEM; in itemType()
DOffsettedItem.java97 ItemType thisType = itemType(); in equals()
98 ItemType otherType = otherItem.itemType(); in equals()
119 ItemType thisType = itemType(); in compareTo()
120 ItemType otherType = other.itemType(); in compareTo()
DFieldIdItem.java36 public ItemType itemType() { in itemType()
37 return ItemType.TYPE_FIELD_ID_ITEM; in itemType()
DMethodIdItem.java36 public ItemType itemType() { in itemType()
37 return ItemType.TYPE_METHOD_ID_ITEM; in itemType()
DUniformListItem.java43 private final ItemType itemType;
55 public UniformListItem(ItemType itemType, List<T> items) { in UniformListItem()
104 public ItemType itemType() { in itemType()
DItemType.java24 public enum ItemType implements ToHuman { enum
63 private ItemType(int mapValue, String typeName) { in ItemType() method in ItemType
DAnnotationSetRefItem.java52 public ItemType itemType() { in itemType()
53 return ItemType.TYPE_ANNOTATION_SET_REF_ITEM; in itemType()
DTypeIdItem.java40 public ItemType itemType() { in itemType()
41 return ItemType.TYPE_TYPE_ID_ITEM; in itemType()
/external/smack/src/org/jivesoftware/smack/packet/
DRosterPacket.java106 private ItemType itemType;
156 public ItemType getItemType() { in getItemType()
165 public void setItemType(ItemType itemType) { in setItemType()
284 public static enum ItemType { enum in RosterPacket
/external/smack/src/org/jivesoftware/smack/
DRosterEntry.java38 private RosterPacket.ItemType type;
52 RosterEntry(String user, String name, RosterPacket.ItemType type, in RosterEntry()
104 void updateState(String name, RosterPacket.ItemType type, RosterPacket.ItemStatus status) { in updateState()
135 public RosterPacket.ItemType getType() { in getType()
/external/chromium/chrome/browser/chromeos/status/
Dnetwork_menu.h71 virtual ui::MenuModel::ItemType GetTypeAt(int index) const;
117 MenuItem(ui::MenuModel::ItemType type, string16 label, SkBitmap icon, in MenuItem()
125 MenuItem(ui::MenuModel::ItemType type, string16 label, SkBitmap icon, in MenuItem()
133 ui::MenuModel::ItemType type;

1234