OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Whitelist START_ACTIVITIES_FROM_BACKGROUND permission for permissionController...
Hongyang Jiao [Fri, 7 Jun 2019 21:08:02 +0000 (21:08 +0000)]
Merge "Whitelist START_ACTIVITIES_FROM_BACKGROUND permission for permissionController" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Fri, 7 Jun 2019 19:01:37 +0000 (19:01 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Restore WATCH_APPOPS permission for systemui" into qt-dev
TreeHugger Robot [Fri, 7 Jun 2019 18:46:47 +0000 (18:46 +0000)]
Merge "Restore WATCH_APPOPS permission for systemui" into qt-dev

5 years agoWhitelist START_ACTIVITIES_FROM_BACKGROUND permission for
jiaohy [Wed, 5 Jun 2019 19:08:17 +0000 (12:08 -0700)]
Whitelist START_ACTIVITIES_FROM_BACKGROUND permission for
permissionController

Bug:134429397
Test: Locally flash on sailfish
Change-Id: I650c08a7f0a823085e0eaa0e1cae8b5b44cabd8f

5 years agoMerge "Resetting widget cache when some configurations change" into qt-dev
TreeHugger Robot [Fri, 7 Jun 2019 18:28:35 +0000 (18:28 +0000)]
Merge "Resetting widget cache when some configurations change" into qt-dev

5 years agoRestore WATCH_APPOPS permission for systemui
Fabian Kozynski [Fri, 7 Jun 2019 17:20:49 +0000 (13:20 -0400)]
Restore WATCH_APPOPS permission for systemui

This permission is necessary for Q as it allows systemui to tag
notifications of apps that are using certain AppOps. This is a P
feature that has regressed when the permission was made privileged.

This is used by AppOpsController in order to obtain updates on any apps
(onOpActiveChanged, onOpNoted). There is no other way to obtain the
updates from apps that are not systemui, as specified in AppOpsManager.

Talked to moltmann@ to verify that this is the correct API to use for this feature.
I'll remove this permission once SystemUI does not need it anymore.
In particular, if AppOpsController does not require it for being notified of AppOps changes.

Fixes: 134747188
Test: build
Test: dumpsys SystemUI. Check that AppOpsController is getting updates.
Change-Id: I08cca4361a7fbfa8b2eb419f1459b0b8bce93a5f

5 years agoMerge "Dramatically simplify NotificationRankingUpdate." into qt-dev
Daniel Sandler [Fri, 7 Jun 2019 17:11:23 +0000 (17:11 +0000)]
Merge "Dramatically simplify NotificationRankingUpdate." into qt-dev

5 years agoMerge "You get a memory tile, and you get a memory tile." into qt-dev
Daniel Sandler [Fri, 7 Jun 2019 17:07:15 +0000 (17:07 +0000)]
Merge "You get a memory tile, and you get a memory tile." into qt-dev

5 years agoAdd OWNERS for DeviceConfig
Svet Ganov [Mon, 3 Jun 2019 20:32:01 +0000 (13:32 -0700)]
Add OWNERS for DeviceConfig

Test: N/A

Bug: 134753749

Change-Id: Ia1b10287a0d056fd9d242936e90d8f91d847fe59

5 years agoMerge "Add a rolling log of external vibrations" into qt-dev
TreeHugger Robot [Fri, 7 Jun 2019 15:04:37 +0000 (15:04 +0000)]
Merge "Add a rolling log of external vibrations" into qt-dev

5 years agoMerge "Use nav bar color for invocation lights" into qt-dev
Miranda Kephart [Fri, 7 Jun 2019 14:56:14 +0000 (14:56 +0000)]
Merge "Use nav bar color for invocation lights" into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 7 Jun 2019 14:43:48 +0000 (07:43 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Iac4022ac6ff25ea77bc986924127d970e25f5444

5 years agoMerge "Remove deleted strings from symbols.xml." into qt-dev
TreeHugger Robot [Fri, 7 Jun 2019 12:27:36 +0000 (12:27 +0000)]
Merge "Remove deleted strings from symbols.xml." into qt-dev

5 years agoRemove deleted strings from symbols.xml.
Alan Stokes [Fri, 7 Jun 2019 09:50:51 +0000 (10:50 +0100)]
Remove deleted strings from symbols.xml.

The background activity start toast strings were removed from
strings.xml in commit 9e2457622abb8611876185f09cb79f5c3c2f4711, but
not from symbols.xml. (Because I didn't know it existed.)

Bug: 131747138
Fixes: 134686670
Test: Still builds.
Change-Id: I934e96155dcc4404f50a309f07ba4ba6c86f151f

5 years agoRevert "Take all VPN underlying networks into account when migrating traffic for"
Benedict Wong [Fri, 7 Jun 2019 00:08:02 +0000 (17:08 -0700)]
Revert "Take all VPN underlying networks into account when migrating traffic for"

This reverts commit 917327b1933c6edc8314fe728e5f14f6e29dd5f4.

Reason for revert: This change has been implicated in 4-way deadlocks as seen in b/134244752.

Bug: 134244752
Change-Id: Ibdaad3a4cbf0d8ef1ed53cfab1e454b9b878bae9

5 years agoRevert "NetworkStatsService: Fix getDetailedUidStats to take VPNs into account."
Benedict Wong [Fri, 7 Jun 2019 00:06:48 +0000 (17:06 -0700)]
Revert "NetworkStatsService: Fix getDetailedUidStats to take VPNs into account."

This reverts commit ed11b84131eae1e104af9be2c17fc9b07183eee3.

Reason for revert: This change has been implicated in 4-way deadlocks as seen in b/134244752.

Bug: 134244752
Change-Id: I0c00e8f0e30cee987b71b561079a97bf09d4dae4

5 years agoRevert "Addressing comments for http://ag/7700679."
Benedict Wong [Fri, 7 Jun 2019 00:06:39 +0000 (17:06 -0700)]
Revert "Addressing comments for ag/7700679."

This reverts commit a229333986f95e48347fa8b653d7e1776019f84a.

Reason for revert: This change has been implicated in 4-way deadlocks as seen in b/134244752.

Bug: 134244752
Change-Id: I5fbb3443a39a21fc9d96442726cd10d20e8d61cd

5 years agoRevert "Add one more test for VPN usage stats."
Benedict Wong [Thu, 6 Jun 2019 23:59:01 +0000 (23:59 +0000)]
Revert "Add one more test for VPN usage stats."

This reverts commit 1419b0b20e4b079bfa66662d042b4dc35fb22d78.

Reason for revert: This change has been implicated in 4-way deadlocks as seen in b/134244752.

Bug: 134244752
Change-Id: I64b48d575f2e6ec4cb7d2d100a859a30af0501dc

5 years agoYou get a memory tile, and you get a memory tile.
Dan Sandler [Fri, 7 Jun 2019 03:35:22 +0000 (23:35 -0400)]
You get a memory tile, and you get a memory tile.

Turn on the SysUI memory QS tile for all debuggable builds.
This has the side effect of enabling ActivityManager heap
tracking for com.android.systemui, so don't be surprised
when you start seeing notifications saying "here's a heap
dump!"

Bug: 133671238
Test: runtest systemui
Change-Id: Ib40850bdcc0d67bfbcaf797886d53f2ae706bd72

5 years agoMerge "Blacklist truncated atoms instead of whitelistnig" into qt-dev
TreeHugger Robot [Fri, 7 Jun 2019 02:35:51 +0000 (02:35 +0000)]
Merge "Blacklist truncated atoms instead of whitelistnig" into qt-dev

5 years agoMerge "Don't abort multi-package install early" into qt-dev
TreeHugger Robot [Fri, 7 Jun 2019 00:49:53 +0000 (00:49 +0000)]
Merge "Don't abort multi-package install early" into qt-dev

5 years agoMerge "Fixed issue where negative angles were not parsed properly" into qt-dev
TreeHugger Robot [Fri, 7 Jun 2019 00:43:31 +0000 (00:43 +0000)]
Merge "Fixed issue where negative angles were not parsed properly" into qt-dev

5 years agoResetting widget cache when some configurations change
Sunny Goyal [Thu, 6 Jun 2019 23:26:38 +0000 (16:26 -0700)]
Resetting widget cache when some configurations change

Sometimes widget providers hardcode colors in their remoteViews
by loading them from resources. On UI mode change, this can lead to
inconsistent UI if some widgets use a different configuration
than others.

Test: Verified with calendar widget on device
Bug: 133064045
Change-Id: If47a6b1973f55b7590f5d4116813d6a332951697

5 years agoMerge "Reset bottom area opacity when making it visible" into qt-dev
TreeHugger Robot [Thu, 6 Jun 2019 23:31:42 +0000 (23:31 +0000)]
Merge "Reset bottom area opacity when making it visible" into qt-dev

5 years agoMerge "Decouple Game Driver from preloading graphics driver" into qt-dev
TreeHugger Robot [Thu, 6 Jun 2019 22:54:21 +0000 (22:54 +0000)]
Merge "Decouple Game Driver from preloading graphics driver" into qt-dev

5 years agoDon't abort multi-package install early
Todd Kennedy [Thu, 6 Jun 2019 21:47:24 +0000 (14:47 -0700)]
Don't abort multi-package install early

The multi-package install flow depends upon all of the packages being
processed. If we ever skip one, any installation status will never be
returned to the installation observer.

Fixes: 134632533
Test: adb install-multi-package app1/base.apk app2/base.apk app3/base.apk app4/base.apk
Test: adb did not hang and returned proper error "Failure [INSTALL_FAILED_VERSION_DOWNGRADE"
Change-Id: I3c0d1df059e1411c2d77f96b8fb656c9d1050ce1

5 years agoUse nav bar color for invocation lights
Miranda Kephart [Wed, 5 Jun 2019 20:09:15 +0000 (16:09 -0400)]
Use nav bar color for invocation lights

Registers a listener so that the assistant invocation lights are
set to the same color as the nav bar (and therefore show up on
white backgrounds). Changes the stroke caps to BUTT rather than
ROUND/SQUARE so that they do not overlap (since the nav bar color
can be non-opaque).

If the lights are explicitly set to some other color, the listener
is not used.

Bug: 134523274
Test: manual
Change-Id: I4fc2dd4c609dcada6acdf34e269a0e62547747d0

5 years agoMerge "Improves the REMINDER_EXP mode for Assist Handle behavior" into qt-dev
TreeHugger Robot [Thu, 6 Jun 2019 21:50:28 +0000 (21:50 +0000)]
Merge "Improves the REMINDER_EXP mode for Assist Handle behavior" into qt-dev

5 years agoMerge "Hide keyguard bottom area when SHADE_LOCKED" into qt-dev
Lucas Dupin [Thu, 6 Jun 2019 21:49:49 +0000 (21:49 +0000)]
Merge "Hide keyguard bottom area when SHADE_LOCKED" into qt-dev

5 years agoMerge "Fix charging animation clipping" into qt-dev
Lucas Dupin [Thu, 6 Jun 2019 21:08:44 +0000 (21:08 +0000)]
Merge "Fix charging animation clipping" into qt-dev

5 years agoMerge "OMS: add TEST_MAPPING" into qt-dev
TreeHugger Robot [Thu, 6 Jun 2019 20:44:49 +0000 (20:44 +0000)]
Merge "OMS: add TEST_MAPPING" into qt-dev

5 years agoMerge "Inset floating rotation button." into qt-dev
Tracy Zhou [Thu, 6 Jun 2019 20:41:11 +0000 (20:41 +0000)]
Merge "Inset floating rotation button." into qt-dev

5 years agoImproves the REMINDER_EXP mode for Assist Handle behavior
Govinda Wasserman [Tue, 4 Jun 2019 16:15:23 +0000 (12:15 -0400)]
Improves the REMINDER_EXP mode for Assist Handle behavior

- User learning state is reset when leaving REMINDER_EXP behavior.
- Default parameters updated for easier testing and better experience
- Show and go only performed once per day when gesture has been learned
- Slightly delay handle showing when entering an apps with a longer
  delay when switching between apps rapidly.
- Adds state dump to improve debugability.
- Adds ability to suppress handle showing in specific states using
  flags.

Test: atest AssistHandleBehaviorControllerTest
Test: Tested locally
BUG:132983599
Change-Id: I7829ad55d7667f5db3633e702add709968dcd0a9

5 years agoDramatically simplify NotificationRankingUpdate.
Dan Sandler [Tue, 29 Jan 2019 18:58:52 +0000 (13:58 -0500)]
Dramatically simplify NotificationRankingUpdate.

It is now simply a container for a parceled RankingMap,
which can be unparceled entirely into objects in the
listener's heap and discarded. Notification key strings are
interned (by reference into the Ranking data structure).

This should save a considerable amount of RAM:

 - parceled Bundles hanging around in the listener process,
   waiting to be unparceled, never freed
 - a dozen copies of the notification key string

Bug: 133763354
Test: atest NotificationManagerServiceTest NotificationListenerServiceTest NotificationDataTest
Test: coretests, cts, etc.
Change-Id: I5d8ab5c8f27c70f4af7051b24608ba0d1f2dd5cd

5 years agoFix charging animation clipping
Lucas Dupin [Thu, 6 Jun 2019 18:14:01 +0000 (11:14 -0700)]
Fix charging animation clipping

Test: visual
Fixes: 134653127
Change-Id: I43eb2523a481237da27f159121bdc5b44b966d75

5 years agoHide keyguard bottom area when SHADE_LOCKED
Lucas Dupin [Thu, 6 Jun 2019 00:50:48 +0000 (17:50 -0700)]
Hide keyguard bottom area when SHADE_LOCKED

Fixes: 133308946
Test: manual
Change-Id: I1e855f204cf43672cd0bb95c137b48be333c821c

5 years agoMerge "Default silent notifs on lockscreen to on" into qt-dev
TreeHugger Robot [Thu, 6 Jun 2019 18:37:08 +0000 (18:37 +0000)]
Merge "Default silent notifs on lockscreen to on" into qt-dev

5 years ago[DO NOT MERGE] Handle config override via settings correctly
Svet Ganov [Tue, 4 Jun 2019 21:16:51 +0000 (14:16 -0700)]
[DO NOT MERGE] Handle config override via settings correctly

Initialize persistence only after we can read the settings
provider as we need to take into account the current config
potentially set as an override in settings vs using the
hard coded defaults.

Make the last persist time more robust to ensure it always
termines to guard against other unforeseen cases wehere the
persistet files don't match what is expected under the current
config.

Test: atest CtsAppOpsTestCases
Test: atest android.appsecurity.cts.AppOpsTest

Bug: 134093967

Change-Id: I4bd272d3908eb8fc2afcdb7c1bd96b05a182d8c4

5 years agoMerge "loadUnbadgedItemIcon doesn't crash from getUserIcon" into qt-dev
Adam Bookatz [Thu, 6 Jun 2019 17:54:24 +0000 (17:54 +0000)]
Merge "loadUnbadgedItemIcon doesn't crash from getUserIcon" into qt-dev

5 years agoMerge "Refine zoom in and zoom out transition of iamge wallpaper." into qt-dev
TreeHugger Robot [Thu, 6 Jun 2019 17:47:54 +0000 (17:47 +0000)]
Merge "Refine zoom in and zoom out transition of iamge wallpaper." into qt-dev

5 years agoMerge "Clarify problems with Linkify.MAP_ADDRESSES." into qt-dev
TreeHugger Robot [Thu, 6 Jun 2019 17:40:51 +0000 (17:40 +0000)]
Merge "Clarify problems with Linkify.MAP_ADDRESSES." into qt-dev

5 years agoReset bottom area opacity when making it visible
Lucas Dupin [Thu, 6 Jun 2019 17:40:23 +0000 (10:40 -0700)]
Reset bottom area opacity when making it visible

Fixes: 134646136
Test: manual
Change-Id: Iae1c659550aa20d222fcaa38a5e7f8aa5b5f5873

5 years agoDefault silent notifs on lockscreen to on
Julia Reynolds [Thu, 6 Jun 2019 15:17:20 +0000 (11:17 -0400)]
Default silent notifs on lockscreen to on

Test: manual
Bug: 134613164
Change-Id: I4873d7120959c25511ba8c51b4de9bf81df06b72

5 years agoMerge "GestureNav: Fix broken split screen navbar" into qt-dev
TreeHugger Robot [Thu, 6 Jun 2019 16:09:25 +0000 (16:09 +0000)]
Merge "GestureNav: Fix broken split screen navbar" into qt-dev

5 years agoMerge "Don't use a high-priority notification on auto-join." into qt-dev
Lorenzo Colitti [Thu, 6 Jun 2019 11:08:19 +0000 (11:08 +0000)]
Merge "Don't use a high-priority notification on auto-join." into qt-dev

5 years agoRefine zoom in and zoom out transition of iamge wallpaper.
Ahan Wu [Wed, 29 May 2019 10:39:33 +0000 (18:39 +0800)]
Refine zoom in and zoom out transition of iamge wallpaper.

We do zoom in from lockscreen to aod1 and zoom out in reverse
transition.

Bug: 124822340
Bug: 133785684
Test: manually set image wallpaper.
Test: Press power key back and forth and observe.
Change-Id: I842f929c730d1234717faa77e32f733f131c6ca0

5 years agoMerge "Fix an issue that clicking on a smart action chip on keyguard ... failed to...
TreeHugger Robot [Thu, 6 Jun 2019 09:22:13 +0000 (09:22 +0000)]
Merge "Fix an issue that clicking on a smart action chip on keyguard ... failed to launch app resolver when there are more than one app handlers." into qt-dev

5 years agoDon't use a high-priority notification on auto-join.
Lorenzo Colitti [Wed, 5 Jun 2019 07:08:37 +0000 (16:08 +0900)]
Don't use a high-priority notification on auto-join.

If the device connects to a network automatically and not through
user action, a high-priority notification is intrusive and is
inconsistent with other networking notifications, which are
usually only high priority if the network is manually selected.

Bug: 130766237
Test: see next CL in patch series
Change-Id: I8824f2d1a0efeb6cb75e430ef5159ebce0018779

5 years agoMerge "Allow same matcher to cancel >1 event activation" into qt-dev
TreeHugger Robot [Thu, 6 Jun 2019 06:15:55 +0000 (06:15 +0000)]
Merge "Allow same matcher to cancel >1 event activation" into qt-dev

5 years agoMerge "Updated entrance animation for assistant handles." into qt-dev
Matt Casey [Thu, 6 Jun 2019 04:47:28 +0000 (04:47 +0000)]
Merge "Updated entrance animation for assistant handles." into qt-dev

5 years agoMerge "Fix regressions in PiP movement bounds handling" into qt-dev
Winson Chung [Thu, 6 Jun 2019 03:43:47 +0000 (03:43 +0000)]
Merge "Fix regressions in PiP movement bounds handling" into qt-dev

5 years ago[automerger skipped] Merge changes from topic "am-641f3aa3-ebd9-46aa-8f39-1f4ec4f86eb...
Bryan Ferris [Thu, 6 Jun 2019 03:42:48 +0000 (20:42 -0700)]
[automerger skipped] Merge changes from topic "am-641f3aa3-ebd9-46aa-8f39-1f4ec4f86eb3" into oc-dev am: 7af053390a am: 21cd2569bf am: 4871c475b2 -s ours
am: 459844b640 -s ours
am skip reason: change_id Ib032f800edb0416cc15f01a34954340d0d0ffa78 with SHA1 27d4734049 is in history

Change-Id: Ib3882a5188685a508d17d519f065a8676bc74652

5 years ago[automerger skipped] [automerger] Clear the Parcel before writing an exception during...
Michael Wachenschwanz [Thu, 6 Jun 2019 03:40:51 +0000 (20:40 -0700)]
[automerger skipped] [automerger] Clear the Parcel before writing an exception during a transaction am: f8ef5bcf21 am: 86c9bdd251 am: 6d72c0681f am: d944d907df am: 31737b4618 am: 2ca66d4d10 am: 1c8a632ad2 am: 7eec0a8448
am: 57f6c0deb2 -s ours
am skip reason: change_id Iaf80a0ad711762992b8ae60f76d861c97a403013 with SHA1 06041db074 is in history

Change-Id: Ic15424d4bb5a2bcaf0d04bd302a36a376b814022

5 years ago[automerger skipped] Merge changes from topic "am-641f3aa3-ebd9-46aa-8f39-1f4ec4f86eb...
Bryan Ferris [Thu, 6 Jun 2019 03:07:23 +0000 (20:07 -0700)]
[automerger skipped] Merge changes from topic "am-641f3aa3-ebd9-46aa-8f39-1f4ec4f86eb3" into oc-dev am: 7af053390a am: 21cd2569bf
am: 4871c475b2 -s ours
am skip reason: change_id Ib032f800edb0416cc15f01a34954340d0d0ffa78 with SHA1 27d4734049 is in history

Change-Id: I73474b928179591981f7dde4520fb3f6695d9e3f

5 years ago[automerger] Clear the Parcel before writing an exception during a transaction am...
Michael Wachenschwanz [Thu, 6 Jun 2019 03:05:28 +0000 (20:05 -0700)]
[automerger] Clear the Parcel before writing an exception during a transaction am: f8ef5bcf21 am: 86c9bdd251 am: 6d72c0681f am: d944d907df am: 31737b4618 am: 2ca66d4d10 am: 1c8a632ad2
am: 7eec0a8448

Change-Id: Ic2cc203ee994927ec0b7f355917a15010f6e2a7c

5 years agoMerge "Remove alarms of cancelled pending intents" into qt-dev
TreeHugger Robot [Thu, 6 Jun 2019 01:46:13 +0000 (01:46 +0000)]
Merge "Remove alarms of cancelled pending intents" into qt-dev

5 years agoMerge "Fix Environment.isExternalStorageLegacy() impl." into qt-dev
Sudheer Shanka [Thu, 6 Jun 2019 01:32:03 +0000 (01:32 +0000)]
Merge "Fix Environment.isExternalStorageLegacy() impl." into qt-dev

5 years agoMerge "Fixed an issue where the insets of the cutout weren't respected" into qt-dev
TreeHugger Robot [Thu, 6 Jun 2019 01:24:23 +0000 (01:24 +0000)]
Merge "Fixed an issue where the insets of the cutout weren't respected" into qt-dev

5 years agoBlacklist truncated atoms instead of whitelistnig
Tej Singh [Thu, 6 Jun 2019 01:10:12 +0000 (18:10 -0700)]
Blacklist truncated atoms instead of whitelistnig

We used a whitelist to determine which atoms should have their
timestamps truncated to the nearest 5 minutes. This changes the logic
to a blacklist so that we can get fine grained timestamps from vendor and
mainline atoms. Also reserves a range for atoms that need to be
truncated in the future.

Bug: 134574701
Test: inspected generated statslog.cpp file to make sure it had the
correct blacklist
Test: testdrive on ScreenStateChanged to ensure timestamps are preserved
when they should be
Test: testdrive on CallStateChanged to ensure timestamps are truncated
when they should be.

Change-Id: Id3468542c830cdf41395a94c77f7df0b46cd11b7

5 years agoMerge changes from topic "am-641f3aa3-ebd9-46aa-8f39-1f4ec4f86eb3" into oc-dev am...
Bryan Ferris [Thu, 6 Jun 2019 00:41:32 +0000 (17:41 -0700)]
Merge changes from topic "am-641f3aa3-ebd9-46aa-8f39-1f4ec4f86eb3" into oc-dev am: 7af053390a
am: 21cd2569bf

Change-Id: If444013b7d35152ca49ccc20a89841b1e5582c62

5 years ago[automerger skipped] [RESTRICT AUTOMERGE] Protect VPN dialogs against overlay.
Chalard Jean [Thu, 6 Jun 2019 00:40:52 +0000 (17:40 -0700)]
[automerger skipped] [RESTRICT AUTOMERGE] Protect VPN dialogs against overlay.
am: 27d4734049 -s ours
am skip reason: subject contains skip directive

Change-Id: Iee025417ba496ea02b6c68ef2c7bf4422f77c6a0

5 years ago[automerger] Clear the Parcel before writing an exception during a transaction am...
Michael Wachenschwanz [Thu, 6 Jun 2019 00:38:43 +0000 (17:38 -0700)]
[automerger] Clear the Parcel before writing an exception during a transaction am: f8ef5bcf21 am: 86c9bdd251 am: 6d72c0681f am: d944d907df am: 31737b4618 am: 2ca66d4d10
am: 1c8a632ad2

Change-Id: I6cc244c8e40d66d639faef43ec8d3a23bfc11df7

5 years agoMerge changes from topic "am-641f3aa3-ebd9-46aa-8f39-1f4ec4f86eb3" into oc-dev
Bryan Ferris [Thu, 6 Jun 2019 00:34:26 +0000 (17:34 -0700)]
Merge changes from topic "am-641f3aa3-ebd9-46aa-8f39-1f4ec4f86eb3" into oc-dev
am: 7af053390a

Change-Id: Ie90797e6c620819b92b2bd32ad8a07363fbee947

5 years ago[automerger] Clear the Parcel before writing an exception during a transaction am...
Michael Wachenschwanz [Thu, 6 Jun 2019 00:07:58 +0000 (17:07 -0700)]
[automerger] Clear the Parcel before writing an exception during a transaction am: f8ef5bcf21 am: 86c9bdd251 am: 6d72c0681f am: d944d907df am: 31737b4618
am: 2ca66d4d10

Change-Id: I452bc18a9cebc417e7c4499c2bebf8fd3cc0f1ce

5 years agoMerge changes from topic "am-641f3aa3-ebd9-46aa-8f39-1f4ec4f86eb3" into oc-dev
Bryan Ferris [Thu, 6 Jun 2019 00:01:53 +0000 (00:01 +0000)]
Merge changes from topic "am-641f3aa3-ebd9-46aa-8f39-1f4ec4f86eb3" into oc-dev

* changes:
  [automerger] Protect VPN dialogs against overlay. am: 016c72c8ab am: e2100ac8f2 am: caf19dfbb8 am: 8c3a23e6b1 am: 22a1644e1f
  [automerger] Protect VPN dialogs against overlay. am: 016c72c8ab am: e2100ac8f2 am: caf19dfbb8 am: 8c3a23e6b1
  [automerger] Protect VPN dialogs against overlay. am: 016c72c8ab am: e2100ac8f2 am: caf19dfbb8
  [automerger] Protect VPN dialogs against overlay. am: 016c72c8ab am: e2100ac8f2
  [automerger] Protect VPN dialogs against overlay. am: 016c72c8ab
  Protect VPN dialogs against overlay.

5 years agoDecouple Game Driver from preloading graphics driver
Yiwei Zhang [Tue, 4 Jun 2019 23:25:28 +0000 (16:25 -0700)]
Decouple Game Driver from preloading graphics driver

Previously, when the Game Driver package name is set, graphics driver preloading
is automatically disabled. Now we'd like to decouple the relation here. So Game
Driver could still work no matter graphics driver is preloaded in Zygote or not.

Bug: 134526352
Test: build, flash and boot.
Change-Id: Id720cc11e3365423dd9b984b7d30a2dbeecb6116

5 years agoFix regressions in PiP movement bounds handling
Winson Chung [Wed, 5 Jun 2019 04:20:41 +0000 (21:20 -0700)]
Fix regressions in PiP movement bounds handling

- When we return early when detecting when to skip applying the bounds
  the stored bounds and rotation weren't being updated
- In landscape, the addition of the nav bar inset in the bottom pushed
  the movement bounds to be out of range, which cause an incorrect
  offset to be calculated
- Simplified the logic to calculate the offset for the adjustment for
  IME and shelf -- keep track of the previous offset, check the previous
  movement+offset bounds with the next movement+offset bounds and only
  update if the PIP is currently between those two bounds
- Tweak to landscape policy, if there isn't enough space for the ime
  offset, then don't apply it as a part of the shift

Bug: 126199952
Test: Go to landscape + pip, open IME and dismiss IME and ensure the
      PIP is pushed off and restored correctly
Test: In portrait, test going from app/home/ime and verify that the right
      offsets are applied, and then if the stack is not in the bounds of
      the offset change, that it is not applied

Change-Id: I67eee7d321995f403137db940b06f685d0c919af

5 years agoRemove alarms of cancelled pending intents
Suprabh Shukla [Fri, 31 May 2019 22:57:05 +0000 (15:57 -0700)]
Remove alarms of cancelled pending intents

When a pending intent is cancelled, the alarm is essentially defunct.
Keeping around this alarm takes unneeded memory and unreasonably counts
towards the per-uid cap of pending alarms.

Test: Unit test:
atest com.android.server.AlarmManagerServiceTest
Existing CTS:
atest CtsAlarmManagerTestCases

Bug: 132379078
Change-Id: I4c6d59d9ac79708d8daf40657e9773c715271f1e

5 years agoMerge "Do not include specific_mention sections in bugreports either." into qt-dev
Joe Onorato [Wed, 5 Jun 2019 22:13:55 +0000 (22:13 +0000)]
Merge "Do not include specific_mention sections in bugreports either." into qt-dev

5 years agoInset floating rotation button.
Tracy Zhou [Wed, 5 Jun 2019 22:12:01 +0000 (15:12 -0700)]
Inset floating rotation button.

Fixes: 134182303
Test: Manual
Change-Id: Ic22aa2744f9e99baf4c6dd9533c5f6794b6587d5

5 years agoMerge "Partial revert of ag/7508382 to retain back button responsiveness in Biomteric...
Kevin Chyn [Wed, 5 Jun 2019 22:05:08 +0000 (22:05 +0000)]
Merge "Partial revert of ag/7508382 to retain back button responsiveness in BiomtericPrompt" into qt-dev

5 years agoMerge "Ensure that the IME switcher button is always touchable" into qt-dev
Winson Chung [Wed, 5 Jun 2019 21:31:32 +0000 (21:31 +0000)]
Merge "Ensure that the IME switcher button is always touchable" into qt-dev

5 years agoUpdated entrance animation for assistant handles.
Matt Casey [Wed, 5 Jun 2019 21:14:09 +0000 (17:14 -0400)]
Updated entrance animation for assistant handles.

Implemented piecewise overshoot-like interpolation in collaboration with
UX. Visually, the animation works the same, it's just broken up into
several chained animations for simpler tweaking.

Test: Visual evaluation
Bug: 134487710
Change-Id: Ifd1f16393014f7c30413adf91aea7407fb526992

5 years agoPartial revert of ag/7508382 to retain back button responsiveness in BiomtericPrompt
Kevin Chyn [Wed, 5 Jun 2019 20:43:58 +0000 (13:43 -0700)]
Partial revert of ag/7508382 to retain back button responsiveness in BiomtericPrompt

The layout should be focusable and be set to focused in order for the
back button events to be received, since the key listener is set on
the layout.

Fixes: 133781042

Test: Back button cancels authentication
Test: No regression in tests mentioned in the CL above
Change-Id: I7d78bea400e8791e296a53603414095cfca62ec1

5 years agoMerge "Clarify documentation for sensor placement" into qt-dev
TreeHugger Robot [Wed, 5 Jun 2019 20:36:42 +0000 (20:36 +0000)]
Merge "Clarify documentation for sensor placement" into qt-dev

5 years agoMerge "Update KeyguardMonitor when UnlockMethod changes" into qt-dev
Fabian Kozynski [Wed, 5 Jun 2019 20:10:09 +0000 (20:10 +0000)]
Merge "Update KeyguardMonitor when UnlockMethod changes" into qt-dev

5 years agoMerge "Read the subtext of noti guts field on selection" into qt-dev
TreeHugger Robot [Wed, 5 Jun 2019 20:00:32 +0000 (20:00 +0000)]
Merge "Read the subtext of noti guts field on selection" into qt-dev

5 years agoFixed an issue where the insets of the cutout weren't respected
Selim Cinek [Wed, 5 Jun 2019 01:40:31 +0000 (18:40 -0700)]
Fixed an issue where the insets of the cutout weren't respected

Both the sampled region as well as the detection if it's in the
swipeable region did not factor in the cutout insets and
would calculate the wrong thing.

Bug: 132394665
Test: atest SystemUITests
Change-Id: I9d84f7c76bd987587546b69de6c2875dc5cb303b

5 years agoMerge "Always show ScreenDecorations when in gesture nav mode." into qt-dev
Matt Casey [Wed, 5 Jun 2019 19:02:35 +0000 (19:02 +0000)]
Merge "Always show ScreenDecorations when in gesture nav mode." into qt-dev

5 years agoDo not include specific_mention sections in bugreports either.
Joe Onorato [Wed, 5 Jun 2019 18:57:05 +0000 (11:57 -0700)]
Do not include specific_mention sections in bugreports either.

Test: adb bugreport & manually verify
Bug: 134583922
Change-Id: I6b4df17fc729f78e70e126882bce611a33c8ef9a

5 years agoMerge "Always prompt for limited connectivity." into qt-dev
TreeHugger Robot [Wed, 5 Jun 2019 18:50:32 +0000 (18:50 +0000)]
Merge "Always prompt for limited connectivity." into qt-dev

5 years agoClarify documentation for sensor placement
Brian Duddie [Wed, 5 Jun 2019 18:41:40 +0000 (11:41 -0700)]
Clarify documentation for sensor placement

Update documentation to be in sync with new language added to HAL
interface, which better explains the expected payload, format, and
usage.

Fixes: 133264933
Test: make docs, view HTML
Change-Id: Ib602674d395cb8c8e6431d23b051685c8d172560

5 years agoRead the subtext of noti guts field on selection
Julia Reynolds [Wed, 5 Jun 2019 18:30:05 +0000 (14:30 -0400)]
Read the subtext of noti guts field on selection

When using a11y services

Test: manual with Talkback
Bug: 133649570
Change-Id: Id022e47bef9848e4c5237808659531f8d1c0c953

5 years agoMerge "Triggering notifications when dual CDMA SIM combinations are detected" into...
Xiangyu/Malcolm Chen [Wed, 5 Jun 2019 18:03:17 +0000 (18:03 +0000)]
Merge "Triggering notifications when dual CDMA SIM combinations are detected" into qt-dev

5 years agoMerge "Don't send SessionCallbacks for DRY_RUN sessions." into qt-dev
TreeHugger Robot [Wed, 5 Jun 2019 17:36:41 +0000 (17:36 +0000)]
Merge "Don't send SessionCallbacks for DRY_RUN sessions." into qt-dev

5 years ago[automerger] Clear the Parcel before writing an exception during a transaction am...
Android Build Merger (Role) [Wed, 5 Jun 2019 17:32:04 +0000 (17:32 +0000)]
[automerger] Clear the Parcel before writing an exception during a transaction am: f8ef5bcf21 am: 86c9bdd251 am: 6d72c0681f am: d944d907df am: 31737b4618

Change-Id: I780fc62bcad56b4f1518a9a84ff7a77914f5c722

5 years ago[automerger] Clear the Parcel before writing an exception during a transaction am...
Android Build Merger (Role) [Wed, 5 Jun 2019 17:32:01 +0000 (17:32 +0000)]
[automerger] Clear the Parcel before writing an exception during a transaction am: f8ef5bcf21 am: 86c9bdd251 am: 6d72c0681f am: d944d907df

Change-Id: Ia92e1831963623df7931de17b029a92bab7f9374

5 years ago[automerger] Clear the Parcel before writing an exception during a transaction am...
Android Build Merger (Role) [Wed, 5 Jun 2019 17:31:57 +0000 (17:31 +0000)]
[automerger] Clear the Parcel before writing an exception during a transaction am: f8ef5bcf21 am: 86c9bdd251 am: 6d72c0681f

Change-Id: I38fbeaf20d21dd174e2b022196446631c20b2367

5 years ago[automerger] Clear the Parcel before writing an exception during a transaction am...
Android Build Merger (Role) [Wed, 5 Jun 2019 17:31:54 +0000 (17:31 +0000)]
[automerger] Clear the Parcel before writing an exception during a transaction am: f8ef5bcf21 am: 86c9bdd251

Change-Id: I16e96c2b33f18459189bfff359ae85483667a202

5 years ago[automerger] Clear the Parcel before writing an exception during a transaction am...
Android Build Merger (Role) [Wed, 5 Jun 2019 17:31:48 +0000 (17:31 +0000)]
[automerger] Clear the Parcel before writing an exception during a transaction am: f8ef5bcf21

Change-Id: I416ed302e6c680fd006bd9b38565ebfc8b132084

5 years agoClear the Parcel before writing an exception during a transaction
Michael Wachenschwanz [Thu, 16 May 2019 05:58:15 +0000 (22:58 -0700)]
Clear the Parcel before writing an exception during a transaction

This prevents any object data from being accidentally overwritten by the
exception, which could cause unexpected malformed objects to be sent
across the transaction.

Test: atest CtsOsTestCases:ParcelTest#testExceptionOverwritesObject
Bug: 34175893
Change-Id: Iaf80a0ad711762992b8ae60f76d861c97a403013
Merged-In: Iaf80a0ad711762992b8ae60f76d861c97a403013

5 years agoEnsure that the IME switcher button is always touchable
Winson Chung [Wed, 5 Jun 2019 16:57:01 +0000 (09:57 -0700)]
Ensure that the IME switcher button is always touchable

Bug: 134521910
Test: Manual, plug in external keyboard and ensure the IME
      switcher is tappable

Change-Id: Ic76fc3f85f2862a628810888b651ecaa284a4a5f

5 years agoUpdate KeyguardMonitor when UnlockMethod changes
Fabian Kozynski [Wed, 5 Jun 2019 16:42:06 +0000 (12:42 -0400)]
Update KeyguardMonitor when UnlockMethod changes

If UnlockMethodChanges but StatusBarState does not, KeyguardMonitor was
not updated. This happened when user changed and may have made
KeyguardMonitor believe it was not secure.

Test: manual: Create another user and and have "Add users on lock
screen" off. Switch from secondary to owner without going out of
KEYGUARD
Fixes: 134447252

Change-Id: Id39bf876d6e573002965d0aa14fd6e54c323aba9

5 years agoMerge "Always start launcher when empty home stack is being resumed" into qt-dev
Andrii Kulian [Wed, 5 Jun 2019 16:38:17 +0000 (16:38 +0000)]
Merge "Always start launcher when empty home stack is being resumed" into qt-dev

5 years agoAdd a rolling log of external vibrations
Alexey Kuzmin [Wed, 5 Jun 2019 16:20:26 +0000 (17:20 +0100)]
Add a rolling log of external vibrations

Bug: 133200481
Test: Dump vibrator service after some audio-coupled vibrations
Change-Id: I3c5d8e3f6ce6828282780ece9d5977138b154040

5 years agoMerge "Avoid creating multiple death recipients for same observer" into qt-dev
Makoto Onuki [Wed, 5 Jun 2019 15:54:05 +0000 (15:54 +0000)]
Merge "Avoid creating multiple death recipients for same observer" into qt-dev

5 years agoAlways prompt for limited connectivity.
Lorenzo Colitti [Tue, 4 Jun 2019 10:29:50 +0000 (19:29 +0900)]
Always prompt for limited connectivity.

Bug: 130766237
Test: See subsequent CL in same patch series.
Change-Id: I45b4a7ba2e21c0be868939d8c7bb78891d69c48b

5 years agoMerge "Perform userdata backup for all matching rollbacks" into qt-dev
Gavin Corkery [Wed, 5 Jun 2019 15:29:22 +0000 (15:29 +0000)]
Merge "Perform userdata backup for all matching rollbacks" into qt-dev

5 years agoMerge "Update docs for EXTRA_PROVISIONING_SKIP_EDUCATION_SCREENS." into qt-dev
Antoan Angelov [Wed, 5 Jun 2019 14:17:39 +0000 (14:17 +0000)]
Merge "Update docs for EXTRA_PROVISIONING_SKIP_EDUCATION_SCREENS." into qt-dev

5 years agoAlways show ScreenDecorations when in gesture nav mode.
Matt Casey [Tue, 4 Jun 2019 22:55:51 +0000 (18:55 -0400)]
Always show ScreenDecorations when in gesture nav mode.

ScreenDecorations host the handles for the assist gesture, which are
available on non-rounded phones as well.

Only show the overlay that is actually in use.

Bug: 134487710
Test: atest ScreenDecorationsTest, manual testing on walleye
Change-Id: I00d1a274d5a236fb2f4679d80bd38db6f24d06bc