Searched refs:ItemType (Results 1 - 25 of 74) sorted by relevance

123

/external/smali/dexlib/src/main/java/org/jf/dexlib/
H A DItemType.java36 public enum ItemType { enum
56 /** A map to facilitate looking up an <code>ItemType</code> by ordinal */
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) { method in class:ItemType
105 * Converts an int value to the corresponding ItemType enum value,
106 * or null if the value isn't a valid ItemType value
108 * @param itemType the int value to convert to an ItemType
[all...]
H A DOffsettedSection.java34 public OffsettedSection(DexFile dexFile, ItemType itemType) {
43 in.alignTo(ItemType.ItemAlignment);
45 T item = (T)ItemFactory.makeItem(ItemType, DexFile);
51 readContext.setItemsForSection(ItemType, items);
H A DSection.java63 public final ItemType ItemType; field in class:Section
75 protected Section(DexFile dexFile, ItemType itemType) {
78 this.ItemType = itemType;
88 offset = AlignmentUtils.alignOffset(offset, ItemType.ItemAlignment);
95 offset = AlignmentUtils.alignOffset(offset, ItemType.ItemAlignment);
112 out.annotate(0, this.ItemType.TypeName + " section");
118 out.alignTo(ItemType.ItemAlignment);
139 in.alignTo(ItemType.ItemAlignment);
H A DIndexedSection.java41 public IndexedSection(DexFile dexFile, ItemType itemType) {
48 T item = (T)ItemFactory.makeItem(ItemType, DexFile);
77 throw ExceptionWithContext.withContext(ex, "Error occured while retrieving the " + this.ItemType.TypeName +
H A DMapItem.java70 ItemType itemType = ItemType.fromInt(in.readShort());
94 writeSectionInfo(out, ItemType.TYPE_HEADER_ITEM, 1, 0);
100 writeSectionInfo(out, section.ItemType, section.getItems().size(), section.getOffset());
106 writeSectionInfo(out, ItemType.TYPE_MAP_LIST, 1, dexFile.MapItem.getOffset());
110 private void writeSectionInfo(AnnotatedOutput out, ItemType itemType, int sectionSize, int sectionOffset) {
125 public ItemType getItemType() {
126 return ItemType.TYPE_MAP_LIST;
H A DReadContext.java107 public Item getOffsettedItemByOffset(ItemType itemType, int offset) {
126 public Item getOptionalOffsettedItemByOffset(ItemType itemType, int offset) {
146 public void addSection(final ItemType itemType, int sectionSize, int sectionOffset) {
174 public void setItemsForSection(ItemType itemType, List<? extends Item> items) {
189 public int getSectionSize(ItemType itemType) {
197 public int getSectionOffset(ItemType itemType) {
H A DDexFile.java105 * A mapping from ItemType to the section that contains items of the given type
393 int mapOffset = readContext.getSectionOffset(ItemType.TYPE_MAP_LIST);
427 int sectionOffset = readContext.getSectionOffset(section.ItemType);
429 int sectionSize = readContext.getSectionSize(section.ItemType);
459 public Section getSectionForType(ItemType itemType) {
653 while (sectionsPosition < sections.length && sections[sectionsPosition].ItemType.isIndexedItem()) {
676 offset = AlignmentUtils.alignOffset(offset, ItemType.TYPE_MAP_LIST.ItemAlignment);
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
[all...]
H A DStringIdItem.java94 stringDataItem = (StringDataItem)readContext.getOffsettedItemByOffset(ItemType.TYPE_STRING_DATA_ITEM,
113 public ItemType getItemType() {
114 return ItemType.TYPE_STRING_ID_ITEM;
H A DHeaderItem.java92 readContext.addSection(ItemType.TYPE_MAP_LIST, 1, sectionOffset);
97 readContext.addSection(ItemType.TYPE_STRING_ID_ITEM, sectionSize, sectionOffset);
102 readContext.addSection(ItemType.TYPE_TYPE_ID_ITEM, sectionSize, sectionOffset);
107 readContext.addSection(ItemType.TYPE_PROTO_ID_ITEM, sectionSize, sectionOffset);
112 readContext.addSection(ItemType.TYPE_FIELD_ID_ITEM, sectionSize, sectionOffset);
117 readContext.addSection(ItemType.TYPE_METHOD_ID_ITEM, sectionSize, sectionOffset);
122 readContext.addSection(ItemType.TYPE_CLASS_DEF_ITEM, sectionSize, sectionOffset);
213 public ItemType getItemType() {
214 return ItemType.TYPE_HEADER_ITEM;
H A DEncodedArrayItem.java86 public ItemType getItemType() {
87 return ItemType.TYPE_ENCODED_ARRAY_ITEM;
H A DAnnotationSetRefList.java80 ItemType.TYPE_ANNOTATION_SET_ITEM, in.readInt());
105 public ItemType getItemType() {
106 return ItemType.TYPE_ANNOTATION_SET_REF_LIST;
H A DItemFactory.java32 protected static Item makeItem(ItemType itemType, DexFile dexFile) {
/external/dexmaker/src/dx/java/com/android/dx/dex/file/
H A DFieldIdItem.java36 public ItemType itemType() {
37 return ItemType.TYPE_FIELD_ID_ITEM;
H A DMethodIdItem.java36 public ItemType itemType() {
37 return ItemType.TYPE_METHOD_ID_ITEM;
H A DItem.java38 public abstract ItemType itemType();
H A DAnnotationSetRefItem.java52 public ItemType itemType() {
53 return ItemType.TYPE_ANNOTATION_SET_REF_ITEM;
H A DMapItem.java35 private final ItemType type;
81 ItemType currentType = null;
87 ItemType type = item.itemType();
112 new UniformListItem<MapItem>(ItemType.TYPE_MAP_LIST, items));
124 private MapItem(ItemType type, Section section, Item firstItem,
168 this.type = ItemType.TYPE_MAP_LIST;
177 public ItemType itemType() {
178 return ItemType.TYPE_MAP_ITEM;
H A DOffsettedItem.java97 ItemType thisType = itemType();
98 ItemType otherType = otherItem.itemType();
119 ItemType thisType = itemType();
120 ItemType otherType = other.itemType();
H A DEncodedArrayItem.java61 public ItemType itemType() {
62 return ItemType.TYPE_ENCODED_ARRAY_ITEM;
H A DItemType.java24 public enum ItemType implements ToHuman { enum
63 private ItemType(int mapValue, String typeName) { method in class:ItemType
H A DStringDataItem.java59 public ItemType itemType() {
60 return ItemType.TYPE_STRING_DATA_ITEM;
H A DStringIdItem.java74 public ItemType itemType() {
75 return ItemType.TYPE_STRING_ID_ITEM;
H A DTypeIdItem.java40 public ItemType itemType() {
41 return ItemType.TYPE_TYPE_ID_ITEM;
H A DUniformListItem.java43 private final ItemType itemType;
55 public UniformListItem(ItemType itemType, List<T> items) {
104 public ItemType itemType() {
/external/webkit/Source/WebCore/bindings/v8/
H A DV8Collection.h63 template<class Collection, class ItemType> static v8::Handle<v8::Value> getNamedPropertyOfCollection(v8::Local<v8::String> name, v8::Local<v8::Object> object)
70 return getV8Object<ItemType>(collection->namedItem(propertyName));
74 template<class Collection, class ItemType> static v8::Handle<v8::Value> collectionNamedPropertyGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
85 return getNamedPropertyOfCollection<Collection, ItemType>(name, info.Holder());
89 template<class Collection, class ItemType> static v8::Handle<v8::Value> getIndexedPropertyOfCollection(uint32_t index, v8::Local<v8::Object> object)
95 return getV8Object<ItemType>(collection->item(index));
99 template<class Collection, class ItemType> static v8::Handle<v8::Value> collectionIndexedPropertyGetter(uint32_t index, const v8::AccessorInfo& info)
101 return getIndexedPropertyOfCollection<Collection, ItemType>(index, info.Holder());
158 template<class Collection, class ItemType> static void setCollectionIndexedGetter(v8::Handle<v8::FunctionTemplate> desc)
160 desc->InstanceTemplate()->SetIndexedPropertyHandler(collectionIndexedPropertyGetter<Collection, ItemType>,
[all...]

Completed in 2003 milliseconds

123