OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Switch to write_non_chained interface to avoid allocating temp objects."
TreeHugger Robot [Wed, 17 Jan 2018 16:58:00 +0000 (16:58 +0000)]
Merge "Switch to write_non_chained interface to avoid allocating temp objects."

6 years agoMerge "Only have one way of dumping print manager state"
TreeHugger Robot [Wed, 17 Jan 2018 16:44:15 +0000 (16:44 +0000)]
Merge "Only have one way of dumping print manager state"

6 years agoMerge "Add support for secondary text in QS"
TreeHugger Robot [Wed, 17 Jan 2018 16:33:25 +0000 (16:33 +0000)]
Merge "Add support for secondary text in QS"

6 years agoMerge changes from topic "remote_animations"
Jorim Jaggi [Wed, 17 Jan 2018 15:59:52 +0000 (15:59 +0000)]
Merge changes from topic "remote_animations"

* changes:
  Remote animations (app-controlled animations)
  Defer hiding clients until animation is done

6 years agoMerge "Implement SmartReplyView"
TreeHugger Robot [Wed, 17 Jan 2018 15:59:01 +0000 (15:59 +0000)]
Merge "Implement SmartReplyView"

6 years agoMerge "Move event logging to TransportClient and add connection event"
Bernardo Rufino [Wed, 17 Jan 2018 15:39:45 +0000 (15:39 +0000)]
Merge "Move event logging to TransportClient and add connection event"

6 years agoMerge "Dispose of TransportClient in updateStateForTransport()"
TreeHugger Robot [Wed, 17 Jan 2018 15:27:28 +0000 (15:27 +0000)]
Merge "Dispose of TransportClient in updateStateForTransport()"

6 years agoMerge "DisplayCutout: Reload displays when resource overlays change"
Adrian Roos [Wed, 17 Jan 2018 15:10:15 +0000 (15:10 +0000)]
Merge "DisplayCutout: Reload displays when resource overlays change"

6 years agoMerge "Make SettingsProvider able to restoreAnyVersion, but only for supported keys"
Michal Karpinski [Wed, 17 Jan 2018 14:54:34 +0000 (14:54 +0000)]
Merge "Make SettingsProvider able to restoreAnyVersion, but only for supported keys"

6 years agoMerge "API Review: Put executor argument before the listener argument for clearApplic...
Alex Chau [Wed, 17 Jan 2018 14:46:03 +0000 (14:46 +0000)]
Merge "API Review: Put executor argument before the listener argument for clearApplicationUserData"

6 years agoMerge "Pass targetSdkVersion to installd" am: 106a915256 am: 77ba6baab5
David Brazdil [Wed, 17 Jan 2018 14:26:05 +0000 (14:26 +0000)]
Merge "Pass targetSdkVersion to installd" am: 106a915256 am: 77ba6baab5
am: 4bf5b7c59e

Change-Id: I919eb49c4610477565cd85912e88ec135317a0b3

6 years agoImplement SmartReplyView
Petr Cermak [Mon, 18 Dec 2017 19:38:04 +0000 (19:38 +0000)]
Implement SmartReplyView

SmartReplyView creates and manages smart reply buttons in a
notification.

One-pager:  http://go/1p-smart-reply
PRD:        http://go/srn-prd
Mocks:      http://go/p-notifications
Design doc: http://go/srn-design

Screenshot: https://screenshot.googleplex.com/GT9NGckkFKB.png

Bug: 67765414
Test: Viewed a notification with mock smart replies
Change-Id: I6d90776571a559a2542aa35fa11e6a21969179c0

6 years agoMerge "Pass targetSdkVersion to installd" am: 106a915256
David Brazdil [Wed, 17 Jan 2018 14:17:59 +0000 (14:17 +0000)]
Merge "Pass targetSdkVersion to installd" am: 106a915256
am: 77ba6baab5

Change-Id: Ic0b3323ee46e0bacffd62bd763da15e3256da783

6 years agoRemote animations (app-controlled animations)
Jorim Jaggi [Fri, 1 Dec 2017 13:58:18 +0000 (14:58 +0100)]
Remote animations (app-controlled animations)

Adds the ability for another app to control an entire app
transition. It does so by creating an ActivityOptions object that
contains a RemoteAnimationAdapter object that describes how the
animation should be run: Along of some meta-data, this object
contains a callback that gets invoked from WM when the transition
is ready to be started.

Window manager supplies a list of RemoteAnimationApps into the
callback. Each app contains information about the app as well as
the animation leash. The controlling app can modify the leash like
any other surface, including the possibility to synchronize
updating the leash's surface properties with a frame to be drawn
using the Transaction.deferUntil API.

