Commit Graph

40628 Commits

Author SHA1 Message Date
jeffreyhuang
7e81c84a8c Introduce UsbAudioRoutingPreferenceController
- Create new UsbAudioRoutingPreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: Ie806d509e3df4515cccbaf56c259ae55c3e2ab61
2017-09-29 15:47:47 -07:00
jeffreyhuang
86e6304154 Introduce HardwareOverlaysPreferenceController
- Create new HardwareOverlaysPreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller
 - Added ShadowParcel to help with testing
 HardwareOverlaysPreferenceController and
 ShowSurfaceUpdatesPreferenceController

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: Ib6b9679f2a2d2ec84f91da5ac0b68cb2b21eea72
2017-09-29 15:47:00 -07:00
jeffreyhuang
a02a9886c0 Introduce GpuViewUpdatesPreferenceController
- Create new GpuViewUpdatesPreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller
 - Fix a typo in preference naming

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: Ieff20634238900137acc1524edb6fd0d4bfce894
2017-09-29 15:45:54 -07:00
jeffreyhuang
7cf6ba2aab Introduce ShowLayoutBoundsPreferenceController
- Create new ShowLayoutBoundsPreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: Ie7bb26675f4dcedbff9607a2c4e4f5bee0343463
2017-09-29 15:43:42 -07:00
Fan Zhang
2985a0775d Create suggestion state provider.
- The provider now handles isSuggestionComplete check
- Remove SuggestionChecks class.

Bug: 65065268
Test: robotests
Change-Id: Id45d67d4a5146cc023f7fad7bb292b4c1c14a782
2017-09-29 15:42:20 -07:00
Jeffrey Huang
5ae503b383 Merge "Introduce StrictModePreferenceController" 2017-09-29 22:35:55 +00:00
Jeff Davidson
3638973a17 Explicitly set ENABLED state when a user enables an app.
When a user explicitly clicks a button labeled "Enable" for an
application in settings, the underlying package state should reflect
this. Otherwise, it is impossible to distinguish between the default
state of an app and an app which the user has explicitly requested to
enable.

This behavior is consistent with the Play Store's.

This also fixes a metrics bug where enabling a DISABLED_UNTIL_USED app
would be erroneously treated as disabling the app.

Test: Flashed and verified enabling both DISABLED_UNTIL_USED and
DISABLED apps.
Fixes: 64223206

Change-Id: Ic18068e6047045d6f5333eaf10fcddd1e95a679d
2017-09-29 14:33:01 -07:00
TreeHugger Robot
a3fd9a16e5 Merge "Move code from SuggestionChecks to FeatureProvider" 2017-09-29 20:54:59 +00:00
Jeffrey Huang
d1e65e73ce Merge "Introduce ForceMsaaPreferenceController" 2017-09-29 20:50:36 +00:00
Jeffrey Huang
1f381ffc99 Merge "Introduce HardwareLayersUpdatesPreferenceCtrl" 2017-09-29 20:50:05 +00:00
Jeffrey Huang
76a2128fc0 Merge "Introduce ForceGpuRenderingPreferenceController" 2017-09-29 20:49:46 +00:00
Jeffrey Huang
1b1e66d61a Merge "Introduce RtlLayoutPreferenceController" 2017-09-29 20:49:19 +00:00
Jeffrey Huang
65103007c8 Merge "Fix a bug in show surface updates" 2017-09-29 20:48:57 +00:00
jeffreyhuang
99312bc947 Introduce StrictModePreferenceController
- Create new StrictModePreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I28d70fd5c82de2427747625b5f06f79d3808a145
2017-09-29 13:46:57 -07:00
jeffreyhuang
28620a136f Introduce KeepActivitiesPreferenceController
- Create new KeepActivitiesPreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I9e15d285eee51164dd5c3a07c4f2069bf4d73383
2017-09-29 13:43:52 -07:00
songkailun
3a33b00ed1 Merge "Fix wrong format in AndroidManifest.xml" am: de795d12d1 am: 39ddac51b6 am: 109d0bafd4
am: 806af289e8

