/hardware/interfaces/bluetooth/hci/test/ |
D | h4_protocol_unittest.cc | 56 MATCHER_P3(PacketMatches, header_, header_length, payload, 58 size_t payload_length = strlen(payload); 67 return memcmp(payload, arg.data() + header_length, payload_length) == 0; 122 void ExpectInboundAclData(char* payload, std::promise<void>* promise) { in ExpectInboundAclData() argument 127 int length = strlen(payload); in ExpectInboundAclData() 130 ALOGD("(%d bytes) %s", length, payload); in ExpectInboundAclData() 133 Call(PacketMatches(header_ + 1, kAclHeaderSize, payload))) in ExpectInboundAclData() 143 void WriteInboundAclData(char* payload) { in WriteInboundAclData() argument 146 TEMP_FAILURE_RETRY(write(chip_uart_fd_, payload, strlen(payload))); in WriteInboundAclData() 149 void ExpectInboundScoData(char* payload, std::promise<void>* promise) { in ExpectInboundScoData() argument [all …]
|
/hardware/interfaces/sensors/aidl/convert/ |
D | convert.cpp | 97 dst->meta_data.what = (int32_t)src.payload.get<Event::EventPayload::meta>().what; in convertToSensorEvent() 110 dst->acceleration.x = src.payload.get<Event::EventPayload::vec3>().x; in convertToSensorEvent() 111 dst->acceleration.y = src.payload.get<Event::EventPayload::vec3>().y; in convertToSensorEvent() 112 dst->acceleration.z = src.payload.get<Event::EventPayload::vec3>().z; in convertToSensorEvent() 113 dst->acceleration.status = (int32_t)src.payload.get<Event::EventPayload::vec3>().status; in convertToSensorEvent() 118 dst->data[0] = src.payload.get<Event::EventPayload::vec4>().x; in convertToSensorEvent() 119 dst->data[1] = src.payload.get<Event::EventPayload::vec4>().y; in convertToSensorEvent() 120 dst->data[2] = src.payload.get<Event::EventPayload::vec4>().z; in convertToSensorEvent() 121 dst->data[3] = src.payload.get<Event::EventPayload::vec4>().w; in convertToSensorEvent() 127 dst->data[0] = src.payload.get<Event::EventPayload::data>().values[0]; in convertToSensorEvent() [all …]
|
/hardware/interfaces/bluetooth/1.0/default/test/ |
D | h4_protocol_unittest.cc | 55 MATCHER_P3(HidlVecMatches, preamble, preamble_length, payload, "") { 56 size_t length = strlen(payload) + preamble_length; 65 return memcmp(payload, arg.data() + preamble_length, 118 void WriteAndExpectInboundAclData(char* payload) { in WriteAndExpectInboundAclData() argument 121 int length = strlen(payload); in WriteAndExpectInboundAclData() 127 TEMP_FAILURE_RETRY(write(fake_uart_, payload, strlen(payload))); in WriteAndExpectInboundAclData() 133 payload))) in WriteAndExpectInboundAclData() 145 void WriteAndExpectInboundScoData(char* payload) { in WriteAndExpectInboundScoData() argument 148 preamble[3] = strlen(payload) & 0xFF; in WriteAndExpectInboundScoData() 152 TEMP_FAILURE_RETRY(write(fake_uart_, payload, strlen(payload))); in WriteAndExpectInboundScoData() [all …]
|
D | mct_protocol_unittest.cc | 48 MATCHER_P3(HidlVecMatches, preamble, preamble_length, payload, "") { 49 size_t length = strlen(payload) + preamble_length; 58 return memcmp(payload, arg.data() + preamble_length, 119 void WriteAndExpectInboundAclData(char* payload) { in WriteAndExpectInboundAclData() argument 122 int length = strlen(payload); in WriteAndExpectInboundAclData() 129 TEMP_FAILURE_RETRY(write(fake_uart_[CH_ACL_IN], payload, strlen(payload))); in WriteAndExpectInboundAclData() 135 Call(HidlVecMatches(preamble, sizeof(preamble), payload))) in WriteAndExpectInboundAclData() 147 void WriteAndExpectInboundEvent(char* payload) { in WriteAndExpectInboundEvent() argument 150 preamble[1] = strlen(payload) & 0xFF; in WriteAndExpectInboundEvent() 154 TEMP_FAILURE_RETRY(write(fake_uart_[CH_EVT], payload, strlen(payload))); in WriteAndExpectInboundEvent() [all …]
|
/hardware/qcom/sm7250/display/sdm/include/private/ |
D | generic_payload.h | 46 type_size(0), payload(nullptr), array_size(0) {} in GenericPayload() 50 payload = nullptr; in GenericPayload() 52 if (in.payload) { in GenericPayload() 65 A* p = reinterpret_cast<A *>(in.payload); in CopyPayload() 69 if (payload != nullptr) { in CopyPayload() 82 payload = reinterpret_cast<uint8_t *>(p2); in CopyPayload() 92 if (payload) { in CreatePayload() 104 payload = reinterpret_cast<uint8_t *>(p); in CreatePayload() 111 if (payload) { in CreatePayload() 127 payload = reinterpret_cast<uint8_t *>(p); in CreatePayload() [all …]
|
/hardware/interfaces/automotive/can/1.0/tools/libprotocan/tests/ |
D | libprotocan_signal_test.cpp | 25 msg.payload = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; in TEST() 26 for (unsigned i = 0; i < msg.payload.size(); i++) { in TEST() 34 msgs[0].payload = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}; in TEST() 35 msgs[1].payload = {0xAB, 0xAB, 0xAB, 0xAB, 0xAB, 0xAB, 0xAB, 0xAB, 0xAB, 0xAB}; in TEST() 36 msgs[2].payload = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; in TEST() 37 for (unsigned i = 0; i < msgs[0].payload.size(); i++) { in TEST() 45 msgExpected.payload[i] = 0xBA; in TEST() 61 msg.payload = {0xDE, 0xAD, 0xBE, 0xEF}; in TEST() 63 msg2.payload = {0xDE, 0xAD, 0xBE, 0xEF, 0xDE, 0xAD}; in TEST() 97 msg.payload = {0xDE, 0xAD, 0xBE, 0xEF, 0xAB, 0xBC, 0xCD, 0xDE, 0xEF}; in TEST() [all …]
|
/hardware/qcom/sm7250/display/sdm/libs/core/ |
D | color_manager.cpp | 143 DisplayError STCIntfClient::SetProperty(const ScPayload &payload) { in SetProperty() argument 150 ret = stc_intf_->SetProperty(payload); in SetProperty() 152 DLOGE("Failed to SetProperty: %d, length = %d, ret = %d", payload.prop, payload.len, ret); in SetProperty() 159 DisplayError STCIntfClient::GetProperty(ScPayload *payload) { in GetProperty() argument 166 if (!payload) { in GetProperty() 171 ret = stc_intf_->GetProperty(payload); in GetProperty() 173 DLOGE("Failed to GetProperty: %d, length = %d, ret = %d", payload->prop, payload->len, ret); in GetProperty() 510 if (params->payload.empty()) { in ConvertToPPFeatures() 515 for (auto it = params->payload.begin(); it != params->payload.end(); it++) { in ConvertToPPFeatures() 596 ScPayload payload; in NeedHwassetsUpdate() local [all …]
|
D | color_manager.h | 84 virtual DisplayError SetParams(FeatureOps param_type, void *payload) = 0; 85 virtual DisplayError GetParams(FeatureOps param_type, void *payload) = 0; 99 DisplayError SetProperty(const ScPayload &payload); 100 DisplayError GetProperty(ScPayload *payload); 209 DisplayError SetParams(FeatureOps param_type, void *payload); 210 DisplayError GetParams(FeatureOps param_type, void *payload); 232 DisplayError SetParams(FeatureOps param_type, void *payload); 233 DisplayError GetParams(FeatureOps param_type, void *payload); 246 DisplayError SetParams(FeatureOps param_type, void *payload); 247 DisplayError GetParams(FeatureOps param_type, void *payload); [all …]
|
/hardware/interfaces/sensors/aidl/default/multihal/ |
D | ConvertUtils.cpp | 69 (MetaDataEventType)aidlEvent.payload.get<Event::EventPayload::meta>().what; in convertToHidlEvent() 77 hidlEvent->u.vec3.x = aidlEvent.payload.get<Event::EventPayload::vec3>().x; in convertToHidlEvent() 78 hidlEvent->u.vec3.y = aidlEvent.payload.get<Event::EventPayload::vec3>().y; in convertToHidlEvent() 79 hidlEvent->u.vec3.z = aidlEvent.payload.get<Event::EventPayload::vec3>().z; in convertToHidlEvent() 81 (V1_0SensorStatus)aidlEvent.payload.get<Event::EventPayload::vec3>().status; in convertToHidlEvent() 84 hidlEvent->u.vec4.x = aidlEvent.payload.get<Event::EventPayload::vec4>().x; in convertToHidlEvent() 85 hidlEvent->u.vec4.y = aidlEvent.payload.get<Event::EventPayload::vec4>().y; in convertToHidlEvent() 86 hidlEvent->u.vec4.z = aidlEvent.payload.get<Event::EventPayload::vec4>().z; in convertToHidlEvent() 87 hidlEvent->u.vec4.w = aidlEvent.payload.get<Event::EventPayload::vec4>().w; in convertToHidlEvent() 91 std::copy(aidlEvent.payload.get<Event::EventPayload::data>().values.data(), in convertToHidlEvent() [all …]
|
/hardware/interfaces/automotive/can/1.0/tools/libprotocan/ |
D | Signal.cpp | 49 CHECK(msg.payload.size() > kLastByte) in get() 53 if (kLastByte != kFirstByte) v = kLastMask & msg.payload[kLastByte]; in get() 56 v = (v << 8) | msg.payload[i]; in get() 59 return (v << kFirstByteBits) | ((msg.payload[kFirstByte] & kFirstMask) >> kFirstBit); in get() 63 CHECK(msg.payload.size() > kLastByte) in set() 65 << " which is beyond message length of " << msg.payload.size(); in set() 70 msg.payload[kFirstByte] = (msg.payload[kFirstByte] & ~kFirstMask) | (firstByte & kFirstMask); in set() 73 msg.payload[i] = val & 0xFF; in set() 78 msg.payload[kLastByte] = (msg.payload[kLastByte] & ~kLastMask) | (val & kLastMask); in set()
|
/hardware/google/gfxstream/guest/mesa/include/android_stub/log/ |
D | log.h | 81 int __android_log_bwrite(int32_t tag, const void* payload, size_t len); 82 int __android_log_btwrite(int32_t tag, char type, const void* payload, 84 int __android_log_bswrite(int32_t tag, const char* payload); 86 int __android_log_stats_bwrite(int32_t tag, const void* payload, size_t len); 88 #define android_bWriteLog(tag, payload, len) \ argument 89 __android_log_bwrite(tag, payload, len) 90 #define android_btWriteLog(tag, type, payload, len) \ argument 91 __android_log_btwrite(tag, type, payload, len)
|
/hardware/ril/libril/ |
D | RilSapSocket.cpp | 225 uimFuncs->onRequest(req->id, req->payload->bytes, req->payload->size, currRequest, id); in dispatchRequest() 227 uimFuncs->onRequest(req->id, req->payload->bytes, req->payload->size, currRequest); in dispatchRequest() 248 rsp.payload = (pb_bytes_array_t *)calloc(1, sizeof(pb_bytes_array_t) + response_len); in onRequestComplete() 249 if (!rsp.payload) { in onRequestComplete() 253 memcpy(rsp.payload->bytes, response, response_len); in onRequestComplete() 254 rsp.payload->size = response_len; in onRequestComplete() 256 rsp.payload->size = 0; in onRequestComplete() 263 free(rsp.payload); in onRequestComplete() 278 pb_bytes_array_t *payload = (pb_bytes_array_t *)calloc(1, in onUnsolicitedResponse() local 280 if (!payload) { in onUnsolicitedResponse() [all …]
|
/hardware/google/gfxstream/guest/mesa/src/util/perf/ |
D | u_trace.c | 69 const void *payload; member 99 struct u_trace_payload_buf *payload; member 163 evt->tp->print(utctx->out, evt->payload); in print_txt_event() 238 evt->tp->print_json(utctx->out, evt->payload); in print_json_event() 255 struct u_trace_payload_buf *payload = in u_trace_payload_buf_create() local 256 malloc(sizeof(*payload) + PAYLOAD_BUFFER_SIZE); in u_trace_payload_buf_create() 258 p_atomic_set(&payload->refcount, 1); in u_trace_payload_buf_create() 260 payload->buf = (uint8_t *) (payload + 1); in u_trace_payload_buf_create() 261 payload->end = payload->buf + PAYLOAD_BUFFER_SIZE; in u_trace_payload_buf_create() 262 payload->next = payload->buf; in u_trace_payload_buf_create() [all …]
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera.c | 622 uint32_t payload; in mm_camera_get_queued_buf_count() local 624 payload = stream_id; in mm_camera_get_queued_buf_count() 631 (void *)&payload, in mm_camera_get_queued_buf_count() 1214 mm_evt_paylod_config_stream_t payload; in mm_camera_config_stream() local 1220 memset(&payload, 0, sizeof(mm_evt_paylod_config_stream_t)); in mm_camera_config_stream() 1221 payload.stream_id = stream_id; in mm_camera_config_stream() 1222 payload.config = config; in mm_camera_config_stream() 1225 (void *)&payload, in mm_camera_config_stream() 1490 mm_evt_paylod_set_get_stream_parms_t payload; in mm_camera_set_stream_parms() local 1498 memset(&payload, 0, sizeof(payload)); in mm_camera_set_stream_parms() [all …]
|
/hardware/interfaces/sensors/aidl/default/ |
D | Sensor.cpp | 93 ev.payload.set<EventPayload::Tag::meta>(meta); in flush() 140 memset(&event.payload, 0, sizeof(event.payload)); in readEvents() 141 readEventPayload(event.payload); in readEvents() 195 memcmp(&mPreviousEvent.payload, &ev.payload, sizeof(ev.payload)) != 0) { in readEvents() 222 void AccelSensor::readEventPayload(EventPayload& payload) { in readEventPayload() argument 229 payload.set<EventPayload::Tag::vec3>(vec3); in readEventPayload() 251 void PressureSensor::readEventPayload(EventPayload& payload) { in readEventPayload() argument 252 payload.set<EventPayload::Tag::scalar>(1013.25f); in readEventPayload() 274 void MagnetometerSensor::readEventPayload(EventPayload& payload) { in readEventPayload() argument 281 payload.set<EventPayload::Tag::vec3>(vec3); in readEventPayload() [all …]
|
/hardware/qcom/camera/msm8998/QCamera2/HAL/ |
D | QCamera2HWICallbacks.cpp | 102 qcamera_sm_internal_evt_payload_t *payload = in zsl_channel_cb() local 105 if (NULL != payload) { in zsl_channel_cb() 106 memset(payload, 0, sizeof(qcamera_sm_internal_evt_payload_t)); in zsl_channel_cb() 107 payload->evt_type = QCAMERA_INTERNAL_EVT_RETRO_AEC_UNLOCK; in zsl_channel_cb() 108 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in zsl_channel_cb() 111 free(payload); in zsl_channel_cb() 112 payload = NULL; in zsl_channel_cb() 124 qcamera_sm_internal_evt_payload_t *payload = in zsl_channel_cb() local 127 if (NULL != payload) { in zsl_channel_cb() 128 memset(payload, 0, sizeof(qcamera_sm_internal_evt_payload_t)); in zsl_channel_cb() [all …]
|
D | QCameraStateMachine.h | 235 int32_t stateMachine(qcamera_sm_evt_enum_t evt, void *payload); 236 int32_t procEvtPreviewStoppedState(qcamera_sm_evt_enum_t evt, void *payload); 237 int32_t procEvtPreviewReadyState(qcamera_sm_evt_enum_t evt, void *payload); 238 int32_t procEvtPreviewingState(qcamera_sm_evt_enum_t evt, void *payload); 239 int32_t procEvtPrepareSnapshotState(qcamera_sm_evt_enum_t evt, void *payload); 240 int32_t procEvtPicTakingState(qcamera_sm_evt_enum_t evt, void *payload); 241 int32_t procEvtRecordingState(qcamera_sm_evt_enum_t evt, void *payload); 242 int32_t procEvtVideoPicTakingState(qcamera_sm_evt_enum_t evt, void *payload); 243 int32_t procEvtPreviewPicTakingState(qcamera_sm_evt_enum_t evt, void *payload);
|
D | QCameraStateMachine.cpp | 299 int32_t QCameraStateMachine::stateMachine(qcamera_sm_evt_enum_t evt, void *payload) in stateMachine() argument 305 rc = procEvtPreviewStoppedState(evt, payload); in stateMachine() 308 rc = procEvtPreviewReadyState(evt, payload); in stateMachine() 311 rc = procEvtPreviewingState(evt, payload); in stateMachine() 314 rc = procEvtPrepareSnapshotState(evt, payload); in stateMachine() 317 rc = procEvtPicTakingState(evt, payload); in stateMachine() 320 rc = procEvtRecordingState(evt, payload); in stateMachine() 323 rc = procEvtVideoPicTakingState(evt, payload); in stateMachine() 326 rc = procEvtPreviewPicTakingState(evt, payload); in stateMachine() 350 void *payload) in procEvtPreviewStoppedState() argument [all …]
|
/hardware/google/gfxstream/third-party/astc-encoder/Source/ |
D | astcenccli_platform_dependents.cpp | 133 void* payload; member 148 ltd->func(ltd->thread_count, ltd->thread_id, ltd->payload); in launch_threads_helper() 156 void *payload in launch_threads() argument 161 func(1, 0, payload); in launch_threads() 171 thread_descs[i].payload = payload; in launch_threads()
|
/hardware/samsung/nfc/halimpl/include/ |
D | hal_msg.h | 34 uint8_t payload[NCI_MAX_PAYLOAD]; member 46 #define NCI_PAYLOAD(x) ((x)->payload) 47 #define NCI_STATUS(x) (((x)->payload)[0]) 49 #define NCI_MF_INFO(x) (((x)->payload) + (x)->len - NCI_MF_INFO_SIZE) 98 uint8_t payload[NCI_MAX_PAYLOAD + 1]; member 100 #define FW_PAYLOAD(x) ((x)->payload)
|
/hardware/interfaces/sensors/aidl/default/include/sensors-impl/ |
D | Sensor.h | 98 virtual void readEventPayload(EventPayload& payload) override; 106 virtual void readEventPayload(EventPayload& payload) override; 114 virtual void readEventPayload(EventPayload& payload) override; 122 virtual void readEventPayload(EventPayload& payload) override; 130 virtual void readEventPayload(EventPayload& payload) override; 138 virtual void readEventPayload(EventPayload& payload) override; 146 virtual void readEventPayload(EventPayload& payload) override; 154 virtual void readEventPayload(EventPayload& payload) override; 162 virtual void readEventPayload(EventPayload& payload) override;
|
/hardware/samsung/nfc/halimpl/src/ |
D | hal_nci.cc | 52 nci_pkt.payload[0] = 0x01; // Reset config in hal_nci_send_reset() 72 nci_pkt.payload[0] = 0x00; in hal_nci_send_init() 73 nci_pkt.payload[1] = 0x00; in hal_nci_send_init() 88 nci_pkt.payload[0] = 0x00; in hal_nci_send_clearLmrt() 89 nci_pkt.payload[1] = 0x00; in hal_nci_send_clearLmrt() 118 get_clock_info(rev, CFG_FW_CLK_SPEED, (int*)&nci_pkt.payload[0]); in hal_nci_send_prop_fw_cfg() 119 if (nci_pkt.payload[0] == 0xff) { in hal_nci_send_prop_fw_cfg() 121 nci_pkt.payload[0]); in hal_nci_send_prop_fw_cfg() 179 dummy_rsp.payload[0] = NCI_STATUS_OK; in nfc_hal_prehandler()
|
/hardware/interfaces/automotive/evs/1.1/vts/functional/ |
D | FrameHandler.cpp | 223 mLatestEventDesc.payload[0] = event.payload[0]; in notify() 224 mLatestEventDesc.payload[1] = event.payload[1]; in notify() 230 mLatestEventDesc.payload[0], mLatestEventDesc.payload[1]); in notify() 365 (ignorePayload || (mLatestEventDesc.payload[0] == aTargetEvent.payload[0] && in waitForEvent() 366 mLatestEventDesc.payload[1] == aTargetEvent.payload[1])); in waitForEvent() 369 aReceivedEvent.payload[0] = mLatestEventDesc.payload[0]; in waitForEvent() 370 aReceivedEvent.payload[1] = mLatestEventDesc.payload[1]; in waitForEvent()
|
/hardware/qcom/sm8150/display/sdm/libs/core/drm/ |
D | hw_color_manager_drm.cpp | 244 if (feature && feature->payload) { in FreeDrmFeatureData() 246 void *ptr = feature->payload; in FreeDrmFeatureData() 327 feature->payload = nullptr; in FreeDrmFeatureData() 356 out_data->payload = NULL; in GetDrmPCC() 359 out_data->payload = NULL; in GetDrmPCC() 404 out_data->payload = mdp_pcc; in GetDrmPCC() 434 out_data->payload = NULL; in GetDrmIGC() 437 out_data->payload = NULL; in GetDrmIGC() 456 out_data->payload = NULL; in GetDrmIGC() 465 out_data->payload = mdp_igc; in GetDrmIGC() [all …]
|
/hardware/qcom/sm7250/display/sdm/libs/core/drm/ |
D | hw_color_manager_drm.cpp | 244 if (feature && feature->payload) { in FreeDrmFeatureData() 246 void *ptr = feature->payload; in FreeDrmFeatureData() 327 feature->payload = nullptr; in FreeDrmFeatureData() 356 out_data->payload = NULL; in GetDrmPCC() 359 out_data->payload = NULL; in GetDrmPCC() 404 out_data->payload = mdp_pcc; in GetDrmPCC() 434 out_data->payload = NULL; in GetDrmIGC() 437 out_data->payload = NULL; in GetDrmIGC() 456 out_data->payload = NULL; in GetDrmIGC() 465 out_data->payload = mdp_igc; in GetDrmIGC() [all …]
|