When the animation is done, the app can invoke the finished
callback to get WM out of the animating state, which will also
clean up any closing apps.

We use a timeout of 2000ms such that a buggy controlling app can
not break window manager forever (duration subject to change).

Test: go/wm-smoke
Test: RemoteAnimationControllerTest

Bug: 64674361
Change-Id: I34e0c9a91b28badebac74896f95c6390f1b947ab

6 years agoMerge "Pass targetSdkVersion to installd"
David Brazdil [Wed, 17 Jan 2018 14:10:54 +0000 (14:10 +0000)]
Merge "Pass targetSdkVersion to installd"
am: 106a915256

Change-Id: If9622d593591a4a270e0bb1a16ed3a0c91d43f43

6 years agoDispose of TransportClient in updateStateForTransport()
Bernardo Rufino [Wed, 17 Jan 2018 11:21:19 +0000 (11:21 +0000)]
Dispose of TransportClient in updateStateForTransport()

Forgot this one :)

Change-Id: I13126b94ad0272c912a3e1c3d2e8ee06692a1897
Ref: http://go/br-binding-on-demand
Bug: 17140907
Test: m -j RunFrameworksServicesRoboTests
Test: adb shell bmgr transport [-c] <transport>, check connections

6 years agoMerge "Pass targetSdkVersion to installd"
David Brazdil [Wed, 17 Jan 2018 13:42:29 +0000 (13:42 +0000)]
Merge "Pass targetSdkVersion to installd"

6 years agoMerge "WindowAttributes: Remove flags2"
TreeHugger Robot [Wed, 17 Jan 2018 13:23:40 +0000 (13:23 +0000)]
Merge "WindowAttributes: Remove flags2"

6 years agoDefer hiding clients until animation is done
Jorim Jaggi [Thu, 11 Jan 2018 14:43:49 +0000 (15:43 +0100)]
Defer hiding clients until animation is done

This is a preparation for remote animations: We used to set app
visibility state immediately after we started the animation.
However, with remote animations, we'd like to allow them drawing
until the transition is done. For that, we defer hiding the client
until the animation is done.

Instead of special-casing remote animations, we do it for all
apps, as there is no harm in doing so.

Test: Open YouTube, make sure it enters Auto-PIP when pressing
home.
Test: go/wm-smoke
Test: Open trace with open/closing a couple of apps. Make sure
app visibility gets dispatched at the correct time.
Test: WindowStateTests

Bug: 64674361
Change-Id: I8deb6a97ca1c3d8f4a70a6e045f45a6bc16604bb

6 years agoMerge "Add smart reply container to all notification templates"
TreeHugger Robot [Wed, 17 Jan 2018 12:31:49 +0000 (12:31 +0000)]
Merge "Add smart reply container to all notification templates"

6 years agoDisplayCutout: Reload displays when resource overlays change
Adrian Roos [Wed, 17 Jan 2018 11:54:50 +0000 (12:54 +0100)]
DisplayCutout: Reload displays when resource overlays change

This allows the DisplayManager to pick up changes to the
DisplayCutout resource, which is used to implement emulation
of the overlay.

Bug: x
Test: adb shell overlay enable ...; verify cutout is picked up immediately and not only after toggling the display
Change-Id: I0fa2d50366a17231f45990d2d3854321d48653f0

6 years agoMerge "Also inform activity manager that lock task packages changed"
Benjamin Franz [Wed, 17 Jan 2018 10:47:29 +0000 (10:47 +0000)]
Merge "Also inform activity manager that lock task packages changed"

6 years agoMerge "Prevent Closure of Underlying Socket FDs" am: 3cff120fcb am: 31f05d66ca
nharold [Wed, 17 Jan 2018 10:14:43 +0000 (10:14 +0000)]
Merge "Prevent Closure of Underlying Socket FDs" am: 3cff120fcb am: 31f05d66ca
am: cb1e587253

Change-Id: I3ab796cc17d5ee2e4a2c8838bac2ada4831c755f

6 years agoMerge changes from topic "ipsec-oneway-transform" am: 809bcfc45e am: f2074ea62a
nharold [Wed, 17 Jan 2018 10:07:33 +0000 (10:07 +0000)]
Merge changes from topic "ipsec-oneway-transform" am: 809bcfc45e am: f2074ea62a
am: c6021f02b5

Change-Id: I2a90cf423a3ac9a0526831ef767ad019e7be053c

