/hardware/qcom/msm8998/json-c/ |
D | printbuf.c | 31 static int printbuf_extend(struct printbuf *p, int min_size); 35 struct printbuf *p; in printbuf_new() local 37 p = (struct printbuf*)calloc(1, sizeof(struct printbuf)); in printbuf_new() 38 if(!p) return NULL; in printbuf_new() 39 p->size = 32; in printbuf_new() 40 p->bpos = 0; in printbuf_new() 41 if(!(p->buf = (char*)malloc(p->size))) { in printbuf_new() 42 free(p); in printbuf_new() 45 return p; in printbuf_new() 57 static int printbuf_extend(struct printbuf *p, int min_size) in printbuf_extend() argument [all …]
|
D | printbuf.h | 40 printbuf_memappend(struct printbuf *p, const char *buf, int size); 42 #define printbuf_memappend_fast(p, bufptr, bufsize) \ argument 44 if ((p->size - p->bpos) > bufsize) { \ 45 memcpy(p->buf + p->bpos, (bufptr), bufsize); \ 46 p->bpos += bufsize; \ 47 p->buf[p->bpos]= '\0'; \ 48 } else { printbuf_memappend(p, (bufptr), bufsize); } \ 51 #define printbuf_length(p) ((p)->bpos) argument 65 sprintbuf(struct printbuf *p, const char *msg, ...); 68 printbuf_reset(struct printbuf *p); [all …]
|
/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/test/ |
D | HidParserExample.cpp | 27 for (const TestHidDescriptor *p = gDescriptorArray; ; ++p) { in doParse() local 28 if (p->data == nullptr || p->len == 0) { in doParse() 31 const char *name = p->name != nullptr ? p->name : "unnamed"; in doParse() 32 bool parseResult = hidParser.parse(p->data, p->len); in doParse() 49 for (const TestHidDescriptor *p = gDescriptorArray; ; ++p) { in doParseAndFilter() local 50 if (p->data == nullptr || p->len == 0) { in doParseAndFilter() 53 const char *name = p->name != nullptr ? p->name : "unnamed"; in doParseAndFilter() 54 bool parseResult = hidParser.parse(p->data, p->len); in doParseAndFilter() 80 for (const TestHidDescriptor *p = gDescriptorArray; ; ++p) { in doDigest() local 81 if (p->data == nullptr || p->len == 0) { in doDigest() [all …]
|
/hardware/interfaces/camera/metadata/3.2/ |
D | types.hal | 152 * <p>Partial documentation is included for each tag; for complete documentation, reference 153 * '/system/media/camera/docs/docs.html' in the corresponding Android source tree.</p> 158 * <p>The mode control selects how the image data is converted from the 159 * sensor's native color into linear sRGB color.</p> 165 * <p>A color transform matrix to use to transform 166 * from sensor RGB color space to output linear sRGB color space.</p> 172 * <p>Gains applying to Bayer raw color channels for 173 * white-balance.</p> 179 * <p>Mode of operation for the chromatic aberration correction algorithm.</p> 185 * <p>List of aberration correction modes for ANDROID_COLOR_CORRECTION_ABERRATION_MODE that are [all …]
|
/hardware/interfaces/health/1.0/default/ |
D | convert.cpp | 104 void convertToHealthInfo(const struct android::BatteryProperties *p, in convertToHealthInfo() argument 106 info.chargerAcOnline = p->chargerAcOnline; in convertToHealthInfo() 107 info.chargerUsbOnline = p->chargerUsbOnline; in convertToHealthInfo() 108 info.chargerWirelessOnline = p->chargerWirelessOnline; in convertToHealthInfo() 109 info.maxChargingCurrent = p->maxChargingCurrent; in convertToHealthInfo() 110 info.maxChargingVoltage = p->maxChargingVoltage; in convertToHealthInfo() 111 info.batteryStatus = static_cast<BatteryStatus>(p->batteryStatus); in convertToHealthInfo() 112 info.batteryHealth = static_cast<BatteryHealth>(p->batteryHealth); in convertToHealthInfo() 113 info.batteryPresent = p->batteryPresent; in convertToHealthInfo() 114 info.batteryLevel = p->batteryLevel; in convertToHealthInfo() [all …]
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_socket.c | 129 tuneserver_protocol_t *p = tsctrl->proto; in tuneserver_process_command() local 132 LOGD(" Current command is %d\n", p->current_cmd); in tuneserver_process_command() 133 switch (p->current_cmd) { in tuneserver_process_command() 136 LOGE(" Ack Failed for cmd %d\n", p->current_cmd); in tuneserver_process_command() 139 result = tuneserver_process_get_list_cmd(tsctrl, p->recv_buf, in tuneserver_process_command() 142 LOGE(" RSP processing Failed for cmd %d\n", p->current_cmd); in tuneserver_process_command() 146 LOGE(" RSP Failed for cmd %d\n", p->current_cmd); in tuneserver_process_command() 153 LOGE(" Ack Failed for cmd %d\n", p->current_cmd); in tuneserver_process_command() 156 result = tuneserver_process_get_params_cmd(tsctrl, p->recv_buf, in tuneserver_process_command() 159 LOGE(" RSP processing Failed for cmd %d\n", p->current_cmd); in tuneserver_process_command() [all …]
|
/hardware/broadcom/wlan/bcmdhd/dhdutil/ |
D | bcmutils.c | 59 pktcopy(osl_t *osh, void *p, uint offset, int len, uchar *buf) in pktcopy() argument 67 for (; p && offset; p = PKTNEXT(osh, p)) { in pktcopy() 68 if (offset < (uint)PKTLEN(osh, p)) in pktcopy() 70 offset -= PKTLEN(osh, p); in pktcopy() 73 if (!p) in pktcopy() 77 for (; p && len; p = PKTNEXT(osh, p)) { in pktcopy() 78 n = MIN((uint)PKTLEN(osh, p) - offset, (uint)len); in pktcopy() 79 bcopy(PKTDATA(osh, p) + offset, buf, n); in pktcopy() 91 pktfrombuf(osl_t *osh, void *p, uint offset, int len, uchar *buf) in pktfrombuf() argument 96 for (; p && offset; p = PKTNEXT(osh, p)) { in pktfrombuf() [all …]
|
D | miniopt.c | 60 char *p, *eq, *valstr, *endptr = NULL; in miniopt() local 76 p = *argv++; in miniopt() 79 if (!t->opt_end && !strcmp(p, "--")) { in miniopt() 85 p = *argv++; in miniopt() 91 valstr = p; in miniopt() 93 else if (!strncmp(p, "--", 2)) { in miniopt() 94 eq = strchr(p, '='); in miniopt() 97 "%s: missing \" = \" in long param \"%s\"\n", t->name, p); in miniopt() 101 keylen = eq ? (eq - (p + 2)) : (int)strlen(p) - 2; in miniopt() 103 memcpy(t->key, p + 2, keylen); in miniopt() [all …]
|
/hardware/qcom/bt/msm8992/libbt-vendor/include/ |
D | bt_vendor_qcom.h | 23 #define STREAM_TO_UINT16(u16, p) {u16 = ((uint16_t)(*(p)) + (((uint16_t)(*((p) + 1))) << 8)); (p) +… argument 24 #define UINT16_TO_STREAM(p, u16) {*(p)++ = (uint8_t)(u16); *(p)++ = (uint8_t)((u16) >> 8);} argument 25 #define UINT32_TO_STREAM(p, u32) {*(p)++ = (uint8_t)(u32); *(p)++ = (uint8_t)((u32) >> 8); *(p)++ =… argument
|
D | hw_ar3k.h | 51 #define STREAM_TO_UINT16(u16, p) \ argument 52 {u16 = ((uint16_t)(*(p)) + (((uint16_t)(*((p) + 1))) << 8)); (p) += 2;} 53 #define UINT16_TO_STREAM(p, u16) \ argument 54 {*(p)++ = (uint8_t)(u16); *(p)++ = (uint8_t)((u16) >> 8);} 55 #define UINT32_TO_STREAM(p, u32) \ argument 56 {*(p)++ = (uint8_t)(u32); *(p)++ = (uint8_t)((u32) >> 8);\ 57 *(p)++ = (uint8_t)((u32) >> 16); *(p)++ = (uint8_t)((u32) >> 24);}
|
/hardware/qcom/bt/msm8996/libbt-vendor/include/ |
D | bt_vendor_qcom.h | 32 #define STREAM_TO_UINT16(u16, p) {u16 = ((uint16_t)(*(p)) + (((uint16_t)(*((p) + 1))) << 8)); (p) +… argument 33 #define UINT16_TO_STREAM(p, u16) {*(p)++ = (uint8_t)(u16); *(p)++ = (uint8_t)((u16) >> 8);} argument 34 #define UINT32_TO_STREAM(p, u32) {*(p)++ = (uint8_t)(u32); *(p)++ = (uint8_t)((u32) >> 8); *(p)++ =… argument
|
D | hw_ar3k.h | 51 #define STREAM_TO_UINT16(u16, p) \ argument 52 {u16 = ((uint16_t)(*(p)) + (((uint16_t)(*((p) + 1))) << 8)); (p) += 2;} 53 #define UINT16_TO_STREAM(p, u16) \ argument 54 {*(p)++ = (uint8_t)(u16); *(p)++ = (uint8_t)((u16) >> 8);} 55 #define UINT32_TO_STREAM(p, u32) \ argument 56 {*(p)++ = (uint8_t)(u32); *(p)++ = (uint8_t)((u32) >> 8);\ 57 *(p)++ = (uint8_t)((u32) >> 16); *(p)++ = (uint8_t)((u32) >> 24);}
|
/hardware/qcom/bt/msm8909/libbt-vendor/include/ |
D | bt_vendor_qcom.h | 32 #define STREAM_TO_UINT16(u16, p) {u16 = ((uint16_t)(*(p)) + (((uint16_t)(*((p) + 1))) << 8)); (p) +… argument 33 #define UINT16_TO_STREAM(p, u16) {*(p)++ = (uint8_t)(u16); *(p)++ = (uint8_t)((u16) >> 8);} argument 34 #define UINT32_TO_STREAM(p, u32) {*(p)++ = (uint8_t)(u32); *(p)++ = (uint8_t)((u32) >> 8); *(p)++ =… argument
|
D | hw_ar3k.h | 51 #define STREAM_TO_UINT16(u16, p) \ argument 52 {u16 = ((uint16_t)(*(p)) + (((uint16_t)(*((p) + 1))) << 8)); (p) += 2;} 53 #define UINT16_TO_STREAM(p, u16) \ argument 54 {*(p)++ = (uint8_t)(u16); *(p)++ = (uint8_t)((u16) >> 8);} 55 #define UINT32_TO_STREAM(p, u32) \ argument 56 {*(p)++ = (uint8_t)(u32); *(p)++ = (uint8_t)((u32) >> 8);\ 57 *(p)++ = (uint8_t)((u32) >> 16); *(p)++ = (uint8_t)((u32) >> 24);}
|
/hardware/nxp/nfc/halimpl/tml/ |
D | phDal4Nfc_messageQueueLib.cc | 118 phDal4Nfc_message_queue_item_t* p; in phDal4Nfc_msgctl() local 126 p = pQueue->pItems; in phDal4Nfc_msgctl() 127 while (p->pNext != NULL) { in phDal4Nfc_msgctl() 128 p = p->pNext; in phDal4Nfc_msgctl() 130 while (p->pPrev != NULL) { in phDal4Nfc_msgctl() 131 p = p->pPrev; in phDal4Nfc_msgctl() 132 free(p->pNext); in phDal4Nfc_msgctl() 133 p->pNext = NULL; in phDal4Nfc_msgctl() 135 free(p); in phDal4Nfc_msgctl() 163 phDal4Nfc_message_queue_item_t* p; in phDal4Nfc_msgsnd() local [all …]
|
/hardware/broadcom/libbt/src/ |
D | hardware.c | 100 #define STREAM_TO_UINT16(u16, p) {u16 = ((uint16_t)(*(p)) + (((uint16_t)(*((p) + 1))) << 8)); (p) +… argument 101 #define UINT8_TO_STREAM(p, u8) {*(p)++ = (uint8_t)(u8);} argument 102 #define UINT16_TO_STREAM(p, u16) {*(p)++ = (uint8_t)(u16); *(p)++ = (uint8_t)((u16) >> 8);} argument 103 #define UINT32_TO_STREAM(p, u32) {*(p)++ = (uint8_t)(u32); *(p)++ = (uint8_t)((u32) >> 8); *(p)++ =… argument 515 char *p = p_chip_id_str + len - 1; in hw_config_findpatch() local 522 if ((isdigit(*p)==0) && (*p != 'M') && (*p != 'm')) in hw_config_findpatch() 525 p--; in hw_config_findpatch() 531 *p = 0; in hw_config_findpatch() 557 uint8_t *p = (uint8_t *) (p_buf + 1); in hw_config_set_bdaddr() local 563 UINT16_TO_STREAM(p, HCI_VSC_WRITE_BD_ADDR); in hw_config_set_bdaddr() [all …]
|
/hardware/qcom/sdm845/bt/libbt-vendor/include/ |
D | bt_vendor_qcom.h | 31 #define STREAM_TO_UINT16(u16, p) {u16 = ((uint16_t)(*(p)) + (((uint16_t)(*((p) + 1))) << 8)); (p) +… argument 32 #define UINT16_TO_STREAM(p, u16) {*(p)++ = (uint8_t)(u16); *(p)++ = (uint8_t)((u16) >> 8);} argument 33 #define UINT32_TO_STREAM(p, u32) {*(p)++ = (uint8_t)(u32); *(p)++ = (uint8_t)((u32) >> 8); *(p)++ =… argument
|
D | hw_ar3k.h | 51 #define STREAM_TO_UINT16(u16, p) \ argument 52 {u16 = ((uint16_t)(*(p)) + (((uint16_t)(*((p) + 1))) << 8)); (p) += 2;} 53 #define UINT16_TO_STREAM(p, u16) \ argument 54 {*(p)++ = (uint8_t)(u16); *(p)++ = (uint8_t)((u16) >> 8);} 55 #define UINT32_TO_STREAM(p, u32) \ argument 56 {*(p)++ = (uint8_t)(u32); *(p)++ = (uint8_t)((u32) >> 8);\ 57 *(p)++ = (uint8_t)((u32) >> 16); *(p)++ = (uint8_t)((u32) >> 24);}
|
/hardware/qcom/bt/msm8909w_3100/libbt-vendor/include/ |
D | bt_vendor_qcom.h | 31 #define STREAM_TO_UINT16(u16, p) {u16 = ((uint16_t)(*(p)) + (((uint16_t)(*((p) + 1))) << 8)); (p) +… argument 32 #define UINT16_TO_STREAM(p, u16) {*(p)++ = (uint8_t)(u16); *(p)++ = (uint8_t)((u16) >> 8);} argument 33 #define UINT32_TO_STREAM(p, u32) {*(p)++ = (uint8_t)(u32); *(p)++ = (uint8_t)((u32) >> 8); *(p)++ =… argument
|
D | hw_ar3k.h | 51 #define STREAM_TO_UINT16(u16, p) \ argument 52 {u16 = ((uint16_t)(*(p)) + (((uint16_t)(*((p) + 1))) << 8)); (p) += 2;} 53 #define UINT16_TO_STREAM(p, u16) \ argument 54 {*(p)++ = (uint8_t)(u16); *(p)++ = (uint8_t)((u16) >> 8);} 55 #define UINT32_TO_STREAM(p, u32) \ argument 56 {*(p)++ = (uint8_t)(u32); *(p)++ = (uint8_t)((u32) >> 8);\ 57 *(p)++ = (uint8_t)((u32) >> 16); *(p)++ = (uint8_t)((u32) >> 24);}
|
/hardware/qcom/bt/msm8998/libbt-vendor/include/ |
D | bt_vendor_qcom.h | 31 #define STREAM_TO_UINT16(u16, p) {u16 = ((uint16_t)(*(p)) + (((uint16_t)(*((p) + 1))) << 8)); (p) +… argument 32 #define UINT16_TO_STREAM(p, u16) {*(p)++ = (uint8_t)(u16); *(p)++ = (uint8_t)((u16) >> 8);} argument 33 #define UINT32_TO_STREAM(p, u32) {*(p)++ = (uint8_t)(u32); *(p)++ = (uint8_t)((u32) >> 8); *(p)++ =… argument
|
/hardware/qcom/audio/post_proc/ |
D | equalizer.c | 191 int equalizer_get_parameter(effect_context_t *context, effect_param_t *p, in equalizer_get_parameter() argument 195 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t); in equalizer_get_parameter() 196 int32_t *param_tmp = (int32_t *)p->data; in equalizer_get_parameter() 200 void *value = p->data + voffset; in equalizer_get_parameter() 205 p->status = 0; in equalizer_get_parameter() 213 if (p->vsize < sizeof(int16_t)) in equalizer_get_parameter() 214 p->status = -EINVAL; in equalizer_get_parameter() 215 p->vsize = sizeof(int16_t); in equalizer_get_parameter() 219 if (p->vsize < 2 * sizeof(int16_t)) in equalizer_get_parameter() 220 p->status = -EINVAL; in equalizer_get_parameter() [all …]
|
D | reverb.c | 299 int reverb_get_parameter(effect_context_t *context, effect_param_t *p, in reverb_get_parameter() argument 303 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t); in reverb_get_parameter() 304 int32_t *param_tmp = (int32_t *)p->data; in reverb_get_parameter() 306 void *value = p->data + voffset; in reverb_get_parameter() 312 p->status = 0; in reverb_get_parameter() 315 if (param != REVERB_PARAM_PRESET || p->vsize < sizeof(uint16_t)) in reverb_get_parameter() 323 if (p->vsize < sizeof(uint16_t)) in reverb_get_parameter() 324 p->status = -EINVAL; in reverb_get_parameter() 325 p->vsize = sizeof(uint16_t); in reverb_get_parameter() 328 if (p->vsize < sizeof(uint16_t)) in reverb_get_parameter() [all …]
|
/hardware/nxp/secure_element/libese-spi/p73/utils/ |
D | ringbuffer.cpp | 33 ringbuffer_t* p = static_cast<ringbuffer_t*>(calloc(1, sizeof(ringbuffer_t))); in ringbuffer_init() local 35 if (p == NULL) return p; in ringbuffer_init() 37 p->base = static_cast<uint8_t*>(calloc(size, sizeof(uint8_t))); in ringbuffer_init() 38 p->head = p->tail = p->base; in ringbuffer_init() 39 p->total = p->available = size; in ringbuffer_init() 41 return p; in ringbuffer_init() 59 size_t ringbuffer_insert(ringbuffer_t* rb, const uint8_t* p, size_t length) { in ringbuffer_insert() argument 61 assert(p); in ringbuffer_insert() 66 *rb->tail++ = *p++; in ringbuffer_insert() 86 size_t ringbuffer_peek(const ringbuffer_t* rb, off_t offset, uint8_t* p, in ringbuffer_peek() argument [all …]
|
/hardware/interfaces/camera/metadata/3.3/ |
D | types.hal | 59 * <p>Partial documentation is included for each tag; for complete documentation, reference 60 * '/system/media/camera/docs/docs.html' in the corresponding Android source tree.</p> 65 * <p>Whether a significant scene change is detected within the currently-set AF 66 * region(s).</p> 74 * <p>The origin for ANDROID_LENS_POSE_TRANSLATION.</p> 82 * <p>The correction coefficients to correct for this camera device's 83 * radial and tangential lens distortion.</p> 84 * <p>Replaces the deprecated ANDROID_LENS_RADIAL_DISTORTION field, which was 85 * inconsistently defined.</p> 95 * <p>A subset of the available request keys that the camera device [all …]
|