OSDN Git Service

android-x86/packages-apps-Settings.git
6 years agoFix issue "open battery settings, switch locale, apps are still in old locale" into...
WenHung_Teng [Thu, 22 Mar 2018 08:23:21 +0000 (16:23 +0800)]
Fix issue "open battery settings, switch locale, apps are still in old locale" into pi-dev

Clear uid to package detail cache by checking locale before use.

Fixes: 62422871
Test: RunSettingsRoboTest pass,
manual test
(1) open advance battery settings page,
(2) switch locale,
(3) back to advance battery settings page  => pass
manual test
(1) open advance battery settings page, and then back to settings main page
(2) switch locale,
(3) go to advance battery settings page  => pass

Change-Id: Ifac830706539022cd9bf51d3f33e728aadc163f4

6 years agoTo update from "Data saver" to "Data Saver"
felkachang [Thu, 22 Mar 2018 06:42:55 +0000 (14:42 +0800)]
To update from "Data saver" to "Data Saver"

To change data_saver_title res string from "Data saver" to "Data Saver".
There are 2 places to change and most of them are belong to en locale
charactors.
  res/values/strings.xml
    To change XML To "Help URL, Data saver" to "Help URL, Data Saver"
    because there is already one XML comment "Data Saver mode is on".
    To change data_saver_title to be "Data Saver" because
    condition_bg_data_title use "Data Saver".

Bug: 75983079
Test: make -j SettingsRoboTests RunSettingsRoboTests
Change-Id: I4ef88c962d6388c38841d47e4dc9674e8a4bb793

6 years agoMerge "Add UX string tweaks before string freeze." into pi-dev
Jeff Sharkey [Sun, 25 Mar 2018 08:49:58 +0000 (08:49 +0000)]
Merge "Add UX string tweaks before string freeze." into pi-dev

6 years agoMerge "Return back-up slices for unavailable settings" into pi-dev
TreeHugger Robot [Sat, 24 Mar 2018 07:04:47 +0000 (07:04 +0000)]
Merge "Return back-up slices for unavailable settings" into pi-dev

6 years agoMerge "Separate skip and clear button in pattern screen" into pi-dev
TreeHugger Robot [Sat, 24 Mar 2018 05:46:35 +0000 (05:46 +0000)]
Merge "Separate skip and clear button in pattern screen" into pi-dev

6 years agoMerge "Add toggle title for Data Saver" into pi-dev
TreeHugger Robot [Sat, 24 Mar 2018 05:30:28 +0000 (05:30 +0000)]
Merge "Add toggle title for Data Saver" into pi-dev

6 years agoMerge "Add callback when tethering fails" into pi-dev
TreeHugger Robot [Sat, 24 Mar 2018 05:24:09 +0000 (05:24 +0000)]
Merge "Add callback when tethering fails" into pi-dev

6 years agoMerge ""My Phone" -> "About Phone"" into pi-dev
Fan Zhang [Sat, 24 Mar 2018 05:16:01 +0000 (05:16 +0000)]
Merge ""My Phone" -> "About Phone"" into pi-dev

6 years agoMerge "Add preference controller to launch app-time-spent UI." into pi-dev
TreeHugger Robot [Sat, 24 Mar 2018 05:14:32 +0000 (05:14 +0000)]
Merge "Add preference controller to launch app-time-spent UI." into pi-dev

6 years agoMerge "[Settings] Add strings for Natural and Automatic color modes" into pi-dev
TreeHugger Robot [Sat, 24 Mar 2018 05:14:29 +0000 (05:14 +0000)]
Merge "[Settings] Add strings for Natural and Automatic color modes" into pi-dev

6 years agoMerge "Add string for app info summary" into pi-dev
TreeHugger Robot [Sat, 24 Mar 2018 05:14:24 +0000 (05:14 +0000)]
Merge "Add string for app info summary" into pi-dev

6 years agoMerge "Update title text for finterprint suggestion." into pi-dev
TreeHugger Robot [Sat, 24 Mar 2018 04:58:29 +0000 (04:58 +0000)]
Merge "Update title text for finterprint suggestion." into pi-dev

