gs101: usb: Report USB port overheat event

Read duration stats expoted by google,usbc_port_cooling_dev and
push suez atom when the uevent is received. The plugged temperature
is queried every time when the USB port is connected. Maximum
temperature during overheat is queried when the uevent is received.

Bug: 193615568
Change-Id: Ib02e14dbdbe1390476e864d351158c1523a5c311
diff --git a/usb/Android.bp b/usb/Android.bp
index ccaa001..40454af 100644
--- a/usb/Android.bp
+++ b/usb/Android.bp
@@ -36,6 +36,7 @@
     cflags: ["-Wall", "-Werror"],
     shared_libs: [
         "libbase",
+        "libbinder",
         "libhidlbase",
         "liblog",
         "libutils",
@@ -47,8 +48,20 @@
         "android.hardware.usb.gadget@1.0",
         "android.hardware.usb.gadget@1.1",
         "android.hardware.usb.gadget@1.2",
+        "android.hardware.thermal@1.0",
+        "android.hardware.thermal@2.0",
         "libcutils",
+        "android.frameworks.stats-V1-ndk_platform",
+        "pixelatoms-cpp",
+        "libbinder_ndk",
     ],
-    static_libs: ["libpixelusb"],
+    static_libs: [
+        "libpixelusb",
+        "libpixelstats",
+    ],
+    export_shared_lib_headers: [
+        "android.frameworks.stats-V1-ndk_platform",
+        "pixelatoms-cpp",
+    ],
     proprietary: true,
 }