Commit Graph

59218 Commits

Author SHA1 Message Date
TreeHugger Robot
9ccbadebab Merge "Rename GameDriver* to GraphicsDriver*." 2020-02-12 02:43:03 +00:00
Thomas Devaux
3f0b74cf84 Merge "Auto-open Captive Portal when user clicks on open network." 2020-02-12 02:37:58 +00:00
Jason Chiu
cc781a38ef Merge "Change the font weight of the slice title to medium" 2020-02-12 02:25:20 +00:00
Stanley Wang
b53efae0ab Merge "Fix security issue for using mock location without permission." 2020-02-12 02:23:52 +00:00
Julia Reynolds
49880c3faf Catch named intent to launch history
Test: manual
Bug: 137396965
Change-Id: I8d076b72dd9b74a9d9cb482113f5638203bd462d
2020-02-12 02:12:05 +00:00
TreeHugger Robot
5a5ca79af4 Merge "Link PACKAGE_USAGE_STATS with LOADER_USAGE_STATS" 2020-02-12 01:56:31 +00:00
Automerger Merge Worker
75906f358a [automerger skipped] Merge "Import translations. DO NOT MERGE" am: 226ef3d100 -s ours am: 707aeaca7d -s ours am: d8ffaba4ae -s ours
am skip reason: subject contains skip directive

Change-Id: Icf69aef2d391a2b18441abc26310b1aa53185216
2020-02-12 01:55:46 +00:00
Zhen Zhang
15ec99114d Update summary for WifiTetherDisablePreference accordingly
The summary of this preference is depenent on other two preferences for
USB tether and Bluetooth tether. The summary is updated accordingly.

Bug: 146818850
Test: CodeInspectionTest, WifiTetherDisablePreferenceControllerTest,
manually test.

Change-Id: I366d10a43814ea0d7def466b1976928f17875029
2020-02-11 17:48:21 -08:00
Automerger Merge Worker
d8ffaba4ae [automerger skipped] Merge "Import translations. DO NOT MERGE" am: 226ef3d100 -s ours am: 707aeaca7d -s ours
am skip reason: subject contains skip directive

Change-Id: Idff5a28b6a63996c4f89cfa4493154ddfe022cde
2020-02-12 01:38:27 +00:00
TreeHugger Robot
ff6e341509 Merge "Add remote media slice in volume panel" 2020-02-12 01:34:15 +00:00
TreeHugger Robot
910cc87fcb Merge "tether setting: fix test error: updateDisplay_shouldUpdateValue" 2020-02-12 01:33:13 +00:00
Jean Chen
2819ef134e Merge "Support autoclick secondary action (4/n)" 2020-02-12 01:28:12 +00:00
Automerger Merge Worker
707aeaca7d [automerger skipped] Merge "Import translations. DO NOT MERGE" am: 226ef3d100 -s ours
am skip reason: subject contains skip directive

Change-Id: Id2f88bf0aa3ce2da5a1666798d1a71e1e20ff62a
2020-02-12 01:22:22 +00:00
Treehugger Robot
226ef3d100 Merge "Import translations. DO NOT MERGE" 2020-02-12 01:12:50 +00:00
TreeHugger Robot
1b30b1eeb2 Merge "Fix the crash on the UnrestrictedDataAccess" 2020-02-12 00:54:38 +00:00
Peiyong Lin
4e89f929d7 Rename GameDriver* to GraphicsDriver*.
To make graphics driver selection more generic, rename GameDriver
specific classes to GraphicsDriver.

Bug: b/148626177
Test: make RunSettingsRoboTests ROBOTEST_FILTER=GraphicsDriver
Change-Id: If2780b32e2826bda56de11734736260f916182d0
2020-02-11 16:50:26 -08:00
Yi Jiang
8cbebabad6 Merge "Moves Adaptive Sleep's settings from Settings.System to Settings.Secure" 2020-02-12 00:48:59 +00:00
Thomas Devaux
158d17fef6 Auto-open Captive Portal when user clicks on open network.
Rationale: many users are confused about what to do after tapping the captive
portal network in Settings, and since there is explicit user action to
connect to that network at that point, auto-opening the portal is
natural and makes it simpler.

Bug: 148538768
Test: manually with local AP with Captive Portal and:
> make RunSettingsRoboTests -j40
> atest com.android.server.ConnectivityServiceTest