6 years agoMerge "Add new strings for Hearing Aid profile in Accessibility app" into pi-dev
Stanley Tng [Sat, 24 Mar 2018 04:09:04 +0000 (04:09 +0000)]
Merge "Add new strings for Hearing Aid profile in Accessibility app" into pi-dev

6 years agoMerge "Add string to warn users about device name." into pi-dev
Daniel Nishi [Sat, 24 Mar 2018 01:04:21 +0000 (01:04 +0000)]
Merge "Add string to warn users about device name." into pi-dev

6 years agoMerge "Updates the policy transparency dialog string" into pi-dev
Tony Mak [Sat, 24 Mar 2018 00:35:02 +0000 (00:35 +0000)]
Merge "Updates the policy transparency dialog string" into pi-dev

6 years agoAdd new strings for Hearing Aid profile in Accessibility app
Stanley Tng [Fri, 23 Mar 2018 23:59:50 +0000 (16:59 -0700)]
Add new strings for Hearing Aid profile in Accessibility app

These new strings will be used by the Accessibility Settings App for the
hearing aid profile.

Test: compiled.
Bug: 74204427
Change-Id: I41cd5c2152a8b8dacb3dd4e5f974d1427d4a7ba4

6 years agoAdd UX string tweaks before string freeze.
Jeff Sharkey [Wed, 21 Mar 2018 17:14:56 +0000 (11:14 -0600)]
Add UX string tweaks before string freeze.

We're fully intending to implement some string and layout tweaks
requested by UX, but we need to get the requested strings checked
in before the strings deadline.  We carefully keep existing (legacy)
strings intact to avoid any runtime crashes until we get the layout
work done.

Test: builds, boots
Bug: 76097999
Change-Id: Ic6531de170df8eaa8b3a0a23d76a0c8821bb5b16

6 years agoMerge "New strings for time zone picker" into pi-dev
Victor Chang [Fri, 23 Mar 2018 22:23:23 +0000 (22:23 +0000)]
Merge "New strings for time zone picker" into pi-dev

6 years agoAdd preference controller to launch app-time-spent UI.
Fan Zhang [Fri, 23 Mar 2018 20:02:24 +0000 (13:02 -0700)]
Add preference controller to launch app-time-spent UI.

Bug: 74580195
Test: robotests
Change-Id: Iba9338f04cc037a134ef9445ce97cbbe21f53833

6 years ago"My Phone" -> "About Phone"
Daniel Nishi [Fri, 23 Mar 2018 20:43:12 +0000 (13:43 -0700)]
"My Phone" -> "About Phone"

String polishing fix.

Bug: 36458278
Test: Manual
Change-Id: If0d90aa252d0ffe8bdbb8d255d1bec736ba2017a

6 years agoAdd string for app info summary
Beverly [Fri, 23 Mar 2018 20:33:37 +0000 (16:33 -0400)]
Add string for app info summary

Test: n/a
Bug: 72442731
Change-Id: Ibdf83450159334647ba26b2c44ee6cc5b21638d7

6 years agoMerge "Add new strings for auto-wifi" into pi-dev
Salvador Martinez [Fri, 23 Mar 2018 20:33:07 +0000 (20:33 +0000)]
Merge "Add new strings for auto-wifi" into pi-dev

6 years agoMerge "Add extra strings for hidden network option" into pi-dev
Salvador Martinez [Fri, 23 Mar 2018 20:32:16 +0000 (20:32 +0000)]
Merge "Add extra strings for hidden network option" into pi-dev

6 years agoMerge "Add strings for mobile hotspot bands" into pi-dev
Salvador Martinez [Fri, 23 Mar 2018 20:10:49 +0000 (20:10 +0000)]
Merge "Add strings for mobile hotspot bands" into pi-dev

6 years ago[Settings] Add strings for Natural and Automatic color modes
Sean Callanan [Thu, 22 Mar 2018 02:28:37 +0000 (19:28 -0700)]
[Settings] Add strings for Natural and Automatic color modes

These strings are not properly reflected in the UI yet.  Automatic and
Saturated currently map to the same display setting (and the UI reflects
this by checking both).

Bug: 75982435
Test: Modified the existing testcases to reflect the new string.
Change-Id: Iaef08599c0233e018eaafaf89d60eab92e102782
(cherry picked from commit e8f9bf5f68853fc8bc5c828e7d5636e6851ec45a)

