OSDN Git Service

android-x86/packages-apps-Settings.git
7 years agorelease-request-d6bf2db5-83c3-41cb-ba89-644c366c2525-for-git_oc-mr1-release-4070602...
android-build-team Robot [Tue, 6 Jun 2017 07:31:01 +0000 (07:31 +0000)]
release-request-d6bf2db5-83c3-41cb-ba89-644c366c2525-for-git_oc-mr1-release-4070602 snap-temp-L56000000070867102

Change-Id: I5d100de3c244350797d202888dd57d369658ad98

7 years agoMerge "Ensure wifi ssid cannot exceed 32 bytes."
TreeHugger Robot [Tue, 6 Jun 2017 06:33:48 +0000 (06:33 +0000)]
Merge "Ensure wifi ssid cannot exceed 32 bytes."

7 years agoMerge "Add help url placeholders for new pages"
TreeHugger Robot [Tue, 6 Jun 2017 06:20:47 +0000 (06:20 +0000)]
Merge "Add help url placeholders for new pages"

7 years agoRevert "Remove dynamic summary from Security Patch info"
Fan Zhang [Tue, 6 Jun 2017 04:07:52 +0000 (04:07 +0000)]
Revert "Remove dynamic summary from Security Patch info"

The change breaks build

Bug: 62359766
Bug: 36101902

This reverts commit 2b562f84b6c317711fdb70db5b4d3cb9953ed536.

