OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Receive assistant progress and start commands from launcher"
TreeHugger Robot [Fri, 1 Mar 2019 23:15:36 +0000 (23:15 +0000)]
Merge "Receive assistant progress and start commands from launcher"

5 years agoMerge changes I169a0ee1,I9b0b4576,I2bbf47db,If850be29,Iccdaa290, ...
Selim Cinek [Fri, 1 Mar 2019 22:54:38 +0000 (22:54 +0000)]
Merge changes I169a0ee1,I9b0b4576,I2bbf47db,If850be29,Iccdaa290, ...

* changes:
  Follow up addressing comments of pulsing refactor
  Fixed an issue where the icons would shift when pulsing
  Improved the pulsing experience when swiping away a notification
  Made sure the disappear animation for pulsing works correctly
  Made sure the shelf is properly clipped while pulsing
  Fixed a bug where notifications could be invisible while pulsing
  Changed the contentheight while pulsing
  Introducing new PulseExpansionHandler for dragging down while pulsing
  Refactored the background calculation to be more generic
  Added NotificationWakeUpCoordinator to coordinate wakeups better

5 years agoMerge "More targetted drawFinished fix"
John Reck [Fri, 1 Mar 2019 22:54:25 +0000 (22:54 +0000)]
Merge "More targetted drawFinished fix"

5 years agoMerge changes from topic "wm_decor_status"
Andrii Kulian [Fri, 1 Mar 2019 22:50:28 +0000 (22:50 +0000)]
Merge changes from topic "wm_decor_status"

* changes:
  Notify the WMS when the display content is ready.
  Read system decor support status from WM

5 years agoMerge "Adding some missing annotations as per API review"
Sunny Goyal [Fri, 1 Mar 2019 22:27:54 +0000 (22:27 +0000)]
Merge "Adding some missing annotations as per API review"

5 years agoMerge "Adding new Battery Saver location mode."
Kweku Adams [Fri, 1 Mar 2019 22:17:29 +0000 (22:17 +0000)]
Merge "Adding new Battery Saver location mode."

5 years agoMerge "Camera: doc improvement for activePhysicalId metadata key"
TreeHugger Robot [Fri, 1 Mar 2019 21:55:56 +0000 (21:55 +0000)]
Merge "Camera: doc improvement for activePhysicalId metadata key"

5 years agoMerge "Make mIdsToViews thread safe."
Qasid Sadiq [Fri, 1 Mar 2019 21:52:03 +0000 (21:52 +0000)]
Merge "Make mIdsToViews thread safe."

5 years agoMerge "Add Nullable annotations for HDMI APIs."
Amy Zhang [Fri, 1 Mar 2019 21:41:35 +0000 (21:41 +0000)]
Merge "Add Nullable annotations for HDMI APIs."

5 years agoMerge "Add nullability annotation to Theme#getAttributeResolutionStack"
TreeHugger Robot [Fri, 1 Mar 2019 21:26:35 +0000 (21:26 +0000)]
Merge "Add nullability annotation to Theme#getAttributeResolutionStack"

5 years agoMerge "Nullability of PermissionControllerService#onBind"
TreeHugger Robot [Fri, 1 Mar 2019 21:24:42 +0000 (21:24 +0000)]
Merge "Nullability of PermissionControllerService#onBind"

5 years agoMerge "Digital clock on left in RTL layout direction."
TreeHugger Robot [Fri, 1 Mar 2019 20:55:40 +0000 (20:55 +0000)]
Merge "Digital clock on left in RTL layout direction."

5 years agoFollow up addressing comments of pulsing refactor
Selim Cinek [Fri, 1 Mar 2019 03:41:18 +0000 (19:41 -0800)]
Follow up addressing comments of pulsing refactor

Because of various rebases, this is much easier.

Test: atest SystemUITests
Fixes: 125942236
Change-Id: I169a0ee1843b8a34d29289cc70eaf650bade6997

5 years agoAdding some missing annotations as per API review
Sunny Goyal [Fri, 1 Mar 2019 19:46:44 +0000 (11:46 -0800)]
Adding some missing annotations as per API review

Bug: 126702868
Bug: 126699296
Test: N/A
Change-Id: Iedfec694e30c77e0190842542e4e38641306cda5

5 years agoReceive assistant progress and start commands from launcher
Matthew Ng [Wed, 20 Feb 2019 23:02:58 +0000 (15:02 -0800)]
Receive assistant progress and start commands from launcher

Bug: 112934365
Test: manual
Change-Id: Id3e8a104f10940f4db87fb2986a424555214d97e