6 years agoMake Transforms Unidirectional am: a25233123b am: f4fc2714c2
Nathan Harold [Wed, 17 Jan 2018 10:03:31 +0000 (10:03 +0000)]
Make Transforms Unidirectional am: a25233123b am: f4fc2714c2
am: 02f8dcad8a

Change-Id: I608be255a307891ec3fe2d97cda817d75240c95c

6 years agoMerge "Prevent Closure of Underlying Socket FDs" am: 3cff120fcb
nharold [Wed, 17 Jan 2018 10:02:51 +0000 (10:02 +0000)]
Merge "Prevent Closure of Underlying Socket FDs" am: 3cff120fcb
am: 31f05d66ca

Change-Id: I1ecac95dc1c4be573d5411a335f94c6a6511d4bd

6 years agoMerge changes from topic "ipsec-oneway-transform" am: 809bcfc45e
nharold [Wed, 17 Jan 2018 09:53:37 +0000 (09:53 +0000)]
Merge changes from topic "ipsec-oneway-transform" am: 809bcfc45e
am: f2074ea62a

Change-Id: I58fe595ff14e3ee6be5191171367e8a2f7fad6da

6 years agoMake Transforms Unidirectional am: a25233123b
Nathan Harold [Wed, 17 Jan 2018 09:50:37 +0000 (09:50 +0000)]
Make Transforms Unidirectional am: a25233123b
am: f4fc2714c2

Change-Id: Ie3ca37e14d977fd255a7791ae3332ddda29ab37e

6 years agoMerge "Prevent Closure of Underlying Socket FDs"
nharold [Wed, 17 Jan 2018 09:47:49 +0000 (09:47 +0000)]
Merge "Prevent Closure of Underlying Socket FDs"
am: 3cff120fcb

Change-Id: I2f8e445f9a12e95cf8d81d63e02fad7ecc17ad36

6 years agoMerge changes from topic "ipsec-oneway-transform"
nharold [Wed, 17 Jan 2018 09:42:03 +0000 (09:42 +0000)]
Merge changes from topic "ipsec-oneway-transform"
am: 809bcfc45e

Change-Id: If98285e2bd41e2eedaf81f1ff0e5f2b2d3827f91

6 years agoMake Transforms Unidirectional
Nathan Harold [Wed, 17 Jan 2018 09:37:57 +0000 (09:37 +0000)]
Make Transforms Unidirectional
am: a25233123b

Change-Id: I7e80c75b3b227fdd16479120d8b7203cc5f28d1c

6 years agoMerge "Disable UpdateService temporarily."
TreeHugger Robot [Wed, 17 Jan 2018 09:29:50 +0000 (09:29 +0000)]
Merge "Disable UpdateService temporarily."

6 years agoMerge "Send library context to ApiFactory"
TreeHugger Robot [Wed, 17 Jan 2018 09:08:30 +0000 (09:08 +0000)]
Merge "Send library context to ApiFactory"

6 years agoMerge "Prevent Closure of Underlying Socket FDs"
nharold [Wed, 17 Jan 2018 08:45:29 +0000 (08:45 +0000)]
Merge "Prevent Closure of Underlying Socket FDs"

6 years agoAdd smart reply container to all notification templates
Petr Cermak [Mon, 18 Dec 2017 14:13:33 +0000 (14:13 +0000)]
Add smart reply container to all notification templates

This is the first step towards adding smart replies to Android
notifications:

One-pager:  http://go/1p-smart-reply
PRD:        http://go/srn-prd
Mocks:      http://go/p-notifications
Design doc: http://go/srn-design

This patch adds a smart_reply_container LinearLayout to all notification
templates. The container is gone by default, so all notifications should
still look the same.

Bug: 67765414
Test: View several notifications and confirm that they look the same
Change-Id: I28d3d078e3b88f6340713e7457744d8f367a567e

6 years agoMerge changes from topic "ipsec-oneway-transform"
nharold [Wed, 17 Jan 2018 08:40:37 +0000 (08:40 +0000)]
Merge changes from topic "ipsec-oneway-transform"

* changes:
  Update IpSecService UnitTests
  Make Transforms Unidirectional

6 years agoMerge "Update threshold state used for deciding if the app is in foreground."
Sudheer Shanka [Wed, 17 Jan 2018 08:04:21 +0000 (08:04 +0000)]
Merge "Update threshold state used for deciding if the app is in foreground."

6 years agoSend library context to ApiFactory
Sungsoo Lim [Wed, 17 Jan 2018 07:26:32 +0000 (16:26 +0900)]
Send library context to ApiFactory