Change-Id: Ie712d471f1fa9858b65fd1c0b111405dfb49eb38

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Tue, 6 Jun 2017 02:04:22 +0000 (02:04 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoMerge "Add ability to see both battery estimates on long press"
TreeHugger Robot [Tue, 6 Jun 2017 01:58:16 +0000 (01:58 +0000)]
Merge "Add ability to see both battery estimates on long press"

7 years agoMerge "Add a new Bluetooth device details page"
TreeHugger Robot [Tue, 6 Jun 2017 01:28:52 +0000 (01:28 +0000)]
Merge "Add a new Bluetooth device details page"

7 years agoRemove call to WifiManager.setWifiApEnabled(). am: f38ed2fbb2
Doris Ling [Tue, 6 Jun 2017 01:24:38 +0000 (01:24 +0000)]
Remove call to WifiManager.setWifiApEnabled(). am: f38ed2fbb2
am: 802db8a844

Change-Id: If6e76b06e014d2c3e3eadf60c4bc2ff8e6a50607

7 years agoRemove call to WifiManager.setWifiApEnabled().
Doris Ling [Tue, 6 Jun 2017 01:15:10 +0000 (01:15 +0000)]
Remove call to WifiManager.setWifiApEnabled().
am: f38ed2fbb2

Change-Id: I255679d0eaeaa94d2ac6e5caddf4c6f5a5581bc1

7 years agoMerge "Update support strings in Settings"
TreeHugger Robot [Tue, 6 Jun 2017 00:01:28 +0000 (00:01 +0000)]
Merge "Update support strings in Settings"

7 years agoAdd ability to see both battery estimates on long press
Salvador Martinez [Tue, 23 May 2017 00:26:39 +0000 (17:26 -0700)]
Add ability to see both battery estimates on long press

If the enhanced estimate is being used in battery settings
it is now possible to long press on the text to have it display
both instead of the string that is normally used.

Adds another loader to enable this since it needs both the old
and the new estimates simultaneously.

Feature is hidden behind a feature flag that only googlers will
have enabled.

Test: robotests
Bug: 38399275
Change-Id: I5caf26513baada27efd50ddb0e72d3868da47150

7 years agoEnsure wifi ssid cannot exceed 32 bytes.
Fan Zhang [Mon, 5 Jun 2017 22:50:00 +0000 (15:50 -0700)]
Ensure wifi ssid cannot exceed 32 bytes.

Change-Id: I5c2c50ca8599f6843da47c01b9a0447e2c85d763
Fix: 36898746
Test: make RunSettingsRoboTests

7 years agoRemove call to WifiManager.setWifiApEnabled().
Doris Ling [Fri, 2 Jun 2017 00:06:40 +0000 (17:06 -0700)]
Remove call to WifiManager.setWifiApEnabled().

- replace it with ConnectivityManager.stopTethering() instead.

Change-Id: I112863b1be37c0fef5d59c16d73f0c6cf71c6dea
Fix: 62191978
Test: make RunSettingsRoboTests

7 years agoUpdate support strings in Settings
Salvador Martinez [Mon, 5 Jun 2017 22:17:20 +0000 (15:17 -0700)]
Update support strings in Settings

String change CL for support strings in settings.

Test: image attached, robotests still pass
Bug: 62145221
Change-Id: Ib10998374be961e42ab6994a7b32e521c49c4652

7 years agoMerge "Move UsageGraph from SettingsLib to Settings."
TreeHugger Robot [Mon, 5 Jun 2017 22:13:50 +0000 (22:13 +0000)]
Merge "Move UsageGraph from SettingsLib to Settings."

7 years agoMerge "Bluetooth: Always scan while on pairing or DevicePicker page"
TreeHugger Robot [Mon, 5 Jun 2017 22:11:40 +0000 (22:11 +0000)]
Merge "Bluetooth: Always scan while on pairing or DevicePicker page"

7 years agoAdd help url placeholders for new pages
Fan Zhang [Mon, 5 Jun 2017 20:13:42 +0000 (13:13 -0700)]
Add help url placeholders for new pages

Bug: 38412798
Test: visual
Change-Id: I4ede523cb13790ea05309279f80a778b2086f850

7 years agoMerge "Show fingerprint text in backup screen lock"
Maurice Lam [Mon, 5 Jun 2017 20:53:26 +0000 (20:53 +0000)]
Merge "Show fingerprint text in backup screen lock"

7 years agoMove UsageGraph from SettingsLib to Settings.
Alex Kulesza [Fri, 2 Jun 2017 22:16:28 +0000 (18:16 -0400)]
Move UsageGraph from SettingsLib to Settings.

In preparation for modifying the graph code to show detailed projections
(see bug), this change moves it into Settings along with related tests
and resources.

Bug: 38400320
Test: manual, make SettingsUnitTests, make SettingsGoogleUnitTests
Change-Id: I88e5336c15827727b3427e29b10954bba9cfba7d

7 years agoBluetooth: Always scan while on pairing or DevicePicker page
Jack He [Wed, 31 May 2017 06:05:46 +0000 (23:05 -0700)]
Bluetooth: Always scan while on pairing or DevicePicker page

* Modified DeviceListPreferenceFragment to have enable/disable scanning
  methods. In ENABLE state, each onScanningStateChanged(false) will
  restart another round of scanning
* Subclasses of DeviceListPreferenceFragment should call enable/disable
  scanning when scanning is needed for long period of time
* Currently, BluetoothPairingDetail and DevicePickerFragment call
  enableScanning() when Bluetooth is turned ON and call disableScanning
  when some device is picked in their lists
* Both BluetoothPairingDetail and DevicePickerFragment will re-enable
  scanning if pairing failed for selected device
* Added associated unit tests as well

Bug: 32172815
Test: make, pair Bluetooth device, send file over Bluetooth Opp
Change-Id: I99325e06aadd7b00e7a7ba6d6c282a6831859d8b

7 years agoMisc layout fixes
Fan Zhang [Sun, 4 Jun 2017 00:17:27 +0000 (17:17 -0700)]
Misc layout fixes

- Apply entity header effect to battery summary screen.
- BidiWrap wifi ap name is it's correctly displayed in RLT languages
- Remove footer preference layout - settingslib already has one

Fix: 62039146
Fix: 62138362
Fix: 37920219
Test: make RunSettingsRoboTests

Change-Id: Idf1385ee40772c63075e5f81eb039c6da56256ab

7 years agoShow fingerprint text in backup screen lock
Maurice Lam [Thu, 1 Jun 2017 00:55:43 +0000 (17:55 -0700)]
Show fingerprint text in backup screen lock

When setting up fingerprint's backup screen lock, show a different
header text that says
"To use fingerprint, set {PIN/pattern/password}" instead of
"Choose your {PIN/pattern/password}".

Test: Manual. Existing tests pass
Bug: 62187833
Change-Id: If1084e64b99291a0eda63c174793b5a091ab4bae

7 years agoAdd a new Bluetooth device details page
Antony Sargent [Thu, 4 May 2017 22:06:32 +0000 (15:06 -0700)]
Add a new Bluetooth device details page

Bug: 35877479
Test: make RunSettingsRoboTests

The existing behavior is to bring up a dialog with Bluetooth device
details with checkboxes for each supported profile. This adds a new page
that serves the same purpose with a switch for each profile and a footer
containing the MAC address.

Whether to use the new page or old dialog is controlled by a flag
accessible via BluetoothFeatureProvider.

Change-Id: I026c363d4cd33932a84017a67cbef51c258bad10

7 years agoMerge "Use new time format in BatteryInfo"
Lei Yu [Mon, 5 Jun 2017 17:19:04 +0000 (17:19 +0000)]
Merge "Use new time format in BatteryInfo"

7 years agorelease-request-703268f3-975f-4a98-83d7-cbf58019eda0-for-git_oc-mr1-release-4067152...
android-build-team Robot [Sun, 4 Jun 2017 07:30:12 +0000 (07:30 +0000)]
release-request-703268f3-975f-4a98-83d7-cbf58019eda0-for-git_oc-mr1-release-4067152 snap-temp-L75700000070444922

Change-Id: I7311c89a44a26b69a6176980220029a64c8ecd7d

7 years agoMerge "Update suggestion rules and string description"
TreeHugger Robot [Sun, 4 Jun 2017 03:24:51 +0000 (03:24 +0000)]
Merge "Update suggestion rules and string description"

7 years agoUpdate suggestion rules and string description
Fan Zhang [Sat, 3 Jun 2017 22:24:11 +0000 (15:24 -0700)]
Update suggestion rules and string description

Change-Id: I55025094b9a0e71710db726bcf7fc810a3705c65
Fix: 62262851
Fix: 62283797
Test: make RunSettingsRoboTests

7 years agoMerge "Merge "ConditionManager: don't crash when trying to add unexpected condition...
Android Build Merger (Role) [Sun, 4 Jun 2017 00:10:35 +0000 (00:10 +0000)]
Merge "Merge "ConditionManager: don't crash when trying to add unexpected condition" am: 46f7199cb1 am: 6270dce2cd am: 7151be926d am: ecc7355bde"

7 years agoMerge "Add a suggestion: showing new device features"
TreeHugger Robot [Sun, 4 Jun 2017 00:10:30 +0000 (00:10 +0000)]
Merge "Add a suggestion: showing new device features"

7 years agoMerge "ConditionManager: don't crash when trying to add unexpected condition" am...
Thecrazyskull [Sun, 4 Jun 2017 00:10:11 +0000 (00:10 +0000)]
Merge "ConditionManager: don't crash when trying to add unexpected condition" am: 46f7199cb1 am: 6270dce2cd am: 7151be926d
am: ecc7355bde

Change-Id: Ic422ded3965a9f8bc3cafb7cbf0b1e4585142672

7 years agoMerge "ConditionManager: don't crash when trying to add unexpected condition" am...
Thecrazyskull [Sun, 4 Jun 2017 00:04:25 +0000 (00:04 +0000)]
Merge "ConditionManager: don't crash when trying to add unexpected condition" am: 46f7199cb1 am: 6270dce2cd
am: 7151be926d

Change-Id: I16805427f0d053c6d1c5975275f00cb0ed1c9cbb

7 years agoMerge "ConditionManager: don't crash when trying to add unexpected condition" am...
Thecrazyskull [Sun, 4 Jun 2017 00:00:25 +0000 (00:00 +0000)]
Merge "ConditionManager: don't crash when trying to add unexpected condition" am: 46f7199cb1
am: 6270dce2cd

Change-Id: Ie8ce734935d9950c515675710772aa5f3c80c988

7 years agoMerge "ConditionManager: don't crash when trying to add unexpected condition"
Thecrazyskull [Sat, 3 Jun 2017 23:55:52 +0000 (23:55 +0000)]
Merge "ConditionManager: don't crash when trying to add unexpected condition"
am: 46f7199cb1

Change-Id: Ifd9394c6da48a88ddb6f59ead3db1c93519a70ac

7 years agoMerge "ConditionManager: don't crash when trying to add unexpected condition"
Treehugger Robot [Sat, 3 Jun 2017 23:49:37 +0000 (23:49 +0000)]
Merge "ConditionManager: don't crash when trying to add unexpected condition"

7 years agoMerge "Sometime, Settings app crash when AllowBindAppWidgetActivity closing" am:...
Mikhail Malakhov [Sat, 3 Jun 2017 22:31:29 +0000 (22:31 +0000)]
Merge "Sometime, Settings app crash when AllowBindAppWidgetActivity closing" am: c7697e9b8a am: 933cdd5503 am: 0730393097
am: 38382a44b0

Change-Id: I845582c9c044cab4a2abfdf19ee6ca5f037de4cb

7 years agoMerge "Sometime, Settings app crash when AllowBindAppWidgetActivity closing" am:...
Mikhail Malakhov [Sat, 3 Jun 2017 22:24:50 +0000 (22:24 +0000)]
Merge "Sometime, Settings app crash when AllowBindAppWidgetActivity closing" am: c7697e9b8a am: 933cdd5503
am: 0730393097

Change-Id: Ia65d7c966350dac44a1d15a5781d051df8d464cd

7 years agoMerge "Sometime, Settings app crash when AllowBindAppWidgetActivity closing" am:...
Mikhail Malakhov [Sat, 3 Jun 2017 22:20:48 +0000 (22:20 +0000)]
Merge "Sometime, Settings app crash when AllowBindAppWidgetActivity closing" am: c7697e9b8a
am: 933cdd5503

Change-Id: I0fbdadf1b42543936f3ed657b52da23978a0fe16

7 years agoMerge "Sometime, Settings app crash when AllowBindAppWidgetActivity closing"
Mikhail Malakhov [Sat, 3 Jun 2017 22:16:48 +0000 (22:16 +0000)]
Merge "Sometime, Settings app crash when AllowBindAppWidgetActivity closing"
am: c7697e9b8a

Change-Id: Ic9bdabec50ba8b72656c0d5fc0b56551ad3a46cb

7 years agoMerge "Sometime, Settings app crash when AllowBindAppWidgetActivity closing"
Treehugger Robot [Sat, 3 Jun 2017 22:11:11 +0000 (22:11 +0000)]
Merge "Sometime, Settings app crash when AllowBindAppWidgetActivity closing"

7 years agoMerge "Move strings to SettingsLib so TV can use them" into oc-dev am: 685041559a
Tony Mantler [Sat, 3 Jun 2017 22:05:21 +0000 (22:05 +0000)]
Merge "Move strings to SettingsLib so TV can use them" into oc-dev am: 685041559a
am: ea71adb730  -s ours

Change-Id: Id876c24798a8f1a95e39915be3f6201ac0c9103a

7 years agoMerge "Move strings to SettingsLib so TV can use them" into oc-dev
Tony Mantler [Sat, 3 Jun 2017 22:00:17 +0000 (22:00 +0000)]
Merge "Move strings to SettingsLib so TV can use them" into oc-dev
am: 685041559a

Change-Id: I9ff3757e28b82caac7d83394f3734eee040a7b00

7 years agoAdd a suggestion: showing new device features
Fan Zhang [Thu, 1 Jun 2017 00:47:37 +0000 (17:47 -0700)]
Add a suggestion: showing new device features

- New suggestion activity
- Removed useless api SuggestionFeatureProvider.isPresent().

- Also updated support activity search indexing icon and summary

Change-Id: Ib52cf26a985f57bf0aac918606b10f75bd024639
Fix: 62034077
Fix: 62196070
Test: make RunSettingsRoboTests

7 years agoMerge "Move strings to SettingsLib so TV can use them" into oc-dev
TreeHugger Robot [Sat, 3 Jun 2017 21:40:51 +0000 (21:40 +0000)]
Merge "Move strings to SettingsLib so TV can use them" into oc-dev

7 years agoMerge "Combine settings suggestion and condition."
TreeHugger Robot [Sat, 3 Jun 2017 18:49:53 +0000 (18:49 +0000)]
Merge "Combine settings suggestion and condition."

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 3 Jun 2017 18:04:01 +0000 (11:04 -0700)]
Import translations. DO NOT MERGE