5 years agoMerge "Set Sharesheet to use AiAi for DirectShare targets."
George Hodulik [Fri, 1 Mar 2019 19:38:10 +0000 (19:38 +0000)]
Merge "Set Sharesheet to use AiAi for DirectShare targets."

5 years agoMerge "Add a whitelist to control packages that can use Bugreporting API"
TreeHugger Robot [Fri, 1 Mar 2019 19:36:23 +0000 (19:36 +0000)]
Merge "Add a whitelist to control packages that can use Bugreporting API"

5 years agoAdd Nullable annotations for HDMI APIs.
Amy [Thu, 28 Feb 2019 21:38:23 +0000 (13:38 -0800)]
Add Nullable annotations for HDMI APIs.

Test: manual
Bug: 126700355
Change-Id: Id9b6f29c1aa58da32a2a81d38e986f496b69086c

5 years agoMerge "Fixed wifi picker active network detection for Passpoint"
Quang Luong [Fri, 1 Mar 2019 19:03:35 +0000 (19:03 +0000)]
Merge "Fixed wifi picker active network detection for Passpoint"

5 years agoNullability of PermissionControllerService#onBind
Philip P. Moltmann [Fri, 1 Mar 2019 18:49:32 +0000 (10:49 -0800)]
Nullability of PermissionControllerService#onBind

Only set nullability if super-method specified nullability at the same
place too.

Test: Built
Bug: 126701055
Change-Id: I08b9ac43ecb5f200d192a536449a880bc9a91f38

5 years agoDigital clock on left in RTL layout direction.
Robert Snoeberger [Fri, 1 Mar 2019 18:25:07 +0000 (13:25 -0500)]
Digital clock on left in RTL layout direction.

Bug: 125375325
Test: Used "Force RTL layout direction" in developer options.
Change-Id: I0a93258747e992ff8f91f08ee5d2c148bb31802e

5 years agoMerge "Improve widget getters"
Ashley Rose [Fri, 1 Mar 2019 18:43:00 +0000 (18:43 +0000)]
Merge "Improve widget getters"

5 years agoMerge "Add nullability annotations to ColorStateListDrawable"
Ashley Rose [Fri, 1 Mar 2019 18:37:48 +0000 (18:37 +0000)]
Merge "Add nullability annotations to ColorStateListDrawable"

5 years agoMerge "Check if idmap2 is accessible before executing it."
Yabin Cui [Fri, 1 Mar 2019 18:33:11 +0000 (18:33 +0000)]
Merge "Check if idmap2 is accessible before executing it."

5 years agoMerge "[OWE] Rename isOweSupported to isEnhancedOpenSupported"
TreeHugger Robot [Fri, 1 Mar 2019 18:29:48 +0000 (18:29 +0000)]
Merge "[OWE] Rename isOweSupported to isEnhancedOpenSupported"

5 years agoMerge "[automerger skipped] Merge "Add euicc privileged actions and extras." am:...
Android Build Merger (Role) [Fri, 1 Mar 2019 18:26:40 +0000 (18:26 +0000)]
Merge "[automerger skipped] Merge "Add euicc privileged actions and extras." am: 9886350a69 am: 292d7a3692 am: 97d67dff39 -s ours am skip reason: change_id Ifcf6575c3c65cb38e8787e32bc04b0e4532f7170 with SHA1 f43a0ccf9a is in history"

5 years ago[automerger skipped] Merge "Add euicc privileged actions and extras." am: 9886350a69...
Patrick Huang [Fri, 1 Mar 2019 18:25:36 +0000 (10:25 -0800)]
[automerger skipped] Merge "Add euicc privileged actions and extras." am: 9886350a69 am: 292d7a3692
am: 97d67dff39 -s ours
am skip reason: change_id Ifcf6575c3c65cb38e8787e32bc04b0e4532f7170 with SHA1 f43a0ccf9a is in history

Change-Id: I58866926e399cb935948657dc1305fdb5744e52a

5 years agoMerge changes from topic "staged_userdata_restore"
TreeHugger Robot [Fri, 1 Mar 2019 18:23:42 +0000 (18:23 +0000)]
Merge changes from topic "staged_userdata_restore"

* changes:
  Followup cleanup after refactoring rollback states.
  Use a single list for available and committed rollbacks.

5 years agoMerge "Test for userdata restore in staged rollback test."
TreeHugger Robot [Fri, 1 Mar 2019 18:23:42 +0000 (18:23 +0000)]
Merge "Test for userdata restore in staged rollback test."

5 years agoMerge "Mark role related APIs as test API."
TreeHugger Robot [Fri, 1 Mar 2019 18:23:06 +0000 (18:23 +0000)]
Merge "Mark role related APIs as test API."