Change-Id: I29573132cd3e46ff22e6f67bb3678516fabac47d
2020-02-12 00:45:46 +00:00
Zhen Zhang
aef1e8db96 Fix bug: Add some controllers to AllInOneTetherSettings Lifecycle
These controllers are not added to lifecycle as observers, which caused
the preferences are disabled persistently. Adding them explicitly can
fix the issue.

Bug: 149339076
Test: CodeInspectionTest, AllInOneTetherSettingsTest
Change-Id: Ia53e0845ed38f63a9a370488b028966d6a066889
2020-02-11 16:40:43 -08:00
Julia Reynolds
cfabcd2386 Update notification history text styles
Test: manual
Bug: 137396965
Change-Id: I2736bbdb3b9ef7b9bd0696f592dce31c430623d6
2020-02-12 00:25:36 +00:00
Julia Reynolds
40f5402a32 Fix a11y issues in notification history
- crash at large display sizes/landscape
- no content description for expand buttons
- no call to action on tappable notification rows

Test: manual
Fixes: 149307144
Change-Id: I63f59de66d96a55c48852e4fbf79c87c7826076f
2020-02-12 00:24:09 +00:00
Joshua Imbriani
764e05ddfe Merge "Fixing TTS Settings crash on rotation caused by using deprecated API." 2020-02-12 00:09:29 +00:00
Zhen Zhang
2d7264eb75 Merge "Add tether preferences into AllInOneTetherSettings" 2020-02-11 23:34:55 +00:00
Julia Reynolds
a4798d0d36 Merge "Improve notification history" 2020-02-11 21:54:54 +00:00
TreeHugger Robot
e32fa47733 Merge "Import translations. DO NOT MERGE" 2020-02-11 20:58:14 +00:00
TreeHugger Robot
7b036f36e1 Merge "Add a settings for notification history" 2020-02-11 20:50:18 +00:00
Julia Reynolds
24aac215f1 Improve notification history
- An on/off switch
- An on/off UI
- improve headers/dividers/layout
- add counts
- shrink recyclerviews to content

Fixes: 148698132
Bug: 137396965
Test: manual
Change-Id: I0b103769cffa446e32f05a6c5a39a614e024a083
2020-02-11 12:08:20 -05:00
Ben Murdoch
fa92269759 Revert "Revert "Show "Add users from lock screen" dependent on secure lock screen.""
And fix the failing test that caused the revert.

Bug: 148015798
Bug: 149209670
Test: make -j64 RunSettingsRoboTests

This reverts commit 666dacc32a.

Change-Id: I34bb82e621e009ec26c28835f309e7a5b996e9b3
2020-02-11 13:35:45 +00:00
Bonian Chen
1b9bda3b05 [Settings] Avoid rendering hidden preferences
Under dashboards with expand button, preferences are renderred even
not been expanded.
Avoid from rendering un-expanded preference can improve the performance
of dashboard display.

Bug: 141833767
Test: manual
Change-Id: I00c6f827a0b7b7cec6a6fd8c809b94ca1dce88bb
2020-02-11 20:52:31 +08:00
Bonian Chen
19135546a3 [Settings] Data roaming warning only when turn ON
handlePreferenceTreeClick() goes after setChecked() however
configuration may have been altered within setChecked().

Follow same design within MobileDataPreferenceController to fix this
issue. A boolean state will be maintained as the condition when warning
dialog is required when click.

Bug: 148491064
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=RoamingPreferenceControllerTest
Change-Id: I63c4e2149b0e9efa16fd9ee402652c67eb9c5a4d
2020-02-11 20:46:44 +08:00
Tsung-Mao Fang
8c4aacd354 Add a SaftyNet for security vulnerability
When we get an empty or null slice parameter,
we see it as a vulnerability. It will cause
null point exception.

Bug: 122836081
Test: See adb logcat event log
Change-Id: Id5ff11dd18b19184792be466aabb65229f777e81
2020-02-11 17:16:20 +08:00
Bonian Chen
040c548d81 Merge "[Settings] Access ProxySubscriptionManager within DataUsage" 2020-02-11 08:43:49 +00:00
Jason Chiu
4b6a1a53ac Change the font weight of the slice title to medium
Test: visual
Fixes: 139017680
Change-Id: I347239f2c164c871eced2fbda1b2faaa38e16ca9
2020-02-11 16:36:35 +08:00
Yanting Yang
f8396c5cc0 RESTRICT AUTOMERGE
Fix NPE of launching Settings with malicious URL

Add SafetyNet logging for tracing.

