From 1eaa364e2f9fa99575104c70b33e5927ae0157a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A4=9A=E6=99=A8=E8=BE=89?= <734222381@qq.com> Date: Tue, 2 Apr 2024 14:17:22 +0800 Subject: [PATCH] fix:del unused deps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 褚晨辉 <734222381@qq.com> --- location/geofence/v2_0/BUILD.gn | 1 - location/geofence/v2_0/IGeofenceCallback.idl | 2 +- location/geofence/v2_0/IGeofenceInterface.idl | 2 +- location/gnss/v2_0/GnssTypes.idl | 6 +++--- location/gnss/v2_0/IGnssCallback.idl | 2 +- location/gnss/v2_0/IGnssInterface.idl | 2 +- 6 files changed, 7 insertions(+), 8 deletions(-) diff --git a/location/geofence/v2_0/BUILD.gn b/location/geofence/v2_0/BUILD.gn index 0b4f3273..4a47f3a2 100644 --- a/location/geofence/v2_0/BUILD.gn +++ b/location/geofence/v2_0/BUILD.gn @@ -21,7 +21,6 @@ hdi("location_geofence") { ] sequenceable_ext_deps = [ "drivers_interface_location_gnss:liblocation_gnss_proxy_2.0", - "drivers_interface_location_gnss:liblocation_gnss_stub_2.0", "drivers_interface_location_gnss:location_gnss_idl_headers", ] diff --git a/location/geofence/v2_0/IGeofenceCallback.idl b/location/geofence/v2_0/IGeofenceCallback.idl index 3f8e01b6..56c30491 100644 --- a/location/geofence/v2_0/IGeofenceCallback.idl +++ b/location/geofence/v2_0/IGeofenceCallback.idl @@ -72,7 +72,7 @@ import ohos.hdi.location.gnss.v2_0.GnssTypes; */ ReportGeofenceEvent([in] int fenceIndex, [in] struct LocationInfo location, - [in] enum GeofenceEvent event, + [in] int event, [in] long timestamp); /* diff --git a/location/geofence/v2_0/IGeofenceInterface.idl b/location/geofence/v2_0/IGeofenceInterface.idl index cfc6944e..fdb8c9f4 100644 --- a/location/geofence/v2_0/IGeofenceInterface.idl +++ b/location/geofence/v2_0/IGeofenceInterface.idl @@ -72,7 +72,7 @@ interface IGeofenceInterface { * @version 2.0 */ AddGnssGeofence([in] struct GeofenceInfo fence, - [in] enum GeofenceEvent monitorEvent); + [in] int monitorEvent); /* * @brief Delete a geofence. diff --git a/location/gnss/v2_0/GnssTypes.idl b/location/gnss/v2_0/GnssTypes.idl index 46aab077..1da98eee 100644 --- a/location/gnss/v2_0/GnssTypes.idl +++ b/location/gnss/v2_0/GnssTypes.idl @@ -275,7 +275,7 @@ struct SatelliteStatusInfo { /* Carrier frequency of the signal tracked. */ float[] carrierFrequencies; - enum SatelliteAdditionalInfo[] additionalInfo; + unsigned int[] additionalInfo; }; /* @@ -338,7 +338,7 @@ struct GnssRefTime { * @since 5.0 */ struct LocationInfo { - enum GnssLocationValidity fieldValidity; + unsigned int fieldValidity; double latitude; @@ -401,7 +401,7 @@ struct GnssNiNotificationRequest { enum GnssNiRequestCategory gnssNiRequestCategory; /* Category of notification. */ - enum GnssNiNotificationCategory notificationCategory; + int notificationCategory; /* Timeout to wait for user response. The unit is seconds. */ int requestTimeout; diff --git a/location/gnss/v2_0/IGnssCallback.idl b/location/gnss/v2_0/IGnssCallback.idl index 879756c3..687d9496 100644 --- a/location/gnss/v2_0/IGnssCallback.idl +++ b/location/gnss/v2_0/IGnssCallback.idl @@ -94,7 +94,7 @@ import ohos.hdi.location.gnss.v2_0.GnssTypes; * @since 5.0 * @version 2.0 */ - ReportGnssCapabilities([in] enum GnssCapabilities capabilities); + ReportGnssCapabilities([in] unsigned int capabilities); /* * @brief Satellite status information reporting. diff --git a/location/gnss/v2_0/IGnssInterface.idl b/location/gnss/v2_0/IGnssInterface.idl index 2568e256..b794f24b 100644 --- a/location/gnss/v2_0/IGnssInterface.idl +++ b/location/gnss/v2_0/IGnssInterface.idl @@ -132,7 +132,7 @@ interface IGnssInterface { * @since 5.0 * @version 2.0 */ - DeleteAuxiliaryData([in] enum GnssAuxiliaryDataType data); + DeleteAuxiliaryData([in] unsigned short data); /* * @brief Ingesting Predict Gnss Data. -- Gitee