Change-Id: I3a1b048bab26b99a535ccdb42ab21002935a5fa0
Auto-generated-cl: translation import

7 years agoMerge "Move strings to SettingsLib so TV can use them"
TreeHugger Robot [Sat, 3 Jun 2017 04:29:26 +0000 (04:29 +0000)]
Merge "Move strings to SettingsLib so TV can use them"

7 years agoConditionManager: don't crash when trying to add unexpected condition
Thecrazyskull [Thu, 2 Mar 2017 19:55:59 +0000 (14:55 -0500)]
ConditionManager: don't crash when trying to add unexpected condition

* Instead, just don't add the unexpected condition

Test: none

Change-Id: Id768d54e90fac6cbbfdca514e769cb3b331fbc46

7 years agoMerge "String update for setup wizard"
TreeHugger Robot [Fri, 2 Jun 2017 22:33:56 +0000 (22:33 +0000)]
Merge "String update for setup wizard"

7 years agoUse new time format in BatteryInfo
jackqdyulei [Fri, 2 Jun 2017 20:15:12 +0000 (13:15 -0700)]
Use new time format in BatteryInfo

1. Using "h" and "m" instead of "hrs" and "min"
2. Refactor the string to CharSequence so it won't have
TTS issue(i.e read "m" as "meter")
3. Update tests related to this part.

