OSDN Git Service

Remove wifiConfiguration.isVisibleToUser()
authorBartosz Fabianowski <bartfab@google.com>
Thu, 11 Feb 2016 10:13:55 +0000 (11:13 +0100)
committerBartosz Fabianowski <bartfab@google.com>
Fri, 12 Feb 2016 10:12:45 +0000 (11:12 +0100)
This method seemed like a good idea at the time (quickly check whether a
network configuration is visible to a given user). However, once managed
profiles come into play, this simple method is no longer appropriate.
There is a more comprehensive replacement at
com.android.server.wifi.WifiConfigurationUtil.isVisibleToAnyProfile()
now and this method here can go.

BUG:26867426

Change-Id: Ia66aa6f74003a16eca24c5088d3aba8e0c9f8140

wifi/java/android/net/wifi/WifiConfiguration.java

index 5d94e53..8f4f4c7 100644 (file)
@@ -1755,11 +1755,6 @@ public class WifiConfiguration implements Parcelable {
     }
 
     /** @hide */
-    public boolean isVisibleToUser(int userId) {
-        return shared || (UserHandle.getUserId(creatorUid) == userId);
-    }
-
-    /** @hide */
     public void setPasspointManagementObjectTree(String passpointManagementObjectTree) {
         mPasspointManagementObjectTree = passpointManagementObjectTree;
     }