6 years agoAdd string to warn users about device name.
Daniel Nishi [Thu, 22 Mar 2018 21:06:53 +0000 (14:06 -0700)]
Add string to warn users about device name.

Device name is exposed to apps and through Bluetooth name and Wi-Fi
hotspot name. This warning tells users that before they set it.

Bug: 74981919
Test: Builds -- string currently unused.
Change-Id: I0b4bb49bcff6485a79688d98ca9bab1ce9948efd

6 years agoMerge "[QS] Add Settings intent filters for Data Usage" into pi-dev
TreeHugger Robot [Fri, 23 Mar 2018 19:51:16 +0000 (19:51 +0000)]
Merge "[QS] Add Settings intent filters for Data Usage" into pi-dev

6 years agoReturn back-up slices for unavailable settings
Matthew Fritze [Wed, 28 Feb 2018 18:31:06 +0000 (10:31 -0800)]
Return back-up slices for unavailable settings

When an inline slice is requested, and the setting is unavailable,
we should present more useful information to the user. This CL handles:
- Unsupported: return intent slice to Settings home page
- Disabled for user: intent to the setting page
- Unknown reason: intent to setting page
- Disabled dependency: Create intent-based Slice rather
than the requested inline slice.

Bug: 71640747
Test: robotests
Change-Id: I9c1a0ee36119d4f9f3b205e0824c251f4356db55

6 years agoNew strings for time zone picker
Victor Chang [Fri, 23 Mar 2018 19:24:41 +0000 (19:24 +0000)]
New strings for time zone picker

Bug: 75322108
Test: m SettingsGoogle
Change-Id: I04662384bf1487066b1dc91944b6f1d2115d509a

6 years agoUpdate title text for finterprint suggestion.
Doris Ling [Fri, 23 Mar 2018 19:24:58 +0000 (12:24 -0700)]
Update title text for finterprint suggestion.

Bug: 76098479
Test: rebuild
Change-Id: Id09a8019844ca5f6c528f4bd1b37117380e663b8

6 years agoMerge "Add string needed by app usage tracking feature." into pi-dev
Fan Zhang [Fri, 23 Mar 2018 19:19:13 +0000 (19:19 +0000)]
Merge "Add string needed by app usage tracking feature." into pi-dev

6 years agoUpdates the policy transparency dialog string
Tony Mak [Fri, 23 Mar 2018 17:09:19 +0000 (17:09 +0000)]
Updates the policy transparency dialog string

Test: Build and observe the string.

Fixes: 68973125

Change-Id: Ic1461f8b7157cfcc50d6f4766fced725307b9cc0

6 years agoMerge "Add keywords for search terms" into pi-dev
TreeHugger Robot [Fri, 23 Mar 2018 18:35:23 +0000 (18:35 +0000)]
Merge "Add keywords for search terms" into pi-dev

6 years agoMerge "Add strings for night display UX changes" into pi-dev
Christine Franks [Fri, 23 Mar 2018 18:33:06 +0000 (18:33 +0000)]
Merge "Add strings for night display UX changes" into pi-dev

6 years agoAdd new strings for auto-wifi
Salvador Martinez [Fri, 23 Mar 2018 18:21:10 +0000 (11:21 -0700)]
Add new strings for auto-wifi

This CL adds more strings that were needed for auto-wifi
permission requesting. A follow up cl will add a dialog to use
these strings when appropriate

Bug: 67070896
Test: None, just adds unused strings
Change-Id: I9780dbb0dd714ead7524b991ab5759f366bf4185

6 years agoMerge "Update battery saver condition text." into pi-dev
TreeHugger Robot [Fri, 23 Mar 2018 18:20:24 +0000 (18:20 +0000)]
Merge "Update battery saver condition text." into pi-dev

6 years agoMerge "Add new string for updating auto-wifi" into pi-dev
Salvador Martinez [Fri, 23 Mar 2018 18:09:04 +0000 (18:09 +0000)]
Merge "Add new string for updating auto-wifi" into pi-dev

6 years agoMerge "Rename "Primary data" to "Current data"." into pi-dev
TreeHugger Robot [Fri, 23 Mar 2018 17:59:56 +0000 (17:59 +0000)]
Merge "Rename "Primary data" to "Current data"." into pi-dev

