Commit Graph

11147 Commits

Author SHA1 Message Date
Robin Lee
7f96c4c848 Update string: lockdown confirmation dialog title
The most common string shown previously was:
  "Set always-on VPN?"

It's now a different string:
  "Only allow connections through VPN?"

This makes more sense because the only way to get to this dialog in
stock Settings is by first enabling a specific VPN and afterwards
trying to set the same VPN to lockdown mode.

In this case the prompt should specifically refer to lockdown, not
having a VPN connection in general (because the user clearly already
has one).

Test: m Settings -j20, install a VPN, connect to it, open Settings > Network > Vpn > {VPN name} and select 'only allow connections through VPN'. Verify the title is now the one referred to in the commit message.
Fix: 34491069
Change-Id: Ic74a8b91eb8ae64fbe15723c173281f4ede52b06
2017-02-16 19:14:25 +00:00
Li Bai
642e717704 Change default long-press time to 400ms
The default long-press time has been changed from 500ms to 400ms by
b/30159825. so the values for the list of long-press timeout options
in Settings app should be changed.

Bug: 35226519
Test: manual - go to Settings > Accessibility > Touch & hold delay

Change-Id: I8e2421ea4119742bb6bf0e27688c65e3de3099dc
2017-02-16 06:28:51 +00:00
TreeHugger Robot
0f28cbd21b Merge "Modify text in Apps & notifications settings." 2017-02-16 05:25:44 +00:00
TreeHugger Robot
3a399f5eb4 Merge "Log source with visibility change" 2017-02-16 04:42:44 +00:00
Doris Ling
015a50bef9 Modify text in Apps & notifications settings.
- in Settings->Apps & notifications->Apps->[select app], update the
  header summary to installation status, and move the version text to
  the bottom of the page.
- updatd preference title from Apps to App info
- update preference title from Notifications to App notifications

Bug: 34977561
Test: make RunSettingsRoboTests
Change-Id: I97e9b81c739fb99eaca2cf45fb11f208ad6cd9ca
2017-02-15 19:02:33 -08:00
TreeHugger Robot
f33561cd74 Merge "Update texts for Settings->Sound->Do not disturb" 2017-02-16 02:51:38 +00:00
Doris Ling
b6fcba73e7 Merge "Update preference title for add user on lock screen." 2017-02-16 01:58:01 +00:00
Fan Zhang
c6ca314c0b Log source with visibility change
- Add a method in VisibilityLoggerMixin to log visible event using
  LogMaker, which allows logging additional FIELD_CONTEXT field.
- In Utils.startFragment, add current page's metricsCategory as an extra
  to next page.
- In next page's onResume(), extract the previous page's metricsCategory
  and send it to VisibilityLoggerMixin.visible()
- Update all caller with additional paramters

Change-Id: I8e1f2597fa465b7d3aa16fa1d21c052a3219694a
Fix: 35359289
Test: RunSettingsRoboTests
2017-02-15 17:17:19 -08:00
TreeHugger Robot
358eab0fff Merge "Update layout for App info page." 2017-02-16 01:05:40 +00:00
Doris Ling
d72b6cc1e9 Merge "Remove Cast from Display settings." 2017-02-16 00:16:14 +00:00
Doris Ling
26656b9f4c Remove Cast from Display settings.
Update the display settings xml to remove the wifi-display settings.

Change-Id: I5363e1a9c4e89af8eaa64512a72cf42160b0fee6
Bug: 34975969
Test: Visual
2017-02-15 16:06:22 -08:00
Antony Sargent
05e8dfde9d Add "Instant apps" filter to app listing
Bug: 35098444
Test: automated testing of ManageApplications is hard (b/34768986), so
testing is manual for now: install at least one instant app and then go to
Settings->Apps&Notifications->Apps and see if the filter lets you see
only instant apps.

In Settings->Apps&Notifications->Apps, the list of filters before this CL is:

 All | Enabled | Disabled

With this CL, the filter list becomes:

 All apps | Installed apps | Disabled apps | Instant apps

Change-Id: I65ffbfd7db99f45fc0310c7239bdfc0522c65e3a
2017-02-15 15:35:25 -08:00
Doris Ling
3c67adb804 Update preference title for add user on lock screen.
In Settings->User & accounts, update the preference title for "Add user"
to "Add users from lock screen" and remove the summary.

Bug: 34976320
Test: Visual
Change-Id: Idfb661537ac3b178ca20c2da9e66ab8a16567ba6
2017-02-15 14:02:38 -08:00
Doris Ling
4d8a9bd879 Update texts for Settings->Sound->Do not disturb
- Update title to "Do not disturb preferences"
- Add summary text to reflect the priority only allows preferences
- Refactor the summary handling in ZenModeSettings so that the
  controller can get the summary text

Fix: 34975939
Test: make RunSettingsRoboTests

