/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/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/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/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 | 91 nonces.emplace_back(param.nonce.data(), param.nonce.size()); in copyNonces() 119 ASSERT_EQ(all_keymasters().size(), params.size()) in TEST_F() 123 EXPECT_EQ(all_keymasters().size(), nonces.size()); in TEST_F() 126 EXPECT_EQ(all_keymasters().size(), nonces.size()); in TEST_F() 129 ASSERT_GT(responses.size(), 0U); in TEST_F() 134 ASSERT_EQ(all_keymasters().size(), params.size()) in TEST_F() 138 ASSERT_GT(responses.size(), 0U); in TEST_F() 139 ASSERT_EQ(32U, responses[0].sharing_check.size()); in TEST_F() 167 ASSERT_EQ(all_keymasters().size(), params.size()) in TEST_F() 173 ASSERT_GT(responses.size(), 0U); in TEST_F() [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/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/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/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/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/interfaces/bluetooth/1.0/vts/functional/ |
D | VtsHalBluetoothV1_0TargetTest.cpp | 212 EXPECT_EQ(static_cast<size_t>(0), event_queue.size()); in TearDown() 213 EXPECT_EQ(static_cast<size_t>(0), sco_queue.size()); in TearDown() 214 EXPECT_EQ(static_cast<size_t>(0), acl_queue.size()); in TearDown() 221 void sendAndCheckSCO(int num_packets, size_t size, uint16_t handle); 222 void sendAndCheckACL(int num_packets, size_t size, uint16_t handle); 265 ALOGV("Event received (length = %d)", static_cast<int>(event.size())); in hciEventReceived() 307 while (event_queue.size() > 0) { in handle_no_ops() 309 EXPECT_GE(event.size(), in handle_no_ops() 325 while (acl_queue.size() > 0) { in handle_no_ops() 347 EXPECT_LT(static_cast<size_t>(0), event_queue.size()); in wait_for_event() [all …]
|
/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/qcom/display/msm8996/sdm/libs/hwc2/ |
D | hwc_color_manager.cpp | 64 uint32_t size(0); in CreatePayloadFromParcel() local 67 size = UINT32(in.readInt32()); in CreatePayloadFromParcel() 68 if (size > 0 && size == in.dataAvail()) { in CreatePayloadFromParcel() 69 const void *data = in.readInplace(size); in CreatePayloadFromParcel() 72 sink->size = size; in CreatePayloadFromParcel() 76 DLOGW("Failing size checking, size = %d", size); in CreatePayloadFromParcel() 85 out_parcel->writeInt32(INT32(data.size)); in MarshallStructIntoParcel() 87 out_parcel->write(data.payload, data.size); in MarshallStructIntoParcel() 222 buffer_info.alloc_buffer_info.size = 0; in SetFrameCapture() 229 void *buffer = mmap(NULL, buffer_info.alloc_buffer_info.size, PROT_READ | PROT_WRITE, in SetFrameCapture() [all …]
|
/hardware/qcom/display/msm8994/libgralloc/ |
D | alloc_controller.cpp | 493 unsigned int size = 0; in getSize() local 496 size = alignedw * alignedh * 8; in getSize() 502 size = alignedw * alignedh * 4; in getSize() 505 size = alignedw * alignedh * 3; in getSize() 511 size = alignedw * alignedh * 2; in getSize() 514 size = ALIGN(alignedw * alignedh, 4096); in getSize() 518 size = ALIGN(alignedw*alignedh, 4096); in getSize() 519 size += ALIGN(2 * ALIGN(width/2, 32) * ALIGN(height/2, 32), 4096); in getSize() 525 size = ALIGN( alignedw * alignedh, 8192); in getSize() 526 size += ALIGN( alignedw * ALIGN(height/2, 32), 8192); in getSize() [all …]
|
/hardware/interfaces/secure_element/1.0/vts/functional/ |
D | VtsHalSecureElementV1_0TargetTest.cpp | 127 response.selectResponse.resize(channelResponse.selectResponse.size()); in TEST_F() 128 for (size_t i = 0; i < channelResponse.selectResponse.size(); i++) { in TEST_F() 134 EXPECT_LE((unsigned int)2, response.selectResponse.size()); in TEST_F() 140 transmitResponse.resize(res.size()); in TEST_F() 141 for (size_t i = 0; i < res.size(); i++) { in TEST_F() 145 EXPECT_LE((unsigned int)3, transmitResponse.size()); in TEST_F() 146 EXPECT_EQ(0x90, transmitResponse[transmitResponse.size() - 2]); in TEST_F() 147 EXPECT_EQ(0x00, transmitResponse[transmitResponse.size() - 1]); in TEST_F() 165 response.resize(selectResponse.size()); in TEST_F() 166 for (size_t i = 0; i < selectResponse.size(); i++) { in TEST_F() [all …]
|
/hardware/qcom/sdm845/display/sdm/libs/core/drm/ |
D | hw_events_drm.cpp | 59 for (uint32_t i = 0; i < event_data_list_.size(); i++) { in InitializePollFd() 189 poll_fds_.resize(event_list.size()); in Init() 240 for (uint32_t i = 0; i < event_data_list_.size(); i++) { in WakeUpEventThread() 254 for (uint32_t i = 0; i < event_data_list_.size(); i++) { in CloseFds() 299 int error = Sys::poll_(poll_fds_.data(), UINT32(poll_fds_.size()), -1); in DisplayEventHandler() 305 for (uint32_t i = 0; i < event_data_list_.size(); i++) { in DisplayEventHandler() 364 for (; i < event_data_list_.size(); i++) { in RegisterPanelDead() 370 if (i == event_data_list_.size()) { in RegisterPanelDead() 397 for (; i < event_data_list_.size(); i++) { in RegisterIdleNotify() 403 if (i == event_data_list_.size()) { in RegisterIdleNotify() [all …]
|