HomeSort by relevance Sort by last modified time
    Searched refs:ItemType (Results 1 - 25 of 133) sorted by null

1 2 3 4 5 6

  /external/smali/dexlib/src/main/java/org/jf/dexlib/
ItemType.java 36 public enum ItemType {
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()) {
64 itemTypeIntegerMap.put(itemType.MapValue, itemType);
97 private ItemType(int mapValue, int sectionIndex, int itemAlignment, String typeName)
    [all...]
OffsettedSection.java 34 public OffsettedSection(DexFile dexFile, ItemType itemType) {
35 super(dexFile, itemType);
43 in.alignTo(ItemType.ItemAlignment);
45 T item = (T)ItemFactory.makeItem(ItemType, DexFile);
51 readContext.setItemsForSection(ItemType, items);
Section.java 63 public final ItemType ItemType;
73 * @param itemType The itemType that this section will hold
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)
    [all...]
IndexedSection.java 39 * @param itemType The itemType that this section will hold
41 public IndexedSection(DexFile dexFile, ItemType itemType) {
42 super(dexFile, itemType);
48 T item = (T)ItemFactory.makeItem(ItemType, DexFile);
77 throw ExceptionWithContext.withContext(ex, "Error occured while retrieving the " + this.ItemType.TypeName +
MapItem.java 70 ItemType itemType = ItemType.fromInt(in.readShort());
78 readContext.addSection(itemType, sectionSize, sectionOffset);
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) {
112 out.annotate(2, "item_type: " + itemType);
    [all...]
ReadContext.java 103 * @param itemType The type of item to get
107 public Item getOffsettedItemByOffset(ItemType itemType, int offset) {
108 assert !itemType.isIndexedItem();
110 SparseArray<Item> sa = itemsByType[itemType.SectionIndex];
114 itemType.TypeName, offset));
122 * @param itemType The type of item to get
126 public Item getOptionalOffsettedItemByOffset(ItemType itemType, int offset) {
127 assert !itemType.isIndexedItem()
    [all...]
DexFile.java 105 * 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);
456 * @param itemType the type of item
459 public Section getSectionForType(ItemType itemType) {
460 return sectionsByType[itemType.SectionIndex];
653 while (sectionsPosition < sections.length && sections[sectionsPosition].ItemType.isIndexedItem()) {
676 offset = AlignmentUtils.alignOffset(offset, ItemType.TYPE_MAP_LIST.ItemAlignment)
    [all...]
  /dalvik/dexgen/src/com/android/dexgen/dex/file/
FieldIdItem.java 36 public ItemType itemType() {
37 return ItemType.TYPE_FIELD_ID_ITEM;
MethodIdItem.java 36 public ItemType itemType() {
37 return ItemType.TYPE_METHOD_ID_ITEM;
Item.java 38 public abstract ItemType itemType();
47 return itemType().toHuman();
AnnotationSetRefItem.java 52 public ItemType itemType() {
53 return ItemType.TYPE_ANNOTATION_SET_REF_ITEM;
MapItem.java 35 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
    [all...]
OffsettedItem.java 97 ItemType thisType = itemType();
98 ItemType otherType = otherItem.itemType();
119 ItemType thisType = itemType();
120 ItemType otherType = other.itemType();
  /dalvik/dx/src/com/android/dx/dex/file/
FieldIdItem.java 36 public ItemType itemType() {
37 return ItemType.TYPE_FIELD_ID_ITEM;
MethodIdItem.java 36 public ItemType itemType() {
37 return ItemType.TYPE_METHOD_ID_ITEM;
Item.java 38 public abstract ItemType itemType();
47 return itemType().toHuman();
AnnotationSetRefItem.java 52 public ItemType itemType() {
53 return ItemType.TYPE_ANNOTATION_SET_REF_ITEM;
MapItem.java 35 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
    [all...]
OffsettedItem.java 97 ItemType thisType = itemType();
98 ItemType otherType = otherItem.itemType();
119 ItemType thisType = itemType();
120 ItemType otherType = other.itemType();
  /external/dexmaker/src/dx/java/com/android/dx/dex/file/
FieldIdItem.java 36 public ItemType itemType() {
37 return ItemType.TYPE_FIELD_ID_ITEM;
MethodIdItem.java 36 public ItemType itemType() {
37 return ItemType.TYPE_METHOD_ID_ITEM;
Item.java 38 public abstract ItemType itemType();
47 return itemType().toHuman();
AnnotationSetRefItem.java 52 public ItemType itemType() {
53 return ItemType.TYPE_ANNOTATION_SET_REF_ITEM;
MapItem.java 35 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
    [all...]
  /external/webkit/Source/WebCore/bindings/v8/
V8Collection.h 63 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>, 0, 0, 0, collectionIndexedPropertyEnumerator<Collection>)
    [all...]

Completed in 292 milliseconds

1 2 3 4 5 6