OSDN Git Service

Migrate ManagedProfileSettings to DashboardFragment
authorjason_chiu <jason_chiu@htc.com>
Tue, 3 Apr 2018 03:37:09 +0000 (11:37 +0800)
committerFan Zhang <zhfan@google.com>
Mon, 16 Apr 2018 19:35:01 +0000 (12:35 -0700)
commitc69102d24e2e36d92a7548b5f92cf26adf6ce13b
treee55b9e3701d83139fbf4f3eec5b03b31bfae3f46
parent0d59a62bfb9330b4ba86925cf916b9e826cb8835
Migrate ManagedProfileSettings to DashboardFragment

- Move preference related logic to Controllers.
- Add some test cases for controllers.

Test: manual
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.accounts
      make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.core
      atest SettingsGatewayTest UniquePreferenceTest
Change-Id: If4fcd7bf572672c886d5c91b2d15013817d1aa67
res/xml/managed_profile_settings.xml
src/com/android/settings/accounts/ContactSearchPreferenceController.java [new file with mode: 0644]
src/com/android/settings/accounts/ManagedProfileSettings.java
src/com/android/settings/accounts/WorkModePreferenceController.java [new file with mode: 0644]
tests/robotests/assets/grandfather_not_implementing_index_provider
tests/robotests/assets/grandfather_not_implementing_indexable
tests/robotests/src/com/android/settings/accounts/ContactSearchPreferenceControllerTest.java [new file with mode: 0644]
tests/robotests/src/com/android/settings/accounts/WorkModePreferenceControllerTest.java [new file with mode: 0644]