Home
last modified time | relevance | path

Searched refs:hubId (Results 1 – 3 of 3) sorted by relevance

/device/google/contexthub/contexthubhal/
DNanohubHidlAdapter.cpp55 bool Contexthub::setOsAppAsDestination(hub_message_t *msg, int hubId) { in setOsAppAsDestination() argument
56 if (!isValidHubId(hubId)) { in setOsAppAsDestination()
59 hubId); in setOsAppAsDestination()
62 msg->app_name = mCachedHubInfo[hubId].osAppName; in setOsAppAsDestination()
81 c.hubId = hub->hub_id; in getHubs()
110 uint32_t hubId = static_cast<uint32_t>(cookie); in serviceDied() local
111 mContexthub->handleServiceDeath(hubId); in serviceDied()
114 bool Contexthub::isValidHubId(uint32_t hubId) { in isValidHubId() argument
115 if (!mCachedHubInfo.count(hubId)) { in isValidHubId()
116 ALOGW("Hub information not found for hubId %" PRIu32, hubId); in isValidHubId()
[all …]
DNanohubHidlAdapter.h46 Return<Result> registerCallback(uint32_t hubId,
49 Return<Result> sendMessageToHub(uint32_t hubId,
52 Return<Result> loadNanoApp(uint32_t hubId,
56 Return<Result> unloadNanoApp(uint32_t hubId,
60 Return<Result> enableNanoApp(uint32_t hubId,
64 Return<Result> disableNanoApp(uint32_t hubId,
68 Return<Result> queryApps(uint32_t hubId) override;
70 Return<Result> reboot(uint32_t hubId);
102 bool isValidHubId(uint32_t hubId);
104 sp<IContexthubCallback> getCallBackForHubId(uint32_t hubId);
[all …]
/device/google/contexthub/contexthubhal/test/
Dmain.cpp130 void onMessage(uint32_t hubId, const hub_message_t *msg) { in onMessage() argument
131 Client *cli = getClientById(hubId); in onMessage()