Test: build
Change-Id: I2bfc5ca5cace1a82c5502391b777dd544acdcf69

6 years agoMerge "Update documentation for KEY_CARRIER_NAME_STRING" am: fa6187510a am: 03dafac495
nharold [Wed, 17 Jan 2018 07:07:54 +0000 (07:07 +0000)]
Merge "Update documentation for KEY_CARRIER_NAME_STRING" am: fa6187510a am: 03dafac495
am: 48306e0a06

Change-Id: I6c73af383295d0c53e2b3451d61cfccb1ba2a441

6 years agoMerge "Update documentation for KEY_CARRIER_NAME_STRING" am: fa6187510a
nharold [Wed, 17 Jan 2018 06:59:39 +0000 (06:59 +0000)]
Merge "Update documentation for KEY_CARRIER_NAME_STRING" am: fa6187510a
am: 03dafac495

Change-Id: I3c0e13153a347e6ef79cfee9f00a6ee6694425d9

6 years agoMerge "Update documentation for KEY_CARRIER_NAME_STRING"
nharold [Wed, 17 Jan 2018 06:51:38 +0000 (06:51 +0000)]
Merge "Update documentation for KEY_CARRIER_NAME_STRING"
am: fa6187510a

Change-Id: I50fe5f4ea30b6923e7ca5c0fe3eb62fa9db3dabf

6 years agoMerge "Additional behavior for a11y panes"
Phil Weaver [Wed, 17 Jan 2018 05:44:16 +0000 (05:44 +0000)]
Merge "Additional behavior for a11y panes"

6 years agoMerge "Clear the right uid's alarms, please"
TreeHugger Robot [Wed, 17 Jan 2018 05:34:39 +0000 (05:34 +0000)]
Merge "Clear the right uid's alarms, please"

6 years agoPrevent Closure of Underlying Socket FDs
Nathan Harold [Tue, 16 Jan 2018 20:08:43 +0000 (12:08 -0800)]
Prevent Closure of Underlying Socket FDs

The version of applyTransportModeTransform() and
removeTransportModeTransform() that accepted
Socket and DatagramSocket were closing the underlying
FDs upon return. It's unclear whether this is due to
a behavior change elsewhere in ParcelFileDescriptor,
but either way, converting to using getFileDescriptor$
and then calling dup() explicitly rather than relying
on ParcelFileDescriptor seems like a better idea anyway.

Bug: 72047396
Test: CTS - IpSecManagerTest.testCreateTransform()
Change-Id: Ia2f02564e1289f25bf113dbb861fcfd2240537a7

6 years agoMerge "Adds old API to StatsManager (temporary need)."
TreeHugger Robot [Wed, 17 Jan 2018 04:15:26 +0000 (04:15 +0000)]
Merge "Adds old API to StatsManager (temporary need)."

6 years agoMerge "Update documentation for KEY_CARRIER_NAME_STRING"
nharold [Wed, 17 Jan 2018 03:39:44 +0000 (03:39 +0000)]
Merge "Update documentation for KEY_CARRIER_NAME_STRING"

6 years agoUpdate IpSecService UnitTests
Nathan Harold [Wed, 17 Jan 2018 03:34:01 +0000 (19:34 -0800)]
Update IpSecService UnitTests

The IpSecService Unit tests relied on the
directionality of the IpSecConfig and previously
did not specify a source address. Unit tests
updated without functional change other than to
address these two requirements.

Bug: 71717213
Test: runtest frameworks-net
Change-Id: Iedbed735bc50fd4fdfe985f9e173956062a7b0d1

6 years agoMerge "Add battery to AOD"
Lucas Dupin [Wed, 17 Jan 2018 03:36:26 +0000 (03:36 +0000)]
Merge "Add battery to AOD"

6 years agoAdds old API to StatsManager (temporary need).
David Chen [Wed, 17 Jan 2018 00:38:42 +0000 (16:38 -0800)]
Adds old API to StatsManager (temporary need).

We changed the API to use long-based config keys instead of strings,
but we have some code that depends on the old API. Let's add them
back temporarily. The old API (that does nothing now) will be
deleted next month.

Test: N/A. Just to prevent build failures.
Bug: 69522276
Change-Id: Ibc51622371d4f3ced3e9b2f66a862dea1ac1c63c

6 years agoMerge "Fix NPE occured when null ClipData is passed to startDrag."
TreeHugger Robot [Wed, 17 Jan 2018 02:26:23 +0000 (02:26 +0000)]
Merge "Fix NPE occured when null ClipData is passed to startDrag."

