Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 101) sorted by relevance

12345

/art/tools/dexfuzz/src/dexfuzz/rawdex/formats/
DRawInsnHelper.java27 public static long getSignedByteFromByte(byte[] raw, int idx) { in getSignedByteFromByte() argument
28 return (long) raw[idx]; in getSignedByteFromByte()
34 public static long getUnsignedByteFromByte(byte[] raw, int idx) { in getUnsignedByteFromByte() argument
35 return ((long) raw[idx]) & 0xff; in getUnsignedByteFromByte()
41 public static long getUnsignedLowNibbleFromByte(byte[] raw, int idx) { in getUnsignedLowNibbleFromByte() argument
42 return ((long) raw[idx]) & 0xf; in getUnsignedLowNibbleFromByte()
48 public static long getUnsignedHighNibbleFromByte(byte[] raw, int idx) { in getUnsignedHighNibbleFromByte() argument
49 return (((long) raw[idx]) >> 4) & 0xf; in getUnsignedHighNibbleFromByte()
55 public static long getUnsignedShortFromTwoBytes(byte[] raw, int idx) { in getUnsignedShortFromTwoBytes() argument
56 return (long) ( (((long) raw[idx]) & 0xff) in getUnsignedShortFromTwoBytes()
[all …]
/art/libartbase/base/
Dbit_vector.cc128 uint32_t idx; in Intersect() local
129 for (idx = 0; idx < min_size; idx++) { in Intersect()
130 storage_[idx] &= src->GetRawStorageWord(idx); in Intersect()
137 for (; idx < storage_size_; idx++) { in Intersect()
138 storage_[idx] = 0; in Intersect()
165 for (uint32_t idx = 0; idx < src_size; idx++) { in Union() local
166 uint32_t existing = storage_[idx]; in Union()
167 uint32_t update = existing | src->GetRawStorageWord(idx); in Union()
170 storage_[idx] = update; in Union()
199 uint32_t idx = 0; in UnionIfNotIn() local
[all …]
Dbit_string.h153 size_t idx = 0; in GetBitLengthTotalAtPosition() local
155 while (idx < position && idx < kCapacity) { in GetBitLengthTotalAtPosition()
156 sum += kBitSizeAtPosition[idx]; in GetBitLengthTotalAtPosition()
157 ++idx; in GetBitLengthTotalAtPosition()
182 BitStringChar operator[](size_t idx) const {
183 DCHECK_LT(idx, kCapacity);
185 StorageType data = BitFieldExtract(storage_, GetLsbForPosition(idx), kBitSizeAtPosition[idx]);
187 return BitStringChar(data, kBitSizeAtPosition[idx]);
193 void SetAt(size_t idx, BitStringChar bitchar) { in SetAt()
194 DCHECK_LT(idx, kCapacity); in SetAt()
[all …]
Dbit_vector.h142 void SetBit(uint32_t idx) { in SetBit() argument
147 if (idx >= storage_size_ * kWordBits) { in SetBit()
148 EnsureSize(idx); in SetBit()
150 storage_[WordIndex(idx)] |= BitMask(idx); in SetBit()
154 void ClearBit(uint32_t idx) { in ClearBit() argument
156 if (idx < storage_size_ * kWordBits) { in ClearBit()
158 storage_[WordIndex(idx)] &= ~BitMask(idx); in ClearBit()
163 bool IsBitSet(uint32_t idx) const { in IsBitSet() argument
166 return (idx < (storage_size_ * kWordBits)) && IsBitSet(storage_, idx); in IsBitSet()
218 uint32_t GetRawStorageWord(size_t idx) const { in GetRawStorageWord() argument
[all …]
Dhistogram-inl.h117 for (size_t idx = 0; idx < kInitialBucketCount; idx++) { in Initialize() local
228 for (size_t idx = 0; idx < frequency_.size(); idx++) { in CreateHistogram() local
229 accumulated += frequency_[idx]; in CreateHistogram()
244 for (size_t idx = 0; idx < data.perc_.size(); idx++) { in Percentile() local
245 if (per <= data.perc_[idx]) { in Percentile()
246 upper_idx = idx; in Percentile()
250 if (per >= data.perc_[idx] && idx != 0 && data.perc_[idx] != data.perc_[idx - 1]) { in Percentile()
251 lower_idx = idx; in Percentile()
Dhistogram_test.cc234 for (uint64_t idx = 0ull; idx < 150ull; idx++) { in TEST() local
241 for (size_t idx = 0; idx < 200; idx++) { in TEST() local
257 for (uint64_t idx = 0ull; idx < 30ull; idx++) { in TEST() local
259 hist->AddValue(idx * idx_inner); in TEST()
/art/runtime/
Dindirect_reference_table-inl.h41 uint32_t idx = ExtractIndex(iref); in IsValidReference() local
42 if (UNLIKELY(idx >= top_index)) { in IsValidReference()
44 idx, in IsValidReference()
48 if (UNLIKELY(table_[idx].GetReference()->IsNull())) { in IsValidReference()
49 *error_msg = android::base::StringPrintf("deleted reference at index %u", idx); in IsValidReference()
53 uint32_t entry_serial = table_[idx].GetSerial(); in IsValidReference()
66 uint32_t idx) const { in CheckEntry() argument
67 IndirectRef checkRef = ToIndirectRef(idx); in CheckEntry()
84 uint32_t idx = ExtractIndex(iref); in Get() local
85 DCHECK_LT(idx, top_index_); in Get()
[all …]
Dindirect_reference_table.cc248 const uint32_t idx = ExtractIndex(iref); in Remove() local
249 if (idx >= top_index) { in Remove()
251 LOG(WARNING) << "Attempt to remove invalid index " << idx in Remove()
258 if (idx == top_index - 1) { in Remove()
261 if (!CheckEntry("remove", iref, idx)) { in Remove()
265 *table_[idx].GetReference() = GcRoot<mirror::Object>(nullptr); in Remove()
294 if (table_[idx].GetReference()->IsNull()) { in Remove()
295 LOG(INFO) << "--- WEIRD: removing null entry " << idx; in Remove()
298 if (!CheckEntry("remove", iref, idx)) { in Remove()
302 *table_[idx].GetReference() = GcRoot<mirror::Object>(nullptr); in Remove()
[all …]
/art/runtime/gc/allocator/
Drosalloc-inl.h64 size_t idx = SizeToIndexAndBracketSize(size, &bracket_size); in CanAllocFromThreadLocalRun() local
65 DCHECK_LT(idx, kNumThreadLocalSizeBrackets); in CanAllocFromThreadLocalRun()
66 Run* thread_local_run = reinterpret_cast<Run*>(self->GetRosAllocRun(idx)); in CanAllocFromThreadLocalRun()
69 MutexLock mu(self, *size_bracket_locks_[idx]); in CanAllocFromThreadLocalRun()
70 CHECK(non_full_runs_[idx].find(thread_local_run) == non_full_runs_[idx].end()); in CanAllocFromThreadLocalRun()
71 CHECK(full_runs_[idx].find(thread_local_run) == full_runs_[idx].end()); in CanAllocFromThreadLocalRun()
85 size_t idx = SizeToIndexAndBracketSize(size, &bracket_size); in AllocFromThreadLocalRun() local
86 Run* thread_local_run = reinterpret_cast<Run*>(self->GetRosAllocRun(idx)); in AllocFromThreadLocalRun()
89 MutexLock mu(self, *size_bracket_locks_[idx]); in AllocFromThreadLocalRun()
90 CHECK(non_full_runs_[idx].find(thread_local_run) == non_full_runs_[idx].end()); in AllocFromThreadLocalRun()
[all …]
Drosalloc.cc333 size_t idx = pm_idx + 1; in FreePages() local
335 while (idx < end && page_map_[idx] == pm_part_type) { in FreePages()
336 page_map_[idx] = kPageMapEmpty; in FreePages()
338 idx++; in FreePages()
548 RosAlloc::Run* RosAlloc::AllocRun(Thread* self, size_t idx) { in AllocRun() argument
552 new_run = reinterpret_cast<Run*>(AllocPages(self, numOfPages[idx], kPageMapRun)); in AllocRun()
558 new_run->size_bracket_idx_ = idx; in AllocRun()
561 if (kUsePrefetchDuringAllocRun && idx < kNumThreadLocalSizeBrackets) { in AllocRun()
568 const size_t num_of_slots = numOfSlots[idx]; in AllocRun()
569 const size_t bracket_size = bracketSizes[idx]; in AllocRun()
[all …]
Drosalloc.h372 const uint8_t idx = size_bracket_idx_; in FirstSlot() local
373 return reinterpret_cast<Slot*>(reinterpret_cast<uintptr_t>(this) + headerSizes[idx]); in FirstSlot()
376 const uint8_t idx = size_bracket_idx_; in LastSlot() local
377 const size_t bracket_size = bracketSizes[idx]; in LastSlot()
403 const uint8_t idx = size_bracket_idx_; in InitFreeList() local
404 const size_t bracket_size = bracketSizes[idx]; in InitFreeList()
469 const uint8_t idx = size_bracket_idx_; in ToSlot() local
470 const size_t bracket_size = bracketSizes[idx]; in ToSlot()
475 DCHECK_LT(slot_idx, numOfSlots[idx]); in ToSlot()
479 const uint8_t idx = size_bracket_idx_; in SlotIndex() local
[all …]
/art/dexlayout/
Ddexlayout.h140 void DumpBytecodes(uint32_t idx, const dex_ir::CodeItem* code, uint32_t code_offset);
142 void DumpClass(int idx, char** last_package);
143 void DumpMethodHandle(int idx);
144 void DumpCallSite(int idx);
145 void DumpClassAnnotations(int idx);
146 void DumpClassDef(int idx);
147 void DumpCode(uint32_t idx,
157 void DumpIField(uint32_t idx, uint32_t flags, uint32_t hiddenapi_flags, int i);
165 void DumpMethod(uint32_t idx,
171 void DumpSField(uint32_t idx,
[all …]
/art/libdexfile/dex/
Ddex_file-inl.h63 inline const char* DexFile::StringDataAndUtf16LengthByIdx(dex::StringIndex idx, in StringDataAndUtf16LengthByIdx() argument
65 if (!idx.IsValid()) { in StringDataAndUtf16LengthByIdx()
69 const dex::StringId& string_id = GetStringId(idx); in StringDataAndUtf16LengthByIdx()
74 inline const char* DexFile::StringDataByIdx(dex::StringIndex idx) const { in StringDataByIdx() argument
76 return StringDataAndUtf16LengthByIdx(idx, &unicode_length); in StringDataByIdx()
80 inline std::string_view DexFile::StringViewByIdx(dex::StringIndex idx) const { in StringViewByIdx() argument
82 const char* data = StringDataAndUtf16LengthByIdx(idx, &unicode_length); in StringViewByIdx()
86 inline const char* DexFile::StringByTypeIdx(dex::TypeIndex idx, uint32_t* unicode_length) const { in StringByTypeIdx() argument
87 if (!idx.IsValid()) { in StringByTypeIdx()
90 const dex::TypeId& type_id = GetTypeId(idx); in StringByTypeIdx()
[all …]
Ddex_file.h281 const dex::StringId& GetStringId(dex::StringIndex idx) const { in GetStringId() argument
282 DCHECK_LT(idx.index_, NumStringIds()) << GetLocation(); in GetStringId()
283 return string_ids_[idx.index_]; in GetStringId()
303 const char* StringDataAndUtf16LengthByIdx(dex::StringIndex idx, uint32_t* utf16_length) const;
305 const char* StringDataByIdx(dex::StringIndex idx) const;
306 std::string_view StringViewByIdx(dex::StringIndex idx) const;
322 bool IsTypeIndexValid(dex::TypeIndex idx) const { in IsTypeIndexValid() argument
323 return idx.IsValid() && idx.index_ < NumTypeIds(); in IsTypeIndexValid()
327 const dex::TypeId& GetTypeId(dex::TypeIndex idx) const { in GetTypeId() argument
328 DCHECK_LT(idx.index_, NumTypeIds()) << GetLocation(); in GetTypeId()
[all …]
Dart_dex_file_loader.cc77 uint32_t idx = 0; in GetMultiDexChecksums() local
78 std::string zip_entry_name = GetMultiDexClassesDexName(idx); in GetMultiDexChecksums()
97 dex_locations->push_back(GetMultiDexLocation(idx, filename)); in GetMultiDexChecksums()
98 zip_entry_name = GetMultiDexClassesDexName(++idx); in GetMultiDexChecksums()
/art/test/596-app-images/
Dapp_images.cc44 size_t idx = loc_name.rfind('/'); in check_name() local
45 if (idx != std::string::npos) { in check_name()
46 loc_name = loc_name.substr(idx + 1); in check_name()
48 idx = loc_name.rfind('.'); in check_name()
49 if (idx != std::string::npos) { in check_name()
50 loc_name = loc_name.substr(0, idx); in check_name()
/art/runtime/verifier/
Dregister_line.cc427 for (size_t idx = 0; idx < num_regs_; idx++) { in MergeRegisters() local
428 if (line_[idx] != incoming_line->line_[idx]) { in MergeRegisters()
429 const RegType& incoming_reg_type = incoming_line->GetRegisterType(verifier, idx); in MergeRegisters()
430 const RegType& cur_type = GetRegisterType(verifier, idx); in MergeRegisters()
434 line_[idx] = new_type.GetId(); in MergeRegisters()
446 for (uint32_t idx = 0; idx < num_regs_; idx++) { in MergeRegisters() local
447 size_t depths = reg_to_lock_depths_.count(idx); in MergeRegisters()
448 size_t incoming_depths = incoming_line->reg_to_lock_depths_.count(idx); in MergeRegisters()
467 if (!FindLockAliasedRegister(idx, in MergeRegisters()
470 !FindLockAliasedRegister(idx, in MergeRegisters()
[all …]
/art/dexlist/
Ddexlist.cc87 const char* fileName, u4 idx, u4 flags ATTRIBUTE_UNUSED, in dumpMethod() argument
93 CodeItemDebugInfoAccessor accessor(*pDexFile, pCode, idx); in dumpMethod()
96 const dex::MethodId& pMethodId = pDexFile->GetMethodId(idx); in dumpMethod()
137 void dumpClass(const DexFile* pDexFile, u4 idx) { in dumpClass() argument
138 const dex::ClassDef& class_def = pDexFile->GetClassDef(idx); in dumpClass()
186 for (u4 idx = 0; idx < classDefsSize; idx++) { in processFile() local
187 dumpClass(pDexFile, idx); in processFile()
/art/test/2045-uffd-kernelfault/src/
DMain.java27 int idx = 0; in main() local
36 array[idx++] = new byte[3000]; in main()
37 idx %= array.length; in main()
/art/runtime/mirror/
Diftable-inl.h39 const size_t idx = i * kMax + kInterface; in SetInterface() local
40 DCHECK(Get(idx) == nullptr); in SetInterface()
41 SetWithoutChecks<false>(idx, interface); in SetInterface()
69 auto idx = i * kMax + kMethodArray; in SetMethodArray() local
70 Set<false>(idx, arr); in SetMethodArray()
Darray-inl.h233 inline T PointerArray::GetElementPtrSize(uint32_t idx) { in GetElementPtrSize() argument
239 return GetElementPtrSizeUnchecked<T, kPointerSize, kVerifyFlags>(idx); in GetElementPtrSize()
243 inline T PointerArray::GetElementPtrSizeUnchecked(uint32_t idx) { in GetElementPtrSizeUnchecked() argument
252 static_cast<uint64_t>(reinterpret_cast<LongArray*>(this)->GetWithoutChecks(idx)); in GetElementPtrSizeUnchecked()
256 static_cast<uint32_t>(reinterpret_cast<IntArray*>(this)->GetWithoutChecks(idx)); in GetElementPtrSizeUnchecked()
262 inline T PointerArray::GetElementPtrSize(uint32_t idx, PointerSize ptr_size) { in GetElementPtrSize() argument
264 return GetElementPtrSize<T, PointerSize::k64, kVerifyFlags>(idx); in GetElementPtrSize()
266 return GetElementPtrSize<T, PointerSize::k32, kVerifyFlags>(idx); in GetElementPtrSize()
270 inline void PointerArray::SetElementPtrSize(uint32_t idx, uint64_t element, PointerSize ptr_size) { in SetElementPtrSize() argument
276 SetWithoutChecks<kTransactionActive, kCheckTransaction>(idx, element); in SetElementPtrSize()
[all …]
/art/compiler/optimizing/
Dload_store_elimination.cc623 bool IsPartialNoEscape(HBasicBlock* blk, size_t idx) { in IsPartialNoEscape() argument
624 auto* ri = heap_location_collector_.GetHeapLocation(idx)->GetReferenceInfo(); in IsPartialNoEscape()
649 PhiPlaceholder GetPhiPlaceholder(uint32_t block_id, size_t idx) const { in GetPhiPlaceholder()
651 return PhiPlaceholder(block_id, idx); in GetPhiPlaceholder()
909 Value PrepareLoopValue(HBasicBlock* block, size_t idx);
910 Value PrepareLoopStoredBy(HBasicBlock* block, size_t idx);
912 Value MergePredecessorValues(HBasicBlock* block, size_t idx);
917 void VisitGetLocation(HInstruction* instruction, size_t idx);
918 void VisitSetLocation(HInstruction* instruction, size_t idx, HInstruction* value);
1037 size_t idx = heap_location_collector_.GetFieldHeapLocation(object, &field); in VisitInstanceFieldSet() local
[all …]
/art/tools/dexfuzz/src/dexfuzz/program/
DMutatableCode.java138 public MInsn getInstructionAt(int idx) { in getInstructionAt() argument
139 return mutatableInsns.get(idx); in getInstructionAt()
206 int idx = 0; in updateTryBlocksWithReplacementInsn() local
209 matchesIndicesToChange.add(idx); in updateTryBlocksWithReplacementInsn()
212 replacementIndicesToChange.add(idx); in updateTryBlocksWithReplacementInsn()
215 idx++; in updateTryBlocksWithReplacementInsn()
264 int idx = 0; in deleteInstructionFull() local
267 indicesToChange.add(idx); in deleteInstructionFull()
268 Log.debug(switchInsn + "[" + idx in deleteInstructionFull()
271 idx++; in deleteInstructionFull()
/art/tools/dexfuzz/src/dexfuzz/rawdex/
DOffsetTracker.java310 int idx = 0; in addTypeListsToMapFile() local
315 idx++; in addTypeListsToMapFile()
318 rawDexFile.mapList.mapItems.add(idx, typeListMapItem); in addTypeListsToMapFile()
336 int idx = 0; in addFieldIdsToHeaderAndMapFile() local
341 idx++; in addFieldIdsToHeaderAndMapFile()
344 rawDexFile.mapList.mapItems.add(idx, fieldMapItem); in addFieldIdsToHeaderAndMapFile()
397 private void insertOffsettableAt(int idx, Offsettable offsettable) { in insertOffsettableAt() argument
398 offsettableTable.add(idx, offsettable); in insertOffsettableAt()
399 if (indexAfterMapList > idx) { in insertOffsettableAt()
402 if (restorePoint > idx) { in insertOffsettableAt()
/art/test/074-gc-thrash/src/
DMain.java167 int idx = 0; in run() local
170 strings[idx] = makeString(idx); in run()
172 if (idx % (ARRAY_SIZE / 4) == 0) { in run()
177 idx = (idx + 1) % ARRAY_SIZE; in run()

12345