Commit Graph

45776 Commits

Author SHA1 Message Date
Salvador Martinez
681353f725 Merge "Update settings main page battery string" into pi-dev 2018-04-20 23:27:25 +00:00
Fan Zhang
2a7fcc4d6f Catch exception when failing to create slice
- Created a non-generic exception type when failing SliceData.build()
- Catch exception and log error instead of crash.
- Added a presubmit test

Fixes: 78347031
Test: robotests, atest
Change-Id: I06e528cb5e1cd328f82f9561553f3c4b5b0bed26
2018-04-20 15:46:35 -07:00
TreeHugger Robot
cb23de8013 Merge "Add a default title for data_management pref." 2018-04-20 22:27:03 +00:00
Matthew Fritze
47a44e8fa4 Add keywords to Slices
Attach the keywords used for Settings search to Slices.
Their primary use is helping match synonyms for presenters
which display slices without explicit Uri requests, like a launcher.

This changes:
- Updates database scheme
- Adds to SliceData object
- Grab keywords in the SliceDataConverter
- Set keywords on all slices

Test: robotests
Change-Id: I16c40d2380ffddaf0a87fb1b9cd58e95573b308f
Fixes: 78306195
2018-04-20 14:50:55 -07:00
Fan Zhang
d57e1b0ed4 Add a default title for data_management pref.
Bug: 78347031
Test: robotests in ag/3933037
Change-Id: I4d09c8dd27630caeb5c31a0093350437c676d2fb
2018-04-20 13:57:21 -07:00
Jeff Sharkey
b9a1ebcb45 Increase volume search timeout, fix dialog flow.
Slower devices can take longer to process kernel events, so try up
to 25 times (~6 seconds) to find the volume after the partitioning
is finished.

Fix bug where we'd finish() while trying to show the format
confirmation dialog, meaning users couldn't format corrupted
non-primary volumes.

Bug: 74129968, 77849654, 74132243
Test: atest com.android.settings.ui.StorageWizardTest
Change-Id: I91144051cb6de0cd944d93b03dc5127676e24be8
2018-04-20 14:34:31 -06:00
Lei Yu
252d4e1fc0 Fix bugs in auto restriction.
1. Dismiss this tip once user clicks it and goes to detail page.
2. In auto restriction, since apps are automatically restricted,
we need to remove apps in list that unrestricted by user.
3. Refactor the code to remove the unnecessary parameter(i.e.
SettingsActivity)

Bug: 78187414
Test: RunSettingsRoboTests
Change-Id: I1c950f7c55df35795641c2ea8579ce9e011dba28
2018-04-20 12:55:53 -07:00
Aurimas Liutikas
e0069d332d Migrate Settings to androidx.
Test: make Settings
Bug: 76692459
Change-Id: I941dea40562170649bf056e675cc32e5163c0e39
2018-04-20 12:52:29 -07:00
Julia Reynolds
538a4594ff Collapse notification advanced settings am: 5766d6e443
am: b4127f1481

Change-Id: Ifca9c55f412baf3a1636e89daab5d022e28d0dfd
2018-04-20 12:41:02 -07:00
Julia Reynolds
b4127f1481 Collapse notification advanced settings
am: 5766d6e443

Change-Id: I99aca23639a2e9b1562942f4c37aad0aa7088c52
2018-04-20 12:27:20 -07:00
Bill Yi
4bcbd46e0d Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I93f8c6f0051cf15e218d1c761c300c7e16109165
2018-04-20 10:37:50 -07:00
Julia Reynolds
5766d6e443 Collapse notification advanced settings
Leave footers visible outside of advanced

Test: visual inspection
Fixes: 77324998
Fixes: 38011858
Change-Id: I2d6fcb832b134bc97081f03a3ab38d593e943f76
2018-04-20 13:24:45 -04:00
Rubin Xu
c33e2a1cef Switch to new checkPasswordHistory method
This is part of the fix that upgrades the hashing of password history
to a more secure design.

Bug: 32826058
Test: manual
Change-Id: Ib022c8db1f7b63f75b69d0177fa5f6be528a83c5
2018-04-20 18:09:59 +01:00
Bill Yi
e73aef30bf Import translations. DO NOT MERGE
Change-Id: Ie22a4a96e3ffdd81b95d4aee14fa619dd9e231a1
Auto-generated-cl: translation import
2018-04-20 09:59:18 -07:00
Pavel Grafov
c29b984a98 Pick default notification setting for work profile
Managed profiles cannot completely hide notifications, so
this setting should be treated as always "true" for them.

