Home
last modified time | relevance | path

Searched refs:old_offset (Results 1 – 7 of 7) sorted by relevance

/aosp12/art/runtime/
H A Dtrace.cc846 int32_t old_offset = cur_offset_.load(std::memory_order_relaxed); in WriteToBuf() local
847 int32_t new_offset = old_offset + static_cast<int32_t>(src_size); in WriteToBuf()
850 if (!trace_file_->WriteFully(buf_.get(), old_offset)) { in WriteToBuf()
863 old_offset = 0; in WriteToBuf()
868 memcpy(buf_.get() + old_offset, src, src_size); in WriteToBuf()
894 int32_t old_offset = 0; in LogMethodTraceEvent() local
904 old_offset = cur_offset_.load(std::memory_order_relaxed); // Speculative read in LogMethodTraceEvent()
906 new_offset = old_offset + GetRecordSize(clock_source_); in LogMethodTraceEvent()
911 } while (!cur_offset_.compare_exchange_weak(old_offset, new_offset, std::memory_order_relaxed)); in LogMethodTraceEvent()
945 ptr = buf_.get() + old_offset; in LogMethodTraceEvent()
/aosp12/bootable/recovery/otautil/
H A Drangeset.cpp296 size_t SortedRangeSet::GetOffsetInRangeSet(size_t old_offset) const { in GetOffsetInRangeSet()
297 size_t old_block_start = old_offset / kBlockSize; in GetOffsetInRangeSet()
305 return (new_block_start * kBlockSize + old_offset % kBlockSize); in GetOffsetInRangeSet()
/aosp12/system/core/fastboot/
H A Dvendor_boot_img_utils.cpp92 [[nodiscard]] Result<void> CheckOffset(uint32_t old_offset, uint32_t new_offset) { in CheckOffset() argument
93 if (old_begin() + old_offset != old_cur()) in CheckOffset()
94 return Errorf("Old offset mismatch: expected: 0x{:x}, actual: 0x{:x}", old_offset, in CheckOffset()
/aosp12/bootable/recovery/otautil/include/otautil/
H A Drangeset.h176 size_t GetOffsetInRangeSet(size_t old_offset) const;
/aosp12/frameworks/av/media/libstagefright/
H A DMPEG4Writer.cpp1565 off64_t old_offset = mOffset; in addSample_l() local
1569 ALOGV("offset:%lld, old_offset:%lld", (long long)offset, (long long)old_offset); in addSample_l()
1570 if (old_offset == offset) { in addSample_l()
1573 ALOGV("offset and old_offset are not equal! diff:%lld", (long long)offset - old_offset); in addSample_l()
1601 *bytesWritten = mOffset - old_offset; in addSample_l()
1604 (long long)old_offset, (long long)*bytesWritten); in addSample_l()
1606 return old_offset; in addSample_l()
/aosp12/art/compiler/optimizing/
H A Dcode_generator_arm_vixl.cc8834 ptrdiff_t old_offset = GetVIXLAssembler()->GetBuffer()->GetCursorOffset(); in GenerateGcRootFieldLoad() local
8838 DCHECK_EQ(old_offset - GetVIXLAssembler()->GetBuffer()->GetCursorOffset(), in GenerateGcRootFieldLoad()
8881 ptrdiff_t old_offset = GetVIXLAssembler()->GetBuffer()->GetCursorOffset(); in GenerateIntrinsicCasMoveWithBakerReadBarrier() local
8885 DCHECK_EQ(old_offset - GetVIXLAssembler()->GetBuffer()->GetCursorOffset(), in GenerateIntrinsicCasMoveWithBakerReadBarrier()
8943 ptrdiff_t old_offset = GetVIXLAssembler()->GetBuffer()->GetCursorOffset(); in GenerateFieldLoadWithBakerReadBarrier() local
8958 DCHECK_EQ(old_offset - GetVIXLAssembler()->GetBuffer()->GetCursorOffset(), in GenerateFieldLoadWithBakerReadBarrier()
9039 ptrdiff_t old_offset = GetVIXLAssembler()->GetBuffer()->GetCursorOffset(); in GenerateArrayLoadWithBakerReadBarrier() local
9047 DCHECK_EQ(old_offset - GetVIXLAssembler()->GetBuffer()->GetCursorOffset(), in GenerateArrayLoadWithBakerReadBarrier()
/aosp12/art/dex2oat/linker/
H A Doat_writer.cc2270 size_t old_offset = offset; in InitOatCode() local
2274 size_executable_offset_alignment_ = offset - old_offset; in InitOatCode()