5 years agoMerge "Start running CtsGraphicsTestCases for changes to graphics code."
TreeHugger Robot [Fri, 1 Mar 2019 18:21:35 +0000 (18:21 +0000)]
Merge "Start running CtsGraphicsTestCases for changes to graphics code."

5 years ago[automerger skipped] Merge "Fix ImsMmTelManager API in accordance with the council...
Brad Ebinger [Fri, 1 Mar 2019 18:09:55 +0000 (10:09 -0800)]
[automerger skipped] Merge "Fix ImsMmTelManager API in accordance with the council" am: ea5bb6cd3b am: 5e7bfe1147
am: 92262ec974 -s ours
am skip reason: change_id I5d011e1875c082a4532747e30e8582ff3da4ee93 with SHA1 4b292c85b6 is in history

Change-Id: If926d944faecd5110264f92bf5aae896a78d5b53

5 years agoAdd nullability annotation to Theme#getAttributeResolutionStack
Aurimas Liutikas [Thu, 28 Feb 2019 19:16:06 +0000 (11:16 -0800)]
Add nullability annotation to Theme#getAttributeResolutionStack

Bug: 126700353
Test: None
Change-Id: I50979abbdffbf347f8ee2ac85df119fe76abf841

5 years agoMerge "Add euicc privileged actions and extras." am: 9886350a69
Patrick Huang [Fri, 1 Mar 2019 18:04:05 +0000 (10:04 -0800)]
Merge "Add euicc privileged actions and extras." am: 9886350a69
am: 292d7a3692

Change-Id: I813de31e3a086d05d0a9ec29bbccc70df5a76497

5 years agoMerge "Merge "Make Uri.toSafeString() also handle 'rtsp'" am: 948d11ffa6 am: a4fadcc1...
Android Build Merger (Role) [Fri, 1 Mar 2019 17:58:01 +0000 (17:58 +0000)]
Merge "Merge "Make Uri.toSafeString() also handle 'rtsp'" am: 948d11ffa6 am: a4fadcc192 am: 524cbefb5c"

5 years agoMerge "Make Uri.toSafeString() also handle 'rtsp'" am: 948d11ffa6 am: a4fadcc192
Dongwon Kang [Fri, 1 Mar 2019 17:56:56 +0000 (09:56 -0800)]
Merge "Make Uri.toSafeString() also handle 'rtsp'" am: 948d11ffa6 am: a4fadcc192
am: 524cbefb5c

Change-Id: I1c3b644fe63b34b41a452a72cb1ed03ff1e5fa71

5 years agoMerge "Fix ImsMmTelManager API in accordance with the council" am: ea5bb6cd3b
Brad Ebinger [Fri, 1 Mar 2019 17:55:56 +0000 (09:55 -0800)]
Merge "Fix ImsMmTelManager API in accordance with the council" am: ea5bb6cd3b
am: 5e7bfe1147

Change-Id: Ib71efd9afc25f0dbdd9547137c1d66d26e86b181

5 years agoMerge "Refactor CarrierTextController"
Fabian Kozynski [Fri, 1 Mar 2019 17:53:43 +0000 (17:53 +0000)]
Merge "Refactor CarrierTextController"

5 years agoMerge "Add euicc privileged actions and extras."
Patrick Huang [Fri, 1 Mar 2019 17:48:03 +0000 (09:48 -0800)]
Merge "Add euicc privileged actions and extras."
am: 9886350a69

Change-Id: I62dd31e083b229ad893208b88e4f91147c667974

5 years agoMerge "Make Uri.toSafeString() also handle 'rtsp'" am: 948d11ffa6
Dongwon Kang [Fri, 1 Mar 2019 17:42:25 +0000 (09:42 -0800)]
Merge "Make Uri.toSafeString() also handle 'rtsp'" am: 948d11ffa6
am: a4fadcc192

Change-Id: I5b8a8c6eddcbb8418494909757fe9b55d27acd01

5 years agoMerge "Add euicc privileged actions and extras."
Treehugger Robot [Fri, 1 Mar 2019 17:39:49 +0000 (17:39 +0000)]
Merge "Add euicc privileged actions and extras."

5 years agoMerge "Fix ImsMmTelManager API in accordance with the council"
Brad Ebinger [Fri, 1 Mar 2019 17:37:40 +0000 (09:37 -0800)]
Merge "Fix ImsMmTelManager API in accordance with the council"
am: ea5bb6cd3b

Change-Id: Iddb4c85b71d8fd17fda049e6137eec7a91f18413

