diff options
author | Andreas Huber <andih@google.com> | 2013-04-04 10:51:52 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2013-04-04 10:51:52 -0700 |
commit | 8f24c039fb3418c15f476988f12383b26c1201bc (patch) | |
tree | 05903f1822c934e26a4b17604e8a144ebe4b6686 /media | |
parent | 013673916b6badf0b6dfb65e7165cef84241ede3 (diff) | |
download | frameworks_av-8f24c039fb3418c15f476988f12383b26c1201bc.zip frameworks_av-8f24c039fb3418c15f476988f12383b26c1201bc.tar.gz frameworks_av-8f24c039fb3418c15f476988f12383b26c1201bc.tar.bz2 |
Reduce TimeSyncer frequency to once every 60 secs, added some logs
to indicate when syncing intervals start and end.
Change-Id: I3b2b997d6723ff592af7c31082c6020cc1eca433
Diffstat (limited to 'media')
-rw-r--r-- | media/libstagefright/wifi-display/TimeSyncer.cpp | 6 | ||||
-rw-r--r-- | media/libstagefright/wifi-display/TimeSyncer.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/media/libstagefright/wifi-display/TimeSyncer.cpp b/media/libstagefright/wifi-display/TimeSyncer.cpp index 64e182e..cb429bc 100644 --- a/media/libstagefright/wifi-display/TimeSyncer.cpp +++ b/media/libstagefright/wifi-display/TimeSyncer.cpp @@ -102,6 +102,10 @@ void TimeSyncer::onMessageReceived(const sp<AMessage> &msg) { case kWhatSendPacket: { + if (mHistory.size() == 0) { + ALOGI("starting batch"); + } + TimeInfo ti; memset(&ti, 0, sizeof(ti)); @@ -229,6 +233,8 @@ void TimeSyncer::onMessageReceived(const sp<AMessage> &msg) { } else { notifyOffset(); + ALOGI("batch done"); + mHistory.clear(); postSendPacket(kBatchDelayUs); } diff --git a/media/libstagefright/wifi-display/TimeSyncer.h b/media/libstagefright/wifi-display/TimeSyncer.h index 0e3aed7..4e7571f 100644 --- a/media/libstagefright/wifi-display/TimeSyncer.h +++ b/media/libstagefright/wifi-display/TimeSyncer.h @@ -75,7 +75,7 @@ private: kNumPacketsPerBatch = 30, }; static const int64_t kTimeoutDelayUs = 500000ll; - static const int64_t kBatchDelayUs = 10000000ll; // every 10 secs + static const int64_t kBatchDelayUs = 60000000ll; // every minute sp<ANetworkSession> mNetSession; sp<AMessage> mNotify; |