Commit Graph

3740 Commits

Author SHA1 Message Date
TreeHugger Robot
74ab2fff66 Merge "Deprecate Icons from SearchIndexableResources" 2017-10-23 23:15:02 +00:00
Tony Mantler
d9af0b839d Move SimStatus and ImeiInfo Pref Controllers to SettingsLib
Bug: 67410808
Test: RunSettingsRoboTests
Change-Id: Ib55d2365814b5882f7fcae6bb7f1b62cc3d6ad4e
2017-10-23 15:42:43 -07:00
Fan Zhang
f183b6870c Deprecate Icons from SearchIndexableResources
Change-Id: Ic1b9fa1cf5c7ab171b645565a9db5db1993ac85f
Fixes: 38027997
Test: robotests
2017-10-23 14:31:34 -07:00
Doris Ling
2e950fca63 Set uninstall button to gray color.
For user installed app, set the uninstall button as negative button so
that it will have the correct color.

Change-Id: Ic631386affddf82ae0ebbf29fb572de1f067fc90
Fixes: 68154647
Test: make RunSettingsRoboTests
2017-10-23 14:05:45 -07:00
TreeHugger Robot
988c82ea3b Merge "Fix crash from Settings Search" 2017-10-20 23:00:42 +00:00
TreeHugger Robot
04d9769c0e Merge "Switch the buttons in bt detail page" 2017-10-20 17:55:37 +00:00
TreeHugger Robot
012fe11939 Merge "Catch exception when checking WifiDisplay availability" 2017-10-20 16:55:37 +00:00
Bill Yi
074e2ee9ba Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 68003463
Change-Id: Id09f849aa6cdf8d983697e7a6a7f182c5f76e623
2017-10-20 03:21:50 -07:00
jeffreyhuang
f6d360ebb5 Update DeviceModelPreferenceController
- Added serial number to the dialog for about phone v2
 - prefixed model to the preference summary for about phone v2

Bug: 36458278
Test: make RunSettingsRoboTests -j40
Change-Id: Ic2950adcecf940ad8c9256688dc70b662ad5f0d6
2017-10-19 16:50:45 -07:00
Fan Zhang
1389a0c9c9 Catch exception when checking WifiDisplay availability
Change-Id: Ic2f17905babf43e92a825b8b5b4f8aac7d8ff001
Fixes: 68013053
Test: robotests
2017-10-19 16:49:21 -07:00
jackqdyulei
d3ffdc564c Switch the buttons in bt detail page
The forget button should be left and connect button be right.

Bug: 67915643
Test: RunSettingsRoboTests
Change-Id: I71bb99270c4a3d480346db1ded554ecc9b99e706
2017-10-19 16:48:28 -07:00
TreeHugger Robot
7544e115a7 Merge "Misc logging improvements" 2017-10-19 23:18:17 +00:00
Matthew Fritze
9c3c7d8ccd Fix crash from Settings Search
Security Settings was returning a search indexable
resource without an xml resource (in this case id = 0).

Settings search did not handle this exception and crashed.
This patch catches the exception, and adds a TODO to fix
the indexing in security settings.

Change-Id: Ic7f05c98d99cc45fbebbdc672c7e346c27daa0f0
Fixes: 67967367
Test: robotests
2017-10-19 10:58:05 -07:00
TreeHugger Robot
ccee4218ea Merge "Cleanup Controllers/Fragments" 2017-10-18 23:35:13 +00:00
TreeHugger Robot
2dda5a567d Merge "Convert more loadIcon() to IconDrawableFactory" 2017-10-18 23:27:38 +00:00
TreeHugger Robot
5604f9bb4f Merge "Use correct flags on ACTION_TIME_CHANGED broadcast" 2017-10-18 23:10:12 +00:00
Fan Zhang
5c4780f799 Misc logging improvements
- Log ACTION_SEARCH_RESULTS whenever a search query is performed.
  eg, type "qu" will result 2 such logging events.
- Remove historam logging to search result click count (already logged
  as ACTION_CLICK_SETTINGS_SEARCH_RESULT)

