/hardware/google/gfxstream/host/ |
D | RenderWindow.cpp | 142 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/ |
D | NxpNfcCapability.cc | 35 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/interfaces/automotive/can/1.0/tools/libprotocan/tests/ |
D | libprotocan_signal_test.cpp | 24 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/samsung/nfc/halimpl/src/ |
D | hal_task.cc | 37 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 …]
|
D | hal.cc | 152 tNFC_HAL_MSG* msg; in nfc_hal_open() local 177 msg = (tNFC_HAL_MSG*)OSI_mem_get(HAL_EVT_SIZE); in nfc_hal_open() 178 if (msg != NULL) { in nfc_hal_open() 179 msg->event = HAL_EVT_OPEN; in nfc_hal_open() 180 OSI_queue_put(nfc_hal_info.msg_q, (void*)msg); in nfc_hal_open() 187 tNFC_HAL_MSG* msg; in nfc_hal_close() local 198 msg = (tNFC_HAL_MSG*)OSI_mem_get(HAL_EVT_SIZE); in nfc_hal_close() 199 if (msg != NULL) { in nfc_hal_close() 200 msg->event = HAL_EVT_TERMINATE; in nfc_hal_close() 201 OSI_queue_put(nfc_hal_info.msg_q, (void*)msg); in nfc_hal_close() [all …]
|
/hardware/google/aemu/host-common/ |
D | logging_absl.cpp | 34 const char* msg) { in gfx_stream_logger() argument 38 ABSL_LOG(INFO).AtLocation(file, line) << msg; in gfx_stream_logger() 41 ABSL_LOG(WARNING).AtLocation(file, line) << msg; in gfx_stream_logger() 44 ABSL_LOG(ERROR).AtLocation(file, line) << msg; in gfx_stream_logger() 47 ABSL_LOG(FATAL).AtLocation(file, line) << msg; in gfx_stream_logger() 50 VLOG(1).AtLocation(file, line) << msg; in gfx_stream_logger() 53 VLOG(2).AtLocation(file, line) << msg; in gfx_stream_logger() 56 ABSL_LOG(INFO).AtLocation(file, line) << msg; in gfx_stream_logger() 83 std::string_view msg(buffer, strlen); in OutputLog() local 88 ABSL_LOG(INFO).AtLocation(file, line) << msg; in OutputLog() [all …]
|
/hardware/nxp/nfc/pn8x/halimpl/utils/ |
D | NxpNfcCapability.cpp | 35 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/contexthub/1.0/default/ |
D | Contexthub.cpp | 59 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/interfaces/automotive/can/1.0/tools/libprotocan/ |
D | Signal.cpp | 48 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 …]
|
D | MessageDef.cpp | 37 CanMessage msg = {}; in makeDefault() local 38 msg.id = id; in makeDefault() 39 msg.payload.resize(kLen); in makeDefault() 42 signal.setDefault(msg); in makeDefault() 45 return msg; in makeDefault() 53 void MessageDef::updateChecksum(can::V1_0::CanMessage& msg) const { in updateChecksum() 55 kChecksum->update(msg); in updateChecksum() 58 bool MessageDef::validate(const can::V1_0::CanMessage& msg) const { in validate() 59 return msg.payload.size() >= kLen; in validate()
|
D | MessageInjector.cpp | 41 void MessageInjector::inject(const CanMessage& msg) { inject({msg}); } in inject() argument 45 for (const auto& msg : msgs) { in inject() local 47 LOG(VERBOSE) << "Message scheduled for injection: " << toString(msg); in inject() 50 mMessages.push(msg); in inject() 87 void MessageInjector::onReceive(ICanBus& bus, const CanMessage& msg) { in onReceive() argument 88 if (!kMsgDef.validate(msg)) return; in onReceive() 92 mCounter.read(msg); in onReceive() 104 void MessageInjectorManager::onReceive(sp<ICanBus> bus, const CanMessage& msg) { in onReceive() argument 105 auto it = mInjectors.find(msg.id); in onReceive() 107 it->second->onReceive(*bus, msg); in onReceive()
|
/hardware/interfaces/gnss/aidl/vts/ |
D | GnssNavigationMessageCallback.cpp | 22 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/interfaces/automotive/can/1.0/default/libnl++/ |
D | MessageFactory.cpp | 24 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()
|
/hardware/google/gfxstream/guest/android-emu/aemu/base/synchronization/ |
D | AndroidMessageChannel.h | 121 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/google/aemu/base/include/aemu/base/synchronization/ |
D | MessageChannel.h | 121 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/biometrics/fingerprint/2.1/default/ |
D | BiometricsFingerprint.cpp | 260 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/st/nfc/st21nfc/hal/ |
D | halcore.cc | 68 static bool HalEnqueueThreadMessage(HalInstance* inst, ThreadMessage* msg); 69 static bool HalDequeueThreadMessage(HalInstance* inst, ThreadMessage* msg); 296 ThreadMessage msg; in HalDestroy() local 297 msg.command = MSG_EXIT_REQUEST; in HalDestroy() 298 msg.payload = 0; in HalDestroy() 299 msg.length = 0; in HalDestroy() 301 HalEnqueueThreadMessage(inst, &msg); in HalDestroy() 336 ThreadMessage msg; in HalSendDownstream() local 347 msg.command = MSG_TX_DATA; in HalSendDownstream() 348 msg.payload = 0; in HalSendDownstream() [all …]
|
/hardware/interfaces/automotive/can/1.0/default/libnl++/protocols/generic/ |
D | FamilyTracker.cpp | 30 const auto msg = *msgMaybe; in track() local 31 if (msg->cmd != CTRL_CMD_NEWFAMILY) return true; in track() 33 const auto familyName = msg.attributes.get<std::string>(CTRL_ATTR_FAMILY_NAME); in track() 34 const auto familyId = msg.attributes.get<uint16_t>(CTRL_ATTR_FAMILY_ID); in track() 47 std::optional<Message<genlmsghdr>> FamilyTracker::parseNl80211(Buffer<nlmsghdr> msg) { in parseNl80211() argument 48 if (track(msg)) return std::nullopt; in parseNl80211() 51 return nl::Message<genlmsghdr>::parse(msg, {*mNl80211FamilyId}); in parseNl80211()
|
/hardware/broadcom/wlan/bcmdhd/halutil/ |
D | halutil.cpp | 96 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() 1989 wifi_twt_request msg; in setupTwtSession() local 1995 memset(&msg, 0, sizeof(msg)); in setupTwtSession() 2015 msg.mlo_link_id = atoi(val_p); in setupTwtSession() 2017 msg.min_wake_duration_micros = strtoul(val_p, &endptr, 0); in setupTwtSession() 2019 msg.max_wake_duration_micros = strtoul(val_p, &endptr, 0); in setupTwtSession() [all …]
|
/hardware/broadcom/wlan/bcmdhd/dhdutil/ |
D | dhdu_nl80211.c | 45 static int dhd_nl_finish_handler(struct nl_msg *msg, void *arg) in dhd_nl_finish_handler() argument 52 static int dhd_nl_ack_handler(struct nl_msg *msg, void *arg) in dhd_nl_ack_handler() argument 59 static int dhd_nl_valid_handler(struct nl_msg *msg, void *arg) in dhd_nl_valid_handler() argument 103 struct nl_msg *msg; in dhd_nl_do_testmode() local 106 msg = nlmsg_alloc(); in dhd_nl_do_testmode() 107 if (msg == NULL) in dhd_nl_do_testmode() 111 genlmsg_put(msg, 0, 0, dhd_nli->nl_id, 0, 0, in dhd_nl_do_testmode() 113 NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, dhd_nli->ifidx); in dhd_nl_do_testmode() 114 NLA_PUT(msg, NL80211_ATTR_TESTDATA, sizeof(*ioc), ioc); in dhd_nl_do_testmode() 116 err = nl_send_auto_complete(dhd_nli->nl, msg); in dhd_nl_do_testmode() [all …]
|
/hardware/ril/libril/ |
D | sap_service.cpp | 70 Return<void> addPayloadAndDispatchRequest(MsgHeader *msg, uint16_t reqLen, uint8_t *reqPtr); 96 MsgHeader *msg = (MsgHeader *)calloc(1, sizeof(MsgHeader)); in createMsgHeader() local 97 if (msg == NULL) { in createMsgHeader() 100 msg->token = token; in createMsgHeader() 101 msg->type = MsgType_REQUEST; in createMsgHeader() 102 msg->id = msgId; in createMsgHeader() 103 msg->error = Error_RIL_E_SUCCESS; in createMsgHeader() 104 return msg; in createMsgHeader() 107 Return<void> SapImpl::addPayloadAndDispatchRequest(MsgHeader *msg, uint16_t reqLen, in addPayloadAndDispatchRequest() argument 111 sendFailedResponse(msg->id, msg->token, 2, reqPtr, msg); in addPayloadAndDispatchRequest() [all …]
|
/hardware/st/nfc/1.0/hal/ |
D | halcore.c | 60 static bool HalEnqueueThreadMessage(HalInstance* inst, ThreadMessage* msg); 61 static bool HalDequeueThreadMessage(HalInstance* inst, ThreadMessage* msg); 250 ThreadMessage msg; in HalDestroy() local 251 msg.command = MSG_EXIT_REQUEST; in HalDestroy() 252 msg.payload = 0; in HalDestroy() 253 msg.length = 0; in HalDestroy() 255 HalEnqueueThreadMessage(inst, &msg); in HalDestroy() 286 ThreadMessage msg; in HalSendDownstream() local 297 msg.command = MSG_TX_DATA; in HalSendDownstream() 298 msg.payload = 0; in HalSendDownstream() [all …]
|
/hardware/interfaces/radio/aidl/compat/libradiocompat/messaging/ |
D | structs.cpp | 84 V1_0::CdmaSmsMessage toHidl(const aidl::CdmaSmsMessage& msg) { in toHidl() argument 86 .teleserviceId = msg.teleserviceId, in toHidl() 87 .isServicePresent = msg.isServicePresent, in toHidl() 88 .serviceCategory = msg.serviceCategory, in toHidl() 89 .address = toHidl(msg.address), in toHidl() 90 .subAddress = toHidl(msg.subAddress), in toHidl() 91 .bearerData = msg.bearerData, in toHidl() 95 V1_0::ImsSmsMessage toHidl(const aidl::ImsSmsMessage& msg) { in toHidl() argument 97 .tech = static_cast<V1_0::RadioTechnologyFamily>(msg.tech), in toHidl() 98 .retry = msg.retry, in toHidl() [all …]
|
/hardware/synaptics/wlan/synadhd/wifi_hal/ |
D | nan.cpp | 485 static void prhex(const char *msg, u8 *buf, u32 nbytes); 3661 static void prhex(const char *msg, u8 *buf, u32 nbytes) in prhex() argument 3669 if (msg && (msg[0] != '\0')) { in prhex() 3670 printf("%s:\n", msg); in prhex() 3954 static int dump_NanEnableRequest(NanEnableRequest* msg) in dump_NanEnableRequest() argument 3958 if (msg == NULL) { in dump_NanEnableRequest() 3963 ALOGI("master_pref=%u\n", msg->master_pref); in dump_NanEnableRequest() 3964 ALOGI("cluster_low=%u\n", msg->cluster_low); in dump_NanEnableRequest() 3965 ALOGI("cluster_high=%u\n", msg->cluster_high); in dump_NanEnableRequest() 3966 ALOGI("config_support_5g=%u\n", msg->config_support_5g); in dump_NanEnableRequest() [all …]
|
/hardware/qcom/wlan/legacy/qcwcn/wifi_hal/ |
D | nan.cpp | 70 NanEnableRequest* msg) in nan_enable_request() argument 103 ret = nanCommand->putNanEnable(id, msg); in nan_enable_request() 171 NanPublishRequest* msg) in nan_publish_request() argument 204 ret = nanCommand->putNanPublish(id, msg); in nan_publish_request() 222 NanPublishCancelRequest* msg) in nan_publish_cancel_request() argument 255 ret = nanCommand->putNanPublishCancel(id, msg); in nan_publish_cancel_request() 273 NanSubscribeRequest* msg) in nan_subscribe_request() argument 306 ret = nanCommand->putNanSubscribe(id, msg); in nan_subscribe_request() 324 NanSubscribeCancelRequest* msg) in nan_subscribe_cancel_request() argument 357 ret = nanCommand->putNanSubscribeCancel(id, msg); in nan_subscribe_cancel_request() [all …]
|