5 years agoMerge "Make Uri.toSafeString() also handle 'rtsp'"
Dongwon Kang [Fri, 1 Mar 2019 17:28:43 +0000 (09:28 -0800)]
Merge "Make Uri.toSafeString() also handle 'rtsp'"
am: 948d11ffa6

Change-Id: I3f77108d5b739ed5039e95576db44d94f20ad53e

5 years agoMerge "Fix ImsMmTelManager API in accordance with the council"
Brad Ebinger [Fri, 1 Mar 2019 17:21:17 +0000 (17:21 +0000)]
Merge "Fix ImsMmTelManager API in accordance with the council"

5 years agoMerge "Use Uri.toSafeString() in MediaPlayer[2].java."
Dongwon Kang [Fri, 1 Mar 2019 17:10:08 +0000 (17:10 +0000)]
Merge "Use Uri.toSafeString() in MediaPlayer[2].java."

5 years agoMore targetted drawFinished fix
John Reck [Fri, 1 Mar 2019 17:09:34 +0000 (09:09 -0800)]
More targetted drawFinished fix

Prior to fe5dfca the frameCompleteCallback
was posted to the native Looper, which is
effectively a postAtFrontOfQueue. Since it
was switched to the Java-side looper, do
an explicit postAtFrontOfQueue

Fixes: 124801988
Test: speculative
Change-Id: I287c9f3917983503402dcfe3ee7d494eefae8d1f

5 years agoMerge "WifiNetworkSpecifier/Suggestion Builder: Add @NonNull annotations"
Roshan Pius [Fri, 1 Mar 2019 17:09:31 +0000 (17:09 +0000)]
Merge "WifiNetworkSpecifier/Suggestion Builder: Add @NonNull annotations"

5 years agoMerge "Make Uri.toSafeString() also handle 'rtsp'"
Dongwon Kang [Fri, 1 Mar 2019 17:09:29 +0000 (17:09 +0000)]
Merge "Make Uri.toSafeString() also handle 'rtsp'"

5 years agoMerge "Migrate frameworks/base/tests/testables and its users to androidx.test"
Brett Chabot [Fri, 1 Mar 2019 16:54:31 +0000 (16:54 +0000)]
Merge "Migrate frameworks/base/tests/testables and its users to androidx.test"

5 years agoMigrate frameworks/base/tests/testables and its users to androidx.test
Brett Chabot [Wed, 27 Feb 2019 23:37:59 +0000 (15:37 -0800)]
Migrate frameworks/base/tests/testables and its users to androidx.test

See go/jetpack-test-android-migration

This is the internal version of AOSP change aosp/908373

Test: m -j TestablesTests NetworkStackTests FrameworksServicesTests SystemUITests FrameworksUiServicesTests ExtServicesUnitTests WmTests FrameworksCoreTests

Exempt-From-Owner-Approval: automated package name refactoring; already reviewed on AOSP
Change-Id: Ib04d80954bd8536914d88c66b28e6632e60a6245

5 years agoAdd a whitelist to control packages that can use Bugreporting API
Nikita Ioffe [Thu, 28 Feb 2019 21:35:02 +0000 (21:35 +0000)]
Add a whitelist to control packages that can use Bugreporting API

Test: checked SecurityException is thrown for my custom app
Test: whiltelisted my custom app, checked no SecurityException is thrown
Bug: 126541701
Change-Id: Id0b61ccc1adf40bcb455d3b59b640f4b160bdd84

5 years agoFollowup cleanup after refactoring rollback states.
Richard Uhler [Fri, 1 Mar 2019 16:03:01 +0000 (16:03 +0000)]
Followup cleanup after refactoring rollback states.

This CL addresses some minor comments as followup to the previous CL
"Use a single list for available and committed rollbacks".

Test: atest RollbackTest
Test: atest StagedRollbackTest
Test: atest AppDataRollbackHelperTest
Bug: 124044231
Change-Id: I6146cfac3a70017dc8d7eed6b6d3c19de932f14b

5 years agoMerge "Add defaultValue to javadocs for typed getters."
Matt Pape [Fri, 1 Mar 2019 15:30:08 +0000 (15:30 +0000)]
Merge "Add defaultValue to javadocs for typed getters."

5 years agoMerge "Merge "Support dexopting shared libraries." am: 3275a6b245 am: 2e07ca0f15...
Android Build Merger (Role) [Fri, 1 Mar 2019 15:18:02 +0000 (15:18 +0000)]
Merge "Merge "Support dexopting shared libraries." am: 3275a6b245 am: 2e07ca0f15 am: adcb9fd8c8"