6 years agoMerge "Make autorotate off by default for new installs and upgrades"
Mike Digman [Wed, 17 Jan 2018 02:20:13 +0000 (02:20 +0000)]
Merge "Make autorotate off by default for new installs and upgrades"

6 years agoMerge "Make rotate locked suggestions on by default"
Mike Digman [Wed, 17 Jan 2018 02:19:51 +0000 (02:19 +0000)]
Merge "Make rotate locked suggestions on by default"

6 years agoDisable UpdateService temporarily.
Dongwon Kang [Wed, 17 Jan 2018 02:14:37 +0000 (18:14 -0800)]
Disable UpdateService temporarily.

Test: build & boots without untracked SELinux denials
Bug: 72066295
Change-Id: Id4564e849e74b2cdd6b935bec2b4db29f8ccd778

6 years agoMerge "Merge "Handle onBindingDied in notification manager" am: a13201a99b am: d69921...
Android Build Merger (Role) [Wed, 17 Jan 2018 02:09:41 +0000 (02:09 +0000)]
Merge "Merge "Handle onBindingDied in notification manager" am: a13201a99b am: d69921cc9a am: a92bcc33b2"

6 years agoMerge "Handle onBindingDied in notification manager" am: a13201a99b am: d69921cc9a
Ryan Lothian [Wed, 17 Jan 2018 02:09:09 +0000 (02:09 +0000)]
Merge "Handle onBindingDied in notification manager" am: a13201a99b am: d69921cc9a
am: a92bcc33b2

Change-Id: Id42d66b241ad932c3784b5e7e53a46eb60c7573c

6 years agoMerge "Skeleton for updatable VideoView2"
TreeHugger Robot [Wed, 17 Jan 2018 02:08:29 +0000 (02:08 +0000)]
Merge "Skeleton for updatable VideoView2"

6 years agoMerge "Use LocalService to access UserManagerServcie from DragState."
TreeHugger Robot [Wed, 17 Jan 2018 02:05:20 +0000 (02:05 +0000)]
Merge "Use LocalService to access UserManagerServcie from DragState."

6 years agoMerge "Handle onBindingDied in notification manager" am: a13201a99b
Ryan Lothian [Wed, 17 Jan 2018 01:59:09 +0000 (01:59 +0000)]
Merge "Handle onBindingDied in notification manager" am: a13201a99b
am: d69921cc9a

Change-Id: I91f5642cb8f2d740e8acbbb739fc42f6a2f1bc63

6 years agoMerge "Orientation Listener looks for the "right" Device Orientation Sensor."
Ashutosh Joshi [Wed, 17 Jan 2018 01:55:53 +0000 (01:55 +0000)]
Merge "Orientation Listener looks for the "right" Device Orientation Sensor."

6 years agoMerge "Handle onBindingDied in notification manager"
Ryan Lothian [Wed, 17 Jan 2018 01:51:02 +0000 (01:51 +0000)]
Merge "Handle onBindingDied in notification manager"
am: a13201a99b

Change-Id: I01d3d65fcc6032d5de17f84cdc8eb5119aaeeadf

6 years agoClear the right uid's alarms, please
Christopher Tate [Wed, 17 Jan 2018 01:45:44 +0000 (17:45 -0800)]
Clear the right uid's alarms, please

When we clear data for an app, we need to cancel the alarms for
that app's uid -- not the *calling* uid, which could be something
like the Settings app's, i.e. the system uid.  That's bad.

Bug: 72059961
Bug: 70670726
Test: manual
Change-Id: Ib6833ce2672bc6dfab6a4be6014a0301611576e2

6 years agoMerge "Fix flaky tests caused by WeakReference"
TreeHugger Robot [Wed, 17 Jan 2018 01:33:39 +0000 (01:33 +0000)]
Merge "Fix flaky tests caused by WeakReference"

6 years agoMerge "Add a statsd proto static lib for cts and others."
TreeHugger Robot [Wed, 17 Jan 2018 01:31:29 +0000 (01:31 +0000)]
Merge "Add a statsd proto static lib for cts and others."

6 years agoAdd battery to AOD
Lucas Dupin [Sun, 14 Jan 2018 06:00:35 +0000 (22:00 -0800)]
Add battery to AOD

Showing battery percentage in AOD in the keyguard
indication area when also randomizing the text field
position to avoid burn-in.

Removed charging indication from KeyguardStatusView
since now it's always visible in the indication area.