Bug: 37201139
Test: RunSettingsRoboTests
Change-Id: I9cadb511572b2d522d26ab337c171fa69da87475

7 years agoMove strings to SettingsLib so TV can use them
Tony Mantler [Fri, 26 May 2017 20:34:14 +0000 (13:34 -0700)]
Move strings to SettingsLib so TV can use them

Bug: 38496265
Test: Compiles
Change-Id: Iea90cbcf858cd598af4adc017e673e299a62ed39
Merged-In: Iea90cbcf858cd598af4adc017e673e299a62ed39

7 years agoMerge "Add strings to use in Bluetooth device forget confirmation"
TreeHugger Robot [Fri, 2 Jun 2017 22:01:55 +0000 (22:01 +0000)]
Merge "Add strings to use in Bluetooth device forget confirmation"

7 years agoCombine settings suggestion and condition.
Doris Ling [Thu, 11 May 2017 23:27:54 +0000 (16:27 -0700)]
Combine settings suggestion and condition.

- Add a flag in dashboard feature provider to specify whether to use the
combined UI for suggestions and conditions.
- Move Conditions below Suggestions.
- Add dashboard entity for condition and suggestion container, and
  wrap the condition and suggestion list inside the container. The
  container itself will be a single dashboard item, and within it will
  be the list of suggestion or condition.
