Gnss Hal Minor Cleanup
Enum sizes and names cleaned up, fixed errors in comments,
cleaned up some variable names.
Also removed AGnssRefLocation since it appears to be unused.
Bug:31974439
Test: mm
Change-Id: I88f43caac5ce9c7137e28b29ba55ea330786745f
diff --git a/gnss/1.0/IAGnssRil.hal b/gnss/1.0/IAGnssRil.hal
index 7363d46..499b874 100644
--- a/gnss/1.0/IAGnssRil.hal
+++ b/gnss/1.0/IAGnssRil.hal
@@ -25,13 +25,13 @@
* location, unique subscriber ID, phone number string and network availability changes.
*/
interface IAGnssRil {
- enum SetIDType : uint16_t {
+ enum SetIDType : uint8_t {
NONE = 0,
IMSI = 1,
MSISDM = 2
};
- enum NetworkType : int32_t {
+ enum NetworkType : uint8_t {
MOBILE = 0,
WIFI = 1,
MMS = 2,
@@ -41,10 +41,9 @@
WIMAX = 6,
};
- enum AGnssRefLocationType : int32_t {
+ enum AGnssRefLocationType : uint8_t {
GSM_CELLID = 1,
UMTS_CELLID = 2,
- MAC = 3,
LTE_CELLID = 4,
};
@@ -75,20 +74,11 @@
uint16_t pcid;
};
- struct AGnssRefLocationMac {
- uint8_t[6] mac;
- };
-
/* Represents ref locations */
struct AGnssRefLocation {
AGnssRefLocationType type;
- union RefLoc {
- AGnssRefLocationCellID cellID;
- AGnssRefLocationMac mac;
- };
-
- RefLoc refLocVal;
+ AGnssRefLocationCellID cellID;
};
/*
@@ -102,7 +92,7 @@
/*
* Sets the reference location.
*
- * @param agnssReflocation AGNSS reference location CellID/MAC.
+ * @param agnssReflocation AGNSS reference location CellID.
*/
setRefLocation(AGnssRefLocation agnssReflocation);