Commit Graph

50380 Commits

Author SHA1 Message Date
TreeHugger Robot
16d8f7087a Merge "Fix mobile data on/off switch for multi-sim case" 2019-02-07 16:51:02 +00:00
Joel Galenson
ad0e49bd6e Move horizontal progress bar into SettingsLib.
Remove the horizontal progress bar as it is being moved into
SettingsLib.

Bug: 123538370
Test: See progress bar in wifi settings screen.
Change-Id: I8fc94b1f3a7a52559cfcf89f3e4a604784ec9995
2019-02-07 08:21:01 -08:00
Christine Franks
6f7b68ca62 Merge "Use ColorDisplayManager for night display settings" 2019-02-07 16:11:14 +00:00
Xiangyu/Malcolm Chen
09f76a0298 Merge "Enable data when user selects default data through popped up dialog." 2019-02-07 03:34:14 +00:00
TreeHugger Robot
175b7b9256 Merge "Retrieve effectiveUserId after userId is set/re-set" 2019-02-07 02:01:21 +00:00
TreeHugger Robot
b6db082fd4 Merge "Merge bool.xml and config.xml into one file." 2019-02-07 00:16:30 +00:00
Michael Groover
09c4347c3c Merge "Change device ID developer setting to disable option" 2019-02-07 00:03:59 +00:00
Fan Zhang
e3acc925c4 Merge changes I690fa4c2,I53632e4e
* changes:
  Use system defined card corners instead of hardcoding to 8.
  Add PRIVACY_SETTINGS intent to privacy, not backup, page.
2019-02-06 23:51:57 +00:00
Malcolm Chen
e8fabb522a Enable data when user selects default data through popped up dialog.
In DSDS device, when user explicitly selects a SIM as data SIM, we
should not only set it as default data SIM in Telephony, but also
enable its data.

Bug: 120712558
Test: manual
Change-Id: I429efa090ebf5bb71ee491ae66525abee00f62c6
2019-02-06 15:23:23 -08:00
Antony Sargent
8af118bd87 Fix mobile data on/off switch for multi-sim case
In multi-sim, the on/off switch for mobile data on the mobile network
details page doesn't quite work right. The thing it's missing is
checking whether the current sim is the default one used for data - if
it's not the default, then the switch should be off even if mobile data
is turned on. And clicking to enable needs to prompt the user to ask if
this sim should be become the new default one, which we already have
code for, but we weren't triggering it properly.

Bug: 124005813
Test: make RunSettingsRoboTests
Change-Id: Ifdf58addfde94b3bac85c68e4b22ddfbaf01dff7
2019-02-06 14:28:27 -08:00
Fan Zhang
9bc0fb3c6a Merge bool.xml and config.xml into one file.
Bug: 124008048
Test: rebuild
Change-Id: I3a6522e6d0939ef1f80406d91b35492360916aa1
2019-02-06 14:17:53 -08:00
Michael Groover
fcb6aff14c Change device ID developer setting to disable option
Bug: 123646983
Test: Manually verified toggling the option set the expected value
Change-Id: Ia219c154d9572111c4fce1af4128a103ba0409ec
2019-02-06 14:09:13 -08:00
Wenting Xiong
af5c05392b Fix issue that the wifi calling text cannot be customized based on sim
Some carriers have requirements that the wifi calling text should be
customizable. However, the resources for the wifi calling text are
not obtained based on sim. So it cannot be customized per sim for multi
sim device. To solve this issue, obtain the resources with specified
sim.

Test: manual - Checked that the wifi calling text could be customized
based on sim.
Bug: 117257109

Change-Id: I6b3f6b06c9cc984ee6a68a19ae317b5d1d4e48e2
2019-02-06 13:16:12 -08:00
Fan Zhang
96a40bab77 Use system defined card corners instead of hardcoding to 8.
Change-Id: I690fa4c2d5a52d1cb6e1606b5c961d0116a5707b
Fixes: 123985440
Test: visual
2019-02-06 12:22:40 -08:00
Fan Zhang
11482d220f Add PRIVACY_SETTINGS intent to privacy, not backup, page.
Bug: 123878762
Test: updated backupSettingsHelper
Change-Id: I53632e4eeb5fa42447aa5fc075be69eeb68cdd52
2019-02-06 12:22:40 -08:00
Kevin Chyn
e264bf3f66 Retrieve effectiveUserId after userId is set/re-set
Fixes: 123502937

Test: Followed steps in comment #1 of the first bug above
      Note that the test should be done with unified lock disabled, e.g.
      have separate pin/pattern/pass for owner and work profile

