OSDN Git Service

Add account preference controller.
authorDoris Ling <dling@google.com>
Thu, 10 Nov 2016 23:12:52 +0000 (15:12 -0800)
committerDoris Ling <dling@google.com>
Fri, 18 Nov 2016 00:33:36 +0000 (16:33 -0800)
commitbfac31b517e1fa2f217fe932192ecd0c57b33525
treefd0446e307d2de0e97d6c9e2fa55662a9e50bd4f
parent8a2e2fa2a7f78204ed76321c33e1a16c8ff746ca
Add account preference controller.

- Add account preference controller and move the handling for
displaying user's accounts from AccountSettings to the
controller.

- Move AccountPreference and RemoveUserFragment from inner class to
standalone class.

- Add AccountRestrictionHelper to handle API that needs to be mocked for
testing.

Bug: 31801423
Test: make RunSettingsRoboTests
Change-Id: I3d16d0b6a8922a8abec7037c52b7a4de2d76eb0d
12 files changed:
res/xml/user_and_accounts_settings.xml
src/com/android/settings/accounts/AccountPreference.java [new file with mode: 0644]
src/com/android/settings/accounts/AccountPreferenceController.java [new file with mode: 0644]
src/com/android/settings/accounts/AccountRestrictionHelper.java [new file with mode: 0644]
src/com/android/settings/accounts/AccountSettings.java
src/com/android/settings/accounts/EmergencyInfoPreferenceController.java
src/com/android/settings/accounts/RemoveUserFragment.java [new file with mode: 0644]
src/com/android/settings/accounts/UserAndAccountDashboardFragment.java
src/com/android/settings/dashboard/DashboardDividerDecoration.java
tests/robotests/src/com/android/settings/accounts/AccountPreferenceControllerTest.java [new file with mode: 0644]
tests/robotests/src/com/android/settings/testutils/shadow/ShadowAccountManager.java [new file with mode: 0644]
tests/robotests/src/com/android/settings/testutils/shadow/ShadowContentResolver.java [new file with mode: 0644]