Commit Graph

34857 Commits

Author SHA1 Message Date
Daniel Nishi
49118e7e01 Add icons to the main static storage setting prefs.
The dynamic user icons require more than just XML changes to
successfully fetch the badged user icons and are coming in a future
patch.

Bug: 35801039
Test: Manual -- this is purely XML and comment changes.
Change-Id: Id493c0335037a5c6e4f8b4734700611bfc0da7f1
2017-03-23 10:34:06 -07:00
Daniel Nishi
5959c9279e Update the donut view to handle new string.
Change-Id: Idb5cec6d8169f3d229375faecc4bf96501481112
Fixes: 36224266
Test: Manually verified
2017-03-23 10:29:14 -07:00
Bartosz Fabianowski
193e0bedac Finalize strings for enterprise privacy
A few more final string tweaks for the enterprise privacy page.

Bug: 32692748
Test: m RunSettingsRoboTests

Change-Id: Ib955aa5a6e756748ed7422021099234ad3fefa8b
2017-03-23 18:19:19 +01:00
TreeHugger Robot
b3f13f9f32 Merge "Update print setting summary to show number of services" 2017-03-23 17:16:20 +00:00
TreeHugger Robot
ae2850aea5 Merge "Update string for Do not disturb preference." 2017-03-23 16:51:07 +00:00
TreeHugger Robot
795619dba6 Merge "Move "scanning" from location setting actionbar to pref xml" 2017-03-23 16:02:02 +00:00
TreeHugger Robot
2e61afcddb Merge "Import translations. DO NOT MERGE" 2017-03-23 15:31:45 +00:00
Rubin Xu
9757ba4a6c Merge "Adjust text during work challenge unification" 2017-03-23 14:04:09 +00:00
TreeHugger Robot
51d6bcca4f Merge "New iteration of the Text-to-Speech settings." 2017-03-23 13:56:00 +00:00
Bill Yi
78f7e6181a Import translations. DO NOT MERGE
Change-Id: Id7690c22731b76968d733207154ce3554ce73527
Auto-generated-cl: translation import
2017-03-23 06:27:40 -07:00
Rubin Xu
83d47ed0d7 Adjust text during work challenge unification
Bug: 32205706
Test: Create work profile; untick "use one lock"; retick "use one lock"; observe new string
Change-Id: I3933ac8067e95e434478da9ecc1a419d24661e26
2017-03-23 09:44:58 +00:00
Charles He
b436519129 Merge "VPN settings: gray out always-on checkbox dynamically" 2017-03-23 08:49:47 +00:00
TreeHugger Robot
3fe93767cb Merge "Add double-tap & lift gestures to display settings" 2017-03-23 05:09:50 +00:00
Steven Moreland
544c820ac7 Revert "Development Options: toggle binderized hals"
This reverts commit 73dd0ae30e.

Reason for revert: b/34274385 - This was a temporary setting.

Change-Id: I98b2d05c431bb5361b11cd3b05b7f5ac4e939e0e
2017-03-23 05:07:53 +00:00
TreeHugger Robot
37fcb9d4e3 Merge "Add default value to Bluetooth AVRCP version property get" 2017-03-23 03:03:49 +00:00
Amin Shaikh
3bfa4c9797 Update final Wi-Fi strings.
Note that this is simply a string checkin. Additional work is needed to
use some of these strings.

Bug: 36449837
Bug: 36532777
Bug: 35993748
Test: make RunSettingsRoboTests
Change-Id: Ica24c2e9a58cc7b190bec8b7c6a0c5463849aaa1
2017-03-22 19:51:54 -07:00
Fan Zhang
01ece62faa Update print setting summary to show number of services
-Also some minor cleanup in print setting fragment (create pref using
correct context)

Change-Id: Ic05027ee53fd318da6ccd38c9ed98ce10ca49ba8
Fix: 36234108
Test: make RunSettingsRoboTests
2017-03-22 18:27:19 -07:00
TreeHugger Robot
b0967c8287 Merge changes from topic 'two_target_preference'
* changes:
  Update string character limit
  Convert BT preference to use TwoTargetPreference
  Refactor the layout for MasterSwitch to a 2 target pref
2017-03-23 01:26:48 +00:00
Andrew Sapperstein
6138f1ab31 Add double-tap & lift gestures to display settings
Now they're in both languages & input and display.

Change-Id: Ib0d9fa1aa39656662307e2fc8fda70443f1ae8ed
Fixes: 36415612
Test: robotests
2017-03-22 18:20:37 -07:00
Ajay Panicker
bb1174de5e Add default value to Bluetooth AVRCP version property get
When the property isn't set a crash can occur since we try to look up an
empty property value.

