diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-12-09 04:18:03 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-12-09 04:18:03 +0000 |
commit | 9812773ed3a2b71859cb0aa483d53ba5b2d9efec (patch) | |
tree | a96bcd1b803211aa35a54666670ae13db5dd8c86 | |
parent | 75bc41b815086256d5b8578ab074f4da0fa2d847 (diff) | |
parent | 4714ee51fdf3d008b42ef321fa5793797bf54a84 (diff) | |
download | pixel-9812773ed3a2b71859cb0aa483d53ba5b2d9efec.tar.gz |
Snap for 11200327 from 4714ee51fdf3d008b42ef321fa5793797bf54a84 to 24Q1-release
Change-Id: I4dc9648fef552fee7bd62c634521d454dcb2223d
-rw-r--r-- | thermal/Android.bp | 4 | ||||
-rw-r--r-- | thermal/android.hardware.thermal-service.pixel.xml | 2 | ||||
-rw-r--r-- | usb/CommonUtils.cpp | 6 | ||||
-rw-r--r-- | usb/include/pixelusb/CommonUtils.h | 9 |
4 files changed, 11 insertions, 10 deletions
diff --git a/thermal/Android.bp b/thermal/Android.bp index a7ad5d87..afd3c811 100644 --- a/thermal/Android.bp +++ b/thermal/Android.bp @@ -34,7 +34,7 @@ cc_binary { "libbinder_ndk", "android.frameworks.stats-V2-ndk", "android.hardware.power-V1-ndk", - "android.hardware.thermal-V1-ndk", + "android.hardware.thermal-V2-ndk", "pixel-power-ext-V1-ndk", "pixelatoms-cpp", ], @@ -92,7 +92,7 @@ cc_test { "libbinder_ndk", "android.frameworks.stats-V2-ndk", "android.hardware.power-V1-ndk", - "android.hardware.thermal-V1-ndk", + "android.hardware.thermal-V2-ndk", "pixel-power-ext-V1-ndk", "pixelatoms-cpp", ], diff --git a/thermal/android.hardware.thermal-service.pixel.xml b/thermal/android.hardware.thermal-service.pixel.xml index bdee7446..08dc68ca 100644 --- a/thermal/android.hardware.thermal-service.pixel.xml +++ b/thermal/android.hardware.thermal-service.pixel.xml @@ -1,7 +1,7 @@ <manifest version="1.0" type="device"> <hal format="aidl"> <name>android.hardware.thermal</name> - <version>1</version> + <version>2</version> <fqname>IThermal/default</fqname> </hal> </manifest> diff --git a/usb/CommonUtils.cpp b/usb/CommonUtils.cpp index 91688b98..6e0f08c9 100644 --- a/usb/CommonUtils.cpp +++ b/usb/CommonUtils.cpp @@ -200,10 +200,10 @@ static VendorUsbDataSessionEvent_UsbDeviceState stringToUsbDeviceStateProto( } } -void BuildVendorUsbDataSessionEvent(bool is_host, steady_clock::time_point currentTime, - steady_clock::time_point startTime, +void BuildVendorUsbDataSessionEvent(bool is_host, boot_clock::time_point currentTime, + boot_clock::time_point startTime, std::vector<std::string> *states, - std::vector<steady_clock::time_point> *timestamps, + std::vector<boot_clock::time_point> *timestamps, VendorUsbDataSessionEvent *event) { if (is_host) { event->set_usb_role(VendorUsbDataSessionEvent_UsbDataRole_USB_ROLE_HOST); diff --git a/usb/include/pixelusb/CommonUtils.h b/usb/include/pixelusb/CommonUtils.h index 93855be3..dbd59c63 100644 --- a/usb/include/pixelusb/CommonUtils.h +++ b/usb/include/pixelusb/CommonUtils.h @@ -17,6 +17,7 @@ #ifndef HARDWARE_GOOGLE_PIXEL_USB_UTILSCOMMON_H_ #define HARDWARE_GOOGLE_PIXEL_USB_UTILSCOMMON_H_ +#include <android-base/chrono_utils.h> #include <android-base/unique_fd.h> #include <hardware/google/pixel/pixelstats/pixelatoms.pb.h> @@ -58,8 +59,8 @@ constexpr char kUvcEnabled[] = "ro.usb.uvc.enabled"; #define FUNCTION_PATH CONFIG_PATH FUNCTION_NAME #define RNDIS_PATH FUNCTIONS_PATH "gsi.rndis" +using ::android::base::boot_clock; using android::hardware::google::pixel::PixelAtoms::VendorUsbDataSessionEvent; -using ::std::chrono::steady_clock; // Adds the given fd to the epollfd(epfd). int addEpollFd(const ::android::base::unique_fd &epfd, const ::android::base::unique_fd &fd); @@ -73,10 +74,10 @@ int linkFunction(const char *function, int index); bool setVidPidCommon(const char *vid, const char *pid); // Pulls down USB gadget. Returns true on success, false on failure bool resetGadgetCommon(); -void BuildVendorUsbDataSessionEvent(bool is_host, steady_clock::time_point currentTime, - steady_clock::time_point startTime, +void BuildVendorUsbDataSessionEvent(bool is_host, boot_clock::time_point currentTime, + boot_clock::time_point startTime, std::vector<std::string> *states, - std::vector<steady_clock::time_point> *timestamps, + std::vector<boot_clock::time_point> *timestamps, VendorUsbDataSessionEvent *event); } // namespace usb |