diff options
author | Quang Luong <qal@google.com> | 2018-10-16 16:41:58 -0700 |
---|---|---|
committer | Quang Luong <qal@google.com> | 2018-10-16 16:41:58 -0700 |
commit | f6b024d18767a76d5b3b4b3ec901bafe8c6fcb5a (patch) | |
tree | 868a99921596118f3c766631441132915b29110c /service | |
parent | a18bedbffad7a615e52aa3602f6541b56453db32 (diff) |
Added start timestamp to SoftApManager dump
Bug: 112041679
Test: manual, adb shell dumpsys wifi
Change-Id: I91d30022efabdb0f875cde8dba9f5bf7852ec09d
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/SoftApManager.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/SoftApManager.java b/service/java/com/android/server/wifi/SoftApManager.java index 53cbd7958..1a1155856 100644 --- a/service/java/com/android/server/wifi/SoftApManager.java +++ b/service/java/com/android/server/wifi/SoftApManager.java @@ -95,6 +95,8 @@ public class SoftApManager implements ActiveModeManager { private final SarManager mSarManager; + private long mStartTimestamp = -1; + /** * Listener for soft AP events. */ @@ -196,6 +198,7 @@ public class SoftApManager implements ActiveModeManager { pw.println("mTimeoutEnabled: " + mTimeoutEnabled); pw.println("mReportedFrequency: " + mReportedFrequency); pw.println("mReportedBandwidth: " + mReportedBandwidth); + pw.println("mStartTimestamp: " + mStartTimestamp); } private String getCurrentStateName() { @@ -282,6 +285,7 @@ public class SoftApManager implements ActiveModeManager { Log.e(TAG, "Soft AP start failed"); return ERROR_GENERIC; } + mStartTimestamp = SystemClock.elapsedRealtime(); Log.d(TAG, "Soft AP is started"); return SUCCESS; |