Change-Id: I9808c1e9736d83efccb0e947d9097379bda59ebb
Fixes: 78194020
Test: atest RedactionInterstitialTest
2018-04-20 16:29:37 +01:00
Julia Reynolds
cf326a0375 Merge "Fix crash on rotation" into pi-dev am: 3bdd65e255
am: 60aa99a95c

Change-Id: I02a301bd9a83491acdf3c76e94a15253a3191e83
2018-04-20 06:51:54 -07:00
Julia Reynolds
60aa99a95c Merge "Fix crash on rotation" into pi-dev
am: 3bdd65e255

Change-Id: I5dda589d25d114bf3355886c29e6d1325a5250ad
2018-04-20 06:42:59 -07:00
Julia Reynolds
3bdd65e255 Merge "Fix crash on rotation" into pi-dev 2018-04-20 13:30:28 +00:00
irisykyang
febf094fbc Reload APNs setting page when receive the intent ACTION_SUBSCRIPTION_CARRIER_IDENTITY_CHANGED
Bug: 77250264
Test: Manual testing
Change-Id: Ie28c67c89a2590425ff9c06153b53dac6cf141f0
2018-04-20 11:23:39 +00:00
Matthew Fritze
13365e83c0 Merge "Update Slice APIs to current versions" into pi-dev am: ff2653a0d8
am: a69121d654

Change-Id: I6ca82c2b9b83c6cbb623548eee3aa910b4c59687
2018-04-19 20:33:41 -07:00
Salvador Martinez
07c11d36e2 Merge "Make WifiTether listen to datasaver" into pi-dev am: 96d4cd3c61
am: 0724373e16

Change-Id: I01ab69908965f87df71130955a4f4fdc47b4239c
2018-04-19 20:20:39 -07:00
Matthew Fritze
a69121d654 Merge "Update Slice APIs to current versions" into pi-dev
am: ff2653a0d8

Change-Id: Id757ea69e9dd2f29ad2f651f0473eeb03d2cca9d
2018-04-19 20:17:24 -07:00
Salvador Martinez
0724373e16 Merge "Make WifiTether listen to datasaver" into pi-dev
am: 96d4cd3c61

Change-Id: Ieb021594b18d10098c5fe50ef6b840c8b8a43e6b
2018-04-19 20:11:30 -07:00
TreeHugger Robot
ff2653a0d8 Merge "Update Slice APIs to current versions" into pi-dev 2018-04-20 03:11:14 +00:00
TreeHugger Robot
96d4cd3c61 Merge "Make WifiTether listen to datasaver" into pi-dev 2018-04-20 02:57:04 +00:00
Salvador Martinez
7ba65c39ae Make WifiTether listen to datasaver
Wifi Tethering is already turned off when appropriate. However
if you re-enable it you still can't toggle the tether switchbar.
This CL makes it so that if you disable data saver the toggle
becomes enabled again.

Test: robotests
Bug: 77860936
Change-Id: I03fa74c21674678a90cde7bd20fa68167f02ae3c
2018-04-20 02:56:47 +00:00
Doris Ling
284bf9264c Merge "Fix Network details title not being translated." into pi-dev am: be22830fde
am: 3160f1cb13

Change-Id: Ib73ff49a3e006b54b4b4ae4f2adcd0f6c28ab3e0
2018-04-19 19:33:15 -07:00
Doris Ling
2cde793fd5 Merge "Fix limit data usage dialog body not being translated." into pi-dev am: 21a34488ba
am: 2e084e25a7

Change-Id: If4f99fdf5e4c9b5568a4b310ac94aa36ab6167d9
2018-04-19 19:31:28 -07:00
Sundeep Ghuman
f260183895 Merge "Adjust comment on data over usage string." into pi-dev am: 35d1d43bb3
am: 99b61ee1ac

Change-Id: If3335154372df66c9a75bea24f2ceff1d5d09da3
2018-04-19 19:29:33 -07:00
Doris Ling
d82413c9e6 Merge "Fix App data usage title not being translated." into pi-dev am: 3fff843e57
am: 63c051ff41

Change-Id: Ia74a7c8664e882f633db274df99c999abc57a0f8
2018-04-19 19:19:01 -07:00
Salvador Martinez
adebfe35a9 Merge "Update Wifi Tether band selection UI" into pi-dev am: d9abb0e914
am: bef9e8516d