Change-Id: I5ff0ee96f36cc1ab72333879fa92a798bf63a2be
2017-09-29 19:59:16 +00:00
songkailun
806af289e8 Merge "Fix wrong format in AndroidManifest.xml" am: de795d12d1 am: 39ddac51b6
am: 109d0bafd4

Change-Id: I8aa124be1d911d0fd72df1596436514231cc6fd6
2017-09-29 19:04:56 +00:00
Fan Zhang
31f699c281 Move code from SuggestionChecks to FeatureProvider
This is step one to deprecate SuggestionChecks. Moving logic into
SuggestionFeatureProvider allows potential logic override and improves
testability.

Also moved isSuggestionComplete tests to corresponding activity/pref
controller test.

Bug: 65065268
Test: robotests
Change-Id: I2071d30fc58bb84acad2083ca03cfcf7d41f10cb
2017-09-29 11:36:16 -07:00
Tony Mantler
df2567cbad Make WifiTracker lifecycle aware
Bug: 66953027
Test: m -j checkbuild
Change-Id: I004c889b887a67614a5e0b6ae62fdbf8d6070ebd
2017-09-29 11:25:39 -07:00
jeffreyhuang
6da6ea878f Fix a bug in show surface updates
- fix a bug that caused the master switch to unintentionally turn on
 the show surface updates preference

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I307a801aa1a7c1606b3f5d55a0d1f2dbf1d60416
2017-09-29 10:09:18 -07:00
jeffreyhuang
083ffe8c23 Introduce ForceMsaaPreferenceController
- Create new ForceMsaaPreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I5d336037a6ae5904d0459fe56b311fac8372be86
2017-09-29 10:06:30 -07:00
jeffreyhuang
30c143b1e4 Introduce RtlLayoutPreferenceController
- Create new RtlLayoutPreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: Ieefd8dc97b0e1f781d97aca781bba0243c3875b9
2017-09-29 09:53:07 -07:00
jeffreyhuang
a9f7c95f27 Introduce HardwareLayersUpdatesPreferenceCtrl
- Create new HardwareLayersUpdatesPreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller
 - Fix a typo in preference naming

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I12744051c836b17ca2bfca5a84b9e22eb7b7d677
2017-09-29 09:51:08 -07:00
jeffreyhuang
e289ec4041 Introduce ForceGpuRenderingPreferenceController
- Create new ForceGpuRenderingPreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: Ib3afb9278257f0c2b181e15f28650d9620538c17
2017-09-29 09:50:21 -07:00
Jeffrey Huang
d43f656ed5 Merge "Optimize poking to happen in dashboard fragment" 2017-09-29 16:46:37 +00:00
TreeHugger Robot
3860372902 Merge "Import translations. DO NOT MERGE" 2017-09-29 15:30:33 +00:00
songkailun
109d0bafd4 Merge "Fix wrong format in AndroidManifest.xml" am: de795d12d1
am: 39ddac51b6

Change-Id: Ife3991761d4fcbf5cecdb6745536f9ed99069a2e
2017-09-29 14:46:23 +00:00
songkailun
39ddac51b6 Merge "Fix wrong format in AndroidManifest.xml"
am: de795d12d1

Change-Id: I443534ac7e122e337102d41c4138a0e94be72f7f
2017-09-29 09:37:17 +00:00
Treehugger Robot
de795d12d1 Merge "Fix wrong format in AndroidManifest.xml" 2017-09-29 06:45:30 +00:00
songkailun
7d2a5901f7 Fix wrong format in AndroidManifest.xml
N/A

Change-Id: Idf3b9c22e65d15013f5e3e2f5a1e9719d35ede3a
Signed-off-by: songkailun <songkailun@xiaomi.com>
2017-09-29 09:42:05 +08:00
jeffreyhuang
64b66e6036 Optimize poking to happen in dashboard fragment
- Make sure that poking happens only once in
 onDeveloperOptionsDisabled()

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I2a47f34ab17bf57ac4dabc7b0e67b42cc0b120b7
2017-09-28 18:25:57 -07:00
jeffreyhuang
f74a2575a9 isAvailable is true by default in dev options
- isAvailable() is defaulted to return true for all developer options
 preferences
 - child controllers should override for custom hiding logic

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I89921f801c25e74bf78d02c55b5f34cf1d464cd0
2017-09-28 18:19:43 -07:00
Jeffrey Huang
ae6c29d10f Merge "Introduce ShowSurfaceUpdatesPreferenceController" 2017-09-28 22:46:35 +00:00
Eric Schwarzenbach
c03bd8f86f Fix "Add Network" button on SavedAccessPoints page.
Fix merge conflict.

