Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 848c8c4c authored by Ashutosh Joshi's avatar Ashutosh Joshi
Browse files

Make ContextHubService compliant with new context hub interface.

Context Hub HAL added messages with definition for all distinguished
messages. Fixing the ContextHubService to be compliant.

Bug: 29835220
Change-Id: I70751d0f5b06cd3c8a4ce93003bdaa86b7317a2c
parent 2a6f79d4
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -186,9 +186,13 @@ static int set_dest_app(hub_message_t *msg, int id) {

static void send_query_for_apps() {
    hub_message_t msg;
    query_apps_request_t queryMsg;

    queryMsg.app_name.id = NANOAPP_VENDOR_ALL_APPS;

    msg.message_type = CONTEXT_HUB_QUERY_APPS;
    msg.message_len  = 0;
    msg.message_len  = sizeof(queryMsg);
    msg.message = &queryMsg;

    for (int i = 0; i < db.hubInfo.numHubs; i++ ) {
        ALOGD("Sending query for apps to hub %d", i);