summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2020-01-09 05:53:06 -0800
committerRoshan Pius <rpius@google.com>2020-01-09 13:19:03 -0800
commit9df86a2ff3d226080d91743fa16fc339e2bdc571 (patch)
treeaa7b8d9633466c7ea8d6340fe51cabf5da76b4d4 /service
parentfbc0dcb846cc397d5388f4a1080a900590a6a4a2 (diff)
wifi: Use @SystemApi UserHandle.SYSTEM
Use the already formal API to get the user id for the default system user. Bug: 147396785 Test: atest com.android.server.wifi Test: Device boots up & connects to wifi networks. Change-Id: I400557de1baff1fdf5d49c8402d1f2bf7a320072
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/ConfigurationMap.java2
-rw-r--r--service/java/com/android/server/wifi/WifiConfigManager.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/service/java/com/android/server/wifi/ConfigurationMap.java b/service/java/com/android/server/wifi/ConfigurationMap.java
index f8cae6695..1f21891e3 100644
--- a/service/java/com/android/server/wifi/ConfigurationMap.java
+++ b/service/java/com/android/server/wifi/ConfigurationMap.java
@@ -35,7 +35,7 @@ public class ConfigurationMap {
private final UserManager mUserManager;
- private int mCurrentUserId = UserHandle.USER_SYSTEM;
+ private int mCurrentUserId = UserHandle.SYSTEM.getIdentifier();
ConfigurationMap(UserManager userManager) {
mUserManager = userManager;
diff --git a/service/java/com/android/server/wifi/WifiConfigManager.java b/service/java/com/android/server/wifi/WifiConfigManager.java
index 541448efe..0647ed987 100644
--- a/service/java/com/android/server/wifi/WifiConfigManager.java
+++ b/service/java/com/android/server/wifi/WifiConfigManager.java
@@ -295,7 +295,7 @@ public class WifiConfigManager {
/**
* Current logged in user ID.
*/
- private int mCurrentUserId = UserHandle.USER_SYSTEM;
+ private int mCurrentUserId = UserHandle.SYSTEM.getIdentifier();
/**
* Flag to indicate that the new user's store has not yet been read since user switch.
* Initialize this flag to |true| to trigger a read on the first user unlock after