diff options
author | Rebecca Silberstein <silberst@google.com> | 2016-08-05 21:27:09 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-08-05 21:27:09 +0000 |
commit | 5870db356197f38fbf5f2e9d344d4312090a0b46 (patch) | |
tree | 554df55f3d02720ae064225758acb0c02dd4595c /service | |
parent | 2e818f6401f66a6eeffec4b0dfcaee1ead30d341 (diff) | |
parent | 173dae04272c1b40488292f6392a922b4c4b2949 (diff) |
WifiStateMachine: update new mode in initial state
am: 173dae0427
Change-Id: I914335d6ade8f7e8cc9b98a62492f4d91c36a190
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/WifiStateMachine.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiStateMachine.java b/service/java/com/android/server/wifi/WifiStateMachine.java index 05d1ab575..266de2a73 100644 --- a/service/java/com/android/server/wifi/WifiStateMachine.java +++ b/service/java/com/android/server/wifi/WifiStateMachine.java @@ -1889,6 +1889,14 @@ public class WifiStateMachine extends StateMachine implements WifiNative.WifiRss } /** + * Allow tests to confirm the operational mode for WSM. + */ + @VisibleForTesting + protected int getOperationalModeForTest() { + return mOperationalMode; + } + + /** * TODO: doc */ public List<ScanResult> syncGetScanResultsList() { @@ -4360,6 +4368,9 @@ public class WifiStateMachine extends StateMachine implements WifiNative.WifiRss transitionTo(mInitialState); } break; + case CMD_SET_OPERATIONAL_MODE: + mOperationalMode = message.arg1; + break; default: return NOT_HANDLED; } |