summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/deviceinfo/storage/UserProfileController.java
Commit message (Collapse)AuthorAgeFilesLines
* Migrate Settings to androidx.Aurimas Liutikas2018-04-201-2/+2
| | | | | | Test: make Settings Bug: 76692459 Change-Id: I941dea40562170649bf056e675cc32e5163c0e39
* [SettingsLib] Update Utils APIs usageJason Chang2018-04-101-1/+1
| | | | | | | | Update Utils.getColorAttr and similar methods in Utils to return a ColorStateList instead of a color Bug: 74872054 Test: Force to display different color items then manually test Change-Id: If002f9a578558e6254220c36ef556e8378d4522a
* Remove more wrappersFan Zhang2018-04-021-5/+1
| | | | | | | | | - WallpaperManagerWrapper - UserManagerWrapper Bug: 76167422 Test: robotests Change-Id: I3ca866089082e01f1e9d7a4554387962f45a5437
* Get rid of direct usage of Utils.onBuildStartFragmentIntentFan Zhang2018-02-201-12/+14
| | | | | | Change-Id: I87eb97d6da4cd4f99be5bcdb1e3e245eb1c7bd1c Fixes: 73250851 Test: robotests
* Pre-fixup for nav up buttonFan Zhang2018-02-071-1/+0
| | | | | | | | | | | - Remove SettingsDrawerActivity.EXTRA_SHOW_MENU and force up nav button to always show. The button doesn't do anything yet. It just finishes current activity. - Remove dead code about suggestions Change-Id: I61fa9fefbaa9bced841a05969544b1c824c564ce Bug: 72337421 Test: rebuild
* Consolidate all wrappers used for testing.Doris Ling2017-09-141-1/+1
| | | | | | | | | | - Add the wrapper package and move all wrappers to the wrapper package. - Get rid of some wrapper interface/impl implementation and have a wrapper class directly. Bug: 65634579 Test: make RunSettingsRoboTests Change-Id: Ic757d8f7bacfa7a034c7e692205bc1dc4b0e1de1
* Tint the work icon.Daniel Nishi2017-08-291-1/+9
| | | | | | Bug: 64475406 Test: Manual Change-Id: Ibe817a9c099439db91aca1a858e5cf5562fa6a4a
* Make PreferenceController a mixinTony Mantler2017-06-261-4/+7
| | | | | | Bug: 62912136 Test: Existing tests in BaseSearchIndexProviderTest Change-Id: Ieda359806c09a019840b2005446c7ec8b61fdb00
* Add more sane multi-profile app attribution.Daniel Nishi2017-06-151-1/+7
| | | | | | | | | | | | | | | Due to issues w.r.t. attribution across multiple users, we originally duplicated the previous implementation which zeroed out the sizes. This, however, caused system bloat due to the change in how we calculate the system size. By attributing apps which do not exist in the primary profile to the first user that shows up with it installed, we can avoid accidentally attributing it to the system size. Bug: 62623731 Test: Settings unittest & Settings robotest Change-Id: I9514c9ecef62ea6270723f62e6bf27c69b75f180
* Add user icon to the other user preferences.Daniel Nishi2017-04-071-7/+17
| | | | | | | | | | | This icon is loaded in the background to avoid doing IO on the main thread. Once we know there are more users and also have the icon loaded, we add the category to the view. Fixes: 36252572 Test: Robotest Change-Id: Ib50287bb7ed323f22fbe407b56be1bf2fe98f121
* Add icons to the main static storage setting prefs.Daniel Nishi2017-03-231-0/+1
| | | | | | | | | | The dynamic user icons require more than just XML changes to successfully fetch the badged user icons and are coming in a future patch. Bug: 35801039 Test: Manual -- this is purely XML and comment changes. Change-Id: Id493c0335037a5c6e4f8b4734700611bfc0da7f1
* Re-add the progress bar for storage preferences.Daniel Nishi2017-03-201-5/+11
| | | | | | | | | This re-adds the progress bar and unifies the StorageItemPreference and its alternate. Change-Id: Iefc12b4b554306c706c83be232175dd2b84227b7 Fixes: 36223433 Test: Settings robotest
* Use the screen context when adding preferences.Daniel Nishi2017-03-021-1/+1
| | | | | | | | | | | When the context from the controller itself is used, it is not the correct context and causes the created preferences to be styled incorrectly. By using the screen's context directly, we can ensure that the preferences inherit the correct style. Change-Id: I02503e5f4fab8f8110e5d29bd3a479f0ce1d6aca Fixes: 35891968 Test: Robotest
* Add support for user profiles to the Storage Settings.Daniel Nishi2017-02-221-0/+106
This adds new preferences for each profile (such as the work profile) and defines a new view for viewing the storage breakdown for the individual profile. The functionality closely mimics the presentation on the main view, but without the system-wide breakdown and without any additional users/profiles. Bug: 34715777 Test: Settings Robotests Change-Id: I19d449b648c6566331fd02e45c2e45f8c74ea7e7