5 years agoMerge "Support dexopting shared libraries." am: 3275a6b245 am: 2e07ca0f15
Nicolas Geoffray [Fri, 1 Mar 2019 15:16:31 +0000 (07:16 -0800)]
Merge "Support dexopting shared libraries." am: 3275a6b245 am: 2e07ca0f15
am: adcb9fd8c8

Change-Id: I419d04436685772e187c87292a8143910e56ceaf

5 years agowifi.proto: Fix a bug in the proto for API
Roshan Pius [Thu, 28 Feb 2019 19:04:00 +0000 (11:04 -0800)]
wifi.proto: Fix a bug in the proto for API

Bug: 123362619
Bug: 123362779
Test: Compiles
Change-Id: I021ef2e93bd8547d7c135868b87861c72c808df7

5 years agoWifiNetworkSpecifier/Suggestion Builder: Add @NonNull annotations
Roshan Pius [Tue, 26 Feb 2019 23:00:22 +0000 (15:00 -0800)]
WifiNetworkSpecifier/Suggestion Builder: Add @NonNull annotations

Based on feedback from API council.

Bug: 123313291
Bug: 126699563
Bug: 126701114
Test: Compiles
Change-Id: I119649add8ec71b041631357994aa20c253a5568

5 years agoMerge "Switch android.test and junit classes to use UnsupportedAppUsage" am: 7bb0bcd3...
Paul Duffin [Fri, 1 Mar 2019 15:08:14 +0000 (07:08 -0800)]
Merge "Switch android.test and junit classes to use UnsupportedAppUsage" am: 7bb0bcd305 am: b5ccf0e21c
am: d75f1793e6

Change-Id: I7a7c34980507393ec855c9e161ca0a922ed57fe4

5 years agoMerge "Support dexopting shared libraries." am: 3275a6b245
Nicolas Geoffray [Fri, 1 Mar 2019 15:06:51 +0000 (07:06 -0800)]
Merge "Support dexopting shared libraries." am: 3275a6b245
am: 2e07ca0f15

Change-Id: Icee2bd2eddf07c5b47b841fab60eb8f5f35f852c

5 years agoRefactor CarrierTextController
Fabian Kozynski [Tue, 5 Feb 2019 14:36:59 +0000 (09:36 -0500)]
Refactor CarrierTextController

The list of carriers is now created on the go, so it will always have
the same number of items as there are subscriptions.

Fixes code that reused same slotID into carrierName order.

Test: atest
Test: manual using DSDS

Change-Id: I2533738429b8f0f94c84110641e8c162d19f094a

5 years agoMerge "Merge changes I10c6ed68,I14d6defe am: 8dee71f101 am: 84817b5581 am: b130dbccd8"
Android Build Merger (Role) [Fri, 1 Mar 2019 14:59:36 +0000 (14:59 +0000)]
Merge "Merge changes I10c6ed68,I14d6defe am: 8dee71f101 am: 84817b5581 am: b130dbccd8"

5 years agoMerge "All Parcelable CREATOR fields are @NonNull."
Jeff Sharkey [Fri, 1 Mar 2019 14:58:28 +0000 (14:58 +0000)]
Merge "All Parcelable CREATOR fields are @NonNull."

5 years agoMerge "Support dexopting shared libraries."
Nicolas Geoffray [Fri, 1 Mar 2019 14:57:46 +0000 (06:57 -0800)]
Merge "Support dexopting shared libraries."
am: 3275a6b245

Change-Id: I9c0c742f38296efa42fb719f27ad08a90e2b55b5

5 years agoMerge changes I10c6ed68,I14d6defe am: 8dee71f101 am: 84817b5581
Roland Levillain [Fri, 1 Mar 2019 14:56:15 +0000 (06:56 -0800)]
Merge changes I10c6ed68,I14d6defe am: 8dee71f101 am: 84817b5581
am: b130dbccd8

Change-Id: I52701fa0965283feb469e867dae9e702f37f3b4b

5 years agoMerge "Switch android.test and junit classes to use UnsupportedAppUsage" am: 7bb0bcd305
Paul Duffin [Fri, 1 Mar 2019 14:54:49 +0000 (06:54 -0800)]
Merge "Switch android.test and junit classes to use UnsupportedAppUsage" am: 7bb0bcd305
am: b5ccf0e21c

Change-Id: I38729b9ea144ab550741436a7fe1aea99c376a05

5 years agoMerge changes I10c6ed68,I14d6defe am: 8dee71f101
Roland Levillain [Fri, 1 Mar 2019 14:46:35 +0000 (06:46 -0800)]
Merge changes I10c6ed68,I14d6defe am: 8dee71f101
am: 84817b5581