- Add suggestion/condition header that will show the combined info for
  the conditions and suggestion data, and have the expand button to
  control expanding both the suggestion and condition list.
- Change the individual condition card to be always expanded, and
remove the logic to collapse/expand individual condition card.
- Remove the divider between the action button and condition detail
  within each condition card.
- Add suggestion/condition footer for collapsing the whole suggestion and
  condition list.

Bug: 37645754
Test: make RunSettingsRoboTests
Change-Id: I86df75f7e4551778f79d730851c03121fd0dcbdf

7 years agoMove strings to SettingsLib so TV can use them
Tony Mantler [Fri, 26 May 2017 20:34:14 +0000 (13:34 -0700)]
Move strings to SettingsLib so TV can use them

Bug: 38496265
Test: Compiles
Change-Id: Iea90cbcf858cd598af4adc017e673e299a62ed39

7 years agoMerge "Updating the search ranking API and some improvements:"
TreeHugger Robot [Fri, 2 Jun 2017 20:49:26 +0000 (20:49 +0000)]
Merge "Updating the search ranking API and some improvements:"

7 years agoMerge "wifi: use WifiSavedConfigUtils to retrieve saved configurations" into oc-dev...
Peter Qiu [Fri, 2 Jun 2017 20:45:36 +0000 (20:45 +0000)]
Merge "wifi: use WifiSavedConfigUtils to retrieve saved configurations" into oc-dev am: 7eeca4b052
am: d8895787c9

Change-Id: I4a8f9ed8661f9af6105456c3a0d681373768dc40

7 years agoMerge "wifi: use WifiSavedConfigUtils to retrieve saved configurations" into oc-dev
Peter Qiu [Fri, 2 Jun 2017 20:38:58 +0000 (20:38 +0000)]
Merge "wifi: use WifiSavedConfigUtils to retrieve saved configurations" into oc-dev
am: 7eeca4b052

Change-Id: I5a8daed2e821623aaa953ccf256808776f7febdd

7 years agoMerge "wifi: use WifiSavedConfigUtils to retrieve saved configurations" into oc-dev
TreeHugger Robot [Fri, 2 Jun 2017 20:25:12 +0000 (20:25 +0000)]
Merge "wifi: use WifiSavedConfigUtils to retrieve saved configurations" into oc-dev

7 years agoMerge "Restart loader in onResume" into oc-dev am: 74ca6aa060
Lei Yu [Fri, 2 Jun 2017 19:32:08 +0000 (19:32 +0000)]
Merge "Restart loader in onResume" into oc-dev am: 74ca6aa060
am: 64c87589c5  -s ours

Change-Id: I8f00cfce679daa7e2e3e20589b21c109ab35f35c

7 years agoMerge "Restart loader in onResume" into oc-dev
Lei Yu [Fri, 2 Jun 2017 19:29:09 +0000 (19:29 +0000)]
Merge "Restart loader in onResume" into oc-dev
am: 74ca6aa060

Change-Id: I4cc76a8eeee55335bd6a4ab7d6870084ec609f9b

7 years agoMerge "Restart loader in onResume" into oc-dev
Lei Yu [Fri, 2 Jun 2017 19:21:27 +0000 (19:21 +0000)]
Merge "Restart loader in onResume" into oc-dev

7 years agoUpdating the search ranking API and some improvements:
Soroosh Mariooryad [Thu, 20 Apr 2017 21:20:05 +0000 (14:20 -0700)]
Updating the search ranking API and some improvements:

- Ranking API is modified to run the ranking asynchronous to the main thread.
Therefore, it can now run in parallel to loading the results from DB
which decreases the overall latency.
- Ranking API now supports reporting failure from the ranker
implementation side.
- Settings that are not ranked by the ranker algorithm are now ranked at
the end of the list. This is added for dynamic settings (e.g., apps).
- Failure handling mechanism is added for cases that ranker catches an
exception or it takes a long time to respond.

Bug: 37312700
Fixes: 36866337
Fixes: 36867476
Fixes: 36866736
Fixes: 36866838

Test: RunSettingsRoboTests

Change-Id: I3a2a97e3a07a8d4afbb090061d92172a27588ee7

7 years agoMerge "Delay adding app settings link until data fetch returns, to avoid reordering...
Alison Cichowlas [Fri, 2 Jun 2017 18:52:33 +0000 (18:52 +0000)]
Merge "Delay adding app settings link until data fetch returns, to avoid reordering/visible misplaced "additional settings in the app" during transition." into oc-dev am: e811873b4e
am: f62c6372e8

Change-Id: Ic1434ccc7a4ec01957a7d1219fa5cf6cc1f84948

7 years agoMerge "Always returning the updated preference summary"
Suprabh Shukla [Fri, 2 Jun 2017 18:51:09 +0000 (18:51 +0000)]
Merge "Always returning the updated preference summary"

