Searched refs:hub_id (Results 1 – 6 of 6) sorted by relevance
/device/google/contexthub/contexthubhal/ |
D | legacyhal.cpp | 24 static int legacy_cbk(uint32_t hub_id, const HubMessage &rxMsg, void *cookie) in legacy_cbk() argument 26 return mSavedCbk(hub_id, &rxMsg, cookie); in legacy_cbk() 29 static int legacy_subscribe_messages(uint32_t hub_id, context_hub_callback *cbk, void *cookie) in legacy_subscribe_messages() argument 33 return NanoHub::subscribeMessages(hub_id, legacy_cbk, cookie); in legacy_subscribe_messages() 35 return NanoHub::subscribeMessages(hub_id, nullptr, nullptr); in legacy_subscribe_messages() 38 static int legacy_send_message(uint32_t hub_id, const hub_message_t *msg) in legacy_send_message() argument 40 return NanoHub::sendToNanohub(hub_id, msg, 0, ENDPOINT_UNSPECIFIED); in legacy_send_message()
|
D | nanohubhal.h | 113 typedef int Contexthub_callback(uint32_t hub_id, const HubMessage &rxed_msg, void *cookie); 151 int doSubscribeMessages(uint32_t hub_id, Contexthub_callback *cbk, void *cookie); 152 int doSendToNanohub(uint32_t hub_id, const hub_message_t *msg, 183 static int subscribeMessages(uint32_t hub_id, Contexthub_callback *cbk, void *cookie) { in subscribeMessages() argument 184 return hubInstance()->doSubscribeMessages(hub_id, cbk, cookie); in subscribeMessages() 187 static int sendToNanohub(uint32_t hub_id, const hub_message_t *msg, in sendToNanohub() argument 189 return hubInstance()->doSendToNanohub(hub_id, msg, transaction_id, endpoint); in sendToNanohub()
|
D | nanohubhal.cpp | 376 int NanoHub::doSubscribeMessages(uint32_t hub_id, Contexthub_callback *cbk, void *cookie) in doSubscribeMessages() argument 378 if (hub_id) { in doSubscribeMessages() 408 int NanoHub::doSendToNanohub(uint32_t hub_id, const hub_message_t *msg, uint32_t transaction_id, ui… in doSendToNanohub() argument 410 if (hub_id) { in doSendToNanohub()
|
D | nanohubhal_default.cpp | 51 .hub_id = 0,
|
D | NanohubHidlAdapter.cpp | 82 c.hubId = hub->hub_id; in getHubs() 97 mCachedHubInfo[hub->hub_id] = info; in getHubs()
|
/device/google/contexthub/contexthubhal/test/ |
D | main.cpp | 88 mParent->sendMessage(mHub->hub_id, msg); in sendMessage() 91 mParent->sendMessage(mHub->hub_id, mHub->os_app_name, typ, data, len); in sendToSystem() 94 mParent->sendMessage(mHub->hub_id, app, 0, data, len); in sendToApp() 114 mHubs[item->hub_id] = std::unique_ptr<Client>(new Client(item, this)); in CHub() 166 getClientById(mHubArray[idx].hub_id) : nullptr; in getClientByIndex()
|