Change-Id: I66c0d80121dcc1a1dd9240716e6c3bd24eb293c5

5 years agoMerge "Support dexopting shared libraries."
Nicolas Geoffray [Fri, 1 Mar 2019 14:44:49 +0000 (14:44 +0000)]
Merge "Support dexopting shared libraries."

5 years agoMerge "Tweak spacing on grid-based Global Actions Menu."
Aaron Heuckroth [Fri, 1 Mar 2019 14:43:25 +0000 (14:43 +0000)]
Merge "Tweak spacing on grid-based Global Actions Menu."

5 years agoMerge "Switch android.test and junit classes to use UnsupportedAppUsage"
Paul Duffin [Fri, 1 Mar 2019 14:43:17 +0000 (06:43 -0800)]
Merge "Switch android.test and junit classes to use UnsupportedAppUsage"
am: 7bb0bcd305

Change-Id: Ie6fcc247d98d095cdb6b041a2551f727e4fee7d9

5 years agoMerge changes I10c6ed68,I14d6defe
Roland Levillain [Fri, 1 Mar 2019 14:39:10 +0000 (06:39 -0800)]
Merge changes I10c6ed68,I14d6defe
am: 8dee71f101

Change-Id: Ia494f123d14c740bf456d75670b469bc7c8c33f0

5 years agoMerge "CastTile: stop active projection (if any) on tile clicks"
Narayan Kamath [Fri, 1 Mar 2019 14:37:00 +0000 (14:37 +0000)]
Merge "CastTile: stop active projection (if any) on tile clicks"

5 years agoMerge "CastTile : Cosmetic changes to the cast tile UX."
Narayan Kamath [Fri, 1 Mar 2019 14:36:37 +0000 (14:36 +0000)]
Merge "CastTile : Cosmetic changes to the cast tile UX."

5 years agoMerge "Switch android.test and junit classes to use UnsupportedAppUsage"
Paul Duffin [Fri, 1 Mar 2019 14:24:16 +0000 (14:24 +0000)]
Merge "Switch android.test and junit classes to use UnsupportedAppUsage"

5 years agoMerge changes I10c6ed68,I14d6defe
Roland Levillain [Fri, 1 Mar 2019 14:22:49 +0000 (14:22 +0000)]
Merge changes I10c6ed68,I14d6defe

* changes:
  Check Android Runtime (Boot) device configuration flag `enable_apex_image`.
  Refactor unit test for Android Runtime (Boot) device configuration flags.

5 years agoUse a single list for available and committed rollbacks.
Richard Uhler [Tue, 26 Feb 2019 10:40:36 +0000 (10:40 +0000)]
Use a single list for available and committed rollbacks.

So that there is a single source of truth for pending backups and
pending restores. This fixes rollback of userdata for staged rollbacks.

Included in this change:
* Distinguish between PENDING_AVAILABLE, AVAILABLE, and COMMITTED
  rollback states.
* Separate completeEnableRollback from makeRollbackAvailable.
* Make timestamp @NonNull and set it when rollback is made available.
* Don't listen for SESSION_UPDATED broadcasts.
* Factor out common code for ignoring saveRollbackData IOException.
* Other minor cleanups.

Test: atest RollbackTest
Test: atest StagedRollbackTest
Test: atest AppDataRollbackHelperTest
Bug: 124044231

Change-Id: I654a7827e9ed15659d0cb80e5a2c29c2660aea08

5 years agoMerge "Add thread atom that contains sum of filtered thread CPU usage"
TreeHugger Robot [Fri, 1 Mar 2019 13:33:53 +0000 (13:33 +0000)]
Merge "Add thread atom that contains sum of filtered thread CPU usage"

5 years agoCastTile : Cosmetic changes to the cast tile UX.
Narayan Kamath [Wed, 27 Feb 2019 18:27:59 +0000 (18:27 +0000)]
CastTile : Cosmetic changes to the cast tile UX.

- Change the tile title to "Screen Cast".
- Always show the tile title as a primary label, and show
  the casting or projection device as the secondary label.
- Also fixes an issue where the cast tile would show as disabled
  when WiFi wasn't connected, despite the fact that the tile may
  have been displaying an in-progress projection session.

Test: manual
Bug: 124753835

Change-Id: I15f9c0a80d288e5d9a77e87fd1f3135033fdb873

5 years agoMerge "Add statslog logging for hidden api usage"
Andrei-Valentin Onea [Fri, 1 Mar 2019 11:47:15 +0000 (11:47 +0000)]
Merge "Add statslog logging for hidden api usage"

