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
This commit is contained in:
Ashutosh Joshi
2016-07-06 13:54:28 -07:00
parent 2a6f79d45f
commit 848c8c4c43

View File

@@ -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);