Home
last modified time | relevance | path

Searched refs:payload (Results 1 – 25 of 113) sorted by relevance

12345

/device/generic/goldfish/sensors/
Dmultihal_sensors_qemu.cpp126 EventPayload* payload = &event.u; in parseQemuSensorEventLocked() local
127 ahs10::Vec3* vec3 = &payload->vec3; in parseQemuSensorEventLocked()
128 ahs10::Uncal* uncal = &payload->uncal; in parseQemuSensorEventLocked()
213 if (sscanf(values, "%f", &payload->scalar) == 1) { in parseQemuSensorEventLocked()
215 payload->scalar, 0.001)) { in parseQemuSensorEventLocked()
220 state->lastAmbientTemperatureValue = payload->scalar; in parseQemuSensorEventLocked()
225 if (sscanf(values, "%f", &payload->scalar) == 1) { in parseQemuSensorEventLocked()
227 payload->scalar, 0.001)) { in parseQemuSensorEventLocked()
232 state->lastProximityValue = payload->scalar; in parseQemuSensorEventLocked()
237 if (sscanf(values, "%f", &payload->scalar) == 1) { in parseQemuSensorEventLocked()
[all …]
Dmultihal_sensors.cpp171 EventPayload* payload = &event.u; in activationOnChangeSensorEvent() local
175 payload->scalar = m_protocolState.lastLightValue; in activationOnChangeSensorEvent()
179 payload->scalar = m_protocolState.lastProximityValue; in activationOnChangeSensorEvent()
183 payload->scalar = m_protocolState.lastRelativeHumidityValue; in activationOnChangeSensorEvent()
187 payload->scalar = m_protocolState.kSensorNoValue; in activationOnChangeSensorEvent()
193 payload->heartRate.status = SensorStatus::UNRELIABLE; in activationOnChangeSensorEvent()
194 payload->heartRate.bpm = 0; in activationOnChangeSensorEvent()
200 payload->scalar = m_protocolState.lastHingeAngle0Value; in activationOnChangeSensorEvent()
204 payload->scalar = m_protocolState.lastHingeAngle1Value; in activationOnChangeSensorEvent()
208 payload->scalar = m_protocolState.lastHingeAngle2Value; in activationOnChangeSensorEvent()
/device/google/cuttlefish/guest/hals/ril/reference-libril/
DRilSapSocket.cpp226 uimFuncs->onRequest(req->id, req->payload->bytes, req->payload->size, currRequest, id); in dispatchRequest()
228 uimFuncs->onRequest(req->id, req->payload->bytes, req->payload->size, currRequest); in dispatchRequest()
249 rsp.payload = (pb_bytes_array_t *)calloc(1, sizeof(pb_bytes_array_t) + response_len); in onRequestComplete()
250 if (!rsp.payload) { in onRequestComplete()
254 memcpy(rsp.payload->bytes, response, response_len); in onRequestComplete()
255 rsp.payload->size = response_len; in onRequestComplete()
257 rsp.payload->size = 0; in onRequestComplete()
264 free(rsp.payload); in onRequestComplete()
279 pb_bytes_array_t *payload = (pb_bytes_array_t *)calloc(1, in onUnsolicitedResponse() local
281 if (!payload) { in onUnsolicitedResponse()
[all …]
Dsap_service.cpp110 pb_bytes_array_t *payload = (pb_bytes_array_t *) malloc(sizeof(pb_bytes_array_t) - 1 + reqLen); in addPayloadAndDispatchRequest() local
111 if (payload == NULL) { in addPayloadAndDispatchRequest()
116 msg->payload = payload; in addPayloadAndDispatchRequest()
117 msg->payload->size = reqLen; in addPayloadAndDispatchRequest()
118 memcpy(msg->payload->bytes, reqPtr, reqLen); in addPayloadAndDispatchRequest()
126 sendFailedResponse(msg->id, msg->token, 3, payload, reqPtr, msg); in addPayloadAndDispatchRequest()
129 free(msg->payload); in addPayloadAndDispatchRequest()
775 uint8_t *data = rsp->payload->bytes; in processResponse()
776 size_t dataLen = rsp->payload->size; in processResponse()
/device/generic/vulkan-cereal/fake-android-guest/log/
Dlog.h95 int __android_log_bwrite(int32_t tag, const void* payload, size_t len);
96 int __android_log_btwrite(int32_t tag, char type, const void* payload,
98 int __android_log_bswrite(int32_t tag, const char* payload);
100 int __android_log_stats_bwrite(int32_t tag, const void* payload, size_t len);
102 #define android_bWriteLog(tag, payload, len) \ argument
103 __android_log_bwrite(tag, payload, len)
104 #define android_btWriteLog(tag, type, payload, len) \ argument
105 __android_log_btwrite(tag, type, payload, len)
/device/generic/vulkan-cereal/third-party/astc-encoder/Source/
Dastcenccli_platform_dependents.cpp133 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()
/device/google/cuttlefish/host/frontend/webrtc/html_client/js/
Dadb.js55 function createAdbMessage(command, arg0, arg1, payload) { argument
56 let arrayBuffer = new ArrayBuffer(24 + payload.length);
61 setU32LE(array, 12, payload.length);
62 setU32LE(array, 16, computeChecksum(payload));
64 array.set(payload, 24);
87 let payload = new Uint8Array(0);
90 createAdbMessage(A_OKAY, kLocalChannelId, remoteId, payload);
Drootcanal.js39 function rootCanalAddPayload(array, pos, payload) { argument
40 array.set(payload, pos);
42 return pos + payload.length;
/device/google/bramble/usb/usb/
DUsb.cpp714 static void uevent_event(uint32_t /*epevents*/, struct data *payload) { in uevent_event() argument
719 n = uevent_kernel_multicast_recv(payload->uevent_fd, msg, UEVENT_MSG_LEN); in uevent_event()
732 pthread_mutex_lock(&payload->usb->mPartnerLock); in uevent_event()
733 payload->usb->mPartnerUp = true; in uevent_event()
734 pthread_cond_signal(&payload->usb->mPartnerCV); in uevent_event()
735 pthread_mutex_unlock(&payload->usb->mPartnerLock); in uevent_event()
740 queryVersionHelper(payload->usb, &currentPortStatus); in uevent_event()
743 if (!pthread_mutex_trylock(&payload->usb->mRoleSwitchLock)) { in uevent_event()
755 pthread_mutex_unlock(&payload->usb->mRoleSwitchLock); in uevent_event()
769 struct data payload; in work() local
[all …]
/device/google/sunfish/usb/usb/
DUsb.cpp714 static void uevent_event(uint32_t /*epevents*/, struct data *payload) { in uevent_event() argument
719 n = uevent_kernel_multicast_recv(payload->uevent_fd, msg, UEVENT_MSG_LEN); in uevent_event()
732 pthread_mutex_lock(&payload->usb->mPartnerLock); in uevent_event()
733 payload->usb->mPartnerUp = true; in uevent_event()
734 pthread_cond_signal(&payload->usb->mPartnerCV); in uevent_event()
735 pthread_mutex_unlock(&payload->usb->mPartnerLock); in uevent_event()
740 queryVersionHelper(payload->usb, &currentPortStatus); in uevent_event()
743 if (!pthread_mutex_trylock(&payload->usb->mRoleSwitchLock)) { in uevent_event()
755 pthread_mutex_unlock(&payload->usb->mRoleSwitchLock); in uevent_event()
769 struct data payload; in work() local
[all …]
/device/google/redfin/usb/usb/
DUsb.cpp714 static void uevent_event(uint32_t /*epevents*/, struct data *payload) { in uevent_event() argument
719 n = uevent_kernel_multicast_recv(payload->uevent_fd, msg, UEVENT_MSG_LEN); in uevent_event()
732 pthread_mutex_lock(&payload->usb->mPartnerLock); in uevent_event()
733 payload->usb->mPartnerUp = true; in uevent_event()
734 pthread_cond_signal(&payload->usb->mPartnerCV); in uevent_event()
735 pthread_mutex_unlock(&payload->usb->mPartnerLock); in uevent_event()
740 queryVersionHelper(payload->usb, &currentPortStatus); in uevent_event()
743 if (!pthread_mutex_trylock(&payload->usb->mRoleSwitchLock)) { in uevent_event()
755 pthread_mutex_unlock(&payload->usb->mRoleSwitchLock); in uevent_event()
769 struct data payload; in work() local
[all …]
/device/google/coral/usb/usb/
DUsb.cpp714 static void uevent_event(uint32_t /*epevents*/, struct data *payload) { in uevent_event() argument
719 n = uevent_kernel_multicast_recv(payload->uevent_fd, msg, UEVENT_MSG_LEN); in uevent_event()
732 pthread_mutex_lock(&payload->usb->mPartnerLock); in uevent_event()
733 payload->usb->mPartnerUp = true; in uevent_event()
734 pthread_cond_signal(&payload->usb->mPartnerCV); in uevent_event()
735 pthread_mutex_unlock(&payload->usb->mPartnerLock); in uevent_event()
740 queryVersionHelper(payload->usb, &currentPortStatus); in uevent_event()
743 if (!pthread_mutex_trylock(&payload->usb->mRoleSwitchLock)) { in uevent_event()
755 pthread_mutex_unlock(&payload->usb->mRoleSwitchLock); in uevent_event()
769 struct data payload; in work() local
[all …]
/device/google/barbet/usb/usb/
DUsb.cpp714 static void uevent_event(uint32_t /*epevents*/, struct data *payload) { in uevent_event() argument
719 n = uevent_kernel_multicast_recv(payload->uevent_fd, msg, UEVENT_MSG_LEN); in uevent_event()
732 pthread_mutex_lock(&payload->usb->mPartnerLock); in uevent_event()
733 payload->usb->mPartnerUp = true; in uevent_event()
734 pthread_cond_signal(&payload->usb->mPartnerCV); in uevent_event()
735 pthread_mutex_unlock(&payload->usb->mPartnerLock); in uevent_event()
740 queryVersionHelper(payload->usb, &currentPortStatus); in uevent_event()
743 if (!pthread_mutex_trylock(&payload->usb->mRoleSwitchLock)) { in uevent_event()
755 pthread_mutex_unlock(&payload->usb->mRoleSwitchLock); in uevent_event()
769 struct data payload; in work() local
[all …]
/device/google/cuttlefish/common/libs/security/
Dconfui_sign.cpp26 const std::vector<std::uint8_t>& payload) { in Send() argument
40 decltype(msg.payload_.size()) payload_size = payload.size(); in Send()
45 const char* buf = reinterpret_cast<const char*>(payload.data()); in Send()
46 auto n_written_payload = WriteAll(output, buf, payload.size()); in Send()
48 if (n_written_payload != payload.size()) { in Send()
Dkeymaster_channel_sharedfd.cpp54 message.Serialize(to_send->payload, to_send->payload + payload_size); in SendMessage()
78 auto message_bytes = reinterpret_cast<char*>(message->payload); in ReceiveMessage()
/device/google/zuma/usb/usb/
DUsb.cpp1066 static void uevent_event(uint32_t /*epevents*/, struct data *payload) { in uevent_event() argument
1072 n = uevent_kernel_multicast_recv(payload->uevent_fd, msg, UEVENT_MSG_LEN); in uevent_event()
1085 pthread_mutex_lock(&payload->usb->mPartnerLock); in uevent_event()
1086 payload->usb->mPartnerUp = true; in uevent_event()
1087 pthread_cond_signal(&payload->usb->mPartnerCV); in uevent_event()
1088 pthread_mutex_unlock(&payload->usb->mPartnerLock); in uevent_event()
1097 queryVersionHelper(payload->usb, &currentPortStatus); in uevent_event()
1100 if (!pthread_mutex_trylock(&payload->usb->mRoleSwitchLock)) { in uevent_event()
1112 pthread_mutex_unlock(&payload->usb->mRoleSwitchLock); in uevent_event()
1115 && payload->usb->mDisplayPortPollRunning) { in uevent_event()
[all …]
/device/google/gs101/usb/usb/
DUsb.cpp915 static void uevent_event(uint32_t /*epevents*/, struct data *payload) { in uevent_event() argument
920 n = uevent_kernel_multicast_recv(payload->uevent_fd, msg, UEVENT_MSG_LEN); in uevent_event()
933 pthread_mutex_lock(&payload->usb->mPartnerLock); in uevent_event()
934 payload->usb->mPartnerUp = true; in uevent_event()
935 pthread_cond_signal(&payload->usb->mPartnerCV); in uevent_event()
936 pthread_mutex_unlock(&payload->usb->mPartnerLock); in uevent_event()
945 queryVersionHelper(payload->usb, &currentPortStatus); in uevent_event()
948 if (!pthread_mutex_trylock(&payload->usb->mRoleSwitchLock)) { in uevent_event()
960 pthread_mutex_unlock(&payload->usb->mRoleSwitchLock); in uevent_event()
965 report_overheat_event(payload->usb); in uevent_event()
[all …]
/device/google/gs201/usb/usb/
DUsb.cpp998 static void uevent_event(uint32_t /*epevents*/, struct data *payload) { in uevent_event() argument
1003 n = uevent_kernel_multicast_recv(payload->uevent_fd, msg, UEVENT_MSG_LEN); in uevent_event()
1016 pthread_mutex_lock(&payload->usb->mPartnerLock); in uevent_event()
1017 payload->usb->mPartnerUp = true; in uevent_event()
1018 pthread_cond_signal(&payload->usb->mPartnerCV); in uevent_event()
1019 pthread_mutex_unlock(&payload->usb->mPartnerLock); in uevent_event()
1028 queryVersionHelper(payload->usb, &currentPortStatus); in uevent_event()
1031 if (!pthread_mutex_trylock(&payload->usb->mRoleSwitchLock)) { in uevent_event()
1043 pthread_mutex_unlock(&payload->usb->mRoleSwitchLock); in uevent_event()
1048 report_overheat_event(payload->usb); in uevent_event()
[all …]
/device/google/coral-kernel/sm8150/kernel-headers/sound/
Dwcd-dsp-glink.h31 __u8 payload[0]; member
36 __u8 payload[0]; member
40 __u8 payload[0]; member
/device/google/coral-kernel/sm8150/original-kernel-headers/sound/
Dwcd-dsp-glink.h22 __u8 payload[0]; member
34 __u8 payload[0]; member
44 __u8 payload[0]; member
/device/google/sunfish-kernel/sm7150/kernel-headers/sound/
Dwcd-dsp-glink.h31 __u8 payload[0]; member
36 __u8 payload[0]; member
40 __u8 payload[0]; member
/device/google/redbull-kernel/sm7250/kernel-headers/sound/
Dwcd-dsp-glink.h31 __u8 payload[0]; member
36 __u8 payload[0]; member
40 __u8 payload[0]; member
/device/google/sunfish-kernel/sm7150/original-kernel-headers/sound/
Dwcd-dsp-glink.h22 __u8 payload[0]; member
34 __u8 payload[0]; member
44 __u8 payload[0]; member
/device/google/redbull-kernel/sm7250/original-kernel-headers/sound/
Dwcd-dsp-glink.h22 __u8 payload[0]; member
34 __u8 payload[0]; member
44 __u8 payload[0]; member
/device/google/cuttlefish/host/libs/allocd/
Dutils.cpp93 auto payload = header_buff + resp_str; in SendJsonMsg() local
95 return SendAll(client_socket, payload); in SendJsonMsg()
108 std::string payload = RecvAll(client_socket, header.len); in RecvJsonMsg() local
111 return reader.parse(payload); in RecvJsonMsg()

12345