5 years agoMerge "Add comment to clarify use case of the new constructors."
Issei Suzuki [Fri, 1 Mar 2019 11:02:05 +0000 (11:02 +0000)]
Merge "Add comment to clarify use case of the new constructors."

5 years agoMerge "Add PARSE_IS_SYSTEM_DIR when parsing /system APEXes."
Martijn Coenen [Fri, 1 Mar 2019 10:43:50 +0000 (10:43 +0000)]
Merge "Add PARSE_IS_SYSTEM_DIR when parsing /system APEXes."

5 years agoSwitch android.test and junit classes to use UnsupportedAppUsage
Paul Duffin [Fri, 15 Feb 2019 12:58:26 +0000 (12:58 +0000)]
Switch android.test and junit classes to use UnsupportedAppUsage

The UnsupportedAppUsage annotations could not be added directly to the
java files in src/ as they have to be built against the current api
which does not include the annotation. Instead this uses the same
technique as used for libcore/ojluni files and adds the annotations to
stub files (in hiddenapi/src) which are built as part of the
android.test.base-hiddenapi target. That target is added to a special
whitelist in build/soong/java/config/config.go which causes the
hiddenapi information to be extracted from the target.

Also, updates the preupload check to prevent anymore entries being
added to the config/hiddenapi-greylist.txt for android.test or junit
classes.

Bug: 73711752
Test: m cts-hiddenapi_flags-csv and check that it contained the
        correct entries even though they had been removed from
config/hiddenapi-greylist.txt
Change-Id: Ifaf15d2751f54cb03f8402b866a0ee4da7acc4d2

5 years agoSupport dexopting shared libraries.
Nicolas Geoffray [Tue, 26 Feb 2019 23:24:34 +0000 (23:24 +0000)]
Support dexopting shared libraries.

Test: adb shell setprop dalvik.vm.boot-image /system/framework/apex.art && see compilations in dalvik-cache
Test: BackgroundDexOptServiceIntegrationTests
Test: DexoptUtilsTest
Bug: 119800099
Change-Id: I3445b8743d576e09c9a339602307ba3a219db1fc

5 years agoMerge "Bugreport Manager service clear binder identity"
Abhijeet Kaur [Fri, 1 Mar 2019 10:15:42 +0000 (10:15 +0000)]
Merge "Bugreport Manager service clear binder identity"

5 years agoTest for userdata restore in staged rollback test.
Richard Uhler [Tue, 19 Feb 2019 10:31:21 +0000 (10:31 +0000)]
Test for userdata restore in staged rollback test.

Bug: 124044231
Test: frameworks/base/tests/RollbackTest$ atest
Change-Id: Ic323b2e45c05ac4706d96fe15b109fdceaf53da4

5 years agoMerge "Set NetworkStack targetSdk to 28" am: 3e15c9f9ba am: 4be31060a2
Remi NGUYEN VAN [Fri, 1 Mar 2019 07:11:20 +0000 (23:11 -0800)]
Merge "Set NetworkStack targetSdk to 28" am: 3e15c9f9ba am: 4be31060a2
am: 6026ca9552

Change-Id: I6c02ff70600b1dc32e989493e6dfa924c0ef8b61

5 years agoMerge "Set NetworkStack targetSdk to 28" am: 3e15c9f9ba
Remi NGUYEN VAN [Fri, 1 Mar 2019 07:01:55 +0000 (23:01 -0800)]
Merge "Set NetworkStack targetSdk to 28" am: 3e15c9f9ba
am: 4be31060a2

Change-Id: I2575c6caaf3438338ab34d26c7900a28e7beac69

5 years agoMerge "Set NetworkStack targetSdk to 28"
Remi NGUYEN VAN [Fri, 1 Mar 2019 06:52:43 +0000 (22:52 -0800)]
Merge "Set NetworkStack targetSdk to 28"
am: 3e15c9f9ba

Change-Id: Ic1fe1670f10cb921cf38bcc666142252eb0b749f

5 years agoMerge "Set NetworkStack targetSdk to 28"
Remi NGUYEN VAN [Fri, 1 Mar 2019 06:43:21 +0000 (06:43 +0000)]
Merge "Set NetworkStack targetSdk to 28"

5 years agoMerge "Add null checks for attribute getters in View."
TreeHugger Robot [Fri, 1 Mar 2019 06:35:17 +0000 (06:35 +0000)]
Merge "Add null checks for attribute getters in View."

5 years agoAll Parcelable CREATOR fields are @NonNull.
Jeff Sharkey [Thu, 28 Feb 2019 19:06:45 +0000 (12:06 -0700)]
All Parcelable CREATOR fields are @NonNull.

If they were null, then the Parcelable would fail to work.

