Commit Graph

309172 Commits

Author SHA1 Message Date
Jeremy Joslin
f5e4912fa2 Merge changes I6ff80178,I03875cf1,I8d210b68
am: 5d942c1352

Change-Id: I6f56b3fa03de6d848ca92693f43ba80ede33a0f2
2017-01-19 23:05:10 +00:00
Jeremy Joslin
820ad03ba8 New setting for recommendation request timeout.
am: 44e2b84b27

Change-Id: I8fd6e0c75d22d0f83db414a389c4d8caaf745469
2017-01-19 23:05:02 +00:00
Jeremy Joslin
08031e0d0e Implemented the async recommendation request call.
am: bc1308a3be

Change-Id: I8cd3365a053527c8f4da6c35b1c646281eda74be
2017-01-19 23:03:56 +00:00
Jeremy Joslin
c9d378e212 Async network recommendation requests.
am: cb925074d3

Change-Id: I9e3ac1f778d6e9bfe817225423f80540230633e3
2017-01-19 23:03:06 +00:00
Treehugger Robot
f604580a58 Merge "Replace the RequestRecommendationCaller if the timeout changes." 2017-01-19 23:02:53 +00:00
Treehugger Robot
5d942c1352 Merge changes I6ff80178,I03875cf1,I8d210b68
* changes:
  New setting for recommendation request timeout.
  Implemented the async recommendation request call.
  Async network recommendation requests.
2017-01-19 22:55:16 +00:00
Kazuki Kobayashi
4ea4f63d28 Merge "Fix clipping for date and time on QS" am: a5f968806e am: 6cad668a25 am: 8bf5945c3f
am: 02e50306f9

Change-Id: Ifa97ccb8a26ef547871a520a81ebe20820ed5bcc
2017-01-19 22:40:10 +00:00
Kazuki Kobayashi
02e50306f9 Merge "Fix clipping for date and time on QS" am: a5f968806e am: 6cad668a25
am: 8bf5945c3f

Change-Id: Ia811eba9511d385e74668a97db11df3b8d0e9315
2017-01-19 22:35:02 +00:00
Kazuki Kobayashi
8bf5945c3f Merge "Fix clipping for date and time on QS" am: a5f968806e
am: 6cad668a25

Change-Id: I19ae46145d788db06e64b1b1737b7c30ae53f7f0
2017-01-19 22:30:05 +00:00
Kazuki Kobayashi
6cad668a25 Merge "Fix clipping for date and time on QS"
am: a5f968806e

Change-Id: I75c89c14ba9fe723ce47bff9061c716aee225735
2017-01-19 22:25:23 +00:00
Treehugger Robot
a5f968806e Merge "Fix clipping for date and time on QS" 2017-01-19 22:17:35 +00:00
Shreyas Basarge
38e7486d38 Non incremental backup flag for requestBackup
This cl adds a new requestBackup API to
BackupManager that takes in an int flag
to indicate whether the caller wants the
entire key value set to be passed to the
transport and not just a diff.

Change-Id: Ia225797a58c4431fe742f2f116b257d006b30cd1

Bug: 33749084
Ref: go/request-backup-api-changes
Test: GTS Test at ag/1774002
2017-01-19 22:13:01 +00:00
Keyvan Amiri
4779e9970e Merge "Fixed the text styling for framework SeekBarPrefenrece" 2017-01-19 21:56:30 +00:00
Fan Zhang
59d488a136 Change default settings theme to light color.
- Use standard light theme as parent for Theme.DeviceDefault.Settings.
- Revert Theme.DeviceDefault.Settings.LightActionBar in favor of
  standard action bar theme

Bug: 33558692
Test: visual
Change-Id: I78542b716315e03060ab9157bc850f54cc316b00
2017-01-19 13:53:28 -08:00
TreeHugger Robot
b6ea3988a0 Merge "Fix up the tests." 2017-01-19 21:52:36 +00:00
TreeHugger Robot
f54bbe0868 Merge "Add Wi-Fi friction icons to AccessPointPreference." 2017-01-19 21:52:00 +00:00
Soonil Nagarkar
7decfb6b76 Add background location throttling to LocationManagerService
Test: manual tests
Change-Id: I27f060d2f5338a8750dcbe5cbe4cfadb4edb0464
2017-01-19 13:41:30 -08:00
Rebecca Silberstein
f96e22429c Merge "SystemServer: cherry-pick p2p service start" am: 4c937464eb am: 392f7d789c am: d3ff73eba4
am: da4ea530ee  -s ours

Change-Id: I4ecfb90df65dd582f2432d7c5705a4e8a555bd40
2017-01-19 21:41:02 +00:00
Rebecca Silberstein
da4ea530ee Merge "SystemServer: cherry-pick p2p service start" am: 4c937464eb am: 392f7d789c
am: d3ff73eba4