Change-Id: Ia207b34702e0f24a7885e47d093f6cce1314ebc4
Fixes: 67743512
Fixes: 64939544
Test: robotests
2017-10-18 15:44:38 -07:00
jeffreyhuang
bb451a38e4 Cleanup Controllers/Fragments
- Removed extra comments in DevelopmentSettingsDashboardFragment
 - Removed unused methods from controllers
 - Clean up method names

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: Ibe7a0921926d4529f62a212b55c8fa2f14ecb18b
2017-10-18 15:03:41 -07:00
Fan Zhang
abdeead114 Convert more loadIcon() to IconDrawableFactory
- AppGridView: used by preview chart in display size setting.
- DefaultBrowserPreferenceController: default browser icon in default
  apps settings
- Enterprise application list
- Accessibility search result loader

Change-Id: Ibd12cd8854c68760ea3428fffa735bcbba48a277
Fixes: 64336923
Test: robotests
2017-10-18 15:03:19 -07:00
TreeHugger Robot
5317e70be1 Merge "Use IconDrawableFactory to load icons for default apps." 2017-10-18 17:47:33 +00:00
TreeHugger Robot
b73a67c7a0 Merge "Switch to recyclerview in ManageApplications" 2017-10-18 02:20:06 +00:00
Fan Zhang
78369d91bc Switch to recyclerview in ManageApplications
- Replace ListView with RecyclerView in layout
- Replace ApplicationAdapter's superclass to be RecyclerView.Adapter
- Change adapter interfaces (where necessary) to work with RecyclerView
- Replace fast scroll with Recycler's mechanism (all in xml)
- Removed section indexer (text bubble when fast scroll) because
  recyclerview doesn't support it.

Bug: 64804294
Test: robotests
Change-Id: I55b221836ce6abdeddf4568c8a8a5632cbddbd3b
2017-10-17 17:41:44 -07:00
Fan Zhang
efa763624a Use IconDrawableFactory to load icons for default apps.
Bug: 64336923
Test: robotests
Change-Id: I2a4ca05a866784f97e247bad1c1679a6ec0f5efa
2017-10-17 15:56:16 -07:00
Jeffrey Huang
d50363b496 Merge "Hide dev options v1 under feature flag" 2017-10-17 22:30:58 +00:00
Christopher Tate
020ff8a390 Use correct flags on ACTION_TIME_CHANGED broadcast
When Settings changes the display format for 12/24 hour time, it fakes
an ACTION_TIME_CHANGED broadcast to provoke apps to update their display.
It needs to use the right flags on that broadcast to match the way the
OS sends it when the time actually changes.

Bug: 67881917
Test: calendar widget, Deskclock, QCT timeservice
Change-Id: I46ce261c36d9c7180f6b8eae806ef9fbf271fa53
2017-10-17 14:49:15 -07:00
TreeHugger Robot
db60997f2a Merge changes I145c2e25,I4abe87dd,I86575d17,I90a0e583
* changes:
  Introduce BluetoothAudioQualityPreferenceCtrl
  Introduce BluetoothAudioChannelModePreferenceCtrl
  Introduce BluetoothAudioBitsPerSamplePrefCtrl
  Introduce BluetoothAudioCodecPreferenceController
2017-10-17 21:31:27 +00:00
jeffreyhuang
142682c19c Hide dev options v1 under feature flag
- Cutover to DevelopmentSettingsDashboardFragment
 - Add dev_option_v1 feature flag

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I2ff7b5c55f1f27cd24b4e276d3d81a73f67dcf88
2017-10-17 13:49:19 -07:00
TreeHugger Robot
47775667b8 Merge "Add work-only-category controller" 2017-10-17 19:10:29 +00:00
jeffreyhuang
af3ec754dd Introduce BluetoothAudioQualityPreferenceCtrl
- Create new BluetoothAudioQualityPreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I145c2e2554f5e9f5e7cfa79b3f6198a8b81105ec
2017-10-17 11:18:06 -07:00
jeffreyhuang
2335b1fef4 Introduce BluetoothAudioChannelModePreferenceCtrl
- Create new BluetoothAudioChannelModePreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I4abe87dd70be83c8b3cf2a3ad43b8856a01eadbb
2017-10-17 11:18:06 -07:00
jeffreyhuang
483dc97998 Introduce BluetoothAudioBitsPerSamplePrefCtrl
- Create new BluetoothAudioBitsPerSamplePreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I86575d171a005f62f731d9001f08ddcf976ad826
2017-10-17 11:18:06 -07:00
jeffreyhuang
0ef326f365 Introduce BluetoothAudioCodecPreferenceController
- Create new BluetoothAudioCodecPreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I90a0e58328196315fccbecd6d46531b4f0fcaef1
2017-10-17 11:18:06 -07:00
Fan Zhang
1bde0d84b0 Add work-only-category controller
The controller will hide category if there is no child in it.

