Lines Matching refs:index

491  * representation for the index in the given instruction. This will
500 // Determine index and width of the string.
501 u4 index = 0;
513 index = pDecInsn->VRegB();
517 index = pDecInsn->VRegB();
522 index = pDecInsn->VRegC();
529 // Determine index type.
535 outSize = snprintf(buf, bufSize, "<unknown-index>");
540 outSize = snprintf(buf, bufSize, "<no-index>");
543 if (index < pDexFile->GetHeader().type_ids_size_) {
544 const char* tp = pDexFile->StringByTypeIdx(index);
545 outSize = snprintf(buf, bufSize, "%s // type@%0*x", tp, width, index);
547 outSize = snprintf(buf, bufSize, "<type?> // type@%0*x", width, index);
551 if (index < pDexFile->GetHeader().string_ids_size_) {
552 const char* st = pDexFile->StringDataByIdx(index);
553 outSize = snprintf(buf, bufSize, "\"%s\" // string@%0*x", st, width, index);
555 outSize = snprintf(buf, bufSize, "<string?> // string@%0*x", width, index);
559 if (index < pDexFile->GetHeader().method_ids_size_) {
560 const DexFile::MethodId& pMethodId = pDexFile->GetMethodId(index);
565 backDescriptor, name, signature.ToString().c_str(), width, index);
567 outSize = snprintf(buf, bufSize, "<method?> // method@%0*x", width, index);
571 if (index < pDexFile->GetHeader().field_ids_size_) {
572 const DexFile::FieldId& pFieldId = pDexFile->GetFieldId(index);
577 backDescriptor, name, typeDescriptor, width, index);
579 outSize = snprintf(buf, bufSize, "<field?> // field@%0*x", width, index);
584 width, index, width, index);
587 outSize = snprintf(buf, bufSize, "[obj+%0*x]", width, index);
1238 * Note "idx" is a DexClassDef index, not a DexTypeId index.