Home
last modified time | relevance | path

Searched refs:msg (Results 1 – 25 of 502) sorted by relevance

12345678910>>...21

/hardware/google/gfxstream/host/
DRenderWindow.cpp142 const RenderWindowMessage& msg = *this; in process() local
145 switch (msg.cmd) { in process()
148 msg.init.width, msg.init.height); in process()
149 result = FrameBuffer::initialize(msg.init.width, in process()
150 msg.init.height, in process()
151 *msg.init.features, in process()
152 msg.init.useSubWindow, in process()
153 msg.init.egl2egl); in process()
171 fb->setPostCallback(msg.set_post_callback.on_post, in process()
172 msg.set_post_callback.on_post_context, in process()
[all …]
/hardware/nxp/nfc/snxxx/halimpl/utils/
DNxpNfcCapability.cc35 tNFC_chipType capability::processChipType(uint8_t* msg, uint16_t msg_len) { in processChipType() argument
36 if ((msg != NULL) && (msg_len != 0)) { in processChipType()
37 if ((msg_len > 2) && msg[0] == NCI_CMD_RSP_SUCCESS_SW1 && in processChipType()
38 msg[1] == NCI_CMD_RSP_SUCCESS_SW2) { in processChipType()
39 chipType = determineChipTypeFromNciRsp(msg, msg_len); in processChipType()
40 } else if (msg[0] == FW_DL_RSP_FIRST_BYTE) { in processChipType()
41 chipType = determineChipTypeFromDLRsp(msg, msg_len); in processChipType()
51 tNFC_chipType capability::determineChipTypeFromNciRsp(uint8_t* msg, in determineChipTypeFromNciRsp() argument
54 if ((msg == NULL) || (msg_len < 3)) { in determineChipTypeFromNciRsp()
58 if (GET_FW_ROM_VERSION_NCI_RESP(msg, msg_len) == in determineChipTypeFromNciRsp()
[all …]
/hardware/samsung/nfc/halimpl/src/
Dhal_task.cc37 static void nfc_hal_state_switch(tNFC_HAL_MSG* msg, eHAL_STATE state) { in nfc_hal_state_switch() argument
48 memcpy(new_msg, msg, sizeof(HAL_EVT_SIZE)); in nfc_hal_state_switch()
80 void nfc_hal_open_sm(tNFC_HAL_MSG* msg) { in nfc_hal_open_sm() argument
81 tNFC_NCI_PKT* pkt = &msg->nci_packet; in nfc_hal_open_sm()
83 switch (msg->event) { in nfc_hal_open_sm()
89 nci_read_payload(msg); in nfc_hal_open_sm()
125 void nfc_hal_postinit_sm(tNFC_HAL_MSG* msg) { in nfc_hal_postinit_sm() argument
126 tNFC_NCI_PKT* pkt = &msg->nci_packet; in nfc_hal_postinit_sm()
128 switch (msg->event) { in nfc_hal_postinit_sm()
131 nfc_hal_state_switch(msg, HAL_STATE_VS); in nfc_hal_postinit_sm()
[all …]
/hardware/interfaces/automotive/can/1.0/tools/libprotocan/tests/
Dlibprotocan_signal_test.cpp24 can::V1_0::CanMessage msg = {}; in TEST() local
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()
28 ASSERT_EQ(i, signal.get(msg)); in TEST()
60 can::V1_0::CanMessage msg = {}; in TEST() local
61 msg.payload = {0xDE, 0xAD, 0xBE, 0xEF}; in TEST()
76 ASSERT_EQ(0xEu, s0_4.get(msg)); in TEST()
77 ASSERT_EQ(0xDu, s4_4.get(msg)); in TEST()
78 ASSERT_EQ(0xDDu, s4_8.get(msg)); in TEST()
79 ASSERT_EQ(0xEADDu, s4_16.get(msg)); in TEST()
[all …]
/hardware/google/graphics/common/libhwc2.1/
DExynosHWCDebug.h108 #define DISPLAY_LOGD(type, msg, ...) \ argument
111 ALOGD("%s:: [%s] " msg, __func__, mDisplayName.c_str(), ##__VA_ARGS__); \
113 #define DISPLAY_STR_LOGD(dispString, type, msg, ...) \ argument
116 ALOGD("%s:: [%s] " msg, __func__, dispString, ##__VA_ARGS__); \
118 #define MPP_LOGD(type, msg, ...) \ argument
121 ALOGD("%s:: [%s][%d] " msg, __func__, mName.c_str(), mLogicalIndex, ##__VA_ARGS__); \
124 #define DISPLAY_LOGV(msg, ...) ALOGV("[%s] " msg, mDisplayName.c_str(), ##__VA_ARGS__) argument
125 #define DISPLAY_LOGI(msg, ...) ALOGI("[%s] " msg, mDisplayName.c_str(), ##__VA_ARGS__) argument
126 #define DISPLAY_LOGW(msg, ...) ALOGW("[%s] " msg, mDisplayName.c_str(), ##__VA_ARGS__) argument
127 #define DISPLAY_LOGE(msg, ...) \ argument
[all …]
/hardware/interfaces/contexthub/1.0/default/
DContexthub.cpp59 bool Contexthub::setOsAppAsDestination(hub_message_t *msg, int hubId) { in setOsAppAsDestination() argument
66 msg->app_name = mCachedHubInfo[hubId].osAppName; in setOsAppAsDestination()
142 const ContextHubMsg &msg) { in sendMessageToHub() argument
147 if (!isValidHubId(hubId) || msg.msg.size() > UINT32_MAX) { in sendMessageToHub()
152 .app_name.id = msg.appName, in sendMessageToHub()
153 .message_type = msg.msgType, in sendMessageToHub()
154 .message_len = static_cast<uint32_t>(msg.msg.size()), // Note the check above in sendMessageToHub()
155 .message = static_cast<const uint8_t *>(msg.msg.data()), in sendMessageToHub()
181 hub_message_t msg; in reboot() local
183 if (setOsAppAsDestination(&msg, hubId) == false) { in reboot()
[all …]
/hardware/nxp/nfc/pn8x/halimpl/utils/
DNxpNfcCapability.cpp35 tNFC_chipType capability::getChipType(uint8_t* msg, uint16_t msg_len) { in getChipType() argument
36 if ((msg != NULL) && (msg_len != 0)) { in getChipType()
40 if (msg[0] == 0x60 && msg[1] == 0x00) { in getChipType()
44 } else if (msg[0] == 0x40 && msg[1] == 0x01) { in getChipType()
48 } else if (msg[0] == 0x00 && msg[1] == 0x0A) { in getChipType()
55 ALOGD("%s HwVersion : 0x%02x", __func__, msg[offsetHwVersion]); in getChipType()
56 switch (msg[offsetHwVersion]) { in getChipType()
68 if (msg[offsetFwVersion] == 0x12) { in getChipType()
76 if (msg[offsetFwVersion] == 0x11) { in getChipType()
/hardware/interfaces/automotive/can/1.0/tools/libprotocan/
DSignal.cpp48 Signal::value Signal::get(const can::V1_0::CanMessage& msg) const { in get()
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()
62 void Signal::set(can::V1_0::CanMessage& msg, Signal::value val) const { in set() argument
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()
[all …]
/hardware/qcom/sm8150p/gps/utils/
DMsgTask.cpp39 static void LocMsgDestroy(void* msg) { in LocMsgDestroy() argument
40 delete (LocMsg*)msg; in LocMsgDestroy()
76 void MsgTask::sendMsg(const LocMsg* msg) const { in sendMsg()
77 if (msg && this) { in sendMsg()
78 msg_q_snd((void*)mQ, (void*)msg, LocMsgDestroy); in sendMsg()
81 __func__, msg, this); in sendMsg()
93 LocMsg* msg; in run() local
94 msq_q_err_type result = msg_q_rcv((void*)mQ, (void **)&msg); in run()
101 msg->log(); in run()
103 msg->proc(); in run()
[all …]
/hardware/qcom/sm7150/gps/utils/
DMsgTask.cpp39 static void LocMsgDestroy(void* msg) { in LocMsgDestroy() argument
40 delete (LocMsg*)msg; in LocMsgDestroy()
76 void MsgTask::sendMsg(const LocMsg* msg) const { in sendMsg()
77 if (msg && this) { in sendMsg()
78 msg_q_snd((void*)mQ, (void*)msg, LocMsgDestroy); in sendMsg()
81 __func__, msg, this); in sendMsg()
93 LocMsg* msg; in run() local
94 msq_q_err_type result = msg_q_rcv((void*)mQ, (void **)&msg); in run()
101 msg->log(); in run()
103 msg->proc(); in run()
[all …]
/hardware/broadcom/wlan/bcmdhd/halutil/
Dhalutil.cpp96 static void prhex_msg(const char *msg, u8 *buf, u32 nbytes) in prhex_msg() argument
104 if (msg && (msg[0] != '\0')) { in prhex_msg()
105 printf("%s: len %d\n", msg, nbytes); in prhex_msg()
909 void putEventInCache(int type, const char *msg) { in putEventInCache() argument
913 strncpy(eventCache[eventsInCache].buf, msg, (MAX_EVENT_MSG_LEN - 1)); in putEventInCache()
1975 TwtSetupRequest msg; in setupTwtRequest() local
1980 memset(&msg, 0, sizeof(msg)); in setupTwtRequest()
2000 msg.config_id = atoi(val_p); in setupTwtRequest()
2002 msg.negotiation_type = atoi(val_p); in setupTwtRequest()
2004 msg.trigger_type = atoi(val_p); in setupTwtRequest()
[all …]
/hardware/qcom/sm7250/gps/utils/
DMsgTask.cpp59 static void LocMsgDestroy(void* msg) { in LocMsgDestroy() argument
60 delete (LocMsg*)msg; in LocMsgDestroy()
68 void MsgTask::sendMsg(const LocMsg* msg) const { in sendMsg()
69 if (msg && this) { in sendMsg()
70 msg_q_snd((void*)mQ, (void*)msg, LocMsgDestroy); in sendMsg()
73 __func__, msg, this); in sendMsg()
98 LocMsg* msg; in run() local
99 msq_q_err_type result = msg_q_rcv((void*)mQ, (void **)&msg); in run()
106 msg->log(); in run()
108 msg->proc(); in run()
[all …]
/hardware/qcom/sm8150/gps/utils/
DMsgTask.cpp59 static void LocMsgDestroy(void* msg) { in LocMsgDestroy() argument
60 delete (LocMsg*)msg; in LocMsgDestroy()
68 void MsgTask::sendMsg(const LocMsg* msg) const { in sendMsg()
69 if (msg && this) { in sendMsg()
70 msg_q_snd((void*)mQ, (void*)msg, LocMsgDestroy); in sendMsg()
73 __func__, msg, this); in sendMsg()
98 LocMsg* msg; in run() local
99 msq_q_err_type result = msg_q_rcv((void*)mQ, (void **)&msg); in run()
106 msg->log(); in run()
108 msg->proc(); in run()
[all …]
/hardware/qcom/gps/msm8996/loc_api/libloc_api_50001/
Dloc_eng_dmn_conn_handler.cpp82 LocEngReqRelWifi* msg = in loc_eng_dmn_conn_loc_api_server_if_request_handler() local
89 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_request_handler()
95 LocEngReqRelWifi* msg = in loc_eng_dmn_conn_loc_api_server_if_request_handler() local
102 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_request_handler()
108 LocEngReqRelWifi* msg = in loc_eng_dmn_conn_loc_api_server_if_request_handler() local
115 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_request_handler()
121 LocEngReqRelBIT* msg = in loc_eng_dmn_conn_loc_api_server_if_request_handler() local
127 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_request_handler()
178 LocEngReqRelWifi* msg = in loc_eng_dmn_conn_loc_api_server_if_release_handler() local
185 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_release_handler()
[all …]
/hardware/qcom/gps/msm8909/loc_api/libloc_api_50001/
Dloc_eng_dmn_conn_handler.cpp82 LocEngReqRelWifi* msg = in loc_eng_dmn_conn_loc_api_server_if_request_handler() local
89 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_request_handler()
95 LocEngReqRelWifi* msg = in loc_eng_dmn_conn_loc_api_server_if_request_handler() local
102 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_request_handler()
108 LocEngReqRelWifi* msg = in loc_eng_dmn_conn_loc_api_server_if_request_handler() local
115 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_request_handler()
121 LocEngReqRelBIT* msg = in loc_eng_dmn_conn_loc_api_server_if_request_handler() local
127 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_request_handler()
178 LocEngReqRelWifi* msg = in loc_eng_dmn_conn_loc_api_server_if_release_handler() local
185 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_release_handler()
[all …]
/hardware/qcom/gps/msm8960/loc_api/libloc_api_50001/
Dloc_eng_dmn_conn_handler.cpp82 LocEngReqRelWifi* msg = in loc_eng_dmn_conn_loc_api_server_if_request_handler() local
89 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_request_handler()
95 LocEngReqRelWifi* msg = in loc_eng_dmn_conn_loc_api_server_if_request_handler() local
102 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_request_handler()
108 LocEngReqRelWifi* msg = in loc_eng_dmn_conn_loc_api_server_if_request_handler() local
115 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_request_handler()
121 LocEngReqRelBIT* msg = in loc_eng_dmn_conn_loc_api_server_if_request_handler() local
127 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_request_handler()
178 LocEngReqRelWifi* msg = in loc_eng_dmn_conn_loc_api_server_if_release_handler() local
185 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_release_handler()
[all …]
/hardware/qcom/gps/loc_api/libloc_api_50001/
Dloc_eng_dmn_conn_handler.cpp82 LocEngReqRelWifi* msg = in loc_eng_dmn_conn_loc_api_server_if_request_handler() local
89 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_request_handler()
95 LocEngReqRelWifi* msg = in loc_eng_dmn_conn_loc_api_server_if_request_handler() local
102 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_request_handler()
108 LocEngReqRelWifi* msg = in loc_eng_dmn_conn_loc_api_server_if_request_handler() local
115 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_request_handler()
121 LocEngReqRelBIT* msg = in loc_eng_dmn_conn_loc_api_server_if_request_handler() local
127 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_request_handler()
178 LocEngReqRelWifi* msg = in loc_eng_dmn_conn_loc_api_server_if_release_handler() local
185 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_release_handler()
[all …]
/hardware/qcom/gps/msm8994/loc_api/libloc_api_50001/
Dloc_eng_dmn_conn_handler.cpp82 LocEngReqRelWifi* msg = in loc_eng_dmn_conn_loc_api_server_if_request_handler() local
89 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_request_handler()
95 LocEngReqRelWifi* msg = in loc_eng_dmn_conn_loc_api_server_if_request_handler() local
102 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_request_handler()
108 LocEngReqRelWifi* msg = in loc_eng_dmn_conn_loc_api_server_if_request_handler() local
115 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_request_handler()
121 LocEngReqRelBIT* msg = in loc_eng_dmn_conn_loc_api_server_if_request_handler() local
127 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_request_handler()
178 LocEngReqRelWifi* msg = in loc_eng_dmn_conn_loc_api_server_if_release_handler() local
185 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_release_handler()
[all …]
/hardware/qcom/gps/msm8084/loc_api/libloc_api_50001/
Dloc_eng_dmn_conn_handler.cpp82 LocEngReqRelWifi* msg = in loc_eng_dmn_conn_loc_api_server_if_request_handler() local
89 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_request_handler()
95 LocEngReqRelWifi* msg = in loc_eng_dmn_conn_loc_api_server_if_request_handler() local
102 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_request_handler()
108 LocEngReqRelWifi* msg = in loc_eng_dmn_conn_loc_api_server_if_request_handler() local
115 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_request_handler()
121 LocEngReqRelBIT* msg = in loc_eng_dmn_conn_loc_api_server_if_request_handler() local
127 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_request_handler()
178 LocEngReqRelWifi* msg = in loc_eng_dmn_conn_loc_api_server_if_release_handler() local
185 msg->send(); in loc_eng_dmn_conn_loc_api_server_if_release_handler()
[all …]
/hardware/qcom/gps/msm8909w_3100/utils/
DMsgTask.cpp38 static void LocMsgDestroy(void* msg) { in LocMsgDestroy() argument
39 delete (LocMsg*)msg; in LocMsgDestroy()
75 void MsgTask::sendMsg(const LocMsg* msg) const { in sendMsg()
76 if (msg) { in sendMsg()
77 msg_q_snd((void*)mQ, (void*)msg, LocMsgDestroy); in sendMsg()
89 LocMsg* msg; in run() local
90 msq_q_err_type result = msg_q_rcv((void*)mQ, (void **)&msg); in run()
97 msg->log(); in run()
99 msg->proc(); in run()
101 delete msg; in run()
/hardware/st/nfc/st21nfc/hal/
Dhalcore.cc63 static bool HalEnqueueThreadMessage(HalInstance* inst, ThreadMesssage* msg);
64 static bool HalDequeueThreadMessage(HalInstance* inst, ThreadMesssage* msg);
276 ThreadMesssage msg; in HalDestroy() local
277 msg.command = MSG_EXIT_REQUEST; in HalDestroy()
278 msg.payload = 0; in HalDestroy()
279 msg.length = 0; in HalDestroy()
281 HalEnqueueThreadMessage(inst, &msg); in HalDestroy()
312 ThreadMesssage msg; in HalSendDownstream() local
323 msg.command = MSG_TX_DATA; in HalSendDownstream()
324 msg.payload = 0; in HalSendDownstream()
[all …]
/hardware/interfaces/biometrics/fingerprint/2.1/default/
DBiometricsFingerprint.cpp260 void BiometricsFingerprint::notify(const fingerprint_msg_t *msg) { in notify() argument
269 switch (msg->type) { in notify()
272 FingerprintError result = VendorErrorFilter(msg->data.error, &vendorCode); in notify()
282 VendorAcquiredFilter(msg->data.acquired.acquired_info, &vendorCode); in notify()
291 msg->data.enroll.finger.fid, in notify()
292 msg->data.enroll.finger.gid, in notify()
293 msg->data.enroll.samples_remaining); in notify()
295 msg->data.enroll.finger.fid, in notify()
296 msg->data.enroll.finger.gid, in notify()
297 msg->data.enroll.samples_remaining).isOk()) { in notify()
[all …]
/hardware/interfaces/gnss/aidl/vts/
DGnssNavigationMessageCallback.cpp22 const android::hardware::gnss::IGnssNavigationMessageCallback::GnssNavigationMessage& msg) { in gnssNavigationMessageCb() argument
25 msg.svid, (int)msg.type, (int)msg.status, msg.messageId, msg.submessageId, in gnssNavigationMessageCb()
26 (int)msg.data.size()); in gnssNavigationMessageCb()
/hardware/google/gfxstream/guest/android-emu/aemu/base/synchronization/
DAndroidMessageChannel.h121 bool send(const T& msg) { in send() argument
125 mItems[pos] = msg; in send()
131 bool send(T&& msg) { in send() argument
135 mItems[pos] = std::move(msg); in send()
141 bool trySend(const T& msg) { in trySend() argument
144 mItems[*pos] = msg; in trySend()
150 bool trySend(T&& msg) { in trySend() argument
153 mItems[*pos] = std::move(msg); in trySend()
159 bool receive(T* msg) { in receive() argument
163 *msg = std::move(mItems[pos]); in receive()
[all …]
/hardware/interfaces/automotive/can/1.0/default/libnl++/
DMessageFactory.cpp24 static nlattr* tail(nlmsghdr* msg) { in tail() argument
25 return reinterpret_cast<nlattr*>(uintptr_t(msg) + impl::align(msg->nlmsg_len)); in tail()
28 nlattr* MessageFactoryBase::add(nlmsghdr* msg, size_t maxLen, nlattrtype_t type, const void* data, in add() argument
31 const auto newLen = impl::align(msg->nlmsg_len) + impl::align(totalAttrLen); in add()
38 auto attr = tail(msg); in add()
43 msg->nlmsg_len = newLen; in add()
47 void MessageFactoryBase::closeNested(nlmsghdr* msg, nlattr* nested) { in closeNested() argument
49 nested->nla_len = uintptr_t(tail(msg)) - uintptr_t(nested); in closeNested()

12345678910>>...21