public class SecurityControllerImpl extends Object implements SecurityController
SecurityController.SecurityControllerCallback
Constructor and Description |
---|
SecurityControllerImpl(Context context) |
Modifier and Type | Method and Description |
---|---|
void |
addCallback(SecurityController.SecurityControllerCallback callback) |
void |
dump(FileDescriptor fd,
PrintWriter pw,
String[] args) |
String |
getDeviceOwnerName() |
String |
getPrimaryVpnName() |
String |
getProfileOwnerName() |
String |
getProfileVpnName() |
boolean |
hasProfileOwner() |
boolean |
isDeviceManaged()
Whether the device has device owner, even if not on this user.
|
boolean |
isVpnBranded()
Whether the VPN app should use branded VPN iconography.
|
boolean |
isVpnEnabled() |
boolean |
isVpnRestricted() |
void |
onUserSwitched(int newUserId) |
void |
removeCallback(SecurityController.SecurityControllerCallback callback) |
public SecurityControllerImpl(Context context)
public void dump(FileDescriptor fd, PrintWriter pw, String[] args)
public boolean isDeviceManaged()
SecurityController
isDeviceManaged
in interface SecurityController
public String getDeviceOwnerName()
getDeviceOwnerName
in interface SecurityController
public boolean hasProfileOwner()
hasProfileOwner
in interface SecurityController
public String getProfileOwnerName()
getProfileOwnerName
in interface SecurityController
public String getPrimaryVpnName()
getPrimaryVpnName
in interface SecurityController
public String getProfileVpnName()
getProfileVpnName
in interface SecurityController
public boolean isVpnEnabled()
isVpnEnabled
in interface SecurityController
public boolean isVpnRestricted()
isVpnRestricted
in interface SecurityController
public boolean isVpnBranded()
SecurityController
isVpnBranded
in interface SecurityController
public void removeCallback(SecurityController.SecurityControllerCallback callback)
removeCallback
in interface SecurityController
public void addCallback(SecurityController.SecurityControllerCallback callback)
addCallback
in interface SecurityController
public void onUserSwitched(int newUserId)
onUserSwitched
in interface SecurityController