Bug: 64155983
Test: flash taimen, look at AOD
Test: flash walleye, look at AOD
Test: unplug device, look at message
Test: wait for change in battery level in AOD
Change-Id: I6110d47d155e95e838cb901ab0928f0512454ab5

6 years agoTurn off airplane mode when DISALLOW_AIRPLANE_MODE is set.
yuemingw [Thu, 11 Jan 2018 18:31:14 +0000 (18:31 +0000)]
Turn off airplane mode when DISALLOW_AIRPLANE_MODE is set.

Test: run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testAirplaneModeRestriction
Bug: 67675441

Change-Id: I94b6c985fe76cc9601ac6a481beca17966102109

6 years agoMerge "Add debug logs"
TreeHugger Robot [Wed, 17 Jan 2018 01:06:29 +0000 (01:06 +0000)]
Merge "Add debug logs"

6 years agoUpdate threshold state used for deciding if the app is in foreground.
Sudheer Shanka [Thu, 11 Jan 2018 20:05:08 +0000 (12:05 -0800)]
Update threshold state used for deciding if the app is in foreground.

This is needed because fg service and bound fg service states are
swapped.

Bug: 70808931
Bug: 71758358
Bug: 71864947
Test: atest com.android.server.am.ActivityManagerServiceTest
Test: cts-tradefed run singleCommand cts-dev -m CtsHostsideNetworkTests -t \
      com.android.cts.net.HostsideRestrictBackgroundNetworkTests

Change-Id: I961b6c048d6d40580ca77603d05197d7294eca9d

6 years agoMerge "Add DISALLOW_CONFIG_SCREEN_TIMEOUT."
TreeHugger Robot [Wed, 17 Jan 2018 00:22:08 +0000 (00:22 +0000)]
Merge "Add DISALLOW_CONFIG_SCREEN_TIMEOUT."

6 years agoMerge "Remove search_v2 flag"
TreeHugger Robot [Wed, 17 Jan 2018 00:04:50 +0000 (00:04 +0000)]
Merge "Remove search_v2 flag"

6 years ago[automerger skipped] RESTRICT AUTOMERGE Preventing recursive referrence in drawables...
Android Build Merger (Role) [Wed, 17 Jan 2018 00:00:44 +0000 (00:00 +0000)]
[automerger skipped] RESTRICT AUTOMERGE Preventing recursive referrence in drawables skipped: cee125012a am: 9b90490d1d am: 17ef28c5e2
am: 419f038258  -s ours

Change-Id: Iadeea4d192012c6c683d704c310b0e573543757d

6 years ago[automerger skipped] RESTRICT AUTOMERGE Preventing recursive referrence in drawables...
Android Build Merger (Role) [Tue, 16 Jan 2018 23:54:53 +0000 (23:54 +0000)]
[automerger skipped] RESTRICT AUTOMERGE Preventing recursive referrence in drawables skipped: cee125012a am: 9b90490d1d
am: 17ef28c5e2

Change-Id: I7e2e495eb815655db3ea365e44d069dfb6227a5a

6 years agoMerge "Make QS rounding match notifications"
TreeHugger Robot [Tue, 16 Jan 2018 23:48:52 +0000 (23:48 +0000)]
Merge "Make QS rounding match notifications"

6 years ago[automerger skipped] RESTRICT AUTOMERGE Preventing recursive referrence in drawables...
Android Build Merger (Role) [Tue, 16 Jan 2018 23:42:30 +0000 (23:42 +0000)]
[automerger skipped] RESTRICT AUTOMERGE Preventing recursive referrence in drawables skipped: cee125012a am: 9b90490d1d

Change-Id: If121edaf0d2edac5688ff2aa4ed48da1d5e1c1c7

6 years ago[automerger skipped] RESTRICT AUTOMERGE Preventing recursive referrence in drawables...
Android Build Merger (Role) [Tue, 16 Jan 2018 23:42:24 +0000 (23:42 +0000)]
[automerger skipped] RESTRICT AUTOMERGE Preventing recursive referrence in drawables skipped: cee125012a

Change-Id: Ie180da5d659b106e1c5299b0a46b6cbf24548ae0

6 years agoRESTRICT AUTOMERGE Preventing recursive referrence in drawables
Sunny Goyal [Wed, 1 Nov 2017 18:58:13 +0000 (11:58 -0700)]
RESTRICT AUTOMERGE Preventing recursive referrence in drawables

Bug: 68706673
Bug: 66498711
Test: Added CTS tests

Change-Id: I8034f49d16f9a7bc1749714fd6d6231bba5088d0
(cherry picked from commit I8034f49d16f9a7bc1749714fd6d6231bba5088d0)
Merged-In: I8034f49d16f9a7bc1749714fd6d6231bba5088d0