Change-Id: I9427fd6c760c58c6caf65800fbbfbaf2c35e3335
2017-01-19 21:36:03 +00:00
Jeremy Joslin
88f50a5a08 Have requestRecommendation return a CompletableFuture.
Reworked the new requestRecommendation call to return a
CompletableFuture instead of using a custom callback.

Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Bug: 33784158
Change-Id: Ib12f0674d45ad6e2e21449bc3665467b3c20f49d
Merged-In: If24a94eb6289cb1952052b2cc3bc7856ce2192a5
2017-01-19 13:31:16 -08:00
Rebecca Silberstein
d3ff73eba4 Merge "SystemServer: cherry-pick p2p service start" am: 4c937464eb
am: 392f7d789c

Change-Id: I737b1307f4c42b8c88974418e3b6dab6b117509f
2017-01-19 21:31:06 +00:00
Aurimas Liutikas
7149a63961 Port RecyclerView to com.android.internal.widget.RecyclerView
Change-Id: I5d5912fee6f736bfc93d28ad53fc35e22be953c3
2017-01-19 13:26:36 -08:00
Rebecca Silberstein
392f7d789c Merge "SystemServer: cherry-pick p2p service start"
am: 4c937464eb

Change-Id: I6f851c4e157150cab541d9a991cc1b7fe736eb7c
2017-01-19 21:26:00 +00:00
Jeremy Joslin
8b9226b487 Replace the RequestRecommendationCaller if the timeout changes.
The timeout associated with a TimedRemoteCaller can't be changed
after creation so we have to create a new instance anytime the
timeout changes (which shouldn't be too often). The instance is
stored and retrieved from an AtomicReference to avoid concurrency
issues.

Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Bug: 34060959
Change-Id: I52f5d617feb9b3536ff3474b5d032113e3caea5c
Merged-In: I1662ac27f7442a16d2ffd7257469f1983b7f0e5c
2017-01-19 13:25:50 -08:00
Rebecca Silberstein
4c937464eb Merge "SystemServer: cherry-pick p2p service start" 2017-01-19 21:21:23 +00:00
Jeremy Joslin
44e2b84b27 New setting for recommendation request timeout.
Added a new global setting, NETWORK_RECOMMENDATION_REQUEST_TIMEOUT_MS,
to control the maximum amount of time a recommendation request can
take.

Updated the NetworkScoreService to monitor the value and to update
its cached copy on observed changes.

Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Bug: 34060959
Change-Id: I6ff80178440794e4a5da39ee7b5164621316e7bd
Merged-In: I7650ee024e53dbc856cf20d7520a6eb252c73bdf
2017-01-19 13:18:22 -08:00
Jeremy Joslin
bc1308a3be Implemented the async recommendation request call.
Implemented requestAsyncRecommendation() by introducing a Handler
implementation to handle requests that time out and a OneTimeCallback
class to prevent multiple callbacks from being sent back for the same
request.

Change-Id: I03875cf1d789cbc92aa4c6b500c6b519bff8e165
Merged-In: Ida2ff860d78d86185ab9ab22232b5b6dc1e4b310
Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
BUG:33784158
2017-01-19 13:18:21 -08:00
Jeremy Joslin
cb925074d3 Async network recommendation requests.
Exposing a new hidden API method that allows network recommendations
to be requested asynchronously.

Test: Built & run.
BUG:33784158
Change-Id: I8d210b686138cb42bf69185f0b2f2d25dfcb9dd1
Merged-In: I8f84b09f43a6c5fae5d8f03ec01e75c25b4b62d6
2017-01-19 13:18:21 -08:00
Siyamed Sinir
051caedcaa Fix SpannableStringBuilder getSpans sort
Sort function was broken for odd number of elements.

Test: Added new CTS tests.

Bug: 33567024
Change-Id: I7457dee6ac279c6aab5b92431b347dc1f16a8fa0
2017-01-19 13:10:36 -08:00
Torbjorn Eklund
3ff6c5659d Vodafone SIMs should treat Spain as roaming
Since there are unnecessary "config_operatorConsideredNonRoaming" values
in the following file, UE mistakenly recognizes all Spain network as
non-roaming when Vodafone sim from Spain is inserted. Fix the issue by
removing the values.
 - core/res/res/values-mcc214-mnc01/config.xml

Bug: 30147413
Change-Id: I75b3f4a112a625a80824516bb6ea06a43a4567da
2017-01-20 06:06:28 +09:00
Winson Chung
a0ad738594 Merge changes Iabb33606,I3c364ebe
* changes:
  Falling back to media session controls.
  Move activity to fullscreen stack when it is relaunched in PIP.
2017-01-19 20:50:48 +00:00
Jason Monk
a075479746 Merge "Fix crash from AssistManager" 2017-01-19 20:39:16 +00:00
Jason Monk
71d635251e Merge "Fix nav bar visibility on lock screen" 2017-01-19 20:37:52 +00:00
Stephen Chen
2c096596b7 Add Wi-Fi friction icons to AccessPointPreference.
Friction icons are added to the end of the Wi-Fi picker list items to
provide visual information such as whether a network is secured, or saved.
The first two badges added are a lock icon to indicate a secure network, and
an open lock to indicate a saved network that is also secure.

Test: manual inspection
Bug: 34281330
Change-Id: I04ce9bc4a5bd245398d5f3b308ccb30b7cf58270
2017-01-19 12:35:35 -08:00
TreeHugger Robot
699fd45347 Merge "Update Account Manager to use latest version of account discovery API." 2017-01-19 20:17:22 +00:00
Jason Monk
21380738ea Fix up the tests.
They got broken because the pre-submits were broken :(

Test: runtest systemui
Change-Id: I45d5b2d3e8614cd1d3fa7eb24da57c26588120ff
2017-01-19 15:13:31 -05:00
Mark Rathjen
2ce3bf3ed7 Merge "Fix NPE in SettingsProvider." 2017-01-19 20:12:24 +00:00
TreeHugger Robot
b4fb0ca6b5 Merge "Workaround for leaked dim layer." 2017-01-19 19:59:21 +00:00
Keyvan Amiri
f8b5f04e5a Fixed the text styling for framework SeekBarPrefenrece
SeekBarPreference provided by framework used the wrong text sizes for
title and summary for both material and non-material layouts. Made the
text appearance consistent with the rest of preference widgets in
framework.
Also note that the framework SeekBarPreference is hidden and cannot
be used externally. The support library version is provided under
v7 preference lib.

Bug: 34068978
Test: Making sure that the text styling matches the rest of framework
preference widgets.

Change-Id: I3947a0bdd995e183e07e73e088916c1a3359ffe0
2017-01-19 11:52:59 -08:00
Jiaquan He
f6ee7f01fe Merge "Add arrow key navigation support to Grid-based Recents." into nyc-mr2-dev am: 683ea24d6e
am: 520e74a2bc

Change-Id: Ib8b9f60b18bca548a1d29c7542edcdbdd21aaeaf
2017-01-19 19:50:35 +00:00
Jiaquan He
f2d9521a35 Add arrow key navigation support to Grid-based Recents. am: c0e1813944
am: 514bbfd880

Change-Id: I076eeea2f035bef9c3c2ec39aa900a3f2e9d585c
2017-01-19 19:49:24 +00:00
Jason Monk
865246dc9a Fix crash from AssistManager
It expects to have onConfiguration called at least once, so
make sure it has.

Test: runtest systemui
Bug: 34377261
Change-Id: Iba980b020ef2c175c7ffebedf946edb282be464c
2017-01-19 14:47:45 -05:00
Jiaquan He
520e74a2bc Merge "Add arrow key navigation support to Grid-based Recents." into nyc-mr2-dev
am: 683ea24d6e

Change-Id: I539d11f61f54df44e8e870be15493dbd2a2042a1
2017-01-19 19:43:59 +00:00
Jiaquan He
514bbfd880 Add arrow key navigation support to Grid-based Recents.
am: c0e1813944

Change-Id: I36781f21274e5c07f2e1e0d2f5d30a20982c4f24
2017-01-19 19:43:50 +00:00
TreeHugger Robot
24800734bc Merge "Remove NetworkScorerAppManager.isCallerActiveScorer()." 2017-01-19 19:43:10 +00:00
TreeHugger Robot
683ea24d6e Merge "Add arrow key navigation support to Grid-based Recents." into nyc-mr2-dev 2017-01-19 19:36:44 +00:00
Jason Monk
e28cd2fa9e Fix nav bar visibility on lock screen
StatusBarKeyguardViewManager was assuming that the navigation bar
was the root view in its window, which it isn't anymore. Add a
getRootView() to ensure it is always the root.

Change-Id: Ifeeecc1ae8d7b6c4235a1ce4767dad3919bf90e6
Fixes: 34452399
Test: lock device, tap on nav bar area
2017-01-19 14:33:05 -05:00
Geoffrey Pitsch
5caa276305 New constructor for Notification.Builder takes a channelId.
Deprecated old constructor to provide a compile-time warning to
use Channels when upgrading to O.

Test: runtest systemui-notification
Change-Id: Iec8bc4257b4de4f601778bf60d77704165770813
2017-01-19 14:32:27 -05:00
TreeHugger Robot
13bfbc9138 Merge "Added NAN temperature value handling to HardwarePropertiesManager." 2017-01-19 19:29:44 +00:00
Fyodor Kupolov
dc7505d048 Tron metric for force stop app
Test: Manual
Bug: 31008660
Change-Id: I2bb72b94ca40be5051d775c3b81187771e90d82f
2017-01-19 11:16:14 -08:00