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

Commit 529331c4 authored by Hridya Valsaraju's avatar Hridya Valsaraju
Browse files

Add annotations to create gnss-base.h

This is required to make sure that the constants in gps.h does not
ever go out of sync with the enums created out of them in the HAL
interface definition.

Test: mm

Change-Id: I103cf46d198e9f5de9e0cfd64f2795f0094ecb39
parent 6b058752
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ import IAGnssCallback;
 * Extended interface for AGNSS support.
 */
interface IAGnss {
    @export(name="", value_prefix="APN_IP_")
    enum ApnIpType : uint8_t {
        INVALID  = 0,
        IPV4     = 1,
+3 −0
Original line number Diff line number Diff line
@@ -19,11 +19,13 @@ package android.hardware.gnss@1.0;
/** Callback structure for the AGNSS interface. */
interface IAGnssCallback {
    /** AGNSS type **/
    @export(name="", value_prefix="AGPS_")
    enum AGnssType : uint8_t {
        TYPE_SUPL         = 1,
        TYPE_C2K          = 2
    };

    @export(name="", value_prefix="GNSS_")
    enum AGnssStatusValue : uint8_t {
        /** GNSS requests data connection for AGNSS. */
        REQUEST_AGNSS_DATA_CONN  = 1,
@@ -40,6 +42,7 @@ interface IAGnssCallback {
    /*
     * Represents the status of AGNSS augmented to support IPv4.
     */
    @export(name="", value_prefix="GPS_")
    struct AGnssStatusIpV4 {
        AGnssType type;
        AGnssStatusValue status;
+3 −0
Original line number Diff line number Diff line
@@ -25,12 +25,14 @@ import IAGnssRilCallback;
 * location, unique subscriber ID, phone number string and network availability changes.
 */
interface IAGnssRil {
    @export(name="", value_prefix="AGPS_SETID_TYPE_")
    enum SetIDType : uint8_t {
        NONE    = 0,
        IMSI    = 1,
        MSISDM  = 2
    };

    @export(name="", value_prefix="AGPS_RIL_NETWORK_TYPE_")
    enum NetworkType : uint8_t {
        MOBILE  = 0,
        WIFI    = 1,
@@ -41,6 +43,7 @@ interface IAGnssRil {
        WIMAX   = 6,
    };

    @export(name="", value_prefix="AGPS_REF_LOCATION_TYPE_")
    enum AGnssRefLocationType : uint8_t {
        GSM_CELLID   = 1,
        UMTS_CELLID  = 2,
+1 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ package android.hardware.gnss@1.0;
 */
interface IAGnssRilCallback {
    /* Kinds of SET ID that can be requested */
    @export(name="", value_prefix="AGPS_RIL_REQUEST_SETID_")
    enum ID : uint32_t {
        IMSI    = 1 << 0L,
        MSISDN  = 1 << 1L,
+4 −1
Original line number Diff line number Diff line
@@ -28,9 +28,10 @@ import IGnssGeofencing;
import IGnssNi;
import IGnssXtra;

/* Represents the standard GNSS interface. */
/* Represents the standard GNSS (Global Navigation Satellite System) interface. */
interface IGnss {
    /* Requested operational mode for GNSS operation. */
    @export(name="", value_prefix="GPS_POSITION_MODE_")
    enum GnssPositionMode : uint8_t {
        /** Mode for running GNSS standalone (no assistance). */
        STANDALONE  = 0,
@@ -44,6 +45,7 @@ interface IGnss {
    };

    /* Requested recurrence mode for GNSS operation. */
    @export(name="", value_prefix="GPS_POSITION_")
    enum GnssPositionRecurrence : uint32_t {
        /** Receive GNSS fixes on a recurring basis at a specified period. */
        RECURRENCE_PERIODIC  = 0,
@@ -55,6 +57,7 @@ interface IGnss {
     * Flags used to specify which aiding data to delete when calling
     * deleteAidingData().
     */
    @export(name="", value_prefix="GPS_")
    enum GnssAidingData : uint16_t {
        DELETE_EPHEMERIS    = 0x0001,
        DELETE_ALMANAC      = 0x0002,
Loading