Update strings and layout for enterprise privacy

This CL continues the finalization of UI layout and strings for the
enterprise privacy page:
* Turn footer into a header
* Update strings
* Dynamically generate summaries for entry points in security page

Bug: 32692748
Test: m RunSettingsRoboTests

Change-Id: Ibf248ac269380fb1b919b01f88f721130060b7f9
This commit is contained in:
Bartosz Fabianowski
2017-03-10 15:47:14 +01:00
parent 26a5a71d31
commit ba66a0ef09
15 changed files with 420 additions and 22 deletions

View File

@@ -31,6 +31,13 @@ public interface EnterprisePrivacyFeatureProvider {
*/
boolean isInCompMode();
/**
* Returns the name of the organization managing the device via a Device Owner app. If the device
* is not managed by a Device Owner app or the name of the managing organization was not set,
* returns {@code null}.
*/
String getDeviceOwnerOrganizationName();
/**
* Returns a message informing the user that the device is managed by a Device Owner app. The
* message includes a Learn More link that takes the user to the enterprise privacy section of
@@ -100,4 +107,10 @@ public interface EnterprisePrivacyFeatureProvider {
* managed profile (if any).
*/
int getNumberOfOwnerInstalledCaCertsInManagedProfile();
/**
* Returns the number of Device Admin apps active in the current user and the user's managed
* profile (if any).
*/
int getNumberOfActiveDeviceAdminsForCurrentUserAndManagedProfile();
}