From 85547d15e06b280e5fedc8a297f516cb414d43a3 Mon Sep 17 00:00:00 2001 From: Ashutosh Joshi Date: Fri, 4 Nov 2016 15:35:54 -0700 Subject: [PATCH] Cleanup ContexthubService implementation . Reorder include headers. . Remove scary - but errorneous log. Test: Presubmit passes. Change-Id: I06c7b34bbf9ae59940c44eccc8545ea1c23faa15 --- ...roid_hardware_location_ContextHubService.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/core/jni/android_hardware_location_ContextHubService.cpp b/core/jni/android_hardware_location_ContextHubService.cpp index fbccfd5532e24..4391d93721b15 100644 --- a/core/jni/android_hardware_location_ContextHubService.cpp +++ b/core/jni/android_hardware_location_ContextHubService.cpp @@ -16,26 +16,26 @@ #include "context_hub.h" +#undef LOG_NDEBUG +#undef LOG_TAG #define LOG_NDEBUG 0 #define LOG_TAG "ContextHubService" #include #include -#include -#include #include #include #include - -// TOOD: On master, alphabetize these and move into this -// grouping. -#include -#include -#include +#include #include #include +#include +#include +#include +#include + #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