OSDN Git Service

com.android.server: use proper nativehelper headers
authorSteven Moreland <smoreland@google.com>
Tue, 1 Aug 2017 17:18:40 +0000 (10:18 -0700)
committerSteven Moreland <smoreland@google.com>
Tue, 1 Aug 2017 20:04:50 +0000 (20:04 +0000)
libnativehelper exports headers under nativehelper. These were
available before incorrectly as global headers in order to give
access to jni.h.

Test: com.android.server finds headers
Bug: 63762847
Change-Id: Icb3018f520004f65e8dd565d6e1d563551548eba

cmds/hid/jni/com_android_commands_hid_Device.cpp
services/core/jni/com_android_server_ConsumerIrService.cpp
services/core/jni/com_android_server_GraphicsStatsService.cpp
services/core/jni/com_android_server_location_ContextHubService.cpp
services/core/jni/com_android_server_location_GnssLocationProvider.cpp
services/core/jni/com_android_server_power_PowerManagerService.cpp

index 1ea33ce..f9458a7 100644 (file)
@@ -31,8 +31,8 @@
 #include <android_os_MessageQueue.h>
 #include <core_jni_helpers.h>
 #include <jni.h>
-#include <JNIHelp.h>
-#include <ScopedPrimitiveArray.h>
+#include <nativehelper/JNIHelp.h>
+#include <nativehelper/ScopedPrimitiveArray.h>
 #include <ScopedUtfChars.h>
 #include <utils/Log.h>
 #include <utils/Looper.h>
index e9c944d..2ca348b 100644 (file)
 #define LOG_TAG "ConsumerIrService"
 
 #include "jni.h"
-#include "JNIHelp.h"
+#include <nativehelper/JNIHelp.h>
 #include "android_runtime/AndroidRuntime.h"
 
 #include <stdlib.h>
 #include <utils/misc.h>
 #include <utils/Log.h>
 #include <android/hardware/ir/1.0/IConsumerIr.h>
-#include <ScopedPrimitiveArray.h>
+#include <nativehelper/ScopedPrimitiveArray.h>
 
 using ::android::hardware::ir::V1_0::IConsumerIr;
 using ::android::hardware::ir::V1_0::ConsumerIrFreqRange;
index 5d5728d..7d779a6 100644 (file)
@@ -19,8 +19,8 @@
 #include <jni.h>
 #include <log/log.h>
 #include <nativehelper/JNIHelp.h>
-#include <ScopedPrimitiveArray.h>
-#include <ScopedUtfChars.h>
+#include <nativehelper/ScopedPrimitiveArray.h>
+#include <nativehelper/ScopedUtfChars.h>
 #include <JankTracker.h>
 #include <service/GraphicsStatsService.h>
 
index 20466eb..09ccf6b 100644 (file)
@@ -38,7 +38,7 @@
 #include <cutils/log.h>
 
 #include "core_jni_helpers.h"
-#include "JNIHelp.h"
+#include <nativehelper/JNIHelp.h>
 
 using android::hardware::contexthub::V1_0::AsyncEventType;
 using android::hardware::contexthub::V1_0::ContextHub;
index edd7d53..2b1225c 100644 (file)
@@ -20,7 +20,7 @@
 
 #include <android/hardware/gnss/1.0/IGnss.h>
 
-#include "JNIHelp.h"
+#include <nativehelper/JNIHelp.h>
 #include "jni.h"
 #include "hardware_legacy/power.h"
 #include "utils/Log.h"
index 29924dd..935ced9 100644 (file)
@@ -22,7 +22,7 @@
 #include "JNIHelp.h"
 #include "jni.h"
 
-#include <ScopedUtfChars.h>
+#include <nativehelper/ScopedUtfChars.h>
 
 #include <limits.h>