Bug: 36531010
Test: Open Developer options after a factory reset
Change-Id: I82c0fde00774ab1a4f3e4c44a715c74d4a7804e9
2017-03-23 01:09:55 +00:00
Sanket Padawe
07328d3983 Merge "Update SubscriptionManager API by replacing 'id' & 'idx' with 'index'." am: bd9ce2e4b1 am: f54df6ccfb
am: 5642aa4ae8  -s ours

Change-Id: Ida22695c5e2d9e7db21a71821d6b7efb4ceeb4e3
2017-03-23 01:07:13 +00:00
Sanket Padawe
5642aa4ae8 Merge "Update SubscriptionManager API by replacing 'id' & 'idx' with 'index'." am: bd9ce2e4b1
am: f54df6ccfb

Change-Id: I317f715ee814ee1511e67cc57e11ea43af9a2a4c
2017-03-23 00:58:29 +00:00
Sanket Padawe
f54df6ccfb Merge "Update SubscriptionManager API by replacing 'id' & 'idx' with 'index'."
am: bd9ce2e4b1

Change-Id: I361f7c1747ab1f16cce149d78cc219f83a16948c
2017-03-23 00:45:56 +00:00
TreeHugger Robot
bd1d698b57 Merge "Add summary text for wallpaper settings." 2017-03-23 00:21:06 +00:00
Fan Zhang
2d4d993ef3 Move "scanning" from location setting actionbar to pref xml
This fixes the breadcrumb for scanning settings when you search "scan".

- Also did some minor cleanup in LocationSettings (creating preference
using the correct context)

Change-Id: I8efc62246f2e18b2bd4b5eb411b40f24e36b0f2a
Fix: 36529569
Test: manual
2017-03-22 17:04:50 -07:00
Doris Ling
9c893bc0a7 Split the plurals strings with zero quantity.
- plurals string with 0 quantity does not work as expect. Remove the
zero quantity string from the plurals string and put it as a separate
string instead.

Bug: 36376411
Test: builds
Change-Id: I5ee532b35969326b03d73edd28e4a213fa90f899
2017-03-22 16:49:17 -07:00
Doris Ling
ee3797005f Update string for Do not disturb preference.
Bug: 34975939
Test: builds
Change-Id: I4567b9133deae1c52741d6f0d48d95be642bf2d2
2017-03-22 16:34:37 -07:00
TreeHugger Robot
f5960f559f Merge "Update summary text for Wi-Fi hotspot" 2017-03-22 23:34:24 +00:00
TreeHugger Robot
7de6dbb2d5 Merge "Add test config to SettingsUnitTests" 2017-03-22 23:16:06 +00:00
Daniel Nishi
fda5d5a6a8 Update the system info dialog.
The string is updated as well as where the dialog shows up.

Change-Id: If1a3b17dca04fe81f52dbdc2353db34ce7adc49a
Fixes: 34857117
Test: Robotest
2017-03-22 16:12:55 -07:00
Fan Zhang
5ae37599b4 Update string character limit
Change-Id: I6e31a7ca637c37d9bd3a99a078b62cba3d5a7b54
Fix: 36400209
Test: manual
2017-03-22 16:11:59 -07:00
Fan Zhang
09c7f15b12 Convert BT preference to use TwoTargetPreference
Change-Id: I0b49af4afb4b782a6057060b2666f6528bc003b2
Fix: 36511169
Test: make RunSettingsRoboTests
2017-03-22 16:03:45 -07:00
Fan Zhang
fe292515d8 Refactor the layout for MasterSwitch to a 2 target pref
And move the layout to settingslib.

The new TwoTargetPreference is a preference object that has a vertical
divider between main panel and widget (if it exists).

Converted master switch, restricted preference, gear preference to use
the new style

Change-Id: Ia3848cebb06b8edc4e60abf9b0caf13cdb29c22c
Fix: 36511169
Test: make RunSettingsRoboTests
2017-03-22 16:03:40 -07:00
Doris Ling
33a247ac16 Add summary text for wallpaper settings.
Bug: 34975969
Test: builds
Change-Id: If6e24aa45590b70aab16effec322cf7100cffb09
2017-03-22 15:04:07 -07:00
Doris Ling
a4a84229f7 Update summary text for Wi-Fi hotspot
Bug: 36296257
Test: builds
Change-Id: Ib8d363ec23528bd2520509f6cefc5f49848cd3d5
2017-03-22 14:56:41 -07:00
Lei Yu
9635123aab Merge "Remove the hardcoded color in main page" 2017-03-22 21:48:02 +00:00
Sanket Padawe
bd9ce2e4b1 Merge "Update SubscriptionManager API by replacing 'id' & 'idx' with 'index'." 2017-03-22 21:27:22 +00:00
jackqdyulei
71a0574141 Change dialog theme for dialog activity.
Before this cl, all dialog activities use theme
Theme.DeviceDefault.Light.Dialog.NoActionBar. In this cl
we change it to Theme.DeviceDefault.Settings.Dialog.NoActionBar

