summaryrefslogtreecommitdiff
path: root/usb/usb/Usb.h
diff options
context:
space:
mode:
Diffstat (limited to 'usb/usb/Usb.h')
-rw-r--r--usb/usb/Usb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/usb/usb/Usb.h b/usb/usb/Usb.h
index e45a5ed..495a467 100644
--- a/usb/usb/Usb.h
+++ b/usb/usb/Usb.h
@@ -21,6 +21,7 @@
#include <aidl/android/hardware/usb/BnUsbCallback.h>
#include <pixelusb/UsbOverheatEvent.h>
#include <utils/Log.h>
+#include <UsbDataSessionMonitor.h>
#define UEVENT_MSG_LEN 2048
// The type-c stack waits for 4.5 - 5.5 secs before declaring a port non-pd.
@@ -87,6 +88,8 @@ struct Usb : public BnUsb {
// Variable to signal partner coming back online after type switch
bool mPartnerUp;
+ // Report usb data session event and data incompliance warnings
+ UsbDataSessionMonitor mUsbDataSessionMonitor;
// Usb Overheat object for push suez event
UsbOverheatEvent mOverheat;
// Temperature when connected
@@ -96,6 +99,7 @@ struct Usb : public BnUsb {
// Usb hub vendor command settings for JK level tuning
int mUsbHubVendorCmdValue;
int mUsbHubVendorCmdIndex;
+
private:
pthread_t mPoll;
pthread_t mUsbHost;