b8d2cd41e9472d6f860f35ee9a073b89ba9507f0 |
|
27-Nov-2017 |
Doris Ling <dling@google.com> |
Fix ConcurrentModificationException in DashboardCategory. Move the category tiles sorting logic into DashboardCategory, and change all client access to the category tiles via the proper update methods instead of modifying the list directly. Change-Id: I479669abd8d1d0a8ee9a4113d8ad2244da56f4d8 Fixes: 69677575 Test: make RunSettingsLibRoboTests
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/CategoryManager.java
|
ce31159be781f5b94ed24013fcf1db7b9aa0cf4a |
|
13-Mar-2017 |
Doris Ling <dling@google.com> |
Update sort order for settings category tiles. - change the sort to first compare priority, then compare package name. - do not normalize the tile's priority for all package. Change-Id: I5501a8c3d5ca0a7f9e100411348d28cfe373c87a Fix: 35928954 Test: make RunSettingsLibRoboTests
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/CategoryManager.java
|
8f06ab0774d44c49fbb5b122b7266192c49271c0 |
|
08-Dec-2016 |
roger xue <rogerxue@google.com> |
making changes to settingsLib so we can create car setting using settingsLib Test: make -j40 RunSettingsLibRoboTests Change-Id: I4eff074ebbbf1d4a4325580d68a2123d3f5ff930
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/CategoryManager.java
|
485df11f7770edc6c7d0f87ade5b2e0aa40e7e59 |
|
19-Dec-2016 |
Doris Ling <dling@google.com> |
Overload TileUtils.getCategories() with an additional parameteri. Add a string parameter to specify any extra intent action to be used to query all dashboard categories. Bug: 32739952 Test: make RunSettingsLibRoboTests Change-Id: I4df39acfde841ab0553fe01893e9e4a97d6f7bca
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/CategoryManager.java
|
5fa4af08c603607d7df7470dc10d3af2d2f04137 |
|
16-Nov-2016 |
Fan Zhang <zhfan@google.com> |
Remove tiles pointing to same intent within same category. Bug: 32874082 Test: RunSettingsLibRoboTests Change-Id: I155495882663ed60cbf21c9a5651709ac3cbd137
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/CategoryManager.java
|
fc76ab3cbf1794d2d72a92c87afc1cf9f62cc03a |
|
14-Nov-2016 |
Fan Zhang <zhfan@google.com> |
Group injected tiles together based on package name. During grouping, tiles are sorted based on package name, and their own priority value. However if the package is Settings itself, the ordering is not changed. Before sort: [pkg1, 100], [pgk2, 120], [pkg1, 130] After sort: [pkg1, 1], [pkg1, 2], [pkg2,3] This is necessary to make sure settings app have the overall control of ordering of all dynamic tiles. When each app define their priority, they don't have access to the global vision of what other settings are on screen so it's possible different app define conflicting orderings. Settings app is the only reasonable place to rank them properly. Bug: 32827787 Test: RunSettingsLibRoboTests Change-Id: I38de55530e61da9de7532ef6a7ee97ef89aca9d9
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/CategoryManager.java
|
914afbfbd048721fb9ece683b9e881b79a01e34e |
|
01-Nov-2016 |
Fan Zhang <zhfan@google.com> |
Create test for CategoryManager. - Move SettingsLibTests to tests/integ - Create a new robotests directory for SettingsLib. - Add test cases for CategoryManager#backwardCompatCleanupForCategory Bug: 32382487 Test: make RunSettingsLibRoboTests Change-Id: I7ef5921ce8c47a3e1e7209be1abc97ea549a2378
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/CategoryManager.java
|
31f4c5444490cd7db7c9089e9ca3e8a2904c6d5b |
|
01-Nov-2016 |
Fan Zhang <zhfan@google.com> |
Backward-compat for DashboardCategory with app use old keys - Detect whether an app is using old key, new key, or a mix of both. -- If app is using new keys, skip. They are already in the new IA. -- If app is using old/new keys mixed, skip. Using both type of keys implies the app wants to support old/new platform. -- If app is using old keys only, map their tiles to new categories. Bug: 32382487 Test: new unit tests Change-Id: I3bbd09c531a97801dc382661a8bb10d0391bc177
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/CategoryManager.java
|
45c891b7c5fb6eab719cb9a92c38bbdb25b28ab3 |
|
11-Oct-2016 |
Fan Zhang <zhfan@google.com> |
Do not throw exception when there is no tile for category. Bug: 31781480 Test: instrumentation test Change-Id: Ib278b2967514afda357774829964cfb59a676b20
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/CategoryManager.java
|
5adc26695fb4282125d4b6b641e04820a028d87b |
|
05-Oct-2016 |
Fan Zhang <zhfan@google.com> |
Do not clear category tile cache in every reload. Bug: 31781480 Test: manual The cache is useful when setting summary text on tiles. If tile cache is cleared and rebuilt, summaryloader won't find existing tile to update summary. The cache should only be cleared when entire resource config changes, tracked by InterestingConfigChnages. Change-Id: I3afcaba30b835f59ffaad9c27564f0345af00d66
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/CategoryManager.java
|
c8a5b790fa13826b21aee97ed5d1960d785333da |
|
04-Oct-2016 |
Fan Zhang <zhfan@google.com> |
Refresh dashboard category data when package changes. Category needs to refresh when package information changes. So CategoryUpdateTask should not early exit by just checking config changes. This is needed to refresh UI when user enables activity such as developement options. Also made CategoryManager thread safe because it's called in both UI thread and asynctasks Bug: 31781480 Test: manual Change-Id: Idcdcd39f727aba423350f3874af5612474e24e28
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/CategoryManager.java
|
22a56d775d047a1926f2a6d9c855c802d561d487 |
|
28-Sep-2016 |
Fan Zhang <zhfan@google.com> |
Add a component to load category/tiles by key. And switch between using SettingDrawerActivity.getDashboardCategories() and the new CategoryManager in different conditions. Test: SettingsRoboTests for regression. Will write tests for new feature soon once we are set on the data structure. Bug: 31781480 Change-Id: I864e5aea869071df63ca89002fb378c235d0a1fe
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/CategoryManager.java
|