Bug: 36099867
Bug: 36295409
Test: Screenshot
Change-Id: I2328aad1dce636f2314538d548a49f7a6401eae5
2017-03-22 14:25:15 -07:00
Bookatz
eb602e5504 Update FakeUid with new methods
BatterystatsImpl has new methods for background accounting for Wifi and
Bluetooth scanning. These methods are added to FakeUid.java here.

Bug: 35679958
Bug: 35677312
Bug: 35673525
Test: see ag/2010580
Change-Id: I706f28ba8faaf89e9fde25814e9c583c4731d3de
2017-03-22 14:11:51 -07:00
TreeHugger Robot
cb92917e1e Merge "Use fragment context in AppHeaderController" 2017-03-22 20:59:24 +00:00
TreeHugger Robot
3e4fd030c7 Merge "AVRCP version interop pereference (2/3)" 2017-03-22 20:37:45 +00:00
Charles He
ad828f1551 VPN settings: gray out always-on checkbox dynamically
In the ConfigDialog for legacy VPNs, many configurations do not support
Always-on VPN. Previously, when a user entered an unsupported set of
settings, the Always-on VPN checkbox could still be ticked, and the
Save or Connect action buttons would be disabled. This was not intuitive
as the user could not easily figure out which part of the settings was
incompatible that grayed out the action buttons.

With this change, we disable the Always-on VPN checkbox immediately as
the user enters any incompatible setting. We also display the reason why
Always-on VPN is disabled. This will make it more straightforward for
the users to understand which setting is conflicting with the Always-on
feature.

This change is also the first step towards refactoring the ConfigDialog
for legacy VPNs with PreferenceFragment.

Test: manual
Bug: 29208008
Bug: 28072644
Change-Id: I1e6d32a1069ca0b936513f4985ffb9a9412b249c
2017-03-22 20:29:46 +00:00
Daniel Nishi
34b75da937 Merge "Standardize MasterSwitchPreference attr order." 2017-03-22 20:26:12 +00:00
jackqdyulei
abba040727 Use fragment context in AppHeaderController
The application context doesn't have the correct theme, use
fragment context instead

Fix: 36489386
Fix: 36516826
Test: RunSettingsRoboTests & Screenshot
Change-Id: I8285584220796264d85ea570df5b1df6ebeb275f
2017-03-22 12:42:39 -07:00
Dan Shi
41d96207e8 Add test config to SettingsUnitTests
Details about test configs changes are tracked in doc
https://docs.google.com/document/d/1EWUjJ7fjy8ge_Nk0YQbFdRp8DSHo3z6GU0R8jLgrAcw/edit#

Bug: 35882476
Test: local test
Change-Id: Ie9fdc4717a71cb0f472b004b704acf3c4f770267
2017-03-22 12:07:08 -07:00
Ajay Panicker
e50b0d490a AVRCP version interop pereference (2/3)
Add a mechanism to allow the user to select the AVRCP version broadcasted
through SDP in the developer options. This helps solve some interoperability
issues such as with Honda Carkits where broadcasting AVRCP version 1.6 causes
media metadata to fail.

Bug: 35956792
Test: Select AVRCP version through developer option
Merged-In: I7d4b1bd23342d1a96ffdf08bb7d6d3c5e5fedca6
Change-Id: I7d4b1bd23342d1a96ffdf08bb7d6d3c5e5fedca6
2017-03-22 18:50:28 +00:00
jackqdyulei
8a05c9b38b Remove the hardcoded color in main page
Since we don't have grey background in settings page, we could
delete selectable_card and use default selectableItemBackground
instead.

Fix: 28129641
Fix: 36508801
Test: Screenshot
Change-Id: I2b61d8f2214df681a0db7f697fcc6a87dc7d78cb
2017-03-22 11:36:02 -07:00
TreeHugger Robot
ceb46ac8e7 Merge "Fix a monkey crash when it dismisses suggestion." 2017-03-22 18:34:56 +00:00
Ajay Panicker
da2723a5ae AVRCP version interop pereference (2/3)
Add a mechanism to allow the user to select the AVRCP version broadcasted
through SDP in the developer options. This helps solve some interoperability
issues such as with Honda Carkits where broadcasting AVRCP version 1.6 causes
media metadata to fail.

Bug: 35956792
Test: Select AVRCP version through developer option
Change-Id: I7d4b1bd23342d1a96ffdf08bb7d6d3c5e5fedca6
2017-03-22 11:32:15 -07:00
Matthew Fritze
fb8e0dc545 Merge "Rename remaining layouts to original search names" 2017-03-22 17:32:19 +00:00