Home
last modified time | relevance | path

Searched refs:hub_message_t (Results 1 – 8 of 8) sorted by relevance

/device/google/contexthub/contexthubhal/test/
Dmain.cpp64 virtual void onMessage(const hub_message_t &msg) = 0;
70 std::function<void(const hub_message_t &)> mHandler;
79 void setHandler(std::function<void(const hub_message_t &)> handler) { in setHandler()
82 void onMessage(const hub_message_t &msg) { in onMessage()
87 void sendMessage(const hub_message_t &msg) { in sendMessage()
99 static int contextHubCallback(uint32_t id, const hub_message_t *msg, void *cookie) in contextHubCallback()
130 void onMessage(uint32_t hubId, const hub_message_t *msg) { in onMessage()
137 int sendMessage(uint32_t id, const hub_message_t &msg) { in sendMessage()
142 hub_message_t msg = { in sendMessage()
175 void onMessage(const hub_message_t &msg){ in onMessage()
[all …]
/device/google/contexthub/contexthubhal/
Dnanohubhal.h58 class HubMessage : public hub_message_t {
84 HubMessage(const hub_message_t *msg, uint32_t transaction_id, uint16_t endpoint) { in HubMessage()
103 *static_cast<hub_message_t *>(this) = static_cast<hub_message_t>(other);
152 int doSendToNanohub(uint32_t hub_id, const hub_message_t *msg,
187 static int sendToNanohub(uint32_t hub_id, const hub_message_t *msg, in sendToNanohub()
Dsystem_comms.h105 int system_comms_handle_tx(const hub_message_t *outMsg);
163 …virtual int setup(const hub_message_t *app_msg, uint32_t transactionId, AppManager &appManager) = …
267 …int setupMgmt(const hub_message_t *appMsg, uint32_t transactionId, uint32_t cmd, AppManager &appMa…
288 …virtual int setup(const hub_message_t *app_msg, uint32_t transactionId, AppManager &appManager) ov…
293 … virtual int setup(const hub_message_t *app_msg, uint32_t transactionId, AppManager &) override;
303 virtual int setup(const hub_message_t *, uint32_t, AppManager &) override;
433 …int setup_and_add(int id, Session *session, const hub_message_t *appMsg, uint32_t transactionId, A…
449 int doHandleTx(const hub_message_t *txMsg, uint32_t transactionId);
475 static int handleTx(const hub_message_t *txMsg, uint32_t transactionId) { in handleTx()
DNanohubHidlAdapter.cpp55 bool Contexthub::setOsAppAsDestination(hub_message_t *msg, int hubId) { in setOsAppAsDestination()
137 hub_message_t txMsg = { in sendMessageToHub()
361 hub_message_t msg; in unloadNanoApp()
392 hub_message_t hubMsg; in loadNanoApp()
440 hub_message_t msg; in enableNanoApp()
471 hub_message_t msg; in disableNanoApp()
496 hub_message_t msg; in queryApps()
Dlegacyhal.cpp38 static int legacy_send_message(uint32_t hub_id, const hub_message_t *msg) in legacy_send_message()
DNanohubHidlAdapter.h119 bool setOsAppAsDestination(hub_message_t *msg, int hubId);
Dsystem_comms.cpp233 int SystemComm::MemInfoSession::setup(const hub_message_t *, uint32_t transactionId, AppManager &) in setup() argument
309 int SystemComm::AppMgmtSession::setup(const hub_message_t *appMsg, uint32_t transactionId, AppManag… in setup()
419 int SystemComm::AppMgmtSession::setupMgmt(const hub_message_t *appMsg, uint32_t transactionId, uint… in setupMgmt()
876 int SystemComm::KeyInfoSession::setup(const hub_message_t *, uint32_t transactionId, AppManager &) { in setup() argument
1392 hub_message_t msg = in doHandleRx()
1456 int SystemComm::SessionManager::setup_and_add(int id, Session *session, const hub_message_t *appMsg… in setup_and_add()
1476 int SystemComm::doHandleTx(const hub_message_t *appMsg, uint32_t transactionId) in doHandleTx()
Dnanohubhal.cpp408 int NanoHub::doSendToNanohub(uint32_t hub_id, const hub_message_t *msg, uint32_t transaction_id, ui… in doSendToNanohub()