Add Always on VPN to Privacy Settings page

This CL adds information about always-on VPNs to the Enterprise
Privacy Settings page.

Test: make RunSettingsRoboTests
Bug: 32692748

Change-Id: I2b59e2ec4c55308b323aaa478cd9c847fe0b4b55
This commit is contained in:
Bartosz Fabianowski
2017-01-09 12:05:59 +01:00
parent 78427d7467
commit fc018e4672
16 changed files with 552 additions and 5 deletions

View File

@@ -25,6 +25,12 @@ public interface EnterprisePrivacyFeatureProvider {
*/
boolean hasDeviceOwner();
/**
* Returns whether the device is in COMP mode (primary user managed by a Device Owner app and
* work profile managed by a Profile Owner app).
*/
boolean isInCompMode();
/**
* Returns the time at which the Device Owner last retrieved security logs, or {@code null} if
* logs were never retrieved by the Device Owner on this device.
@@ -42,4 +48,14 @@ public interface EnterprisePrivacyFeatureProvider {
* logs were never retrieved by the Device Owner on this device.
*/
Date getLastNetworkLogRetrievalTime();
/**
* Returns whether the Device Owner in the primary user set an always-on VPN.
*/
boolean isAlwaysOnVpnSetInPrimaryUser();
/**
* Returns whether the Profile Owner in the managed profile (if any) set an always-on VPN.
*/
boolean isAlwaysOnVpnSetInManagedProfile();
}