Change-Id: I3ca1dc43fe1d943735a9f625e66c89708a18300a
2017-02-15 13:53:10 -08:00
Doris Ling
efce44927e Merge "Move Ringtones out of Advanced." 2017-02-15 21:34:28 +00:00
Doris Ling
2ed09339d4 Update layout for App info page.
- Move the app link buttons to the right
- Move the footer buttons to the top below the header
- Rename the app header details title, summary, and icon views.

Bug: 34977561
Test: make RunSettingsRoboTests
Change-Id: Id0cfc2b73b4e5cbbc1a58e497da52560892b69c8
2017-02-15 12:33:42 -08:00
Philip Quinn
a9831d40d0 Add settings for the assist gesture.
Availability of the gesture is gated by a new FeatureProvider.

Test: make -j RunSettingsRoboTests; manual test on
      supported/unsupported configurations.

Change-Id: I3529367a73e33370d5112b91d5144293ffa7fa22
2017-02-14 16:45:23 -08:00
TreeHugger Robot
55d2eb6d95 Merge "Create 'See All Networks' Preference to hide additional networks." 2017-02-15 00:34:35 +00:00
TreeHugger Robot
11b2e91890 Merge "Replace footer with regular preference" 2017-02-15 00:12:21 +00:00
Doris Ling
a10ff3b109 Move Ringtones out of Advanced.
Increase the tile limit in Settings->Sound so that Ringtones is not
hidden inside the Advances options.

Fix: 35318739
Test: Visual

Change-Id: I08db7b79127226bb6ef8ce8f147e5a90f5939d79
2017-02-14 14:14:09 -08:00
Salvador Martinez
2f0bee5032 Replace footer with regular preference
Replaced the "Manage Storage" footer preference
with a regular preference because the footer type
is not meant to be a touch target. This should fix
the bug with not being able to click on specific
parts of the preference.

Test: run settings espresso tests
Bug: 34349518
Change-Id: I36ada2a6a537a68d9fcbe7e10773896225ecc6b2
2017-02-14 14:12:56 -08:00
Doris Ling
13ac8845e7 Add account preferences from account type description.
Move the methods that handles the account type preferences to a separate
class and add the call to it in AccountDetailDashboardFragment.

Change-Id: Ib147fb73807b1264e3faedad3466126f2fd9c84d
Fix: 35224671
Test: Manual
2017-02-14 10:42:58 -08:00
Stephen Chen
2e966c642f Create 'See All Networks' Preference to hide additional networks.
Bug: 34719725
Test: manual inspection, tests to be added in b/35322551
Change-Id: I1a5a08ca4c53db71b4c0c3d4c2942da65faa67d2
2017-02-14 10:25:53 -08:00
Derek Sollenberger
f91b036177 Add developer setting to set the default GPU renderer.
Test: manual on-device testing
Bug: 35345959
Change-Id: Ia48c2c7935ceab894467b9e1e040785db28644a5
2017-02-14 11:39:03 -05:00
Fan Zhang
a516a22239 Update char_limit for new string
Change-Id: I49fc0522a5522bf5dae16d1a2d12e2819eee7a2a
Fix: 35187169
Test: build
2017-02-13 16:44:18 -08:00
TreeHugger Robot
33b0a66aee Merge changes from topic 'hotspot_summary'
* changes:
  Display current vpn for Vpn preference summary text
  Display carrier network name as celluar setting summary.
  Add hotspot summary text
2017-02-13 21:51:11 +00:00
Fan Zhang
c689d136c1 Add hotspot summary text
Bug: 34974598
Test: RunSettingsLibRoboTests

Change-Id: If5d17bf458f980b4f3a8fdeb4718bbf5d2993a21
2017-02-13 13:18:35 -08:00
TreeHugger Robot
85de8ad126 Merge "Add BatteryMeterView in Settings" 2017-02-13 20:45:17 +00:00
jackqdyulei
51967c0e6a Add BatteryMeterView in Settings
1. Show gauge icon at the top of battery main page instead of
battery usage graph.
2. Move the click action from battery usage graph to gauge icon.

Bug: 34387464
Test: RunSettingsRoboTest

Change-Id: Ib182619d6805b401cde03a50e2ae907cf4df7b94
2017-02-13 11:03:07 -08:00
Bill Yi
2c3d473e3a Import translations. DO NOT MERGE
Change-Id: Ic5485e66425141363f2c338fa41dc94816916eec
Auto-generated-cl: translation import
2017-02-12 22:56:48 -08:00
Fan Zhang
6583bc3479 DO NOT MERGE Fix "3 dot" icon size so it displays fully
am: fa190d437b

Change-Id: I7deb37ac62ff85f37d945d453bd6285a809779f1
2017-02-12 01:42:03 +00:00
Fan Zhang
fa190d437b DO NOT MERGE Fix "3 dot" icon size so it displays fully
Viewport size was set wrong due to bad merge, causing the last dot got
truncated slightly.

