diff --git a/location/geofence/v2_0/BUILD.gn b/location/geofence/v2_0/BUILD.gn index dece9c130e034e7b964b47aeb3e4942633096bf7..4a47f3a287d8cd79939fa8881d116a3a6301d054 100644 --- a/location/geofence/v2_0/BUILD.gn +++ b/location/geofence/v2_0/BUILD.gn @@ -20,7 +20,7 @@ hdi("location_geofence") { "IGeofenceInterface.idl", ] sequenceable_ext_deps = [ - "drivers_interface_location_gnss:liblocation_gnss_stub_2.0", + "drivers_interface_location_gnss:liblocation_gnss_proxy_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 3f8e01b678624fa42a57ad1e65681f1361d4c9e1..56c304911750fdb7b60cb3758ad2b63ff492f847 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 cfc6944e7a644de05048258dc0e7d113fbfdea66..fdb8c9f438f6fac2b9b05755461dc70de58cbb2a 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 46aab0776e6c7cbd479f957129663d3402dee8e7..1da98eeea3ed6cc7be347f2442905d0cbf135ced 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 879756c368f43f079966e72da04d2541e05452d4..687d9496057f1808d177fb88112c0a43a20f4f5f 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 2568e256e86a22b7a25b2524badfc74b56585d01..b794f24b6ca6774e9e690f384fb095fcd2352e85 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.