7 years agoMerge "Delay adding app settings link until data fetch returns, to avoid reordering...
Alison Cichowlas [Fri, 2 Jun 2017 18:49:29 +0000 (18:49 +0000)]
Merge "Delay adding app settings link until data fetch returns, to avoid reordering/visible misplaced "additional settings in the app" during transition." into oc-dev
am: e811873b4e

Change-Id: Ia4def66e47faf702c22a4e3aba04d52965052aa8

7 years agoMerge "Delay adding app settings link until data fetch returns, to avoid reordering...
TreeHugger Robot [Fri, 2 Jun 2017 18:42:24 +0000 (18:42 +0000)]
Merge "Delay adding app settings link until data fetch returns, to avoid reordering/visible misplaced "additional settings in the app" during transition." into oc-dev

7 years agoMerge "Simplify InlineSwitchPayloads and generalize get/set method"
TreeHugger Robot [Fri, 2 Jun 2017 18:06:47 +0000 (18:06 +0000)]
Merge "Simplify InlineSwitchPayloads and generalize get/set method"

7 years agoRestart loader in onResume
jackqdyulei [Thu, 1 Jun 2017 01:03:09 +0000 (18:03 -0700)]
Restart loader in onResume

We need to refresh batterystatsHelper in onResume, so we need to
call restartLoader instead of initLoader

Bug: 62237848
Test: RunSettingsRoboTests
Change-Id: I6f7e1b57b945c92d34587ca24db192600e7f797f
Merged-In: I6f7e1b57b945c92d34587ca24db192600e7f797f

7 years agowifi: use WifiSavedConfigUtils to retrieve saved configurations
Peter Qiu [Wed, 31 May 2017 17:19:42 +0000 (10:19 -0700)]
wifi: use WifiSavedConfigUtils to retrieve saved configurations

Bug: 62048284
Test: manual test
Change-Id: Ib1719af1b256020bbf57d07ebe8c29ac1c460c1a

7 years agoMerge "Refine the ProgressCategory" into oc-dev am: 5f4f1b81af
Lei Yu [Fri, 2 Jun 2017 17:16:53 +0000 (17:16 +0000)]
Merge "Refine the ProgressCategory" into oc-dev am: 5f4f1b81af
am: f2379e2ed3

Change-Id: Ibc809ffa4740e9f4a51975c4cdc94b5ff3f4643a

7 years agoMerge "Refine the ProgressCategory" into oc-dev
Lei Yu [Fri, 2 Jun 2017 17:13:55 +0000 (17:13 +0000)]
Merge "Refine the ProgressCategory" into oc-dev
am: 5f4f1b81af

Change-Id: I2b0fda608b8fe33eaa8ba6e7580c3becc1ebad71

7 years agoMerge "Refine the ProgressCategory" into oc-dev
Lei Yu [Fri, 2 Jun 2017 17:08:43 +0000 (17:08 +0000)]
Merge "Refine the ProgressCategory" into oc-dev

7 years agoMerge "Disallow buzz/beep/disturb changes for notifications with locked importance...
Alison Cichowlas [Fri, 2 Jun 2017 17:02:30 +0000 (17:02 +0000)]
Merge "Disallow buzz/beep/disturb changes for notifications with locked importance." into oc-dev am: 3efc502840
am: 5698552021

Change-Id: Ib0a9db86ea0191c4cd487842eb9ce49b9e6db2e0

7 years agoMerge "Disallow buzz/beep/disturb changes for notifications with locked importance...
Alison Cichowlas [Fri, 2 Jun 2017 16:56:59 +0000 (16:56 +0000)]
Merge "Disallow buzz/beep/disturb changes for notifications with locked importance." into oc-dev
am: 3efc502840

Change-Id: Ib9006beaec685ef91583278585c9522f995d3c09

7 years agoMerge "Disallow buzz/beep/disturb changes for notifications with locked importance...
TreeHugger Robot [Fri, 2 Jun 2017 16:46:51 +0000 (16:46 +0000)]
Merge "Disallow buzz/beep/disturb changes for notifications with locked importance." into oc-dev

7 years agoMerge "Add group name into channel summary, if applicable." into oc-dev am: 4b29f593f0
Alison Cichowlas [Fri, 2 Jun 2017 16:37:50 +0000 (16:37 +0000)]
Merge "Add group name into channel summary, if applicable." into oc-dev am: 4b29f593f0
am: b143e15dd1  -s ours

Change-Id: I74811fefac1d831c4f851bfa783b1e0aee20f41a

7 years agoMerge "Add group name into channel summary, if applicable." into oc-dev
Alison Cichowlas [Fri, 2 Jun 2017 15:48:25 +0000 (15:48 +0000)]
Merge "Add group name into channel summary, if applicable." into oc-dev
am: 4b29f593f0