Fixes: 122836081
Test: visual, robotests
Change-Id: I97430ea0208c570c46a02dd499dfd944d20eb06e
2020-02-11 16:17:08 +08:00
Zhen Zhang
ec966cb7a3 Add tether preferences into AllInOneTetherSettings
These preferences are for user to toggle a specific tethering option,
like USB, BT or WIFI.

Bug: 147323306
Test: CodeInspectionTest, AllInOneTetherSettingsTest, TetherEnablerTest
Change-Id: I1229ffd2dd12b39e9c6e48dc29c6e46ce9ad7634
2020-02-10 23:04:37 -08:00
TreeHugger Robot
181ca05462 Merge "Fix incorrect UI issue of "previously connected devices"" 2020-02-11 06:43:02 +00:00
Stanley Wang
cdf4028142 Fix security issue for using mock location without permission.
Remove mock location apps if developer option is disabled.

Change-Id: Iad32ea336376eeb923f6d4424fd85c2da2bb5128
Bugs: 145136060
Test: manual
2020-02-11 14:33:34 +08:00
Bonian Chen
a1355d5b57 [Settings] Performance tuning for intent ACTION_ENHANCED_4G_LTE_CHANGED
Adjust the ordering of accessing to avoid the rule checks
isVoLteProvisioned() when not required.

Bug: 140542283
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=Enhanced4gLteSliceHelperTest
Change-Id: I8604a27d211895a6b33e0f6d0d78f5772912ee01
2020-02-11 13:36:37 +08:00
Bill Yi
45ccc07747 Import translations. DO NOT MERGE
Change-Id: If82e9d8c8f6838b7828aea3b5d93382d1c5b3db6
Auto-generated-cl: translation import
2020-02-10 20:12:30 -08:00
Sunny Shao
53e47213bd Fix the crash on the UnrestrictedDataAccess
- roll back the key value

Fixes: 149229728
Test: manual test
Change-Id: Ie505946f90ac0c2ab86c7dcaa370951d80181d9a
2020-02-11 11:58:33 +08:00
lesl
df450cc9f6 tether setting: fix test error: updateDisplay_shouldUpdateValue
ag/10257734 change band convert to general design.
Fix test to match new design

Bug: 149251992
Test: make RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.wifi
Test: make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest
Change-Id: I6f09d9d4f440515fb51a237d966327e232fe5928
2020-02-11 11:18:21 +08:00
Automerger Merge Worker
23b7ca5576 Merge "Launch TetherSettings via Settings.ACTION_TETHER_SETTINGS" am: bc80ff1630 am: 66864cb891 am: 7863cde18d
Change-Id: I8ad711638037e5ccd1053987bb1776ebacd0369f
2020-02-11 03:08:59 +00:00
Automerger Merge Worker
7863cde18d Merge "Launch TetherSettings via Settings.ACTION_TETHER_SETTINGS" am: bc80ff1630 am: 66864cb891
Change-Id: I9088e5dc52fec154c884bf5659378ae5bafba8fc
2020-02-11 02:51:01 +00:00
Automerger Merge Worker
66864cb891 Merge "Launch TetherSettings via Settings.ACTION_TETHER_SETTINGS" am: bc80ff1630
Change-Id: I71c32a98356d268d90b8c99345041fedd023b06e
2020-02-11 02:37:24 +00:00
TreeHugger Robot
bc4981d25f Merge "Pass in active device to all BluetoothA2dp APIs in packages/apps/Settings as null input is no longer supported" 2020-02-11 02:36:51 +00:00
ChenJean
6a7b237801 Support autoclick secondary action (4/n)
Add accessibility label on seek bar.

Bug: 146019277
Test: manual
Change-Id: I8599d89c1b300d50b3ccc134678caecf0f1acf7b
2020-02-11 10:33:24 +08:00
Paul Hu
bc80ff1630 Merge "Launch TetherSettings via Settings.ACTION_TETHER_SETTINGS" 2020-02-11 02:27:00 +00:00
TreeHugger Robot
9368270fe2 Merge "Revert "Show "Add users from lock screen" dependent on secure lock screen."" 2020-02-11 02:07:24 +00:00
Jean Chen
770e121317 Merge "Support autoclick secondary action (3/n)" 2020-02-11 02:06:20 +00:00
Roshan Pius
93f6c463d6 Merge "Settings: Use new API for wifi wakeup feature toggle" 2020-02-11 00:36:17 +00:00