Commit Graph

7 Commits

Author SHA1 Message Date
yuemingw
feb79784fa Remove restricted uitls methods for cross-profile calendar.
Remove since we don't show policy transparency UI for
cross-profile setting anymore.

Test: atest CrossProfileCalendarPreferenceControllerTest
Bug: 123930863
Change-Id: I2cd23fffa206cf3aa5189dd0f0edf3ca658b7443
2019-04-11 16:35:36 +00:00
yuemingw
f5ea386ddc Handle null for the return of getCrossProfileCalendarPackages.
The return value of this API could be null after our decision for
API change as in b/121179845.

Bug: 121179845
Test: make ROBOTEST_FILTER=CrossProfileCalendarPreferenceControllerTest -j40 RunSettingsRoboTests
Change-Id: I834ccf83ecca8959d95288ac4fa1473d12eabfca
2019-01-24 10:06:58 +00:00
yuemingw
1874c2592c Add restriction helper method for Cross profile calendar UI.
Bug: 117976974
Test: make ROBOTEST_FILTER=CrossProfileCalendarPreferenceControllerTest -j40 RunSettingsRoboTests
Change-Id: I0156ef91f806f055a5ac67e84817771c57ddd839
2018-12-08 11:19:54 +00:00
Philip P. Moltmann
9c7f51e676 Rename recently added symbols to camel-case
Test: looked at help screen in settings
      make RunSettingsLibRoboTests
Change-Id: Ife257ad1bbe43a42084fdf9d2718c8fc1465f170
Fixes: 116797641
2018-10-12 10:55:24 -07:00
Philip P. Moltmann
0ada0a6044 Change DevicePolicyManager APIs as requested
This requires RestrictedLockUtils to change which then causes further
changes.

I left the old APIs available for non-system-api customers.

Test: RunSettingsLibRoboTests
Bug: 116798569
Change-Id: Id5384ee074bb245e615012b7e0d5298b8bf27ba4
2018-10-09 12:38:23 -07:00
Philip P. Moltmann
2d21d77e78 Make restricted lock icon system-api
Bug: 110953302
Test: CtsVerifier -> BYOD Managed Provision -> Permission Lockdown (test
created a permission disabled by admin)
Change-Id: I042668225227aabc9655d83307e60f7efe399d8d
2018-09-13 09:56:41 -07:00
Philip P. Moltmann
4e615e6986 Factor some RestrictedLockUtils out of SettingLib
Also make the new lib only use system-apis.

This allows mainline module to use the new
RestrictedLockUtilsSettingLib.

Unfortunately the whole RestrictedLockUtils would have caused to much
new system-api. Hence it was split into RestrictedLockUtils and
RestrictedLockUtilsInternal. This caused a lot of trivial code changes.

Bug: 110953302
Test: Built
Change-Id: I693b3bf56f3be71f0790776e3aad5694717786ef
2018-08-30 11:59:29 -07:00