6 years agoAdd toggle title for Data Saver
Doris Ling [Fri, 23 Mar 2018 17:42:13 +0000 (10:42 -0700)]
Add toggle title for Data Saver

Bug: 75983536
Test: rebuild
Change-Id: I38f860abca92fae634f9a41d953512b3f977d38e

6 years agoMerge "Hide password for wifi tether" into pi-dev
TreeHugger Robot [Fri, 23 Mar 2018 17:37:23 +0000 (17:37 +0000)]
Merge "Hide password for wifi tether" into pi-dev

6 years agoMerge changes I034a9f0a,Iad5ec577 into pi-dev
TreeHugger Robot [Fri, 23 Mar 2018 17:36:54 +0000 (17:36 +0000)]
Merge changes I034a9f0a,Iad5ec577 into pi-dev

* changes:
  Get rid of UserPackageWrapper util.
  Get rid of extra whitespace under divider lines

6 years agoMerge "Show time zone used in or after 2018 only" into pi-dev
Neil Fuller [Fri, 23 Mar 2018 17:18:36 +0000 (17:18 +0000)]
Merge "Show time zone used in or after 2018 only" into pi-dev

6 years agoAdd string needed by app usage tracking feature.
Fan Zhang [Fri, 23 Mar 2018 17:12:25 +0000 (10:12 -0700)]
Add string needed by app usage tracking feature.

Bug: 74580195
Test: rebuild
Change-Id: I9bd5c3e8e73c4be9e00acf6ede3a33df087cddac

6 years agoMerge "Add string for forget confirmation dialog" into pi-dev
TreeHugger Robot [Fri, 23 Mar 2018 17:10:14 +0000 (17:10 +0000)]
Merge "Add string for forget confirmation dialog" into pi-dev

6 years agoMerge "Add summary text for "Automatic system updates" option." into pi-dev
TreeHugger Robot [Fri, 23 Mar 2018 17:05:20 +0000 (17:05 +0000)]
Merge "Add summary text for "Automatic system updates" option." into pi-dev

6 years agoMerge "Add option for settings to push to a device index" into pi-dev
Jason Monk [Fri, 23 Mar 2018 16:52:24 +0000 (16:52 +0000)]
Merge "Add option for settings to push to a device index" into pi-dev

6 years agoMerge "Align email provider correctly for RTL locales" into pi-dev
TreeHugger Robot [Fri, 23 Mar 2018 16:49:47 +0000 (16:49 +0000)]
Merge "Align email provider correctly for RTL locales" into pi-dev

6 years agoAdd keywords for search terms
Matthew Fritze [Wed, 21 Mar 2018 20:46:11 +0000 (13:46 -0700)]
Add keywords for search terms

A large update for search keywords collected from logging
and individual feedback.

At the moment, we don't have a great way to test that a keyword
matches to a search result. It's a bit akin to testing that the
wifi title is Wifi.

Fixes: 36983488
Fixes: 36622889
Fixes: 76115241
Test: Manual audit of keywords surfacing the proper results.
Change-Id: Ia1031b7f6ec1edfcc28c07e6b55049b8dac7c685

6 years agoAdd strings for night display UX changes
Christine Franks [Fri, 23 Mar 2018 00:09:28 +0000 (17:09 -0700)]
Add strings for night display UX changes

Bug: 73739388
Bug: 69912911
Test: make -j100 and make RunSettingsRoboTests -j100
Change-Id: I8f2ecef92fdc24b9d984cc7246875dcdf5969a5e

6 years agoMerge "Add a string for mandatory backups in DO disclosures screen." into pi-dev
TreeHugger Robot [Fri, 23 Mar 2018 15:02:59 +0000 (15:02 +0000)]
Merge "Add a string for mandatory backups in DO disclosures screen." into pi-dev

6 years agoMerge "Show policy transparency popup dialog for Bluetooth in Settings." into pi-dev
Antoan Angelov [Fri, 23 Mar 2018 14:10:29 +0000 (14:10 +0000)]
Merge "Show policy transparency popup dialog for Bluetooth in Settings." into pi-dev

