/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/ |
D | inv_sysfs_utils.c | 35 int count; in inv_sysfs_write() local 42 count = fprintf(fp, "%ld", data); in inv_sysfs_write() 44 return count; in inv_sysfs_write() 57 int count; in inv_sysfs_read() local 64 count = fread(data, 1, num_bytes, fp); in inv_sysfs_read() 66 return count; in inv_sysfs_read() 79 int count; in inv_read_buffer() local 81 count = read(fd, str, sizeof(str)); in inv_read_buffer() 82 if (!count) in inv_read_buffer() 83 return count; in inv_read_buffer() [all …]
|
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/ |
D | inv_sysfs_utils.c | 29 int count; in inv_sysfs_write() local 36 count = fprintf(fp, "%ld", data); in inv_sysfs_write() 38 return count; in inv_sysfs_write() 51 int count; in inv_sysfs_read() local 58 count = fread(data, 1, num_bytes, fp); in inv_sysfs_read() 60 return count; in inv_sysfs_read() 73 int count; in inv_read_buffer() local 75 count = read(fd, str, sizeof(str)); in inv_read_buffer() 76 if (!count) in inv_read_buffer() 77 return count; in inv_read_buffer() [all …]
|
/hardware/interfaces/tests/msgq/1.0/default/ |
D | TestMsgQ.cpp | 58 Return<bool> TestMsgQ::requestWriteFmqSync(int32_t count) { in requestWriteFmqSync() argument 59 std::vector<uint16_t> data(count); in requestWriteFmqSync() 60 for (int i = 0; i < count; i++) { in requestWriteFmqSync() 63 bool result = mFmqSynchronized->write(&data[0], count); in requestWriteFmqSync() 67 Return<bool> TestMsgQ::requestReadFmqSync(int32_t count) { in requestReadFmqSync() argument 68 std::vector<uint16_t> data(count); in requestReadFmqSync() 69 bool result = mFmqSynchronized->read(&data[0], count) in requestReadFmqSync() 70 && verifyData(&data[0], count); in requestReadFmqSync() 74 Return<bool> TestMsgQ::requestWriteFmqUnsync(int32_t count) { in requestWriteFmqUnsync() argument 75 std::vector<uint16_t> data(count); in requestWriteFmqUnsync() [all …]
|
D | TestMsgQ.h | 60 Return<bool> requestWriteFmqSync(int32_t count) override; 61 Return<bool> requestReadFmqSync(int32_t count) override; 62 Return<bool> requestWriteFmqUnsync(int32_t count) override; 63 Return<bool> requestReadFmqUnsync(int32_t count) override; 64 Return<void> requestBlockingRead(int32_t count) override; 65 Return<void> requestBlockingReadDefaultEventFlagBits(int32_t count) override; 66 Return<void> requestBlockingReadRepeat(int32_t count, int32_t numIter) override; 76 bool verifyData(uint16_t* data, int count) { in verifyData() 77 for (int i = 0; i < count; i++) { in verifyData()
|
/hardware/libhardware/modules/usbcamera/ |
D | Metadata.cpp | 64 int Metadata::addUInt8(uint32_t tag, int count, const uint8_t *data) { in addUInt8() argument 65 if (!validate(tag, TYPE_BYTE, count)) return -EINVAL; in addUInt8() 66 return add(tag, count, data); in addUInt8() 73 int Metadata::addInt32(uint32_t tag, int count, const int32_t *data) { in addInt32() argument 74 if (!validate(tag, TYPE_INT32, count)) return -EINVAL; in addInt32() 75 return add(tag, count, data); in addInt32() 78 int Metadata::addFloat(uint32_t tag, int count, const float *data) { in addFloat() argument 79 if (!validate(tag, TYPE_FLOAT, count)) return -EINVAL; in addFloat() 80 return add(tag, count, data); in addFloat() 83 int Metadata::addInt64(uint32_t tag, int count, const int64_t *data) { in addInt64() argument [all …]
|
D | Metadata.h | 34 int addUInt8(uint32_t tag, int count, const uint8_t *data); 36 int addInt32(uint32_t tag, int count, const int32_t *data); 37 int addFloat(uint32_t tag, int count, const float *data); 38 int addInt64(uint32_t tag, int count, const int64_t *data); 39 int addDouble(uint32_t tag, int count, const double *data); 40 int addRational(uint32_t tag, int count, 53 bool validate(uint32_t tag, int tag_type, int count); 55 int add(uint32_t tag, int count, const void *tag_data);
|
/hardware/libhardware/modules/camera/3_0/ |
D | Metadata.cpp | 68 int Metadata::addUInt8(uint32_t tag, int count, const uint8_t *data) in addUInt8() argument 70 if (!validate(tag, TYPE_BYTE, count)) return -EINVAL; in addUInt8() 71 return add(tag, count, data); in addUInt8() 79 int Metadata::addInt32(uint32_t tag, int count, const int32_t *data) in addInt32() argument 81 if (!validate(tag, TYPE_INT32, count)) return -EINVAL; in addInt32() 82 return add(tag, count, data); in addInt32() 85 int Metadata::addFloat(uint32_t tag, int count, const float *data) in addFloat() argument 87 if (!validate(tag, TYPE_FLOAT, count)) return -EINVAL; in addFloat() 88 return add(tag, count, data); in addFloat() 91 int Metadata::addInt64(uint32_t tag, int count, const int64_t *data) in addInt64() argument [all …]
|
D | Metadata.h | 34 int addUInt8(uint32_t tag, int count, const uint8_t *data); 36 int addInt32(uint32_t tag, int count, const int32_t *data); 37 int addFloat(uint32_t tag, int count, const float *data); 38 int addInt64(uint32_t tag, int count, const int64_t *data); 39 int addDouble(uint32_t tag, int count, const double *data); 40 int addRational(uint32_t tag, int count, 53 bool validate(uint32_t tag, int tag_type, int count); 55 int add(uint32_t tag, int count, const void *tag_data);
|
/hardware/interfaces/graphics/composer/2.1/utils/vts/ |
D | TestCommandReader.cpp | 50 for (uint16_t count = 0; count < length / 3; ++count) { in parse() local 61 for (uint16_t count = 0; count < (length - 1) / 3; ++count) { in parse() local 74 for (uint16_t count = 0; count < length / 3; ++count) { in parse() local
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_exif.c | 66 exif_tag_type_t type, uint32_t count, void *data) in addExifEntry() argument 78 p_info_data[numOfEntries].tag_entry.count = count; in addExifEntry() 82 if (count > 1) { in addExifEntry() 83 uint8_t *values = (uint8_t *)malloc(count); in addExifEntry() 88 memcpy(values, data, count); in addExifEntry() 98 str = (char *)malloc(count + 1); in addExifEntry() 103 memset(str, 0, count + 1); in addExifEntry() 104 memcpy(str, data, count); in addExifEntry() 110 if (count > 1) { in addExifEntry() 111 uint16_t *values = (uint16_t *)malloc(count * sizeof(uint16_t)); in addExifEntry() [all …]
|
/hardware/invensense/6515/libsensors_iio/ |
D | sensors_mpl.cpp | 116 int pollEvents(sensors_event_t* data, int count); 218 int sensors_poll_context_t::pollEvents(sensors_event_t *data, int count) in pollEvents() argument 252 LOGI_IF(0, "poll nb=%d, count=%d, pt=%d ts=%lld", nb, count, polltime, getTimestamp()); in pollEvents() 253 if (nb == 0 && count > 0) { in pollEvents() 257 data, count, ID_SC, 0); in pollEvents() 260 nb, count, nbEvents, data->timestamp); in pollEvents() 262 count -= nb; in pollEvents() 268 for (int i = 0; count && i < numSensorDrivers; i++) { in pollEvents() 279 readDmpOrientEvents(data, count); in pollEvents() 282 count -= nb; in pollEvents() [all …]
|
/hardware/invensense/65xx/libsensors_iio/ |
D | sensors_mpl.cpp | 93 int pollEvents(sensors_event_t* data, int count); 204 int sensors_poll_context_t::pollEvents(sensors_event_t *data, int count) in pollEvents() argument 215 LOGI_IF(0, "poll nb=%d, count=%d, pt=%d", nb, count, polltime); in pollEvents() 217 for (int i = 0; count && i < numSensorDrivers; i++) { in pollEvents() 228 readDmpOrientEvents(data, count); in pollEvents() 231 count -= nb; in pollEvents() 238 readDmpSignificantMotionEvents(data, count); in pollEvents() 240 count -= nb; in pollEvents() 246 data, count, ID_P, SENSOR_TYPE_STEP_DETECTOR, 0); in pollEvents() 248 count -= nb; in pollEvents() [all …]
|
/hardware/qcom/gps/msm8998/location/ |
D | LocationAPIClientBase.h | 78 void locAPIGetBatchedLocations(size_t count); 80 uint32_t locAPIAddGeofences(size_t count, uint32_t* ids, 82 void locAPIRemoveGeofences(size_t count, uint32_t* ids); 83 void locAPIModifyGeofences(size_t count, uint32_t* ids, GeofenceOption* options); 84 void locAPIPauseGeofences(size_t count, uint32_t* ids); 85 void locAPIResumeGeofences(size_t count, uint32_t* ids, GeofenceBreachTypeMask* mask); 97 void onCollectiveResponseCb(size_t count, LocationError* errors, uint32_t* ids); 100 void onCtrlCollectiveResponseCb(size_t count, LocationError* errors, uint32_t* ids); 317 inline void onCollectiveResponse(size_t count, LocationError* errors, uint32_t* sessions) { in onCollectiveResponse() argument 318 uint32_t *ids = (uint32_t*)malloc(sizeof(uint32_t) * count); in onCollectiveResponse() [all …]
|
/hardware/qcom/sdm845/gps/msm8998/location/ |
D | LocationAPIClientBase.h | 78 void locAPIGetBatchedLocations(size_t count); 80 uint32_t locAPIAddGeofences(size_t count, uint32_t* ids, 82 void locAPIRemoveGeofences(size_t count, uint32_t* ids); 83 void locAPIModifyGeofences(size_t count, uint32_t* ids, GeofenceOption* options); 84 void locAPIPauseGeofences(size_t count, uint32_t* ids); 85 void locAPIResumeGeofences(size_t count, uint32_t* ids, GeofenceBreachTypeMask* mask); 97 void onCollectiveResponseCb(size_t count, LocationError* errors, uint32_t* ids); 100 void onCtrlCollectiveResponseCb(size_t count, LocationError* errors, uint32_t* ids); 317 inline void onCollectiveResponse(size_t count, LocationError* errors, uint32_t* sessions) { in onCollectiveResponse() argument 318 uint32_t *ids = (uint32_t*)malloc(sizeof(uint32_t) * count); in onCollectiveResponse() [all …]
|
/hardware/qcom/audio/legacy/libalsa-intf/ |
D | alsa_mixer.c | 135 for (n = 0; n < mixer->count; n++) { in mixer_close() 177 mixer->ctl = calloc(elist.count, sizeof(struct mixer_ctl)); in mixer_open() 178 mixer->info = calloc(elist.count, sizeof(struct snd_ctl_elem_info)); in mixer_open() 182 eid = calloc(elist.count, sizeof(struct snd_ctl_elem_id)); in mixer_open() 186 mixer->count = elist.count; in mixer_open() 188 elist.space = mixer->count; in mixer_open() 193 for (n = 0; n < mixer->count; n++) { in mixer_open() 236 for (n = 0; n < mixer->count; n++) { in mixer_dump() 243 ei->count, in mixer_dump() 288 for (n = 0; n < mixer->count; n++) { in mixer_get_control() [all …]
|
/hardware/qcom/display/msm8996/sdm/libs/utils/ |
D | rect.cpp | 149 for (uint32_t count = 0; count < split_count; count++) { in SplitLeftRight() local 151 out_rects[count].left = rect_temp.left; in SplitLeftRight() 152 out_rects[count].right = std::min(rect_temp.right, aligned_right); in SplitLeftRight() 153 out_rects[count].top = rect_temp.top; in SplitLeftRight() 154 out_rects[count].bottom = rect_temp.bottom; in SplitLeftRight() 156 rect_temp.left = out_rects[count].right; in SplitLeftRight() 158 Log(kTagRotator, "SplitLeftRight", out_rects[count]); in SplitLeftRight() 179 for (uint32_t count = 0; count < split_count; count++) { in SplitTopBottom() local 181 out_rects[count].top = rect_temp.top; in SplitTopBottom() 182 out_rects[count].bottom = std::min(rect_temp.bottom, aligned_bottom); in SplitTopBottom() [all …]
|
/hardware/qcom/gps/msm8909w_3100/location/ |
D | LocationAPIClientBase.cpp | 61 [this](size_t count, LocationError* errors, uint32_t* ids) { in LocationAPIControlClient() argument 62 onCtrlCollectiveResponseCb(count, errors, ids); in LocationAPIControlClient() 186 size_t count, LocationError* errors, uint32_t* ids) in onCtrlCollectiveResponseCb() argument 188 for (size_t i = 0; i < count; i++) { in onCtrlCollectiveResponseCb() 202 request->onCollectiveResponse(count, errors, ids); in onCtrlCollectiveResponseCb() 262 [this](size_t count, LocationError* errors, uint32_t* ids) { in locAPISetCallbacks() argument 263 onCollectiveResponseCb(count, errors, ids); in locAPISetCallbacks() 559 void LocationAPIClientBase::locAPIGetBatchedLocations(uint32_t id, size_t count) in locAPIGetBatchedLocations() argument 569 mLocationAPI->getBatchedLocations(batchingSession, count); in locAPIGetBatchedLocations() 578 size_t count, uint32_t* ids, GeofenceOption* options, GeofenceInfo* data) in locAPIAddGeofences() argument [all …]
|
D | LocationAPIClientBase.h | 124 void onCtrlCollectiveResponseCb(size_t count, LocationError* errors, uint32_t* ids); 162 inline void onCollectiveResponse(size_t count, LocationError* errors, uint32_t* ids) { in onCollectiveResponse() argument 163 mAPI.onGnssUpdateConfigCb(count, errors, ids); in onCollectiveResponse() 198 void locAPIGetBatchedLocations(uint32_t id, size_t count); 200 uint32_t locAPIAddGeofences(size_t count, uint32_t* ids, 202 void locAPIRemoveGeofences(size_t count, uint32_t* ids); 203 void locAPIModifyGeofences(size_t count, uint32_t* ids, GeofenceOption* options); 204 void locAPIPauseGeofences(size_t count, uint32_t* ids); 205 void locAPIResumeGeofences(size_t count, uint32_t* ids, GeofenceBreachTypeMask* mask); 212 void onCollectiveResponseCb(size_t count, LocationError* errors, uint32_t* ids); [all …]
|
/hardware/libhardware/modules/camera/3_4/metadata/ |
D | metadata_common.h | 64 size_t count) { in UpdateMetadata() argument 65 int res = metadata->update(tag, data, count); in UpdateMetadata() 186 if (entry.count == 0) { in SingleTagValue() 189 } else if (entry.count != 1) { in SingleTagValue() 194 entry.count); in SingleTagValue() 217 if (entry.count == 0) { in SingleTagValue() 220 } else if (entry.count != N) { in SingleTagValue() 226 entry.count); in SingleTagValue() 266 if (entry.count == 0) { in VectorTagValue() 276 *val = std::vector<T>(data, data + entry.count); in VectorTagValue() [all …]
|
D | enum_converter.cpp | 38 size_t count = 0; in MetadataToV4L2() local 41 ++count; in MetadataToV4L2() 42 if (count == 1) { in MetadataToV4L2() 52 if (count == 0) { in MetadataToV4L2() 55 } else if (count > 1) { in MetadataToV4L2()
|
/hardware/qcom/sdm845/gps/sdm845/location/ |
D | ILocationAPI.h | 111 virtual void getBatchedLocations(uint32_t id, size_t count) = 0; 126 virtual uint32_t* addGeofences(size_t count, GeofenceOption*, GeofenceInfo*) = 0; 133 virtual void removeGeofences(size_t count, uint32_t* ids) = 0; 141 virtual void modifyGeofences(size_t count, uint32_t* ids, GeofenceOption* options) = 0; 149 virtual void pauseGeofences(size_t count, uint32_t* ids) = 0; 156 virtual void resumeGeofences(size_t count, uint32_t* ids) = 0;
|
D | LocationAPIClientBase.h | 137 void onCtrlCollectiveResponseCb(size_t count, LocationError* errors, uint32_t* ids); 177 inline void onCollectiveResponse(size_t count, LocationError* errors, uint32_t* ids) { in onCollectiveResponse() argument 178 mAPI.onGnssUpdateConfigCb(count, errors, ids); in onCollectiveResponse() 186 inline void onCollectiveResponse(size_t count, LocationError* errors, uint32_t* ids) { in onCollectiveResponse() argument 187 mAPI.onGnssGetConfigCb(count, errors, ids); in onCollectiveResponse() 222 uint32_t locAPIGetBatchedLocations(uint32_t id, size_t count); 224 uint32_t locAPIAddGeofences(size_t count, uint32_t* ids, 226 void locAPIRemoveGeofences(size_t count, uint32_t* ids); 227 void locAPIModifyGeofences(size_t count, uint32_t* ids, GeofenceOption* options); 228 void locAPIPauseGeofences(size_t count, uint32_t* ids); [all …]
|
/hardware/qcom/display/msm8909/sdm/libs/utils/ |
D | rect.cpp | 154 for (uint32_t count = 0; count < split_count; count++) { in SplitLeftRight() local 156 out_rects[count].left = rect_temp.left; in SplitLeftRight() 157 out_rects[count].right = std::min(rect_temp.right, aligned_right); in SplitLeftRight() 158 out_rects[count].top = rect_temp.top; in SplitLeftRight() 159 out_rects[count].bottom = rect_temp.bottom; in SplitLeftRight() 161 rect_temp.left = out_rects[count].right; in SplitLeftRight() 163 Log(kTagRotator, "SplitLeftRight", out_rects[count]); in SplitLeftRight() 184 for (uint32_t count = 0; count < split_count; count++) { in SplitTopBottom() local 186 out_rects[count].top = rect_temp.top; in SplitTopBottom() 187 out_rects[count].bottom = std::min(rect_temp.bottom, aligned_bottom); in SplitTopBottom() [all …]
|
/hardware/qcom/display/msm8998/sdm/libs/utils/ |
D | rect.cpp | 149 for (uint32_t count = 0; count < split_count; count++) { in SplitLeftRight() local 151 out_rects[count].left = rect_temp.left; in SplitLeftRight() 152 out_rects[count].right = std::min(rect_temp.right, aligned_right); in SplitLeftRight() 153 out_rects[count].top = rect_temp.top; in SplitLeftRight() 154 out_rects[count].bottom = rect_temp.bottom; in SplitLeftRight() 156 rect_temp.left = out_rects[count].right; in SplitLeftRight() 158 Log(kTagRotator, "SplitLeftRight", out_rects[count]); in SplitLeftRight() 179 for (uint32_t count = 0; count < split_count; count++) { in SplitTopBottom() local 181 out_rects[count].top = rect_temp.top; in SplitTopBottom() 182 out_rects[count].bottom = std::min(rect_temp.bottom, aligned_bottom); in SplitTopBottom() [all …]
|
/hardware/qcom/display/msm8909w_3100/sdm/libs/utils/ |
D | rect.cpp | 149 for (uint32_t count = 0; count < split_count; count++) { in SplitLeftRight() local 151 out_rects[count].left = rect_temp.left; in SplitLeftRight() 152 out_rects[count].right = std::min(rect_temp.right, aligned_right); in SplitLeftRight() 153 out_rects[count].top = rect_temp.top; in SplitLeftRight() 154 out_rects[count].bottom = rect_temp.bottom; in SplitLeftRight() 156 rect_temp.left = out_rects[count].right; in SplitLeftRight() 158 Log(kTagRotator, "SplitLeftRight", out_rects[count]); in SplitLeftRight() 179 for (uint32_t count = 0; count < split_count; count++) { in SplitTopBottom() local 181 out_rects[count].top = rect_temp.top; in SplitTopBottom() 182 out_rects[count].bottom = std::min(rect_temp.bottom, aligned_bottom); in SplitTopBottom() [all …]
|