Change-Id: Ia4c0c9a506894033471b563f89e02a35cbf25601

7 years agoMerge "Add group name into channel summary, if applicable." into oc-dev
Alison Cichowlas [Fri, 2 Jun 2017 15:39:44 +0000 (15:39 +0000)]
Merge "Add group name into channel summary, if applicable." into oc-dev

7 years agoSimplify InlineSwitchPayloads and generalize get/set method
Matthew Fritze [Tue, 23 May 2017 16:42:33 +0000 (09:42 -0700)]
Simplify InlineSwitchPayloads and generalize get/set method

InlineSwitchPayload now assumes that all switches will be
stored as 1 or 0, which simplifies the code.

Moves Availability into ResultPayload, so that custom
payloads can be created to set/get values which are more
complicated than stotring ints (like bluetooth or DnD),
and give more expressive reasons when unavailable.

Bug: 62022517
Test: make RunSettingsRoboTests
Change-Id: I87e6fc041bfd398e7daf6e6e479d502930d36f0f

7 years agoHide "Changes made by your organization's admin" when empty am: 493495452a
Bartosz Fabianowski [Fri, 2 Jun 2017 13:34:12 +0000 (13:34 +0000)]
Hide "Changes made by your organization's admin" when empty am: 493495452a
am: 98b216dc05  -s ours

Change-Id: Icd55cf9ce8a18578be783d057bd92a8ebdf639e0

7 years agoHide "Changes made by your organization's admin" when empty
Bartosz Fabianowski [Fri, 2 Jun 2017 13:30:12 +0000 (13:30 +0000)]
Hide "Changes made by your organization's admin" when empty
am: 493495452a

Change-Id: Ided6278456fe5ffdbb843717a1ec7070e7a3d3dc

7 years agoHide "Changes made by your organization's admin" when empty
Bartosz Fabianowski [Thu, 18 May 2017 09:46:38 +0000 (11:46 +0200)]
Hide "Changes made by your organization's admin" when empty

The admin of a manged device can take a number actions that will be
listed in the "Changes made by your organization's admin" section of
Settings. If the admin has not taken any such actions, the section
will be empty and should be hidden. This is accomplished by having a
PreferenceController for the section that observes the state of the
PreferenceControllers inside it.

Bug: 35912953
Test: m RunSettingsRoboTests

Merged-in: Ia95754493ee6c5a19b4aa9731fd56fd558e61849

Change-Id: I82ca00b757001390f9a517b0c07057bdc49dab20

7 years agoHide "Changes made by your organization's admin" when empty
Bartosz Fabianowski [Fri, 2 Jun 2017 08:43:11 +0000 (10:43 +0200)]
Hide "Changes made by your organization's admin" when empty

The admin of a manged device can take a number actions that will be
listed in the "Changes made by your organization's admin" section of
Settings. If the admin has not taken any such actions, the section
will be empty and should be hidden. This is accomplished by having a
PreferenceController for the section that observes the state of the
PreferenceControllers inside it.

Bug: 35912953
Test: m RunSettingsRoboTests

Change-Id: Ia95754493ee6c5a19b4aa9731fd56fd558e61849

7 years agoMerge "Include disabled managed profiles in Accounts page" into oc-dev am: 92f78354f9
Esteban Talavera [Fri, 2 Jun 2017 08:42:50 +0000 (08:42 +0000)]
Merge "Include disabled managed profiles in Accounts page" into oc-dev am: 92f78354f9
am: 42d97f86c2

Change-Id: If2708bc27673b50dfdf7faa3300944d8bdb47b60

7 years agoMerge "Include disabled managed profiles in Accounts page" into oc-dev
Esteban Talavera [Fri, 2 Jun 2017 08:38:51 +0000 (08:38 +0000)]
Merge "Include disabled managed profiles in Accounts page" into oc-dev
am: 92f78354f9

Change-Id: I3dc5fd6bb4c7466b204946db179b10d9a3c9ccdf

7 years agoMerge "Include disabled managed profiles in Accounts page" into oc-dev
Esteban Talavera [Fri, 2 Jun 2017 08:33:16 +0000 (08:33 +0000)]
Merge "Include disabled managed profiles in Accounts page" into oc-dev

7 years agoMerge changes from topic 'wifi_detail_jank' into oc-dev am: 0187221bd8
Lorenzo Colitti [Fri, 2 Jun 2017 06:27:13 +0000 (06:27 +0000)]
Merge changes from topic 'wifi_detail_jank' into oc-dev am: 0187221bd8
am: cc347f4e14

Change-Id: Idf82b916ae8121b837b7113af7ab182640124814

7 years agoMerge changes from topic 'wifi_detail_jank' into oc-dev
Lorenzo Colitti [Fri, 2 Jun 2017 06:18:13 +0000 (06:18 +0000)]
Merge changes from topic 'wifi_detail_jank' into oc-dev
am: 0187221bd8