6 years agoAdd option for settings to push to a device index
Jason Monk [Wed, 22 Nov 2017 15:04:38 +0000 (10:04 -0500)]
Add option for settings to push to a device index

The index implementation is optional and left up to the OEM.

Test: Open settings, see content in index
Test: robo tests
Bug: 68378569
Bug: 76102600
Change-Id: Idb8bb1e0cabbbe92e7a852e2eadbdcd8c2ab7d56

6 years agoAdd a string for mandatory backups in DO disclosures screen.
Lenka Trochtova [Fri, 23 Mar 2018 10:56:09 +0000 (11:56 +0100)]
Add a string for mandatory backups in DO disclosures screen.

Test: make -j64
Bug: 73750212
Bug: 64012357

Change-Id: I8a4b7eb65b0cbeffbe480497fa097c70dfd1f81e

6 years agoShow time zone used in or after 2018 only
Victor Chang [Thu, 15 Mar 2018 21:17:31 +0000 (21:17 +0000)]
Show time zone used in or after 2018 only

- Year 2018 is picked as the new time zone data
for picker is introduced in 2018. I can be adjusted
in the future to show more merged time zones.
- Add test to ensure each region has at least
one time zone.
- Fix a issue not using a singleton of TimeZoneData
  in commit 6c33caad4bb793b3dbbfc826549e200d906830f0

Bug: 72142943
Test: atest SettingsUnitTests:TimeZoneDataTest
Change-Id: I5eba7fbd59a2d3fd2e8062c9615946dc4bbb6314

6 years agoAdd summary text for "Automatic system updates" option.
Tao Bao [Fri, 23 Mar 2018 01:47:57 +0000 (18:47 -0700)]
Add summary text for "Automatic system updates" option.

Fixes: 72472580
Test: m -j RunSettingsRoboTests
Test: Build and flash on sailfish. Check the text.
Change-Id: Ied5b307f8c43c0bdccea4996cced483ce54568e7

6 years agoAdd string for forget confirmation dialog
hylo [Thu, 22 Mar 2018 04:39:00 +0000 (12:39 +0800)]
Add string for forget confirmation dialog

Bug: 71812838
Test: Manual test
Change-Id: I01d9bdce1b06bfeeff406b1e45be900325041ecc

6 years agoMerge "Add manage notifications screen" into pi-dev
TreeHugger Robot [Fri, 23 Mar 2018 02:06:38 +0000 (02:06 +0000)]
Merge "Add manage notifications screen" into pi-dev

6 years agoAdd extra strings for hidden network option
Salvador Martinez [Fri, 23 Mar 2018 01:37:30 +0000 (18:37 -0700)]
Add extra strings for hidden network option

This CL adds strings to be used in a follow-up CL for labeling a
network as hidden/visible.

Test: None, is a string change
Bug: 29003359
Change-Id: Ia2822b8afbcd3bd806f8f8b204e5f29e97d94763

6 years agoMerge "Allow developer options in retail mode" into pi-dev
Christine Franks [Fri, 23 Mar 2018 01:11:23 +0000 (01:11 +0000)]
Merge "Allow developer options in retail mode" into pi-dev

6 years agoMerge "Fix PATTERN UI to align PIN&PASSWORD screen" into pi-dev
Jyun LuoLai [Fri, 23 Mar 2018 00:56:00 +0000 (00:56 +0000)]
Merge "Fix PATTERN UI to align PIN&PASSWORD screen" into pi-dev

6 years agoUpdate battery saver condition text.
Doris Ling [Fri, 23 Mar 2018 00:51:08 +0000 (17:51 -0700)]
Update battery saver condition text.

Change-Id: I0c0d4805c3d9163a1b98bac790719c361559d385
Fixes: 76172605
Test: build

6 years agoAdd manage notifications screen
Julia Reynolds [Wed, 21 Mar 2018 19:23:13 +0000 (15:23 -0400)]
Add manage notifications screen

Test: make -j RunSettingsRoboTests
Bug: 74318867
Change-Id: I1c872c976677ee38f7d9d9523d18fc8ca03fa547

Add manage notifications screen

Test: make -j RunSettingsRoboTests
Bug: 74318867
Change-Id: Ia3626e9f69e8b91b1a2bba9ef549c775972e749a