The old onSubmit was a no-op. It now correctly pipes onSubmit to
WifiManager#save() with the new WifiConfiguration. On successful save,
it displays the new network in the list, and on failure, it displays a
toast indicating that the save action failed. Adds a test for the
WifiDialog behaviors on this page.

Bug: 66177765
Test: make RunSettingsRoboTests, manual - tested with Wifi enabled and
disabled, and with networks that were visible and not.
Change-Id: I27446aa49bc9efaf1ea1d6c6158928b62ce01ba2
2017-09-28 14:38:03 -07:00
Jeffrey Huang
13d469dabf Merge "Introduce BluetoothInbandRingingPreferenceCtrl" 2017-09-28 21:35:35 +00:00
jeffreyhuang
0c292c08dc Introduce ShowSurfaceUpdatesPreferenceController
- Create new ShowSurfaceUpdatesPreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I649549af1c5dd9d541bc9e6a62b4553fa7877233
2017-09-28 13:47:42 -07:00
Jeffrey Huang
be5e7510dd Merge "Fix a failing test in AdbPreferenceControllerTest" 2017-09-28 20:28:57 +00:00
jeffreyhuang
755062ae7f Fix a failing test in AdbPreferenceControllerTest
- Mock out a problematic method

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: Ib12f1e852d27df705f5a13e73f29b0b6f4ab5ff6
2017-09-28 13:24:16 -07:00
Bill Yi
4d03867be5 Merge "Import translations. DO NOT MERGE" into oc-mr1-dev am: d5b9fec389 -s ours
am: 532f150227  -s ours

Change-Id: Id4ea5c6c982f8ab27551513b422fd6570513b6d8
2017-09-28 19:36:32 +00:00
Bill Yi
532f150227 Merge "Import translations. DO NOT MERGE" into oc-mr1-dev
am: d5b9fec389  -s ours

Change-Id: Iec1b837215cf09e1904287f9eee0082fa4f00097
2017-09-28 19:33:32 +00:00
TreeHugger Robot
d5b9fec389 Merge "Import translations. DO NOT MERGE" into oc-mr1-dev 2017-09-28 19:17:32 +00:00
jeffreyhuang
25ce51f4af Introduce BluetoothInbandRingingPreferenceCtrl
- Create new BluetoothInbandRingingPreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I2551803b50323c93ce8f1595d5bbab92b7a18ed4
2017-09-28 11:19:21 -07:00
Jeffrey Huang
f77a3fbdc3 Merge "Introduce PointerLocationPreferenceController" 2017-09-28 18:07:05 +00:00
Jeffrey Huang
e6d8e9d374 Merge "Introduce BluetoothAbsoluteVolumePreferenceCtrl" 2017-09-28 18:06:37 +00:00
Jeffrey Huang
cfc2ede22f Merge "Introduce AdbPreferenceController" 2017-09-28 18:05:11 +00:00
TreeHugger Robot
bcc3b924f9 Merge "Refactor IndexData conversion flow" 2017-09-28 17:43:04 +00:00
Kevin Chyn
a2f765170b Merge "Fix fingerprint grammar" 2017-09-28 16:36:51 +00:00
Bill Yi
fe3b62fd1e Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 64712476
Change-Id: If92f24f85c26217b251503d846183f80da8b75ba
2017-09-27 19:51:32 -07:00
Bill Yi
8723e92d95 Import translations. DO NOT MERGE
Change-Id: I0b4682a530cb8c8bf3727041463fd7afcc885048
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-09-27 19:39:53 -07:00
jackqdyulei
b963125159 Merge "Hide summary for type system" into oc-mr1-dev am: aadee0997c
am: da9247d645

Change-Id: I440fcbfea0cf934e68737eb5314739e397d80d88
2017-09-28 02:18:59 +00:00