Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7037fdbf authored by Yifan Hong's avatar Yifan Hong Committed by Hridya Valsaraju
Browse files

Use bitfield type in GNSS HAL.

Test: mma

Change-Id: I92acf537a489fb06d942d3aa19ec9f40ffe26c23
parent 5ec14ad8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ interface IAGnssRilCallback {
     *
     * @param setIdflag Specifies the kind of SET ID that is required by the HAL.
     */
    requestSetIdCb(ID setIdflag);
    requestSetIdCb(bitfield<ID> setIdflag);

    /*
     * The Hal uses this API to request a reference location.
+1 −1
Original line number Diff line number Diff line
@@ -179,7 +179,7 @@ interface IGnssCallback {
     * @param capabilities Capability parameter is a bit field of
     * the Capabilities enum.
     */
    gnssSetCapabilitesCb(uint32_t capabilities);
    gnssSetCapabilitesCb(bitfield<Capabilities> capabilities);

    /*
     * Callback utility for acquiring the GNSS wakelock. This can be used to prevent
+5 −5
Original line number Diff line number Diff line
@@ -106,7 +106,7 @@ interface IGnssConfiguration {
      *
      * @return success True if operation was successful.
      */
     setSuplMode(uint8_t mode) generates (bool success);
     setSuplMode(bitfield<SuplMode> mode) generates (bool success);

     /*
      * This setting configures how GPS functionalities should be locked when
@@ -117,7 +117,7 @@ interface IGnssConfiguration {
      *
      * @return success True if operation was successful.
      */
     setGpsLock(uint8_t lock) generates (bool success);
     setGpsLock(bitfield<GpsLock> lock) generates (bool success);

     /*
      * This method sets the LTE Positioning Profile configuration.
@@ -127,17 +127,17 @@ interface IGnssConfiguration {
      *
      * @return success True if operation was successful.
      */
     setLppProfile(uint8_t lppProfile) generates (bool success);
     setLppProfile(bitfield<LppProfile> lppProfile) generates (bool success);

     /*
      * This method selects positioning protocol on A-Glonass system.
      *
      * @param protocol Bitmask that specifies the positioning protocol to be
      * set as per GlonassPositioningProtocol enum.
      * set as per GlonassPosProtocol enum.
      *
      * @return success True if operation was successful.
      */
     setGlonassPositioningProtocol(uint8_t protocol) generates (bool success);
     setGlonassPositioningProtocol(bitfield<GlonassPosProtocol> protocol) generates (bool success);

     /*
      * This method configures which PDN to use.
+6 −4
Original line number Diff line number Diff line
@@ -55,7 +55,8 @@ interface IGnssGeofencing {
     */
    addGeofence(int32_t geofenceId, double latitudeDegrees, double longitudeDegrees,
            double radiusMeters, GeofenceTransition lastTransition,
        int32_t monitorTransitions, uint32_t notificationResponsivenessMs,
            bitfield<IGnssGeofenceCallback.GeofenceTransition> monitorTransitions,
            uint32_t notificationResponsivenessMs,
            uint32_t unknownTimerMs);

    /*
@@ -74,7 +75,8 @@ interface IGnssGeofencing {
     * UNCERTAIN. This supersedes the value associated
     * provided in the addGeofenceArea call.
     */
    resumeGeofence(int32_t geofenceId, int32_t monitorTransitions);
    resumeGeofence(int32_t geofenceId,
            bitfield<IGnssGeofenceCallback.GeofenceTransition> monitorTransitions);

    /*
     * Remove a geofence area. After the function returns, no notifications
+4 −4
Original line number Diff line number Diff line
@@ -116,7 +116,7 @@ interface IGnssMeasurementCallback {
         * A set of flags indicating the validity of the fields in this data
         * structure.
         */
        GnssClockFlags gnssClockFlags;
        bitfield<GnssClockFlags> gnssClockFlags;

        /*
         * Leap second data.
@@ -272,7 +272,7 @@ interface IGnssMeasurementCallback {
         * A set of flags indicating the validity of the fields in this data
         * structure.
         */
        GnssMeasurementFlags flags;
        bitfield<GnssMeasurementFlags> flags;

        /*
         * Satellite vehicle ID number, as defined in GnssSvInfo::svid
@@ -306,7 +306,7 @@ interface IGnssMeasurementCallback {
         *
         * This is a mandatory value.
         */
        GnssMeasurementState state;
        bitfield<GnssMeasurementState> state;

        /*
         * The received GNSS Time-of-Week at the measurement time, in nanoseconds.
@@ -430,7 +430,7 @@ interface IGnssMeasurementCallback {
         *
         * This is a mandatory value.
         */
        GnssAccumulatedDeltaRangeState accumulatedDeltaRangeState;
        bitfield<GnssAccumulatedDeltaRangeState> accumulatedDeltaRangeState;

        /*
         * Accumulated delta range since the last channel reset in meters.
Loading