6 years agoRename "Primary data" to "Current data".
Jan Nordqvist [Thu, 22 Mar 2018 23:07:56 +0000 (16:07 -0700)]
Rename "Primary data" to "Current data".

Bug: 70950124

Test: manual
Change-Id: I5fc9ac10338e2134e903eff392d3c63d2adf021d

6 years agoGet rid of UserPackageWrapper util.
Fan Zhang [Thu, 22 Mar 2018 22:28:46 +0000 (15:28 -0700)]
Get rid of UserPackageWrapper util.

Robolectric can support framework private classes now, so there is no
need to use wrappers.

Bug: 76167422
Test: robotests
Change-Id: I034a9f0a9856348bff491f2e9b2b1f7d682ab942

6 years agoAdd strings for mobile hotspot bands
Salvador Martinez [Thu, 22 Mar 2018 22:09:30 +0000 (15:09 -0700)]
Add strings for mobile hotspot bands

This CL simply adds some strings that are needed for a follow-up CL
that allows users to select the band for their AP.

Test: None, just adds strings
Bug: 73102003
Change-Id: I3d1389b64e035056d55b7dda0687976ae757971c

6 years agoMerge "Add Slider template for Slices" into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 22:08:54 +0000 (22:08 +0000)]
Merge "Add Slider template for Slices" into pi-dev

6 years agoAdd new string for updating auto-wifi
Salvador Martinez [Thu, 22 Mar 2018 22:05:40 +0000 (15:05 -0700)]
Add new string for updating auto-wifi

This CL simply adds a string that will be used in a follow-up CL
for updating how auto-wifi permission requests work.

Test: None, string change
Bug: 67070896
Change-Id: I28d4e34349e8b3efad33d4e87f10b0f51c97f8ab

6 years agoGet rid of extra whitespace under divider lines
Fan Zhang [Thu, 22 Mar 2018 22:02:58 +0000 (15:02 -0700)]
Get rid of extra whitespace under divider lines

Change-Id: Iad5ec5771a61c6e12aaefbe5fe41d17f7f09de73
Fixes: 76116029
Test: visual

6 years agoMerge "Add a setting for the volume hush gesture" into pi-dev
Julia Reynolds [Thu, 22 Mar 2018 22:03:48 +0000 (22:03 +0000)]
Merge "Add a setting for the volume hush gesture" into pi-dev

6 years agoMerge "Update the toggle state in constructor." into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 21:43:52 +0000 (21:43 +0000)]
Merge "Update the toggle state in constructor." into pi-dev

6 years agoMerge "Misc string updates" into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 21:33:54 +0000 (21:33 +0000)]
Merge "Misc string updates" into pi-dev

6 years agoMerge "Make GLIF theme default for confirm lock screen" into pi-dev
Maurice Lam [Thu, 22 Mar 2018 21:04:17 +0000 (21:04 +0000)]
Merge "Make GLIF theme default for confirm lock screen" into pi-dev

6 years agoAdd callback when tethering fails
Lei Yu [Thu, 22 Mar 2018 19:59:55 +0000 (12:59 -0700)]
Add callback when tethering fails

Add real callback instead of using NoOpCallback. When it fails,
reset the switchbar.

Change-Id: I6f87d7cefa67ff8f9f59a815fd976940fb61c06c
Fixes: 72904303
Test: RunSettingsRoboTests

6 years agoMisc string updates
Fan Zhang [Thu, 22 Mar 2018 19:35:14 +0000 (12:35 -0700)]
Misc string updates

Bug: 76022431
Fixes: 17822183

Test: visual
Change-Id: I952e04ca8f5d45612f0088729c2691c60cf3afab

6 years agoAdd Slider template for Slices
Matthew Fritze [Tue, 6 Feb 2018 22:13:02 +0000 (14:13 -0800)]
Add Slider template for Slices

Add the Seekbar preference equivalent
to the TwoStatePreference (toggle) preference
controller abstract controller.

Change-Id: I6ff91f2f72a7f72c18ddbc27b2b1fda4b6ce6ca9
Fixes: 67996707
Test: Robotests

