Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 785) sorted by relevance

12345678910>>...32

/hardware/google/pixel/misc_writer/
Dmisc_writer.cpp31 bool MiscWriter::OffsetAndSizeInVendorSpace(size_t offset, size_t size) { in OffsetAndSizeInVendorSpace() argument
33 return size <= total_size && offset <= total_size - size; in OffsetAndSizeInVendorSpace()
36 bool MiscWriter::WriteMiscPartitionVendorSpace(const void* data, size_t size, size_t offset, in WriteMiscPartitionVendorSpace() argument
38 if (!OffsetAndSizeInVendorSpace(offset, size)) { in WriteMiscPartitionVendorSpace()
39 *err = android::base::StringPrintf("Out of bound write (offset %zu size %zu)", offset, size); in WriteMiscPartitionVendorSpace()
46 return write_misc_partition(data, size, misc_blk_device, VENDOR_SPACE_OFFSET_IN_MISC + offset, in WriteMiscPartitionVendorSpace()
51 size_t offset = 0; in PerformAction() local
56 offset = override_offset.value_or(kThemeFlagOffsetInVendorSpace); in PerformAction()
63 offset = override_offset.value_or(kSotaFlagOffsetInVendorSpace); in PerformAction()
73 !WriteMiscPartitionVendorSpace(content.data(), content.size(), offset, &err)) { in PerformAction()
[all …]
Dmisc_writer_test.cpp45 void CheckMiscPartitionVendorSpaceContent(size_t offset, const std::string& expected);
50 void MiscWriterTest::CheckMiscPartitionVendorSpaceContent(size_t offset, in CheckMiscPartitionVendorSpaceContent() argument
52 ASSERT_TRUE(MiscWriter::OffsetAndSizeInVendorSpace(offset, expected.size())); in CheckMiscPartitionVendorSpaceContent()
61 VENDOR_SPACE_OFFSET_IN_MISC + offset)); in CheckMiscPartitionVendorSpaceContent()
80 size_t offset = 12360; in TEST_F() local
81 ASSERT_TRUE(misc_writer_->PerformAction(offset)); in TEST_F()
83 CheckMiscPartitionVendorSpaceContent(offset, expected); in TEST_F()
86 ASSERT_TRUE(misc_writer_->PerformAction(offset)); in TEST_F()
88 CheckMiscPartitionVendorSpaceContent(offset, zeros); in TEST_F()
/hardware/nxp/secure_element/ls_client/src/
DLsLib.cpp434 uint8_t len_byte, offset; in LSC_loadapplet() local
437 offset = 0; in LSC_loadapplet()
450 if (temp_buf[offset] == TAG_LSC_CMD_ID) { in LSC_loadapplet()
452 offset = offset + 1; in LSC_loadapplet()
453 len_byte = Numof_lengthbytes(&temp_buf[offset], &wLen); in LSC_loadapplet()
461 offset = offset + len_byte; in LSC_loadapplet()
463 memcpy(pTranscv_Info->sSendData, &temp_buf[offset], wLen); in LSC_loadapplet()
479 } else if ((temp_buf[offset] == (0x7F)) && in LSC_loadapplet()
480 (temp_buf[offset + 1] == (0x21))) { in LSC_loadapplet()
498 offset = offset + 2; in LSC_loadapplet()
[all …]
/hardware/qcom/display/msm8226/libgralloc/
Dmemalloc.h46 unsigned int offset; member
65 unsigned int offset, int fd) = 0;
69 unsigned int offset, int fd) = 0;
73 unsigned int offset) = 0;
77 unsigned int offset, int fd, int op) = 0;
Dionalloc.h45 unsigned int offset, int fd);
48 unsigned int offset, int fd);
51 unsigned int offset);
54 unsigned int offset, int fd, int op);
/hardware/qcom/display/msm8994/libgralloc/
Dmemalloc.h46 unsigned int offset; member
65 unsigned int offset, int fd) = 0;
69 unsigned int offset, int fd) = 0;
73 unsigned int offset) = 0;
77 unsigned int offset, int fd, int op) = 0;
Dionalloc.h45 unsigned int offset, int fd);
48 unsigned int offset, int fd);
51 unsigned int offset);
54 unsigned int offset, int fd, int op);
/hardware/qcom/display/msm8909/libgralloc/
Dmemalloc.h46 unsigned int offset; member
66 unsigned int offset, int fd) = 0;
70 unsigned int offset, int fd) = 0;
74 unsigned int offset) = 0;
78 unsigned int offset, int fd, int op) = 0;
Dionalloc.h45 unsigned int offset, int fd);
48 unsigned int offset, int fd);
51 unsigned int offset);
54 unsigned int offset, int fd, int op);
/hardware/qcom/display/msm8996/libgralloc/
Dmemalloc.h46 unsigned int offset; member
66 unsigned int offset, int fd) = 0;
70 unsigned int offset, int fd) = 0;
74 unsigned int offset) = 0;
78 unsigned int offset, int fd, int op) = 0;
Dionalloc.h45 unsigned int offset, int fd);
48 unsigned int offset, int fd);
51 unsigned int offset);
54 unsigned int offset, int fd, int op);
/hardware/qcom/display/msm8909w_3100/libgralloc/
Dmemalloc.h46 unsigned int offset; member
66 unsigned int offset, int fd) = 0;
70 unsigned int offset, int fd) = 0;
74 unsigned int offset) = 0;
78 unsigned int offset, int fd, int op) = 0;
Dionalloc.h45 unsigned int offset, int fd);
48 unsigned int offset, int fd);
51 unsigned int offset);
54 unsigned int offset, int fd, int op);
/hardware/qcom/display/msm8960/libgralloc/
Dmemalloc.h46 int offset; member
65 int offset, int fd) = 0;
69 int offset, int fd) = 0;
73 int offset) = 0;
77 int offset, int fd, int op) = 0;
Dionalloc.h45 int offset, int fd);
48 int offset, int fd);
51 int offset);
54 int offset, int fd, int op);
/hardware/qcom/display/msm8909/gralloc/
Dgr_ion_alloc.h49 unsigned int offset = 0; member
67 int FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, int ion_handle);
68 int MapBuffer(void **base, unsigned int size, unsigned int offset, int fd);
70 int UnmapBuffer(void *base, unsigned int size, unsigned int offset);
71 int CleanBuffer(void *base, unsigned int size, unsigned int offset, int handle, int op);
/hardware/qcom/display/msm8084/libgralloc/
Dmemalloc.h46 size_t offset; member
65 size_t offset, int fd) = 0;
69 size_t offset, int fd) = 0;
73 size_t offset) = 0;
77 size_t offset, int fd, int op) = 0;
/hardware/qcom/display/msm8998/libgralloc1/
Dgr_ion_alloc.h49 unsigned int offset = 0; member
67 int FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, int ion_handle);
68 int MapBuffer(void **base, unsigned int size, unsigned int offset, int fd);
70 int UnmapBuffer(void *base, unsigned int size, unsigned int offset);
71 int CleanBuffer(void *base, unsigned int size, unsigned int offset, int handle, int op);
/hardware/qcom/display/msm8909w_3100/libgralloc1/
Dgr_ion_alloc.h49 unsigned int offset = 0; member
67 int FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, int ion_handle);
68 int MapBuffer(void **base, unsigned int size, unsigned int offset, int fd);
70 int UnmapBuffer(void *base, unsigned int size, unsigned int offset);
71 int CleanBuffer(void *base, unsigned int size, unsigned int offset, int handle, int op);
/hardware/qcom/display/msm8996/libgralloc1/
Dgr_ion_alloc.h49 unsigned int offset = 0; member
67 int FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, int ion_handle);
68 int MapBuffer(void **base, unsigned int size, unsigned int offset, int fd);
70 int UnmapBuffer(void *base, unsigned int size, unsigned int offset);
71 int CleanBuffer(void *base, unsigned int size, unsigned int offset, int handle, int op);
/hardware/qcom/sdm845/display/gralloc/
Dgr_ion_alloc.h49 unsigned int offset = 0; member
67 int FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, int ion_handle);
68 int MapBuffer(void **base, unsigned int size, unsigned int offset, int fd);
70 int UnmapBuffer(void *base, unsigned int size, unsigned int offset);
71 int CleanBuffer(void *base, unsigned int size, unsigned int offset, int handle, int op);
/hardware/qcom/sm8150/display/gralloc/
Dgr_ion_alloc.h50 unsigned int offset = 0; member
68 int FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, int ion_handle);
69 int MapBuffer(void **base, unsigned int size, unsigned int offset, int fd);
71 int UnmapBuffer(void *base, unsigned int size, unsigned int offset);
72 int CleanBuffer(void *base, unsigned int size, unsigned int offset, int handle, int op, int fd);
/hardware/interfaces/sensors/common/vts/utils/
DSensorsTestSharedMemory.cpp42 std::vector<Event> SensorsTestSharedMemory::parseEvents(int64_t lastCounter, size_t offset) const { in parseEvents()
55 while (offset + kEventSize <= mSize) { in parseEvents()
57 *reinterpret_cast<uint32_t*>(mBuffer + offset + kOffsetAtomicCounter); in parseEvents()
64 int32_t size = *reinterpret_cast<int32_t*>(mBuffer + offset + kOffsetSize); in parseEvents()
71 int32_t token = *reinterpret_cast<int32_t*>(mBuffer + offset + kOffsetToken); in parseEvents()
72 int32_t type = *reinterpret_cast<int32_t*>(mBuffer + offset + kOffsetType); in parseEvents()
73 int64_t timestamp = *reinterpret_cast<int64_t*>(mBuffer + offset + kOffsetTimestamp); in parseEvents()
77 offset, atomicCounter, token, type, timestamp); in parseEvents()
85 reinterpret_cast<float*>(mBuffer + offset + kOffsetData)); in parseEvents()
90 offset += kEventSize; in parseEvents()
/hardware/google/av/codec2/include/
DC2Buffer.h251 uint32_t offset; member
255 : offset(offset_), in C2Segment()
264 return offset <= ~size; in isValid()
280 return offset <= other.offset in contains()
281 && offset + size >= other.offset + other.size; in contains()
289 return offset == other.offset && size == other.size;
315 return offset + size; in end()
320 return C2Segment(c2_max(offset, other.offset), in intersect()
321 c2_min(end(), other.end()) - c2_max(offset, other.offset)); in intersect()
326 return C2Segment(offset, c2_max(offset, end()) - offset); in normalize()
[all …]
/hardware/google/av/media/sfplugin/
DReflectedParamUpdater.cpp145 size_t offset, in addParamStructDesc() argument
161 addParamStructDesc(desc, fieldName, offset + _C2ParamInspector::GetOffset(*it), in addParamStructDesc()
198 offset, in addParamStructDesc()
313 size_t offset = 0; in updateParamsFromMessage() local
320 offset = sizeof(C2Param) + desc.offset in updateParamsFromMessage()
327 if (param->get()->size() < offset + size) { in updateParamsFromMessage()
328 if (size > INT32_MAX - offset || offset < minOffset) { in updateParamsFromMessage()
332 C2Param *newParam = (C2Param *)::operator new(offset + size); in updateParamsFromMessage()
333 new (newParam) _C2Param(offset + size, param->get()->index()); in updateParamsFromMessage()
334 if (offset > sizeof(C2Param)) { in updateParamsFromMessage()
[all …]

12345678910>>...32