Change-Id: I7873b3f06b40e416b89b44615e9fe28a5b3c7a29

7 years agoMerge changes from topic 'wifi_detail_jank' into oc-dev
TreeHugger Robot [Fri, 2 Jun 2017 06:11:51 +0000 (06:11 +0000)]
Merge changes from topic 'wifi_detail_jank' into oc-dev

* changes:
  Reduce jank in the wifi detail status page.
  Improve testing of IP address display code.

7 years agoVolume can not be updated in Sound&notification am: 8c329af634
Sheng Wang [Fri, 2 Jun 2017 04:32:10 +0000 (04:32 +0000)]
Volume can not be updated in Sound&notification am: 8c329af634
am: d453911e27

Change-Id: I2bfd519b3d52f6e699d2d9a3be4753381821ce25

7 years agoVolume can not be updated in Sound&notification
Sheng Wang [Fri, 2 Jun 2017 04:29:05 +0000 (04:29 +0000)]
Volume can not be updated in Sound&notification
am: 8c329af634

Change-Id: I8031a9bbe82b40e79698e9d6be75bcd85bcde028

7 years agoMerge "Make BatterySettings Asynchronous and use enhanced estimate"
TreeHugger Robot [Fri, 2 Jun 2017 02:48:22 +0000 (02:48 +0000)]
Merge "Make BatterySettings Asynchronous and use enhanced estimate"

7 years agoMerge "Update string for recent apps."
TreeHugger Robot [Fri, 2 Jun 2017 02:39:30 +0000 (02:39 +0000)]
Merge "Update string for recent apps."

7 years agoMerge "Check for null mReadOnlyApnTypes."
TreeHugger Robot [Fri, 2 Jun 2017 01:18:20 +0000 (01:18 +0000)]
Merge "Check for null mReadOnlyApnTypes."

7 years agoMake BatterySettings Asynchronous and use enhanced estimate
Salvador Martinez [Tue, 30 May 2017 18:18:09 +0000 (11:18 -0700)]
Make BatterySettings Asynchronous and use enhanced estimate

this CL changes BatteryInfo methods to all use the async style
callback approach it had for one of the methods. Non-async methods
are now annotated to only be used in worker threads. BatteryInfo
can now be obtained via callback by calling one of the async
methods. Alternatively if there is a worker thread available
the synchronous methods similar to the old ones can be used.

The callback methods have all been changed so that they cascade to a
async method that takes all the required info as paremeters. This
will minimize the amount of churn in files that currently use
BatteryInfo.

A new loader was created that can be used to get BatteryInfo in
places that wish to get it. This loader is used in
PowerUsageSummary to get the BatteryInfo.

Test: Robotests
Bug: 38399275
Bug: 38398949
Bug: 38399654
Change-Id: Ic5a82d8ca4c85fad1b883226327ec083badf861d

7 years agoUpdate string for recent apps.
Doris Ling [Fri, 2 Jun 2017 00:22:37 +0000 (17:22 -0700)]
Update string for recent apps.

Bug: 62273254
Test: builds
Change-Id: I57a06b4bdfaa9c41636baeddcb94c71bf4518ebc

7 years agoMerge "Volume can not be updated in Sound&notification" am: c0fdbab185 am: 161e3d14e1...
Sheng Wang [Fri, 2 Jun 2017 00:57:09 +0000 (00:57 +0000)]
Merge "Volume can not be updated in Sound&notification" am: c0fdbab185 am: 161e3d14e1 am: 9dbd34a3d9
am: 61a420df95

Change-Id: I0ed31e1c4e8b1a74a2aca2288876ca57f05ca79c

7 years agoMerge "Don't index High usage summary"
TreeHugger Robot [Fri, 2 Jun 2017 00:41:10 +0000 (00:41 +0000)]
Merge "Don't index High usage summary"

7 years agoMerge "Restart loader in onResume"
TreeHugger Robot [Fri, 2 Jun 2017 00:32:22 +0000 (00:32 +0000)]
Merge "Restart loader in onResume"

7 years agoMerge "Volume can not be updated in Sound&notification" am: c0fdbab185 am: 161e3d14e1
Sheng Wang [Fri, 2 Jun 2017 00:27:56 +0000 (00:27 +0000)]
Merge "Volume can not be updated in Sound&notification" am: c0fdbab185 am: 161e3d14e1
am: 9dbd34a3d9

Change-Id: I50a30452b6e0162070960ffdc35197ddef785609

7 years agoMerge "Volume can not be updated in Sound&notification" am: c0fdbab185
Sheng Wang [Fri, 2 Jun 2017 00:25:17 +0000 (00:25 +0000)]
Merge "Volume can not be updated in Sound&notification" am: c0fdbab185
am: 161e3d14e1

Change-Id: Ie08f168cc2bf544d1f44a05f100a47d50ae15dd5