Cleanup ContexthubService implementation

. Reorder include headers.
. Remove scary - but errorneous log.

Test: Presubmit passes.
Change-Id: I06c7b34bbf9ae59940c44eccc8545ea1c23faa15
This commit is contained in:
Ashutosh Joshi
2016-11-04 15:35:54 -07:00
parent 1e151b81c9
commit 85547d15e0

View File

@@ -16,26 +16,26 @@
#include "context_hub.h"
#undef LOG_NDEBUG
#undef LOG_TAG
#define LOG_NDEBUG 0
#define LOG_TAG "ContextHubService"
#include <inttypes.h>
#include <jni.h>
#include <mutex>
#include <string.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// TOOD: On master, alphabetize these and move <mutex> into this
// grouping.
#include <chrono>
#include <unordered_map>
#include <queue>
#include <string.h>
#include <android-base/macros.h>
#include <cutils/log.h>
#include <chrono>
#include <mutex>
#include <queue>
#include <unordered_map>
#include "JNIHelp.h"
#include "core_jni_helpers.h"
@@ -1180,7 +1180,6 @@ static jint nativeSendMessage(JNIEnv *env, jobject instance, jintArray header_,
}
if (setAddressSuccess && hubId >= 0) {
ALOGD("Asking HAL to remove app");
retVal = db.hubInfo.contextHubModule->send_message(hubId, &msg);
} else {
ALOGD("Could not find app instance %" PRId32 " on hubHandle %" PRId32