Home
last modified time | relevance | path

Searched refs:item (Results 1 – 25 of 49) sorted by relevance

12

/dalvik/libdex/
DDexSwapVerify.cpp397 DexMapItem* item = pMap->list; in swapMap() local
408 CHECK_LIST_SIZE(item, count, sizeof(DexMapItem)); in swapMap()
411 SWAP_FIELD2(item->type); in swapMap()
412 SWAP_FIELD2(item->unused); in swapMap()
413 SWAP_FIELD4(item->size); in swapMap()
414 SWAP_OFFSET4(item->offset); in swapMap()
418 } else if (lastOffset >= item->offset) { in swapMap()
420 lastOffset, item->offset); in swapMap()
424 if (item->offset >= state->pHeader->fileSize) { in swapMap()
426 item->offset, state->pHeader->fileSize); in swapMap()
[all …]
/dalvik/dx/src/com/android/dx/dex/file/
DAnnotationsDirectoryItem.java209 for (MethodAnnotationStruct item : methodAnnotations) { in getMethodAnnotations()
210 if (item.getMethod().equals(method)) { in getMethodAnnotations()
211 return item.getAnnotations(); in getMethodAnnotations()
230 for (ParameterAnnotationStruct item : parameterAnnotations) { in getParameterAnnotations()
231 if (item.getMethod().equals(method)) { in getParameterAnnotations()
232 return item.getAnnotationsList(); in getParameterAnnotations()
248 for (FieldAnnotationStruct item : fieldAnnotations) { in addContents()
249 item.addContents(file); in addContents()
254 for (MethodAnnotationStruct item : methodAnnotations) { in addContents()
255 item.addContents(file); in addContents()
[all …]
DMixedItemSection.java113 public int getAbsoluteItemOffset(Item item) { in getAbsoluteItemOffset() argument
114 OffsettedItem oi = (OffsettedItem) item; in getAbsoluteItemOffset()
169 public void add(OffsettedItem item) { in add() argument
173 if (item.getAlignment() > getAlignment()) { in add()
182 items.add(item); in add()
193 public <T extends OffsettedItem> T intern(T item) { in intern() argument
196 OffsettedItem result = interns.get(item); in intern()
202 add(item); in intern()
203 interns.put(item, item); in intern()
204 return item; in intern()
[all …]
DStatistics.java44 public void add(Item item) { in add() argument
45 String typeName = item.typeName(); in add()
49 dataMap.put(typeName, new Data(item, typeName)); in add()
51 data.add(item); in add()
62 for (Item item : items) { in addAll()
63 add(item); in addAll()
133 public Data(Item item, String name) { in Data() argument
134 int size = item.writeSize(); in Data()
148 public void add(Item item) { in add() argument
149 int size = item.writeSize(); in add()
DHeaderSection.java40 HeaderItem item = new HeaderItem(); in HeaderSection() local
41 item.setIndex(0); in HeaderSection()
43 this.list = Collections.singletonList(item); in HeaderSection()
DParameterAnnotationStruct.java72 AnnotationSetItem item = new AnnotationSetItem(annotations); in ParameterAnnotationStruct() local
73 arrayList.add(new AnnotationSetRefItem(item)); in ParameterAnnotationStruct()
132 for (AnnotationSetRefItem item : annotationsItem.getItems()) { in toHuman()
138 sb.append(item.toHuman()); in toHuman()
DMethodIdsSection.java129 MethodIdItem item = methodIds.get(ref); in indexOf() local
131 if (item == null) { in indexOf()
135 return item.getIndex(); in indexOf()
/dalvik/dexgen/src/com/android/dexgen/dex/file/
DAnnotationsDirectoryItem.java209 for (MethodAnnotationStruct item : methodAnnotations) { in getMethodAnnotations()
210 if (item.getMethod().equals(method)) { in getMethodAnnotations()
211 return item.getAnnotations(); in getMethodAnnotations()
230 for (ParameterAnnotationStruct item : parameterAnnotations) { in getParameterAnnotations()
231 if (item.getMethod().equals(method)) { in getParameterAnnotations()
232 return item.getAnnotationsList(); in getParameterAnnotations()
248 for (FieldAnnotationStruct item : fieldAnnotations) { in addContents()
249 item.addContents(file); in addContents()
254 for (MethodAnnotationStruct item : methodAnnotations) { in addContents()
255 item.addContents(file); in addContents()
[all …]
DMixedItemSection.java113 public int getAbsoluteItemOffset(Item item) { in getAbsoluteItemOffset() argument
114 OffsettedItem oi = (OffsettedItem) item; in getAbsoluteItemOffset()
169 public void add(OffsettedItem item) { in add() argument
173 if (item.getAlignment() > getAlignment()) { in add()
182 items.add(item); in add()
193 public <T extends OffsettedItem> T intern(T item) { in intern() argument
196 OffsettedItem result = interns.get(item); in intern()
202 add(item); in intern()
203 interns.put(item, item); in intern()
204 return item; in intern()
[all …]
DStatistics.java44 public void add(Item item) { in add() argument
45 String typeName = item.typeName(); in add()
49 dataMap.put(typeName, new Data(item, typeName)); in add()
51 data.add(item); in add()
62 for (Item item : items) { in addAll()
63 add(item); in addAll()
133 public Data(Item item, String name) { in Data() argument
134 int size = item.writeSize(); in Data()
148 public void add(Item item) { in add() argument
149 int size = item.writeSize(); in add()
DHeaderSection.java40 HeaderItem item = new HeaderItem(); in HeaderSection() local
41 item.setIndex(0); in HeaderSection()
43 this.list = Collections.singletonList(item); in HeaderSection()
DParameterAnnotationStruct.java72 AnnotationSetItem item = new AnnotationSetItem(annotations); in ParameterAnnotationStruct() local
73 arrayList.add(new AnnotationSetRefItem(item)); in ParameterAnnotationStruct()
132 for (AnnotationSetRefItem item : annotationsItem.getItems()) { in toHuman()
138 sb.append(item.toHuman()); in toHuman()
DProtoIdsSection.java121 ProtoIdItem item = protoIds.get(prototype); in indexOf() local
123 if (item == null) { in indexOf()
127 return item.getIndex(); in indexOf()
DMethodIdsSection.java129 MethodIdItem item = methodIds.get(ref); in indexOf() local
131 if (item == null) { in indexOf()
135 return item.getIndex(); in indexOf()
/dalvik/vm/compiler/codegen/x86/
DLowerJump.cpp108 LabelMap* item = NULL; in insertLabel() local
110 item = (LabelMap*)malloc(sizeof(LabelMap)); in insertLabel()
111 if(item == NULL) { in insertLabel()
115 snprintf(item->label, LABEL_SIZE, "%s", label); in insertLabel()
116 item->codePtr = stream; in insertLabel()
117 item->nextItem = globalMap; in insertLabel()
118 globalMap = item; in insertLabel()
126 item = (LabelMap*)malloc(sizeof(LabelMap)); in insertLabel()
127 if(item == NULL) { in insertLabel()
131 snprintf(item->label, LABEL_SIZE, "%s", label); in insertLabel()
[all …]
/dalvik/dx/src/com/android/dx/cf/code/
DLocalVariableList.java84 Item item = descriptorList.get(i); in mergeDescriptorsAndSignatures() local
85 Item signatureItem = signatureList.itemToLocal(item); in mergeDescriptorsAndSignatures()
88 item = item.withSignature(signature); in mergeDescriptorsAndSignatures()
90 result.set(i, item); in mergeDescriptorsAndSignatures()
122 public void set(int n, Item item) { in set() argument
123 if (item == null) { in set()
127 set0(n, item); in set()
160 public Item itemToLocal(Item item) { in itemToLocal() argument
166 if ((one != null) && one.matchesAllButType(item)) { in itemToLocal()
DByteCatchList.java69 public void set(int n, Item item) { in set() argument
70 if (item == null) { in set()
74 set0(n, item); in set()
138 private static boolean typeNotFound(Item item, Item[] arr, int count) { in typeNotFound() argument
139 CstType type = item.getExceptionClass(); in typeNotFound()
DLineNumberList.java84 public void set(int n, Item item) { in set() argument
85 if (item == null) { in set()
89 set0(n, item); in set()
/dalvik/dx/tests/034-dex-minimal/
Dexpected.txt64 | header: 1 item; 112 bytes total
65 | 112 bytes/item
66 | map list: 1 item; 28 bytes total
67 | 28 bytes/item
/dalvik/vm/
DHash.cpp174 void* dvmHashTableLookup(HashTable* pHashTable, u4 itemHash, void* item, in dvmHashTableLookup() argument
182 assert(item != HASH_TOMBSTONE); in dvmHashTableLookup()
183 assert(item != NULL); in dvmHashTableLookup()
191 (*cmpFunc)(pEntry->data, item) == 0) in dvmHashTableLookup()
211 pEntry->data = item; in dvmHashTableLookup()
234 result = item; in dvmHashTableLookup()
250 bool dvmHashTableRemove(HashTable* pHashTable, u4 itemHash, void* item) in dvmHashTableRemove() argument
261 if (pEntry->data == item) { in dvmHashTableRemove()
342 static int countProbes(HashTable* pHashTable, u4 itemHash, const void* item, in countProbes() argument
350 assert(item != HASH_TOMBSTONE); in countProbes()
[all …]
DHash.h26 typedef u4 (*HashCompute)(const void* item);
145 void* dvmHashTableLookup(HashTable* pHashTable, u4 itemHash, void* item,
152 bool dvmHashTableRemove(HashTable* pHashTable, u4 hash, void* item);
217 typedef u4 (*HashCalcFunc)(const void* item);
/dalvik/dexgen/src/com/android/dexgen/util/
DLabeledList.java148 protected void set(int n, LabeledItem item) { in set() argument
151 set0(n, item); in set()
157 if (item != null) { in set()
158 addLabelIndex(item.getLabel(), n); in set()
/dalvik/dx/src/com/android/dx/util/
DLabeledList.java174 protected void set(int n, LabeledItem item) { in set() argument
177 set0(n, item); in set()
183 if (item != null) { in set()
184 addLabelIndex(item.getLabel(), n); in set()
/dalvik/dexgen/src/com/android/dexgen/rop/
DByteCatchList.java69 public void set(int n, Item item) { in set() argument
70 if (item == null) { in set()
74 set0(n, item); in set()
138 private static boolean typeNotFound(Item item, Item[] arr, int count) { in typeNotFound() argument
139 CstType type = item.getExceptionClass(); in typeNotFound()
DLineNumberList.java84 public void set(int n, Item item) { in set() argument
85 if (item == null) { in set()
89 set0(n, item); in set()

12