Change-Id: I01d66a8a1d3ed1811497c2acb7db6158d99727a0
2019-02-06 11:23:27 -08:00
Andy Hung
dc1db1c2a7 Merge "Add master audio balance setting" 2019-02-06 18:51:35 +00:00
TreeHugger Robot
2f13aa55d6 Merge "Add an on/off switch to the top of mobile network details page" 2019-02-06 18:00:25 +00:00
Beverly Tai
aaa52b4c90 Revert "Update proguard"
This reverts commit dbd48da49a.

Reason for revert: was only hiding aware settings for beta 1
Bug: 123532083
Change-Id: I7d07f9ec62a3bd6f81838da1e2639102d501e1c4
2019-02-06 15:44:40 +00:00
Julia Reynolds
0f31b717b9 Merge "Add settings for notification bubbling" 2019-02-06 13:41:43 +00:00
Yohei Yukawa
82ebf6090d Update header test to 'Work profile input & assistance'
Per suggestion from UX, this CL updates the category header of
work-profile specific enties in Languages & input from
  Work profile
to
  Work profile input & assistance.

Other than that, there is no user-visible behavior change.

Bug: 123314089
Test: Manually verified as follows.
  1. Build and flash an AOSP build
  2. Install Test DPC
  3. Open Settings -> System -> Languages & input
  4. Make sure that the new category header for work-profile specific
     entries is now shown as "Work profile input & assistance"
Change-Id: I4a4fb7c8a31d8d849780e71796b92ec0a2f026e3
2019-02-05 19:54:59 -08:00
TreeHugger Robot
84d31373fc Merge "Move android.settings.PRIVACY_SETTINGS to PrivacySettings." 2019-02-06 03:20:35 +00:00
Hall Liu
a6840cac03 Add ACCESS_FINE_LOCATION to permissions
Add ACCESS_FINE_LOCATION to permissions in order to satisfy new
restrictions.

Bug: 116258458
Test: manual
Change-Id: Icdc45c3a02cd5bf784d0475243b7d53ba9861777
2019-02-05 17:09:22 -08:00
Michael Groover
9285d84aa4 Merge "Add developer option for device identifier restrictions" 2019-02-06 00:00:08 +00:00
Fan Zhang
2d77b0192a Move android.settings.PRIVACY_SETTINGS to PrivacySettings.
Bug: 123878762
Test: manual
Change-Id: I9312c8455b0325f7c582523938a1fde21fbd81ce
2019-02-05 15:58:35 -08:00
TreeHugger Robot
0e96dcc2a0 Merge "Use adaptive icon shapes for settings homeepage" 2019-02-05 23:13:08 +00:00
TreeHugger Robot
566b2b8a1b Merge "Close slice cursor when done using." 2019-02-05 22:57:45 +00:00
Edward Savage-Jones
5042c9b41b Add master audio balance setting
This adds an audio balance slider to accessibility allowing the end
user to adjust the audio balance between left and right channels.

Test: Change Balance through Settings, play audio
Bug: 28390736
Change-Id: I70f22d222ea310fd33ebe4f3fb054f44f69d2548
2019-02-05 14:26:28 -08:00
TreeHugger Robot
9ffe6f2d7e Merge "Use correct uid when querying usage data for specific user." 2019-02-05 22:11:04 +00:00
Stanley Tng
f084b86405 Merge "Update the Hearing Aids Strings" am: 3afa2a7acb am: f8ba53c6fb
am: fdd54f74ed

Change-Id: I3b33647aac8fa8fe1757825a3f9d43fccc9efa35
2019-02-05 13:32:47 -08:00
Stanley Tng
fdd54f74ed Merge "Update the Hearing Aids Strings" am: 3afa2a7acb
am: f8ba53c6fb

Change-Id: I5d6a76265ccb0a7263bb689fa8a3ef4a0044e77a
2019-02-05 13:16:09 -08:00
Stanley Tng
f8ba53c6fb Merge "Update the Hearing Aids Strings"
am: 3afa2a7acb

Change-Id: I5310642f04558d961aa82df933791b08d883d92e
2019-02-05 13:05:41 -08:00
Fan Zhang
b7f5bcb238 Close slice cursor when done using.
Change-Id: I22f2d5fe990fb43e1694879f27d7c0be26675d2b
Fixes: 123878106
Test: manual
2019-02-05 12:53:41 -08:00
Antony Sargent
f6d3ac2893 Add an on/off switch to the top of mobile network details page
When a device is in DSDS mode and has two mobile network subscriptions,
a user may want to completely disable one of those subscriptions. This
implements the UI for this, calling into some recently added APIs in the
SubscriptionManager class.