6 years agoMerge "Put the FLAG_ACTIVITY_NEW_TASK flag for the "Learn More" button in the "Add...
TreeHugger Robot [Thu, 22 Mar 2018 18:38:30 +0000 (18:38 +0000)]
Merge "Put the FLAG_ACTIVITY_NEW_TASK flag for the "Learn More" button in the "Add Account" settings screen." into pi-dev

6 years agoUpdate the toggle state in constructor.
Lei Yu [Thu, 22 Mar 2018 18:12:29 +0000 (11:12 -0700)]
Update the toggle state in constructor.

Before this cl, the update of toggle depends on BroadcastReceiver.
However it is not called when toggle is inited, which make the toggle in
broken state sometimes.

This cl make it execute the update method in constructor, so toggle can
get the correct state when it is created.

Fixes: 73718975
Test: RunSettingsRoboTests
Change-Id: Icb798afaff0bdeedad3a966315441712be2e2523

6 years agoMerge "Add log for AnomalyDetectionJobService" into pi-dev
Lei Yu [Thu, 22 Mar 2018 17:53:17 +0000 (17:53 +0000)]
Merge "Add log for AnomalyDetectionJobService" into pi-dev

6 years agoPut the FLAG_ACTIVITY_NEW_TASK flag for the "Learn More" button in the "Add Account...
arangelov [Thu, 22 Mar 2018 16:18:49 +0000 (16:18 +0000)]
Put the FLAG_ACTIVITY_NEW_TASK flag for the "Learn More" button in the "Add Account" settings screen.

Bug: 75322399
Test: Manually pressed the button and verified the Settings app does not crash.
Change-Id: Ibd2b985ed898ccaa4e78c0ecf5dc667af6bc8cba

6 years agoDo not allow force stopping protected packages
Benjamin Franz [Thu, 22 Mar 2018 11:16:07 +0000 (11:16 +0000)]
Do not allow force stopping protected packages

Bug: 75997475
Test: make RunSettingsRoboTests
Test: manual
Change-Id: I0670f6f0afbc603d8ac61711cfefec2b1fc4b43b

6 years agoMerge "Fix crash when launching mobile data usage page via intent." into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 07:24:23 +0000 (07:24 +0000)]
Merge "Fix crash when launching mobile data usage page via intent." into pi-dev

6 years agoMerge "Fix renaming for Bluetooth devices when rotating to landscape" into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 07:17:17 +0000 (07:17 +0000)]
Merge "Fix renaming for Bluetooth devices when rotating to landscape" into pi-dev

6 years agoMerge "Fix crash when pausing DndCondition." into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 05:06:15 +0000 (05:06 +0000)]
Merge "Fix crash when pausing DndCondition." into pi-dev

6 years agoMerge "Remove extra padding above Wi-Fi picker, Pointer speed, Automatica date &...
TreeHugger Robot [Thu, 22 Mar 2018 05:05:21 +0000 (05:05 +0000)]
Merge "Remove extra padding above Wi-Fi picker, Pointer speed, Automatica date & time, Automatic timezone, Automatic 24-hour format, New notifications and App settings" into pi-dev

6 years agoMerge "Update "Vibrate on tap" string" into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 05:03:38 +0000 (05:03 +0000)]
Merge "Update "Vibrate on tap" string" into pi-dev

6 years agoMerge "Add back the data saver preference." into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 04:56:35 +0000 (04:56 +0000)]
Merge "Add back the data saver preference." into pi-dev

6 years agoMerge "use placeholder text for "turn on battery saver at x%" pref" into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 04:32:18 +0000 (04:32 +0000)]
Merge "use placeholder text for "turn on battery saver at x%" pref" into pi-dev

6 years agoMerge "Only show restricted apps that belong to the user." into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 04:31:38 +0000 (04:31 +0000)]
Merge "Only show restricted apps that belong to the user." into pi-dev

6 years agoMerge "Fix "Send feedback about this device" option is missing issue." into pi-dev
WAYNE YANG [Thu, 22 Mar 2018 03:56:41 +0000 (03:56 +0000)]
Merge "Fix "Send feedback about this device" option is missing issue." into pi-dev

6 years agoMerge "Fix entity header to "Hide" shadow of app bar unless scrolled." into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 03:17:29 +0000 (03:17 +0000)]
Merge "Fix entity header to "Hide" shadow of app bar unless scrolled." into pi-dev

