Record the first connection status notification
Keep record of whether connection status was reported and report it in the response status CRs-Fixed: 2126610 Change-Id: I284f53c71f1131a73eed0adaf00b66f04e4100ac
This commit is contained in:
parent
e21e18a836
commit
e787679074
2 changed files with 6 additions and 2 deletions
|
@ -70,6 +70,8 @@ bool XtraSystemStatusObserver::updateLockStatus(uint32_t lock) {
|
|||
}
|
||||
|
||||
bool XtraSystemStatusObserver::updateConnectionStatus(bool connected, int32_t type) {
|
||||
mIsConnectivityStatusKnown = true;
|
||||
|
||||
if (connected) {
|
||||
mConnections.insert(type);
|
||||
} else {
|
||||
|
@ -148,7 +150,7 @@ inline bool XtraSystemStatusObserver::onStatusRequested(int32_t xtraStatusUpdate
|
|||
|
||||
ss << "respondStatus" << endl;
|
||||
(mGpsLock == -1 ? ss : ss << mGpsLock) << endl << mConnections << endl
|
||||
<< mTac << endl << mMccmnc;
|
||||
<< mTac << endl << mMccmnc << endl << mIsConnectivityStatusKnown;
|
||||
|
||||
return ( send(LOC_IPC_XTRA, ss.str()) );
|
||||
}
|
||||
|
|
|
@ -47,7 +47,8 @@ public :
|
|||
// constructor & destructor
|
||||
inline XtraSystemStatusObserver(IOsObserver* sysStatObs, const MsgTask* msgTask):
|
||||
mSystemStatusObsrvr(sysStatObs), mMsgTask(msgTask),
|
||||
mGpsLock(-1), mXtraThrottle(true), mReqStatusReceived(false), mDelayLocTimer(*this) {
|
||||
mGpsLock(-1), mXtraThrottle(true), mReqStatusReceived(false), mDelayLocTimer(*this),
|
||||
mIsConnectivityStatusKnown (false) {
|
||||
subscribe(true);
|
||||
startListeningNonBlocking(LOC_IPC_HAL);
|
||||
mDelayLocTimer.start(100 /*.1 sec*/, false);
|
||||
|
@ -80,6 +81,7 @@ private:
|
|||
string mMccmnc;
|
||||
bool mXtraThrottle;
|
||||
bool mReqStatusReceived;
|
||||
bool mIsConnectivityStatusKnown;
|
||||
|
||||
class DelayLocTimer : public LocTimer {
|
||||
XtraSystemStatusObserver& mXSSO;
|
||||
|
|
Loading…
Reference in a new issue