nanotool: adds the wrist_tilt sensor

- ensures that wrist_tilt is powered off when using disable_all
- uses the sensor names list to disable all sensors

Bug: 28906473
Change-Id: I118fe7db3024189d4a8fc1dedbda1e05ae6e79e6
diff --git a/util/nanotool/contexthub.cpp b/util/nanotool/contexthub.cpp
index 37b2e4c..69bf90a 100644
--- a/util/nanotool/contexthub.cpp
+++ b/util/nanotool/contexthub.cpp
@@ -70,6 +70,7 @@
     { SensorType::Hall,                 "hall" },
     { SensorType::Activity,             "activity" },
     { SensorType::Vsync,                "vsync" },
+    { SensorType::WristTilt,            "wrist_tilt" },
 };
 
 struct SensorTypeAlias {
diff --git a/util/nanotool/contexthub.h b/util/nanotool/contexthub.h
index 0fbfa0d..f8eb6e7 100644
--- a/util/nanotool/contexthub.h
+++ b/util/nanotool/contexthub.h
@@ -69,6 +69,7 @@
     Activity,
     Vsync,
     CompressedAccel,
+    WristTilt = 39,
 
     Max_
 };
diff --git a/util/nanotool/sensorevent.cpp b/util/nanotool/sensorevent.cpp
index 2d64eb1..7befb9a 100644
--- a/util/nanotool/sensorevent.cpp
+++ b/util/nanotool/sensorevent.cpp
@@ -75,6 +75,7 @@
       case SensorType::DoubleTwist:
       case SensorType::DoubleTap:
       case SensorType::Vsync:
+      case SensorType::WristTilt:
           sensor_event = new SingleAxisIntSensorEvent();
           break;