Change-Id: I088a291c8d936c6e321883d9a35746b42db1df3b
2018-04-19 18:13:58 -07:00
Fan Zhang
e537da877b Merge "Format number to local locale." into pi-dev am: 0468f68c02
am: 92c62ba2eb

Change-Id: I3a0f1322e3f904c90f1e616be454ba710f094781
2018-04-19 18:13:21 -07:00
Doris Ling
3160f1cb13 Merge "Fix Network details title not being translated." into pi-dev
am: be22830fde

Change-Id: Ie2d2e0637b1357b926e22bd82372d573a6c6d06b
2018-04-19 18:10:17 -07:00
Doris Ling
2e084e25a7 Merge "Fix limit data usage dialog body not being translated." into pi-dev
am: 21a34488ba

Change-Id: Ie9920bf102323c716ad99ce5d2157231bab1ca7c
2018-04-19 18:08:59 -07:00
Sundeep Ghuman
99b61ee1ac Merge "Adjust comment on data over usage string." into pi-dev
am: 35d1d43bb3

Change-Id: I702e97cd957cede9f318757dd8f312ff273777c3
2018-04-19 18:06:51 -07:00
Doris Ling
63c051ff41 Merge "Fix App data usage title not being translated." into pi-dev
am: 3fff843e57

Change-Id: Idf6dc991d79de90d779cc0a084a210f53e7a99b8
2018-04-19 17:55:51 -07:00
TreeHugger Robot
be22830fde Merge "Fix Network details title not being translated." into pi-dev 2018-04-20 00:50:34 +00:00
Salvador Martinez
bef9e8516d Merge "Update Wifi Tether band selection UI" into pi-dev
am: d9abb0e914

Change-Id: Ib69cf5155195408170f6eaebd271a32c774e2bbd
2018-04-19 17:46:31 -07:00
TreeHugger Robot
21a34488ba Merge "Fix limit data usage dialog body not being translated." into pi-dev 2018-04-20 00:43:58 +00:00
TreeHugger Robot
35d1d43bb3 Merge "Adjust comment on data over usage string." into pi-dev 2018-04-20 00:36:43 +00:00
Fan Zhang
92c62ba2eb Merge "Format number to local locale." into pi-dev
am: 0468f68c02

Change-Id: I946d9b8b18762a8047dafbbe938cd47a2c29c4f2
2018-04-19 17:29:26 -07:00
Matthew Fritze
f9f72e8c2c Update Slice APIs to current versions
Change-Id: Icf40673e518534487be77f33427df937717735e5
Fixes: 77982356
Test: robotests
2018-04-19 17:29:18 -07:00
TreeHugger Robot
3fff843e57 Merge "Fix App data usage title not being translated." into pi-dev 2018-04-20 00:18:27 +00:00
TreeHugger Robot
2bc391bb09 Merge "Remove LockdownButtonPreferenceController from java" 2018-04-20 00:16:43 +00:00
TreeHugger Robot
d9abb0e914 Merge "Update Wifi Tether band selection UI" into pi-dev 2018-04-20 00:15:45 +00:00
Fan Zhang
0468f68c02 Merge "Format number to local locale." into pi-dev 2018-04-20 00:01:01 +00:00
Doris Ling
dad557305e Fix Network details title not being translated.
- use the title resource id instead of the actual string in the launch
intent so that it can react to language change.

Change-Id: I424dc026a9298d12627c05f97f27e9d4cba5a341
Fixes: 77896130
Test: run i18nscreenshots
2018-04-19 16:49:35 -07:00
Doris Ling
689bb2c27c Fix limit data usage dialog body not being translated.
- need to pass the resource id instead of the text when building the
dialog in order for it to react to language change.
- also remove the unnecessary set/get the body message in the dialog
creation since the msg id can be used directly.

Change-Id: I399dcda54961fac457fc5f0fad9082f2c1e1a2b2
Fixes: 77897157
Test: run i18nscreenshots
2018-04-19 16:35:28 -07:00
Sundeep Ghuman
201d6ffcdb Adjust comment on data over usage string.
Bug: 75981328
Test: NA
Change-Id: I393ab6637d563a34e9cea2da2b9c29e32efb056f
2018-04-19 16:20:30 -07:00
Doris Ling
6784296248 Fix App data usage title not being translated.
- we need to pass the title resource id instead of the actual text in
the launch intent in order for it react to language change properly.

Change-Id: I72ccbe67411c9f4da328dd24671f4e71ab927851
Fixes: 77898325
Test: run i18nscreenshots
2018-04-19 16:09:58 -07:00