Home
last modified time | relevance | path

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

1234

/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.cc123 uint32_t idx; in Intersect() local
124 for (idx = 0; idx < min_size; idx++) { in Intersect()
125 storage_[idx] &= src->GetRawStorageWord(idx); in Intersect()
132 for (; idx < storage_size_; idx++) { in Intersect()
133 storage_[idx] = 0; in Intersect()
160 for (uint32_t idx = 0; idx < src_size; idx++) { in Union() local
161 uint32_t existing = storage_[idx]; in Union()
162 uint32_t update = existing | src->GetRawStorageWord(idx); in Union()
165 storage_[idx] = update; in Union()
194 uint32_t idx = 0; in UnionIfNotIn() local
[all …]
Dbit_vector.h149 void SetBit(uint32_t idx) { in SetBit() argument
154 if (idx >= storage_size_ * kWordBits) { in SetBit()
155 EnsureSize(idx); in SetBit()
157 storage_[WordIndex(idx)] |= BitMask(idx); in SetBit()
161 void ClearBit(uint32_t idx) { in ClearBit() argument
163 if (idx < storage_size_ * kWordBits) { in ClearBit()
165 storage_[WordIndex(idx)] &= ~BitMask(idx); in ClearBit()
170 bool IsBitSet(uint32_t idx) const { in IsBitSet() argument
173 return (idx < (storage_size_ * kWordBits)) && IsBitSet(storage_, idx); in IsBitSet()
225 uint32_t GetRawStorageWord(size_t idx) const { in GetRawStorageWord() argument
[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 …]
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()
545 RosAlloc::Run* RosAlloc::AllocRun(Thread* self, size_t idx) { in AllocRun() argument
549 new_run = reinterpret_cast<Run*>(AllocPages(self, numOfPages[idx], kPageMapRun)); in AllocRun()
555 new_run->size_bracket_idx_ = idx; in AllocRun()
558 if (kUsePrefetchDuringAllocRun && idx < kNumThreadLocalSizeBrackets) { in AllocRun()
565 const size_t num_of_slots = numOfSlots[idx]; in AllocRun()
566 const size_t bracket_size = bracketSizes[idx]; in AllocRun()
[all …]
Drosalloc.h370 const uint8_t idx = size_bracket_idx_; in FirstSlot() local
371 return reinterpret_cast<Slot*>(reinterpret_cast<uintptr_t>(this) + headerSizes[idx]); in FirstSlot()
374 const uint8_t idx = size_bracket_idx_; in LastSlot() local
375 const size_t bracket_size = bracketSizes[idx]; in LastSlot()
401 const uint8_t idx = size_bracket_idx_; in InitFreeList() local
402 const size_t bracket_size = bracketSizes[idx]; in InitFreeList()
467 const uint8_t idx = size_bracket_idx_; in ToSlot() local
468 const size_t bracket_size = bracketSizes[idx]; in ToSlot()
473 DCHECK_LT(slot_idx, numOfSlots[idx]); in ToSlot()
477 const uint8_t idx = size_bracket_idx_; in SlotIndex() local
[all …]
/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/compiler/optimizing/
Dload_store_elimination.cc550 PhiPlaceholder GetPhiPlaceholder(uint32_t block_id, size_t idx) const { in GetPhiPlaceholder()
552 return PhiPlaceholder(block_id, idx); in GetPhiPlaceholder()
771 Value PrepareLoopValue(HBasicBlock* block, size_t idx);
772 Value PrepareLoopStoredBy(HBasicBlock* block, size_t idx);
774 Value MergePredecessorValues(HBasicBlock* block, size_t idx);
779 void VisitGetLocation(HInstruction* instruction, size_t idx);
780 void VisitSetLocation(HInstruction* instruction, size_t idx, HInstruction* value);
893 size_t idx = heap_location_collector_.GetFieldHeapLocation(object, &field); in VisitInstanceFieldSet() local
894 VisitSetLocation(instruction, idx, value); in VisitInstanceFieldSet()
917 size_t idx = heap_location_collector_.GetFieldHeapLocation(cls, &field); in VisitStaticFieldSet() local
[all …]
/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.cc88 u4 idx, in dumpMethod() argument
96 CodeItemDebugInfoAccessor accessor(*pDexFile, pCode, idx); in dumpMethod()
99 const dex::MethodId& pMethodId = pDexFile->GetMethodId(idx); in dumpMethod()
140 void dumpClass(const DexFile* pDexFile, u4 idx) { in dumpClass() argument
141 const dex::ClassDef& class_def = pDexFile->GetClassDef(idx); in dumpClass()
189 for (u4 idx = 0; idx < classDefsSize; idx++) { in processFile() local
190 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.h234 inline T PointerArray::GetElementPtrSize(uint32_t idx) { in GetElementPtrSize() argument
240 return GetElementPtrSizeUnchecked<T, kPointerSize, kVerifyFlags>(idx); in GetElementPtrSize()
244 inline T PointerArray::GetElementPtrSizeUnchecked(uint32_t idx) { in GetElementPtrSizeUnchecked() argument
253 static_cast<uint64_t>(reinterpret_cast<LongArray*>(this)->GetWithoutChecks(idx)); in GetElementPtrSizeUnchecked()
257 static_cast<uint32_t>(reinterpret_cast<IntArray*>(this)->GetWithoutChecks(idx)); in GetElementPtrSizeUnchecked()
263 inline T PointerArray::GetElementPtrSize(uint32_t idx, PointerSize ptr_size) { in GetElementPtrSize() argument
265 return GetElementPtrSize<T, PointerSize::k64, kVerifyFlags>(idx); in GetElementPtrSize()
267 return GetElementPtrSize<T, PointerSize::k32, kVerifyFlags>(idx); in GetElementPtrSize()
271 inline void PointerArray::SetElementPtrSize(uint32_t idx, uint64_t element, PointerSize ptr_size) { in SetElementPtrSize() argument
277 SetWithoutChecks<kTransactionActive, kCheckTransaction>(idx, element); in SetElementPtrSize()
[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/libdexfile/dex/
Ddex_file.h332 const dex::StringId& GetStringId(dex::StringIndex idx) const { in GetStringId() argument
333 DCHECK_LT(idx.index_, NumStringIds()) << GetLocation(); in GetStringId()
334 return string_ids_[idx.index_]; in GetStringId()
368 bool IsTypeIndexValid(dex::TypeIndex idx) const { in IsTypeIndexValid() argument
369 return idx.IsValid() && idx.index_ < NumTypeIds(); in IsTypeIndexValid()
373 const dex::TypeId& GetTypeId(dex::TypeIndex idx) const { in GetTypeId() argument
374 DCHECK_LT(idx.index_, NumTypeIds()) << GetLocation(); in GetTypeId()
375 return type_ids_[idx.index_]; in GetTypeId()
404 const dex::FieldId& GetFieldId(uint32_t idx) const { in GetFieldId() argument
405 DCHECK_LT(idx, NumFieldIds()) << GetLocation(); in GetFieldId()
[all …]
Ddex_file_verifier.cc204 std::string GetFieldDescription(uint32_t idx) { in GetFieldDescription() argument
206 CHECK_LT(idx, header_->field_ids_size_); in GetFieldDescription()
208 const dex::FieldId& field_id = OffsetToPtr<dex::FieldId>(header_->field_ids_off_)[idx]; in GetFieldDescription()
216 std::string GetMethodDescription(uint32_t idx) { in GetMethodDescription() argument
218 CHECK_LT(idx, header_->method_ids_size_); in GetMethodDescription()
220 const dex::MethodId& method_id = OffsetToPtr<dex::MethodId>(header_->method_ids_off_)[idx]; in GetMethodDescription()
270 bool CheckClassDataItemField(uint32_t idx,
274 bool CheckClassDataItemMethod(uint32_t idx,
377 bool CheckFieldAccessFlags(uint32_t idx,
398 bool VerifyTypeDescriptor(dex::TypeIndex idx, const char* error_msg, ExtraCheckFn extra_check);
[all …]
/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()
/art/test/1971-multi-force-early-return/src/art/
DTest1971.java108 final int idx = i; in run() local
115 results[idx] = s; in run()
150 final int idx = i; in run() local
156 if (idx % 5 != 0) { in run()
/art/runtime/base/
Dtiming_logger.h137 uint64_t GetTotalTime(size_t idx) { in GetTotalTime() argument
138 return data_[idx].total_time; in GetTotalTime()
140 uint64_t GetExclusiveTime(size_t idx) { in GetExclusiveTime() argument
141 return data_[idx].exclusive_time; in GetExclusiveTime()

1234