Merge "ContextHubService: Pass on query requests" into oc-dev

am: befd33975c

Change-Id: Id27aa1ec7d76e6f74a0f436ba5f8bd1643991f6e
This commit is contained in:
Brian Duddie
2017-04-17 19:01:57 +00:00
committed by android-build-merger

View File

@@ -1129,6 +1129,8 @@ jint nativeSendMessage(JNIEnv *env,
if (appInstanceHandle == OS_APP_ID) {
if (msgType == CONTEXT_HUB_LOAD_APP) {
result = sendLoadNanoAppRequest(hubId, data, dataBufferLength);
} else if (msgType == CONTEXT_HUB_QUERY_APPS) {
result = db.hubInfo.contextHub->queryApps(hubId);
} else {
ALOGD("Dropping OS addresses message of type - %" PRIu32, msgType);
result = Result::BAD_PARAMS;