sensors: adapt and rebrand for hardware/samsung
authorJesse Chan <jc@lineageos.org>
Fri, 15 May 2020 13:48:07 +0000 (21:48 +0800)
committerJesse Chan <jc@lineageos.org>
Fri, 15 May 2020 13:53:36 +0000 (21:53 +0800)
Change-Id: I6c0521888ad60e5ecdd967809f91d0962a7c08a8
Signed-off-by: Jesse Chan <jc@lineageos.org>
hidl/sensors/Android.bp
hidl/sensors/Sensors.cpp
hidl/sensors/Sensors.h

index 4edf7b9c58965d7aa8f9354cb8d0241c6111e227..ecf6412ce530e2d816f93a0eef89a5aea7e08155 100644 (file)
@@ -1,5 +1,5 @@
 cc_library_shared {
-    name: "android.hardware.sensors@1.0-impl",
+    name: "android.hardware.sensors@1.0-impl.samsung",
     defaults: ["hidl_defaults"],
     proprietary: true,
     relative_install_path: "hw",
@@ -18,5 +18,4 @@ cc_library_shared {
         "android.hardware.sensors@1.0-convert",
         "multihal",
     ],
-    local_include_dirs: ["include/sensors"],
 }
index 1100dd6a2a6b05a645d628db52eba1c356c0e403..678ac72b4437286db7e89b68ba2bdd51e9a42557 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 #include "Sensors.h"
-#include "convert.h"
+#include <sensors/convert.h>
 #include "multihal.h"
 
 #include <android-base/logging.h>
index be00a9610af44edf274a256e1b5312ec7b84e0b3..a43a00d51ab82cbf89b779aa96691d87624da254 100644 (file)
@@ -14,9 +14,9 @@
  * limitations under the License.
  */
 
-#ifndef HARDWARE_INTERFACES_SENSORS_V1_0_DEFAULT_SENSORS_H_
+#ifndef HARDWARE_INTERFACES_SENSORS_V1_0_SAMSUNG_SENSORS_H_
 
-#define HARDWARE_INTERFACES_SENSORS_V1_0_DEFAULT_SENSORS_H_
+#define HARDWARE_INTERFACES_SENSORS_V1_0_SAMSUNG_SENSORS_H_
 
 #include <android-base/macros.h>
 #include <android/hardware/sensors/1.0/ISensors.h>
@@ -85,4 +85,4 @@ extern "C" ISensors *HIDL_FETCH_ISensors(const char *name);
 }  // namespace hardware
 }  // namespace android
 
-#endif  // HARDWARE_INTERFACES_SENSORS_V1_0_DEFAULT_SENSORS_H_
+#endif  // HARDWARE_INTERFACES_SENSORS_V1_0_SAMSUNG_SENSORS_H_