/hardware/libhardware/modules/sensors/dynamic_sensor/ |
D | RingBuffer.cpp | 24 RingBuffer::RingBuffer(size_t size) in RingBuffer() argument 25 : mSize(size), in RingBuffer() 36 ssize_t RingBuffer::write(const sensors_event_t *ev, size_t size) { in write() argument 42 if (size > numAvailableToWrite) { in write() 43 size = numAvailableToWrite; in write() 49 if (copy > size) { in write() 50 copy = size; in write() 55 if (size > copy) { in write() 56 memcpy(mData, &ev[copy], (size - copy) * sizeof(sensors_event_t)); in write() 59 mWritePos += size; in write() [all …]
|
D | HidRawDevice.cpp | 73 if (reportIdSet.size() > 1) { in HidRawDevice() 151 reportDescriptor.size = descriptorSize; in populateDeviceInfo() 175 return mDigestVector.size() > 0; in generateDigest() 197 size_t size = packet->getByteSize() + 1; // report id size in getFeature() local 200 if (mIoBuffer.size() < size) { in getFeature() 201 mIoBuffer.resize(size); in getFeature() 204 int res = ::ioctl(mDevFd, HIDIOCGFEATURE(size), mIoBuffer.data()); in getFeature() 211 if (static_cast<size_t>(res) != size) { in getFeature() 213 << " returned " << res << " bytes, does not match expected " << size << LOG_ENDL; in getFeature() 220 out->resize(size - 1); in getFeature() [all …]
|
/hardware/qcom/camera/msm8998/QCamera2/util/ |
D | camscope_packet_type.cpp | 231 uint32_t size) { in fill_camscope_base() argument 233 scope_struct->size = size; in fill_camscope_base() 253 uint32_t packet_type, uint32_t size, in fill_camscope_sw_base() argument 256 fill_camscope_base(&(scope_struct->base), packet_type, size); in fill_camscope_sw_base() 280 uint32_t size, struct timeval timestamp, in fill_camscope_timing() argument 283 fill_camscope_sw_base(&(scope_struct->sw_base), packet_type, size, in fill_camscope_timing() 309 uint32_t packet_type, uint32_t size, in fill_camscope_in_out_timing() argument 315 fill_camscope_sw_base(&(scope_struct->sw_base), packet_type, size, in fill_camscope_in_out_timing() 343 uint32_t size = sizeof(scope_struct); in camscope_base_log() local 345 camscope_reserve((camscope_section_type)camscope_section, size); in camscope_base_log() [all …]
|
/hardware/interfaces/thermal/1.0/default/ |
D | Thermal.cpp | 59 ssize_t size = mModule->getTemperatures(mModule, nullptr, 0); in getTemperatures() local 60 if (size >= 0) { in getTemperatures() 62 list.resize(size); in getTemperatures() 63 size = mModule->getTemperatures(mModule, list.data(), list.size()); in getTemperatures() 64 if (size >= 0) { in getTemperatures() 65 temperatures.resize(list.size()); in getTemperatures() 66 for (size_t i = 0; i < list.size(); ++i) { in getTemperatures() 96 if (size < 0) { in getTemperatures() 98 status.debugMessage = strerror(-size); in getTemperatures() 115 ssize_t size = mModule->getCpuUsages(mModule, nullptr); in getCpuUsages() local [all …]
|
/hardware/qcom/msm8998/json-c/ |
D | printbuf.c | 39 p->size = 32; in printbuf_new() 41 if(!(p->buf = (char*)malloc(p->size))) { in printbuf_new() 62 if (p->size >= min_size) in printbuf_extend() 65 new_size = p->size * 2; in printbuf_extend() 71 p->bpos, min_size, p->size, new_size); in printbuf_extend() 75 p->size = new_size; in printbuf_extend() 80 int printbuf_memappend(struct printbuf *p, const char *buf, int size) in printbuf_memappend() argument 82 if (p->size <= p->bpos + size + 1) { in printbuf_memappend() 83 if (printbuf_extend(p, p->bpos + size + 1) < 0) in printbuf_memappend() 86 memcpy(p->buf + p->bpos, buf, size); in printbuf_memappend() [all …]
|
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/ |
D | storage_manager.c | 38 long size; member 71 … inv_error_t (*save_func)(unsigned char *data), size_t size, unsigned int key) in inv_register_load_store() argument 86 ds.hd[ds.num].size = size; in inv_register_load_store() 89 ds.total_size += size + sizeof(struct data_header_t); in inv_register_load_store() 99 inv_error_t inv_get_mpl_state_size(size_t *size) in inv_get_mpl_state_size() argument 101 *size = ds.total_size; in inv_get_mpl_state_size() 141 len = MIN(hd->size, len); in inv_load_mpl_states() 142 len = hd->size; in inv_load_mpl_states() 154 if (entry >= 0 && len >= hd->size) { in inv_load_mpl_states() 155 if (hd->size != ds.hd[entry].size) in inv_load_mpl_states() [all …]
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/ |
D | storage_manager.c | 38 long size; member 71 … inv_error_t (*save_func)(unsigned char *data), size_t size, unsigned int key) in inv_register_load_store() argument 86 ds.hd[ds.num].size = size; in inv_register_load_store() 89 ds.total_size += size + sizeof(struct data_header_t); in inv_register_load_store() 99 inv_error_t inv_get_mpl_state_size(size_t *size) in inv_get_mpl_state_size() argument 101 *size = ds.total_size; in inv_get_mpl_state_size() 141 len = MIN(hd->size, len); in inv_load_mpl_states() 142 len = hd->size; in inv_load_mpl_states() 154 if (entry >= 0 && len >= hd->size) { in inv_load_mpl_states() 155 if (hd->size != ds.hd[entry].size) in inv_load_mpl_states() [all …]
|
/hardware/interfaces/confirmationui/support/include/android/hardware/confirmationui/support/ |
D | cbor.h | 71 constexpr size_t size() const { return sizeof...(Tail) + 1; }; 84 StringBuffer(const T* data, size_t size) : data_(data), size_(size) { 88 size_t size() const { return size_; } 96 template <size_t size> 97 StringBuffer<char, TextStr> text(const char (&str)[size]) { 98 if (size > 0) return StringBuffer<char, TextStr>(str, size - 1); 99 return StringBuffer<char, TextStr>(str, size); 105 template <size_t size> 106 StringBuffer<char, TextStr> text_keep_last(const char (&str)[size]) { 107 return StringBuffer<char, TextStr>(str, size); [all …]
|
/hardware/interfaces/keymaster/4.0/vts/functional/ |
D | HmacKeySharingTest.cpp | 101 nonces.emplace_back(param.nonce.data(), param.nonce.size()); in copyNonces() 134 ASSERT_EQ(allKeymasters().size(), params.size()) in TEST_P() 138 EXPECT_EQ(allKeymasters().size(), nonces.size()); in TEST_P() 141 EXPECT_EQ(allKeymasters().size(), nonces.size()); in TEST_P() 144 ASSERT_GT(responses.size(), 0U); in TEST_P() 149 ASSERT_EQ(allKeymasters().size(), params.size()) in TEST_P() 153 ASSERT_GT(responses.size(), 0U); in TEST_P() 154 ASSERT_EQ(32U, responses[0].sharing_check.size()); in TEST_P() 183 ASSERT_EQ(allKeymasters().size(), params.size()) in TEST_P() 189 ASSERT_GT(responses.size(), 0U); in TEST_P() [all …]
|
/hardware/qcom/bt/msm8998/libbt-vendor/src/ |
D | hw_rome.c | 66 int read_vs_hci_event(int fd, unsigned char* buf, int size); 302 int read_vs_hci_event(int fd, unsigned char* buf, int size) in read_vs_hci_event() argument 307 if (size <= 0) { in read_vs_hci_event() 337 if (buf[2] < (size - 3)) in read_vs_hci_event() 340 remain = size - 3; in read_vs_hci_event() 361 int hci_send_wipower_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_wipower_vs_cmd() argument 367 ret = do_write(fd, cmd, size); in hci_send_wipower_vs_cmd() 368 if (ret != size) { in hci_send_wipower_vs_cmd() 386 int hci_send_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_vs_cmd() argument 391 ret = do_write(fd, cmd, size); in hci_send_vs_cmd() [all …]
|
/hardware/qcom/sdm845/bt/libbt-vendor/src/ |
D | hw_rome.c | 66 int read_vs_hci_event(int fd, unsigned char* buf, int size); 317 int read_vs_hci_event(int fd, unsigned char* buf, int size) in read_vs_hci_event() argument 322 if (size <= 0) { in read_vs_hci_event() 352 if (buf[2] < (size - 3)) in read_vs_hci_event() 355 remain = size - 3; in read_vs_hci_event() 376 int hci_send_wipower_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_wipower_vs_cmd() argument 382 ret = do_write(fd, cmd, size); in hci_send_wipower_vs_cmd() 383 if (ret != size) { in hci_send_wipower_vs_cmd() 401 int hci_send_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_vs_cmd() argument 406 ret = do_write(fd, cmd, size); in hci_send_vs_cmd() [all …]
|
/hardware/qcom/bt/msm8909w_3100/libbt-vendor/src/ |
D | hw_rome.c | 65 int read_vs_hci_event(int fd, unsigned char* buf, int size); 316 int read_vs_hci_event(int fd, unsigned char* buf, int size) in read_vs_hci_event() argument 321 if (size <= 0) { in read_vs_hci_event() 351 if (buf[2] < (size - 3)) in read_vs_hci_event() 354 remain = size - 3; in read_vs_hci_event() 375 int hci_send_wipower_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_wipower_vs_cmd() argument 381 ret = do_write(fd, cmd, size); in hci_send_wipower_vs_cmd() 382 if (ret != size) { in hci_send_wipower_vs_cmd() 400 int hci_send_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_vs_cmd() argument 405 ret = do_write(fd, cmd, size); in hci_send_vs_cmd() [all …]
|
/hardware/qcom/bt/msm8909/libbt-vendor/src/ |
D | hw_rome.c | 61 int read_vs_hci_event(int fd, unsigned char* buf, int size); 295 int read_vs_hci_event(int fd, unsigned char* buf, int size) in read_vs_hci_event() argument 300 if (size <= 0) { in read_vs_hci_event() 330 if (buf[2] < (size - 3)) in read_vs_hci_event() 333 remain = size - 3; in read_vs_hci_event() 354 int hci_send_wipower_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_wipower_vs_cmd() argument 360 ret = do_write(fd, cmd, size); in hci_send_wipower_vs_cmd() 361 if (ret != size) { in hci_send_wipower_vs_cmd() 379 int hci_send_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_vs_cmd() argument 384 ret = do_write(fd, cmd, size); in hci_send_vs_cmd() [all …]
|
/hardware/interfaces/bluetooth/1.0/vts/functional/ |
D | VtsHalBluetoothV1_0TargetTest.cpp | 195 EXPECT_EQ(static_cast<size_t>(0), event_queue.size()); in TearDown() 196 EXPECT_EQ(static_cast<size_t>(0), sco_queue.size()); in TearDown() 197 EXPECT_EQ(static_cast<size_t>(0), acl_queue.size()); in TearDown() 204 void sendAndCheckSCO(int num_packets, size_t size, uint16_t handle); 205 void sendAndCheckACL(int num_packets, size_t size, uint16_t handle); 248 ALOGV("Event received (length = %d)", static_cast<int>(event.size())); in hciEventReceived() 290 while (event_queue.size() > 0) { in handle_no_ops() 292 EXPECT_GE(event.size(), in handle_no_ops() 308 while (acl_queue.size() > 0) { in handle_no_ops() 330 EXPECT_LT(static_cast<size_t>(0), event_queue.size()); in wait_for_event() [all …]
|
/hardware/qcom/bt/msm8992/libbt-vendor/src/ |
D | hw_rome.c | 272 int read_vs_hci_event(int fd, unsigned char* buf, int size) in read_vs_hci_event() argument 277 if (size <= 0) { in read_vs_hci_event() 307 if (buf[2] < (size - 3)) in read_vs_hci_event() 310 remain = size - 3; in read_vs_hci_event() 331 int hci_send_wipower_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_wipower_vs_cmd() argument 337 ret = do_write(fd, cmd, size); in hci_send_wipower_vs_cmd() 338 if (ret != size) { in hci_send_wipower_vs_cmd() 356 int hci_send_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_vs_cmd() argument 361 ret = do_write(fd, cmd, size); in hci_send_vs_cmd() 362 if (ret != size) { in hci_send_vs_cmd() [all …]
|
/hardware/qcom/bt/msm8996/libbt-vendor/src/ |
D | hw_rome.c | 70 int read_vs_hci_event(int fd, unsigned char* buf, int size); 321 int read_vs_hci_event(int fd, unsigned char* buf, int size) in read_vs_hci_event() argument 326 if (size <= 0) { in read_vs_hci_event() 356 if (buf[2] < (size - 3)) in read_vs_hci_event() 359 remain = size - 3; in read_vs_hci_event() 380 int hci_send_wipower_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_wipower_vs_cmd() argument 386 ret = do_write(fd, cmd, size); in hci_send_wipower_vs_cmd() 387 if (ret != size) { in hci_send_wipower_vs_cmd() 405 int hci_send_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_vs_cmd() argument 410 ret = do_write(fd, cmd, size); in hci_send_vs_cmd() [all …]
|
/hardware/interfaces/secure_element/1.0/vts/functional/ |
D | VtsHalSecureElementV1_0TargetTest.cpp | 108 response.selectResponse.resize(channelResponse.selectResponse.size()); in TEST_P() 109 for (size_t i = 0; i < channelResponse.selectResponse.size(); i++) { in TEST_P() 115 EXPECT_LE((unsigned int)2, response.selectResponse.size()); in TEST_P() 121 transmitResponse.resize(res.size()); in TEST_P() 122 for (size_t i = 0; i < res.size(); i++) { in TEST_P() 126 EXPECT_LE((unsigned int)3, transmitResponse.size()); in TEST_P() 127 EXPECT_EQ(0x90, transmitResponse[transmitResponse.size() - 2]); in TEST_P() 128 EXPECT_EQ(0x00, transmitResponse[transmitResponse.size() - 1]); in TEST_P() 146 response.resize(selectResponse.size()); in TEST_P() 147 for (size_t i = 0; i < selectResponse.size(); i++) { in TEST_P() [all …]
|
/hardware/interfaces/neuralnetworks/1.2/vts/functional/ |
D | ValidateModel.cpp | 120 const size_t operandValuesSize = model.operandValues.size(); in constantCopyExtraSize() 154 if (model->operandValues.size() < sizeOfOperand) { in becomeConstantCopy() 191 size_t size = 0; in sizeForBinder() local 193 size += sizeForBinder(symmPerChannelQuantParams.scales); in sizeForBinder() 194 size += sizeForBinder(symmPerChannelQuantParams.channelDim); in sizeForBinder() 196 return size; in sizeForBinder() 217 size_t size = 0; in sizeForBinder() local 219 size += sizeForBinder(operand.type); in sizeForBinder() 220 size += sizeForBinder(operand.dimensions); in sizeForBinder() 221 size += sizeForBinder(operand.numberOfConsumers); in sizeForBinder() [all …]
|
/hardware/interfaces/bluetooth/1.1/vts/functional/ |
D | VtsHalBluetoothV1_1TargetTest.cpp | 196 EXPECT_EQ(static_cast<size_t>(0), event_queue.size()); in TearDown() 197 EXPECT_EQ(static_cast<size_t>(0), sco_queue.size()); in TearDown() 198 EXPECT_EQ(static_cast<size_t>(0), acl_queue.size()); in TearDown() 199 EXPECT_EQ(static_cast<size_t>(0), iso_queue.size()); in TearDown() 206 void sendAndCheckSCO(int num_packets, size_t size, uint16_t handle); 207 void sendAndCheckACL(int num_packets, size_t size, uint16_t handle); 250 ALOGV("Event received (length = %d)", static_cast<int>(event.size())); in hciEventReceived() 302 while (event_queue.size() > 0) { in handle_no_ops() 304 EXPECT_GE(event.size(), in handle_no_ops() 320 while (acl_queue.size() > 0) { in handle_no_ops() [all …]
|
/hardware/qcom/sdm845/display/libmemtrack/ |
D | kgsl.c | 75 unsigned long size, mapsize; in kgsl_memtrack_get_memory() local 90 &size, flags, line_type, line_usage, &mapsize, in kgsl_memtrack_get_memory() 96 if (size == 0) { in kgsl_memtrack_get_memory() 101 if (unaccounted_size + size < size) { in kgsl_memtrack_get_memory() 116 if (mapsize > size) { in kgsl_memtrack_get_memory() 120 unaccounted_size += size - mapsize; in kgsl_memtrack_get_memory() 122 unaccounted_size += size; in kgsl_memtrack_get_memory() 126 unaccounted_size += size; in kgsl_memtrack_get_memory() 129 unaccounted_size += size / (egl_image_count ? egl_image_count : 1); in kgsl_memtrack_get_memory()
|
/hardware/qcom/display/msm8909/libmemtrack/ |
D | kgsl.c | 75 unsigned long size, mapsize; in kgsl_memtrack_get_memory() local 90 &size, flags, line_type, line_usage, &mapsize, in kgsl_memtrack_get_memory() 96 if (size == 0) { in kgsl_memtrack_get_memory() 101 if (unaccounted_size + size < size) { in kgsl_memtrack_get_memory() 116 if (mapsize > size) { in kgsl_memtrack_get_memory() 120 unaccounted_size += size - mapsize; in kgsl_memtrack_get_memory() 122 unaccounted_size += size; in kgsl_memtrack_get_memory() 126 unaccounted_size += size; in kgsl_memtrack_get_memory() 129 unaccounted_size += size / (egl_image_count ? egl_image_count : 1); in kgsl_memtrack_get_memory()
|
/hardware/qcom/display/msm8909w_3100/libmemtrack/ |
D | kgsl.c | 75 unsigned long size, mapsize; in kgsl_memtrack_get_memory() local 90 &size, flags, line_type, line_usage, &mapsize, in kgsl_memtrack_get_memory() 96 if (size == 0) { in kgsl_memtrack_get_memory() 101 if (unaccounted_size + size < size) { in kgsl_memtrack_get_memory() 116 if (mapsize > size) { in kgsl_memtrack_get_memory() 120 unaccounted_size += size - mapsize; in kgsl_memtrack_get_memory() 122 unaccounted_size += size; in kgsl_memtrack_get_memory() 126 unaccounted_size += size; in kgsl_memtrack_get_memory() 129 unaccounted_size += size / (egl_image_count ? egl_image_count : 1); in kgsl_memtrack_get_memory()
|
/hardware/qcom/display/msm8998/libmemtrack/ |
D | kgsl.c | 75 unsigned long size, mapsize; in kgsl_memtrack_get_memory() local 90 &size, flags, line_type, line_usage, &mapsize, in kgsl_memtrack_get_memory() 96 if (size == 0) { in kgsl_memtrack_get_memory() 101 if (unaccounted_size + size < size) { in kgsl_memtrack_get_memory() 116 if (mapsize > size) { in kgsl_memtrack_get_memory() 120 unaccounted_size += size - mapsize; in kgsl_memtrack_get_memory() 122 unaccounted_size += size; in kgsl_memtrack_get_memory() 126 unaccounted_size += size; in kgsl_memtrack_get_memory() 129 unaccounted_size += size / (egl_image_count ? egl_image_count : 1); in kgsl_memtrack_get_memory()
|
/hardware/qcom/display/msm8960/libgralloc/ |
D | alloc_controller.cpp | 259 size_t size; in getBufferSizeAndDimensions() local 267 size = alignedw * alignedh * 4; in getBufferSizeAndDimensions() 270 size = alignedw * alignedh * 3; in getBufferSizeAndDimensions() 274 size = alignedw * alignedh * 2; in getBufferSizeAndDimensions() 279 size = ALIGN(alignedw*alignedh, 4096); in getBufferSizeAndDimensions() 280 size += ALIGN(2 * ALIGN(width/2, 32) * ALIGN(height/2, 32), 4096); in getBufferSizeAndDimensions() 287 size = ALIGN( alignedw * alignedh, 8192); in getBufferSizeAndDimensions() 288 size += ALIGN( alignedw * ALIGN(height/2, 32), 8192); in getBufferSizeAndDimensions() 293 size = ALIGN( ALIGN(width, 128) * ALIGN(height, 32), 8192); in getBufferSizeAndDimensions() 294 size += ALIGN( ALIGN(width, 128) * ALIGN(height/2, 32), 8192); in getBufferSizeAndDimensions() [all …]
|
/hardware/interfaces/neuralnetworks/1.3/vts/functional/ |
D | ValidateModel.cpp | 127 const size_t operandValuesSize = model.operandValues.size(); in constantCopyExtraSize() 161 if (model->operandValues.size() < sizeOfOperand) { in becomeConstantCopy() 198 size_t size = 0; in sizeForBinder() local 200 size += sizeForBinder(symmPerChannelQuantParams.scales); in sizeForBinder() 201 size += sizeForBinder(symmPerChannelQuantParams.channelDim); in sizeForBinder() 203 return size; in sizeForBinder() 224 size_t size = 0; in sizeForBinder() local 226 size += sizeForBinder(operand.type); in sizeForBinder() 227 size += sizeForBinder(operand.dimensions); in sizeForBinder() 228 size += sizeForBinder(operand.numberOfConsumers); in sizeForBinder() [all …]
|