Change-Id: I9bbcc4115b991574e608933f98857b0b4eb2ed7d
Fixes: 62185871
Test: robotests
2017-10-17 10:34:36 -07:00
Jeffrey Huang
9b117ef690 Merge "Lazy load SettingsObserver" 2017-10-17 17:22:31 +00:00
TreeHugger Robot
84f1e3003a Merge "Reorder default app summary to match subpage ordering" 2017-10-17 01:15:45 +00:00
jeffreyhuang
17edf20fa5 Lazy load SettingsObserver
- Lazy load the SettingsObserver in StayAwakePreferenceController
 so that search indexing works properly

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I1e2afb106ce293f616143da3f37fbde3829f414f
2017-10-16 16:56:26 -07:00
Fan Zhang
11e9123036 Reorder default app summary to match subpage ordering
Change-Id: I618f44ba8cf6f590b86d483cfecb090b71ef1268
Fixes: 65049890
Test: robotests
2017-10-16 16:42:27 -07:00
Jeffrey Huang
79c1a5944f Merge "Introduce FreeformWindowsPreferenceController" 2017-10-16 17:15:17 +00:00
Jeffrey Huang
82f8a3deba Merge "Introduce BackgroundProcessLimitPreferenceCtrl" 2017-10-16 17:15:05 +00:00
Jeffrey Huang
914d623984 Merge "Introduce ProfileGpuRenderingPreferenceController" 2017-10-16 17:14:53 +00:00
Jeffrey Huang
092d5ba968 Merge "Introduce SetGpuRendererPreferenceController" 2017-10-16 17:14:41 +00:00
TreeHugger Robot
99111a92e8 Merge "Remove WifiNetworkScoreCache fake" 2017-10-14 00:08:28 +00:00
Fan Zhang
7ad17d72ad Merge "Encapsulate AppFilter and its display label into 1 class" 2017-10-13 23:24:05 +00:00
Fan Zhang
bd56215962 Encapsulate AppFilter and its display label into 1 class
Bug: 64804294
Test: robotests
Change-Id: I2a752794ded4ccb8510adf37d41afa4514d8c4c0
2017-10-13 14:33:11 -07:00
Jeffrey Huang
32b0f1d486 Merge "Introduce DebugNonRectClipOperationsPreferenceCtrl" 2017-10-13 16:51:39 +00:00
Jeffrey Huang
acb142ce3f Merge "Introduce SecondaryDisplaysPreferenceController" 2017-10-13 16:51:18 +00:00
Jeffrey Huang
0d37dad0fd Merge changes Ie94273c2,Ib9230336
* changes:
  Introduce AbstractBluetoothA2dpPreferenceCtrl
  Refactor A2dpStore to be a non-static object
2017-10-13 16:50:56 +00:00
Eric Schwarzenbach
4abc6336ca Remove WifiNetworkScoreCache fake
Now that Robolectric supports O, maintaining this fake class is no
longer necessary.

Bug: 64262653
Test: n/a

Change-Id: I14d15720031ba70f83f81e8aff66681f44985704
2017-10-13 09:31:10 -07:00
jeffreyhuang
027da329fe Introduce AbstractBluetoothA2dpPreferenceCtrl
- Refactor BluetoothAudioSampleRatePreferenceController into
  AbstractBluetoothA2dpPreferenceController
 - Make it easier to implement future bluetooth a2dp preferences

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: Ie94273c2b97504f4fb63f11b1afc21abc6944ffb
2017-10-12 16:47:30 -07:00
TreeHugger Robot
bda0d166bb Merge "Move ManageApplications to sub package and remove dead code" 2017-10-12 22:46:43 +00:00