6 years agoMerge "Handle onBindingDied in notification manager"
Ryan Lothian [Tue, 16 Jan 2018 23:31:41 +0000 (23:31 +0000)]
Merge "Handle onBindingDied in notification manager"

6 years agoHandle onBindingDied in notification manager
Ryan Lothian [Mon, 4 Dec 2017 16:56:58 +0000 (11:56 -0500)]
Handle onBindingDied in notification manager

On Android, if the process containing the service being bound to
crashes before the bind succeeds, the app doing the binding won't
get a success or failure callback.

When that happens in this code, this leaves notif. manager thinking
that a binding is in progress, so it never attempts to rebind until
the device is rebooted.

Bug: 69064494
Test: original CL was manually tested --
      crashed listener on proc start, verified not unbound forever
Change-Id: Id2082744208e21a709d9453365f282449a2e9407
(cherry picked from commit 4a86a51b672617b02994fc812e4f96342daf424e)

6 years agoMerge "Regenerate system api due to setSimPower api additions Bug: 72039360 Test...
Grace Chen [Tue, 16 Jan 2018 23:04:42 +0000 (23:04 +0000)]
Merge "Regenerate system api due to setSimPower api additions Bug: 72039360 Test: None - simple alphabetical reordering of file"

6 years agoMerge "Log sync stop (== onStopJob) reason in the sync log."
Makoto Onuki [Tue, 16 Jan 2018 23:04:15 +0000 (23:04 +0000)]
Merge "Log sync stop (== onStopJob) reason in the sync log."

6 years agoMerge "Fix a couple PIP related issues."
TreeHugger Robot [Tue, 16 Jan 2018 22:55:17 +0000 (22:55 +0000)]
Merge "Fix a couple PIP related issues."

6 years agoMake autorotate off by default for new installs and upgrades
Mike Digman [Tue, 16 Jan 2018 22:49:38 +0000 (14:49 -0800)]
Make autorotate off by default for new installs and upgrades

For dogfood testing to monitor usage of new rotate locked mode

Test: manual

Change-Id: I4678a31b4ee8b8ff7f282b453843cae8fb2df7dc

6 years agoMerge "Add MediaUpdateService in SystemServer"
TreeHugger Robot [Tue, 16 Jan 2018 22:46:25 +0000 (22:46 +0000)]
Merge "Add MediaUpdateService in SystemServer"

6 years agoPass targetSdkVersion to installd
David Brazdil [Tue, 16 Jan 2018 20:01:47 +0000 (20:01 +0000)]
Pass targetSdkVersion to installd

Dex2oat now accepts targetSdkVersion as a parameter to determine
whether ART should treat the app as "legacy" and allow or restrict
access to private APIs.

We also bump arguments of otapreopt to v4 to accommodate the new value.

Bug: 64382372
Test: manual
Change-Id: Iae3867325dfaf8deaba51626ab04b97ad797d3b6

6 years agoFix flaky tests caused by WeakReference
Fan Zhang [Tue, 16 Jan 2018 22:31:51 +0000 (14:31 -0800)]
Fix flaky tests caused by WeakReference

Change-Id: I287195a37aeb0ff781420c2839ffff0391942f76
Fixes: 71867776
Test: robotest

6 years agoMerge "Revert "Cap the low battery threshold at config_lowBatteryWarningLevel (=15)""
Makoto Onuki [Tue, 16 Jan 2018 22:25:51 +0000 (22:25 +0000)]
Merge "Revert "Cap the low battery threshold at config_lowBatteryWarningLevel (=15)""

6 years agoAdd support for secondary text in QS
Jason Monk [Mon, 15 Jan 2018 20:59:41 +0000 (15:59 -0500)]
Add support for secondary text in QS

Test: visual
Bug: 70799372
Change-Id: I64b1d050807e69f1755604e0baff94b89c9aeb2b

6 years agoOnly have one way of dumping print manager state
Philip P. Moltmann [Tue, 16 Jan 2018 21:32:56 +0000 (13:32 -0800)]
Only have one way of dumping print manager state

Add a class DualDumpOutputStream that maps proto-dump commands onto
print writer commands.

The effect of this is that there is only one - very proto dump like -
way to dump the print manager which is much easier to maintain.

The DualDumpOutputStream tries to produce a result similar to the
incident-report tool.

Test: adb shell dumpsys print
Change-Id: I1f0c56651eaa59f0ce90cdb08c71e89a96c48dd4

