summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorKevin Tang <zhikait@codeaurora.org>2015-01-19 16:22:28 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2015-09-02 10:09:14 -0700
commit623f5a6fc56486d07f7972b5c6d3c294fde5438c (patch)
treeed4abbd13757204585b17ab8f326fb6a13f5cdcd /core
parent5e7710897247c8c8da6bed8cdcc7dc43698e2937 (diff)
downloadgps-623f5a6fc56486d07f7972b5c6d3c294fde5438c.tar.gz
adding dev id into xtra user agent
setting XTRA_USER_AGENT at GPS HAL init time, incorporating Android sw version, manufacturer, model, board. CRs-Fixed: 788356 Change-Id: I8d9dcc80a0769796a25a0477f5f1598a292fe8b0
Diffstat (limited to 'core')
-rw-r--r--core/ContextBase.h5
-rw-r--r--core/LBSProxyBase.h3
-rw-r--r--core/gps_extended_c.h2
3 files changed, 8 insertions, 2 deletions
diff --git a/core/ContextBase.h b/core/ContextBase.h
index ff7a4b3..fe0b860 100644
--- a/core/ContextBase.h
+++ b/core/ContextBase.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2011-2014, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2011-2015, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -63,6 +63,9 @@ public:
unsigned long capabilities) {
mLBSProxy->requestUlp(adapter, capabilities);
}
+ inline IzatDevId_t getIzatDevId() const {
+ return mLBSProxy->getIzatDevId();
+ }
inline void sendMsg(const LocMsg *msg) { getMsgTask()->sendMsg(msg); }
};
diff --git a/core/LBSProxyBase.h b/core/LBSProxyBase.h
index 75ae992..0faf801 100644
--- a/core/LBSProxyBase.h
+++ b/core/LBSProxyBase.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -55,6 +55,7 @@ public:
inline virtual bool hasCPIExtendedCapabilities() const { return false; }
inline virtual void modemPowerVote(bool power) const {}
virtual void injectFeatureConfig(ContextBase* context) const {}
+ inline virtual IzatDevId_t getIzatDevId() const { return 0; }
};
typedef LBSProxyBase* (getLBSProxy_t)();
diff --git a/core/gps_extended_c.h b/core/gps_extended_c.h
index 0573014..06764cf 100644
--- a/core/gps_extended_c.h
+++ b/core/gps_extended_c.h
@@ -400,6 +400,8 @@ typedef enum loc_api_adapter_msg_to_check_supported {
LOC_API_ADAPTER_MESSAGE_MAX
} LocCheckingMessagesID;
+typedef int IzatDevId_t;
+
typedef uint32_t LOC_GPS_LOCK_MASK;
#define isGpsLockNone(lock) ((lock) == 0)
#define isGpsLockMO(lock) ((lock) & ((LOC_GPS_LOCK_MASK)1))