summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorRebecca Silberstein <silberst@google.com>2016-08-05 21:27:09 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-08-05 21:27:09 +0000
commit5870db356197f38fbf5f2e9d344d4312090a0b46 (patch)
tree554df55f3d02720ae064225758acb0c02dd4595c /service
parent2e818f6401f66a6eeffec4b0dfcaee1ead30d341 (diff)
parent173dae04272c1b40488292f6392a922b4c4b2949 (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.java11
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;
}