6 years agoMake QS rounding match notifications
Jason Monk [Mon, 15 Jan 2018 20:24:09 +0000 (15:24 -0500)]
Make QS rounding match notifications

Test: visual
Bug: 70799006
Change-Id: Iae9bba222e7d34c520df2b673e6d346a44ebcc0e

6 years agoMerge "Merge "Fix doFadingAnimationLocked in sanitized builds." am: 05284b6c6a am...
Android Build Merger (Role) [Tue, 16 Jan 2018 22:01:15 +0000 (22:01 +0000)]
Merge "Merge "Fix doFadingAnimationLocked in sanitized builds." am: 05284b6c6a am: b327eb682e am: f74c76e2df  -s ours"

6 years agoMerge "Fix doFadingAnimationLocked in sanitized builds." am: 05284b6c6a am: b327eb682e
Ivan Lozano [Tue, 16 Jan 2018 22:00:55 +0000 (22:00 +0000)]
Merge "Fix doFadingAnimationLocked in sanitized builds." am: 05284b6c6a am: b327eb682e
am: f74c76e2df  -s ours

Change-Id: I3fe3873a2f05db3ab0e916c90ceb1e280bcd0409

6 years agoMerge "Beginning implementation of quickscrub (1/3)"
TreeHugger Robot [Tue, 16 Jan 2018 21:59:43 +0000 (21:59 +0000)]
Merge "Beginning implementation of quickscrub (1/3)"

6 years agoMerge "Fix doFadingAnimationLocked in sanitized builds." am: 05284b6c6a
Ivan Lozano [Tue, 16 Jan 2018 21:49:36 +0000 (21:49 +0000)]
Merge "Fix doFadingAnimationLocked in sanitized builds." am: 05284b6c6a
am: b327eb682e

Change-Id: I109a08b8ae94cbeca28044f2c64c885a586f680a

6 years agoMerge "New management API for making backups mandatory."
TreeHugger Robot [Tue, 16 Jan 2018 21:45:18 +0000 (21:45 +0000)]
Merge "New management API for making backups mandatory."

6 years agoMerge "Fix doFadingAnimationLocked in sanitized builds."
Ivan Lozano [Tue, 16 Jan 2018 21:42:07 +0000 (21:42 +0000)]
Merge "Fix doFadingAnimationLocked in sanitized builds."
am: 05284b6c6a

Change-Id: I5822b920fe1dec72f0f49af35256bfbf6d9474fa

6 years agoMerge "Workaround a bug that causes multiple activity instances are created"
TreeHugger Robot [Tue, 16 Jan 2018 21:30:21 +0000 (21:30 +0000)]
Merge "Workaround a bug that causes multiple activity instances are created"

6 years agoMerge "Bring back the QS circles"
Jason Monk [Tue, 16 Jan 2018 21:27:28 +0000 (21:27 +0000)]
Merge "Bring back the QS circles"

6 years agoNew management API for making backups mandatory.
Lenka Trochtova [Wed, 20 Dec 2017 13:45:16 +0000 (14:45 +0100)]
New management API for making backups mandatory.

Let the device owner make backups with a chosen backup
transport mandatory.

BUG: 64012357
Test: make RunFrameworksServicesRoboTests
Test: manually together with the corresponding GmsCore change.
Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases --test
com.android.cts.devicepolicy.DeviceOwnerTest#testGetAndSetMandatoryBackupTransport
Test: cts-tradefed run cts -m CtsBackupHostTestCase --test
android.cts.backup.BackupDeviceOwnerHostSideTest#testMandatoryBackupTransport

Change-Id: I9bfae5799beae3459659e697813b75a9b508ae55

6 years agoSwitch to write_non_chained interface to avoid allocating temp objects.
Yangster-mac [Tue, 16 Jan 2018 18:23:15 +0000 (10:23 -0800)]
Switch to write_non_chained interface to avoid allocating temp objects.

Test: all statsd/cts tests passed.
Change-Id: I79565ab2031485f63be74636f86b6ec41a847676

6 years agoRemove search_v2 flag
Fan Zhang [Tue, 16 Jan 2018 21:01:35 +0000 (13:01 -0800)]
Remove search_v2 flag

Change-Id: I606111f510d2d44276aac2e71fdc5e87b0e2babe
Fixes: 69851037
Test: rebuild

6 years agoMerge "Do not pause initializing activities when becoming visible."
TreeHugger Robot [Tue, 16 Jan 2018 21:15:28 +0000 (21:15 +0000)]
Merge "Do not pause initializing activities when becoming visible."