6 years agoMerge "Modify "Updated ..." text." into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 02:58:41 +0000 (02:58 +0000)]
Merge "Modify "Updated ..." text." into pi-dev

6 years agoAdd back the data saver preference.
Andreas Terzis [Sat, 17 Mar 2018 23:27:20 +0000 (16:27 -0700)]
Add back the data saver preference.

Bug: 70950124

Test: manual
Test: make RunSettingsRoboTests
Change-Id: Ia39cb62ec021ae568a76fed04776b5e531e63b36

6 years agoFix "Send feedback about this device" option is missing issue.
wayneyang [Wed, 21 Mar 2018 12:05:09 +0000 (20:05 +0800)]
Fix "Send feedback about this device" option is missing issue.

When device restart & launching "Feedback" from lock screen,
the "send feedback" option will be missing. It's because
the report package cannot be found by calling from lock screen.
Update the option visibility after updatestate and add test case.

Bug: 74076963
Test: Manual test and RunSettingsRoboTests:FeedbackPreferenceControllerTest
Change-Id: I105d6f90da499423b6881f2ba808e69bd2e8595d

6 years agoMake GLIF theme default for confirm lock screen
Maurice Lam [Thu, 22 Mar 2018 01:21:04 +0000 (18:21 -0700)]
Make GLIF theme default for confirm lock screen

Use GLIF theme as the default for confirm lock screen, even for
"external" launches of the screen. Renamed the theme from "internal"
to "normal" to reflect this change.
Dark theme code will be cleaned up later.

Test: Existing tests pass
Bug: 62573742
Change-Id: I86958eb3a440d7274807f1cf453c3e53c16c23e7

6 years agoAdd log for AnomalyDetectionJobService
Lei Yu [Tue, 20 Mar 2018 18:33:13 +0000 (11:33 -0700)]
Add log for AnomalyDetectionJobService

When anomaly is detected, also log it in AnomalyDetectionJobService

Bug: 73888115
Test: RunSettingsRoboTests
Change-Id: I0a42f8935d9a83eb763dd1f9dedfb71301853104

6 years agouse placeholder text for "turn on battery saver at x%" pref
Fan Zhang [Thu, 22 Mar 2018 00:12:32 +0000 (17:12 -0700)]
use placeholder text for "turn on battery saver at x%" pref

Change-Id: I63f0994bbcb050473c21c606337accd63cfcc46c
Fixes: 74120099
Test: reindex search

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 00:23:30 +0000 (00:23 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years ago[QS] Add Settings intent filters for Data Usage
Rohan Shah [Thu, 22 Mar 2018 00:16:39 +0000 (17:16 -0700)]
[QS] Add Settings intent filters for Data Usage

Add intent filters for the new, public DATA_USAGE_SETTINGS action.
SystemUI's Quick Settings are already hooked up to use this intent.

Test: Visually
Bug: 73586207
Change-Id: I8638c067f557765c505500a57a3cd7a6cd3fc40d

6 years agoFix crash when launching mobile data usage page via intent.
Fan Zhang [Wed, 21 Mar 2018 23:11:31 +0000 (16:11 -0700)]
Fix crash when launching mobile data usage page via intent.

Need to parse parameters from Intent if argument is empty or has no
parameter.

Change-Id: I23af434e1be794036dc711b72e0d9afa8bd65aa6
Fixes: 74235734
Test: robotests

6 years agoFix renaming for Bluetooth devices when rotating to landscape
Antony Sargent [Tue, 20 Mar 2018 23:15:44 +0000 (16:15 -0700)]
Fix renaming for Bluetooth devices when rotating to landscape

The bug here is that when renaming a Bluetooth device (either the local
adapter or a paired device), if you click on the text edit field of the
alert dialog and then rotate the screen, the text shown in the soft
input will disappear. Also it's a usability problem that you even needed
to click in the first place. This CL fixes both problems - now the soft
input will be shown immediately when the dialog comes up, and the
content doesn't disappear on rotation.

Change-Id: Id29d11c834bf98c01b5c1208159537a8fd36a64f
Fixes: 72551780
Test: make -j RunSettingsRoboTests
(cherry picked from commit 5a1587526b9a6ddfdb2bde2f6e24815e9fe5b36a)