Bug: 122670283
Test: make RunSettingsRoboTests
Change-Id: I40fd3e777ce3542004e4761406b24196505b97d8
2019-02-05 12:28:57 -08:00
Vishwath Mohan
9ba7136334 Merge "Move trust agent toggles to developer options" 2019-02-05 20:28:31 +00:00
Treehugger Robot
3afa2a7acb Merge "Update the Hearing Aids Strings" 2019-02-05 20:20:51 +00:00
Amin Shaikh
3304bec980 Use adaptive icon shapes for settings homeepage
- Add AdaptiveIconShapeDrawable for the homepage icon backgrounds
- Rename RoundedHomepageIcon -> AdaptiveHomepageIcon to reflect that the
adaptive icon shape is used

Bug: 123829919
Test: mp settings; manually viewing homepage icons
Change-Id: I9fddfbf57461b300200f30f716d861878bbbcc38
2019-02-05 15:18:52 -05:00
Christine Franks
0fd4d8ec92 Use ColorDisplayManager for night display settings
Bug: 123352608
Test: make ROBOTEST_FILTER="(Night*)" RunSettingsRoboTests -j48
Change-Id: Id7f00d7beec737ac9872b85df251ce6e1f76cd55
2019-02-05 17:40:48 +00:00
Stanislav Zholnin
4c49ae1f7f Merge "Add READ_DEVICE_CONFIG permission to allow use of DeviceConfig API when permission checks will be introduced." 2019-02-05 17:07:04 +00:00
TreeHugger Robot
b7c75339bf Merge "Update char limit on prevent ringing titles" 2019-02-05 16:50:14 +00:00
TreeHugger Robot
caecbc30fa Merge "Show permission group icons in dark mode." 2019-02-05 15:23:50 +00:00
TreeHugger Robot
ac72afc12a Merge "Check a flag to see whether or not to show permission usage information." 2019-02-05 15:23:13 +00:00
Beverly
daffbb8e14 Update char limit on prevent ringing titles
Test: manual
Bug: 123025152
Change-Id: Icc0c413d94bae1439a1ac7f1b79b1d8e5a4f0efd
2019-02-05 10:10:05 -05:00
Vishwath Mohan
8f53ad0f37 Move trust agent toggles to developer options
This CL moves two toggles for trust agent extend unlock mode from
Security > Settings to Developer Options instead. It also updates some
of the configuration strings to reflect that this toggles behavior for
trust agents in general.

No new logic is being added here, this simply moves options intended
only for internal dogfooding to a more appropriate location in
preparation for the public Beta.

Bug: 111435975
Bug: 120871688
Test: Manually verified that the settings show up in Developer Options
and work as intended.

Change-Id: I2b6705d50fa783089a5c0dfabf76677af44209f7
2019-02-04 17:22:49 -08:00
Julia Reynolds
0c45775a5d Add settings for notification bubbling
Globally, as well as at the app and channel level

Test: atest
Bug: 123543052
Change-Id: I1668b592c5d175d77d6a38f35e7576d641175d44
2019-02-04 18:08:41 -05:00
Amin Shaikh
e2815e033d Remove duplicate ic_menu_add_white.
Bug: 123829919
Test: mp settingsg
Change-Id: I88e0dde22762eb6bc019361222ffe783b1c15133
2019-02-04 17:59:29 -05:00
Joel Galenson
e59a5102ab Show permission group icons in dark mode.
Apply the proper tint so that the permission group icons appear in
dark mode.

Change-Id: Ief36e69ed8ae70608f1df79a0e2a17eb79b9f467
Fixes: 123750886
Test: Can see icons in light and dark mode.
2019-02-04 10:09:03 -08:00
markchien
1dd1d79d90 Support entitlement check in DSDS
Get resource from preferred SIM's subId.

Bug: 122108346
Bug: 120069528
Test: atest TetherServiceTest
Change-Id: Ia4279a418dfa6cd14942b7f4d2a313156066381b
2019-02-04 18:55:16 +08:00
Stanislav Zholnin
646dda9b2c Add READ_DEVICE_CONFIG permission to allow use of DeviceConfig API
when permission checks will be introduced.

Test: tested locally with permission checks patched.
Change-Id: I8d6b99edac1c23f27872c0a9ecc99a00db017124
2019-02-04 09:53:37 +00:00
Stanley Tng
d6f1b59c93 Update the Hearing Aids Strings
Minor update to the Hearing Aids string by making it plural and also
remove a redundant word "currently".

Bug: 121036176
Test: Compile
Change-Id: I829b8028408f5d07d950580bd4d90ca41bd334f3
2019-02-02 17:56:19 +00:00