Change-Id: I5d5bbd703e780b21957613d88a2250bc3ba69bb8
Fix: 28194068
Test: visual
2017-02-11 16:00:31 -08:00
Phil Weaver
a68c2f73d6 Remove a11y speak passwords settings.
Bug: 28139568
Test: Opened settings, and it's gone!
Change-Id: Ife931c3a076c9b8470b6cde24712cb9280999bea
2017-02-10 16:26:07 -08:00
Fan Zhang
1afcfa62c5 Merge "Update storage setting summary text format." 2017-02-10 21:58:34 +00:00
TreeHugger Robot
6c8bf4645c Merge "Don't truncate the GB used string." 2017-02-10 03:13:51 +00:00
Fan Zhang
ec463f8f1b Merge "Update top level menu items summary text." 2017-02-10 01:27:02 +00:00
TreeHugger Robot
5c29cfad84 Merge "Removing one all-purpose developer tile and replacing it with 4 separate tiles, for individual actions. Also adding a section in Developer Options for enabling these individual tiles." 2017-02-10 01:11:29 +00:00
Fan Zhang
4f9e8d4a14 Update storage setting summary text format.
New format: 38% used - 19.80 GB free

Bug: 34975053
Test: make RunSettingRoboTests
Change-Id: I7c8f5f0fe825eade8167764622c940e8234be6a9
2017-02-09 17:08:34 -08:00
TreeHugger Robot
97ce4d05d0 Merge "Increasing char limit for string" 2017-02-09 23:57:34 +00:00
Fan Zhang
7520e81ab5 Update top level menu items summary text.
- Use static summary for most items
- Move summary for user setting to user&account setting

Bug: 34975053
Test: RunSettingsRoboTests
Change-Id: I9bf87267778dc5933f97f5d3b9ae0f4f0b8da1a8
2017-02-09 15:22:47 -08:00
Fan Zhang
5780f569e9 Merge "Convert auto-fill default selector to full screen pattern." 2017-02-09 22:36:58 +00:00
TreeHugger Robot
cce13dcb52 Merge "Remove Downloads backup options." 2017-02-09 22:33:52 +00:00
Fan Zhang
f8f55e574d Convert auto-fill default selector to full screen pattern.
Bug: 34280137
Test: RunSettingsRoboTests
Change-Id: Icde3bcaf11615010d481f39d8b32d28dfc120018
2017-02-09 12:45:53 -08:00
Fan Zhang
b39805e0d4 Code clean up
- Remove unused DashboardTilePreference class
- Use FooterPreference in ManageAssist fragment
- reformat manage_assist xml file

Bug: 35203386
Test: visual
Change-Id: If3dbbd0fb1977d6f3c7dbf4544d71f5e6e801327
2017-02-09 11:39:03 -08:00
Antony Sargent
3fca717d3b Merge "Infrastructure for showing instant app metadata in app header" 2017-02-09 18:02:38 +00:00
Gustav Sennton
9ae1b8b046 Merge "Have WebView Implementation Dev Setting use DefaultAppPickerFragment." 2017-02-09 17:36:33 +00:00
Gustav Sennton
5b596285a0 Have WebView Implementation Dev Setting use DefaultAppPickerFragment.
Make the WebView Implementation Dev Setting look like the fullscreen
settings deriving from DefaultAppPickerFragment.
Point the Activity opened through Settings.ACTION_WEBVIEW_SETTINGS to
the class WebViewAppPicker which is our new implementation of the
WebView Implementation setting.

Ensure the new setting closes if it is reached from a user that isn't an
admin of the device.

Bug: 34806477
Bug: 34966439
Test: Ensure WebView implementation Dev Setting looks ok (disabled
packages should have a text showing why they cannot be chosen).
Test: Start Intent with action Settings.ACTION_WEBVIEW_SETTINGS and
ensure the started Activity looks similar to the WebView Implementation
Dev Setting.
Test: Ensure picking a package that is no longer active, updates the
setting (so that package isn't visible anymore).
Change-Id: I08007c515193739ad61dfd735bb5130fc07bd6e6
2017-02-09 10:17:17 +00:00
TreeHugger Robot
858c936be6 Merge "Import translations. DO NOT MERGE" 2017-02-09 07:43:04 +00:00
Bill Yi
f9ef17c68e Import translations. DO NOT MERGE
Change-Id: I48c8f3d9a4b34c83e0bc5737446c002584ef86a7
Auto-generated-cl: translation import
2017-02-08 18:55:40 -08:00
Suprabh Shukla
95960c8b46 Increasing char limit for string
Translation in other languages requires more characters and the ui
element is reasonably wide to accommodate more characters. Also removed
an unused string.

Test: N/A

Bug:34720313

Change-Id: I059bea0d768ee50267f865e55915f4cec8e883ba
2017-02-08 18:51:11 -08:00