OSDN Git Service

Add Enterprise Privacy page to Settings
authorBartosz Fabianowski <bartfab@google.com>
Mon, 14 Nov 2016 11:04:49 +0000 (12:04 +0100)
committerBartosz Fabianowski <bartfab@google.com>
Mon, 14 Nov 2016 11:04:49 +0000 (12:04 +0100)
commit05061fced346b6f60e84c34f08b1957d1003ccdf
treef9fb532554789f3a8ebd21803739300ef774a3c9
parentfc229606b4d88b10d33a464d061919ae5e99be36
Add Enterprise Privacy page to Settings

This adds a new page to Settings which tells the user about his/her
privacy in light of enterprise management. The new page is only shown
on devices that have a Device Owner app set.

This CL adds a mostly blank page. Follow-up CLs will populate the page
with information about specific admin actions/policies.

The page's title ("Privacy"), icon and location in the Settings app are
tentative. The page will move to its final location once the new IA
redesign is finished.

Test: make RunSettingsRoboTests
BUG: 32692748

Change-Id: I5b5c08c0025207516b0779f54cf68234a4ba3fe4
18 files changed:
AndroidManifest.xml
res/values/strings.xml
res/xml/enterprise_privacy_settings.xml [new file with mode: 0644]
src/com/android/settings/Settings.java
src/com/android/settings/SettingsActivity.java
src/com/android/settings/WallOfTextPreference.java [moved from src/com/android/settings/fuelgauge/WallOfTextPreference.java with 99% similarity]
src/com/android/settings/enterprise/DevicePolicyManagerWrapper.java [new file with mode: 0644]
src/com/android/settings/enterprise/DevicePolicyManagerWrapperImpl.java [new file with mode: 0644]
src/com/android/settings/enterprise/EnterprisePrivacyFeatureProvider.java [new file with mode: 0644]
src/com/android/settings/enterprise/EnterprisePrivacyFeatureProviderImpl.java [new file with mode: 0644]
src/com/android/settings/enterprise/EnterprisePrivacySettings.java [new file with mode: 0644]
src/com/android/settings/overlay/FeatureFactory.java
src/com/android/settings/overlay/FeatureFactoryImpl.java
src/com/android/settings/search/Ranking.java
src/com/android/settings/search/SearchIndexableResources.java
tests/robotests/src/com/android/settings/enterprise/EnterprisePrivacyFeatureProviderImplTest.java [new file with mode: 0644]
tests/robotests/src/com/android/settings/enterprise/EnterprisePrivacySettingsTest.java [new file with mode: 0644]
tests/robotests/src/com/android/settings/testutils/FakeFeatureFactory.java