Bug: 126726802
Test: manual
Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014
Exempt-From-Owner-Approval: Trivial API annotations

5 years agoMerge "Translate selection arguments that are paths."
Jeff Sharkey [Fri, 1 Mar 2019 06:28:24 +0000 (06:28 +0000)]
Merge "Translate selection arguments that are paths."

5 years agoTo be @Nullable or @NonNull, that is the question.
Jeff Sharkey [Thu, 28 Feb 2019 19:02:10 +0000 (12:02 -0700)]
To be @Nullable or @NonNull, that is the question.

Bug: 126699288126699496126700389
Bug: 126700085126701638126702005126700497
Test: manual
Change-Id: Idcbc2722ddcf014a9e5cef14321b4e2ce30adf9c

5 years agoIntercept unlink(), remove(), and rename().
Jeff Sharkey [Thu, 28 Feb 2019 05:14:16 +0000 (22:14 -0700)]
Intercept unlink(), remove(), and rename().

Handles cases where apps try deleting paths returned in "_data"
columns, and where they try renaming across bind mounts.

Bug: 124349250
Test: atest android.appsecurity.cts.ExternalStorageHostTest#testExternalStorageRename
Change-Id: I7f4461bcacada80398eb95d051a0d29456f63499

5 years agoFixed an issue where the icons would shift when pulsing
Selim Cinek [Tue, 26 Feb 2019 23:30:52 +0000 (15:30 -0800)]
Fixed an issue where the icons would shift when pulsing

The burn in offset was immediately disappearing when pulsing.
Now the burn in amount gradually goes away when waking up.

Test: atest SystemUITests
Bug: 125942236
Change-Id: I9b0b4576557661edb31d12759e9866338f95b299

5 years agoImproved the pulsing experience when swiping away a notification
Selim Cinek [Sat, 23 Feb 2019 01:43:43 +0000 (17:43 -0800)]
Improved the pulsing experience when swiping away a notification

Previously the shelf would briefly become visible, which is now fixed.
Additionally is the background disappearing when swiping.

Test: swipe away notification while pulsing
Bug: 125942236
Change-Id: I2bbf47db220aa3b078e11d9c5978342ad1355631

5 years agoMade sure the disappear animation for pulsing works correctly
Selim Cinek [Wed, 20 Feb 2019 19:18:56 +0000 (11:18 -0800)]
Made sure the disappear animation for pulsing works correctly

Previously it was clipped and the shelf was visible.
Also made sure that the wakeup animation from pulsing looks
good.

Test: atest SystemUITests
Bug: 125942236
Change-Id: If850be294d89a8dd11f68fd64ef82d5f077a11f5

5 years agoMade sure the shelf is properly clipped while pulsing
Selim Cinek [Wed, 20 Feb 2019 01:42:36 +0000 (17:42 -0800)]
Made sure the shelf is properly clipped while pulsing

Also made sure that it's properly visible while expanding

Test: atest SystemUITests
Bug: 125942236
Change-Id: Iccdaa29015ac3ee4509778fb72ad4685a1b0a54b

5 years agoFixed a bug where notifications could be invisible while pulsing
Selim Cinek [Tue, 19 Feb 2019 23:39:08 +0000 (15:39 -0800)]
Fixed a bug where notifications could be invisible while pulsing

We're now splitting the ambient logic from pulsing, and therefore
have multiple signals that can determine the notification visibility
independently. Previously the two were overlapping leading to invisible
pulsing notifications while the user was dragging down and up.

Test: atest SystemUiTests
Bug: 125942236
Change-Id: I3d6a6f77a1b2943d1c98cefa30a6eadb8519d5ef

5 years agoChanged the contentheight while pulsing
Selim Cinek [Fri, 15 Feb 2019 02:22:42 +0000 (18:22 -0800)]
Changed the contentheight while pulsing

While pulsing, the contentHeight was limited to the pulsing view,
which is not working well when we want to dynamically expand
notifications from the pulsing state. This also fixes that
multiple pulsing views could be visible at the same time.

Test: atest SystemUITests
Bug: 125942236
Change-Id: Ia1dd51e3ef18cebc16da3c3245ebf10dd1dd9759

5 years agoIntroducing new PulseExpansionHandler for dragging down while pulsing
Selim Cinek [Fri, 4 Jan 2019 22:14:33 +0000 (14:14 -0800)]
Introducing new PulseExpansionHandler for dragging down while pulsing

This also uses the same wake-up animation now when we're pulsing.

Test: atest SystemUITests
Bug: 125942236
Change-Id: I34a0eff6ecc2280aa983740e4273b344d073ca6e