Commit Graph

424299 Commits

Author SHA1 Message Date
Bill Yi
efec4764b4 [automerger skipped] Import translations. DO NOT MERGE
am: 332e8f4e81 -s ours
am skip reason: subject contains skip directive

Change-Id: Id2f6efd386d21d7a80994896ed40f45d896e4716
2019-10-05 23:30:09 -07:00
TreeHugger Robot
e258cc65f6 Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev 2019-10-06 05:53:16 +00:00
Bill Yi
f0cd160410 Import translations. DO NOT MERGE
Change-Id: I995c79defa649cee05b3c78398c329876f5bc98e
Auto-generated-cl: translation import
2019-10-05 17:27:08 -07:00
Bill Yi
332e8f4e81 Import translations. DO NOT MERGE
Change-Id: Iae1b021de5e543f5b157cde38e1f693a104f1fbe
Auto-generated-cl: translation import
2019-10-05 17:17:00 -07:00
Bill Yi
9519141cd6 Import translations. DO NOT MERGE
Change-Id: I9f9de2b8c2eba8c43c8f99ff2ad24a2af42609d7
Auto-generated-cl: translation import
2019-10-05 07:08:42 -07:00
Ahan Wu
32c6a7c691 Validate wallpaper dimension while generating crop
If dimensions of cropped wallpaper exceed max texture size that GPU can
support, it will cause sysui keep crashing because it can not initialize
egl with an appropriate surface.

Bug: 120847476.
Test: Write a custom app to set a 8000x800 bitmap as wallpaper.
Test: The cropped file will be 29600x2960 and make sysui keep crashing.
Test: After applyed this cl, wallpaper will use fallback.
Test: Sysui will not keep crashing any more.
Change-Id: Icdc6292191d1e966c52640f4c1a5a154dfba45d3
2019-10-05 08:27:57 +08:00
Mingguang Xu
9c1464d7ca Merge "Revert "Wifi usability: Change the unit of the threshold for tx/rx throughput from Mbps to Kbps"" into qt-qpr1-dev 2019-10-04 23:27:38 +00:00
Mingguang Xu
038345da61 Revert "Wifi usability: Change the unit of the threshold for tx/rx throughput from Mbps to Kbps"
This reverts commit 078fe45552.

Reason for revert: This change introduced a bug and it completely changed the functionality of WiFi data stall detection, e.g., high Tx link speed can easily trigger data stall.  We would like to roll back them to restore the normal functionality of Wifi data stall detection.

Bug: 141995185

Change-Id: I024808b580955545b084112c4b14921f038b595f
Merged-In: I078d28ed81a84e32aaece839a51590364a974481
2019-10-04 21:19:53 +00:00
Evan Laird
3b8c4743f6 Force FGS notifications to show for a minimum time
It's possible for a service to do a start/stop foreground and cause a
couple of things to happen:

NotificationManagerService will enqueue a EnqueueNotificationRunnable,
post a PostNotificationRunnable (for the startForeground), and then also
enqueue a CancelNotificationRunnable. There is some racy behavior here
in that the cancel runnable can get triggered in between enqueue and
post runnables. If the cancel happens first, then
NotificationListenerServices will never get the message.

This behavior is technically allowed, however for foreground services we
want to ensure that there is a minmum amount of time that notification
listeners are aware of the foreground service so that (for instance) the
FGS notification can be shown.

This CL does two things to mitigate this problem:

1. Introduce checking in the CancelNotificationRunnable such that it
will not cancel until after PostNotificationRunnable has finished
executing.

2. Introduce a NotificationLifetimeExtender method that will allow a
lifetime extender to manage the lifetime of a notification that has been
enqueued but not inflated yet.

Bug: 119041698
Test: atest NotificationManagerServiceTest
Test: atest ForegroundServiceLifetimeExtenderTest
Change-Id: I0680034ed9315aa2c05282524d48faaed066ebd0
Merged-In: I0680034ed9315aa2c05282524d48faaed066ebd0
2019-10-04 16:54:50 -04:00
Kevin Hufnagle
d0c19f1162 docs: Edited sharedUserId deprecation message
Test: make ds-docs -j32

Bug: 142139123
Change-Id: I3485785126f268c76f81f760fc19e0506929b272
2019-10-04 19:49:03 +00:00
Philip P. Moltmann
7cd4256dde Merge "Update PermissionChecker usages to avoid unnecessary attribution." into qt-dev am: 0a71df1f7e
am: 43f6144e21

Change-Id: Ib8548cbfc7531a5f5e9100ae26cf9b6c8f97760f
2019-10-04 12:05:17 -07:00
Philip P. Moltmann
43f6144e21 Merge "Update PermissionChecker usages to avoid unnecessary attribution." into qt-dev
am: 0a71df1f7e

Change-Id: I658626de14fa325e08db3aead53707d8d3e00d3b
2019-10-04 11:43:06 -07:00
Philip P. Moltmann
0a71df1f7e Merge "Update PermissionChecker usages to avoid unnecessary attribution." into qt-dev 2019-10-04 18:23:30 +00:00
Bryan Ferris
e0c730671a Merge "Only allow INSTALL_ALLOW_TEST from shell or root" into qt-dev am: 06684aed55
am: b2450ab526

Change-Id: I468c17380579d2caad0991e55043f68e10eb5a1a
2019-10-04 11:05:20 -07:00
Bryan Ferris
b2450ab526 Merge "Only allow INSTALL_ALLOW_TEST from shell or root" into qt-dev
am: 06684aed55

Change-Id: I166f54becf2d4fa99939c1d9b5e9c335f70e8a69
2019-10-04 10:57:23 -07:00
Bryan Ferris
06684aed55 Merge "Only allow INSTALL_ALLOW_TEST from shell or root" into qt-dev 2019-10-04 17:42:36 +00:00
Ricky Wai
5f5bacfda0 Revert new app installed notification doc
Bug: 111214100
Test: Able to compile
Change-Id: Id4fdabf0e8c69074eb8cb5838ab11d9d5f030093
2019-10-04 16:10:17 +01:00
Ahan Wu
3573cdd4c8 DO NOT MERGE Add debug log to trace wallpaper rendering
Add some debug logs to trace black wallpaper issue.

Bug: 139487871
Test: Manually switch between app and home.
Test: Observe log.
Change-Id: I8a81f2c4f4b368d6140227308080a7a5a65eb376
2019-10-04 17:34:43 +08:00
Kun Niu
66a5871d68 add java_api_finder plugin to mainline module Media to generate java APIs used by Media.
Bug: 129294170
Test: m updatable-media RUN_ERROR_PRONE=true |& tee media_error_prone.out
Change-Id: I3cdfe5e00394c6ff7b9c857f63a5e45ac79f8d24
(cherry picked from commit 6eff1d439b)
Merged-In: I3cdfe5e00394c6ff7b9c857f63a5e45ac79f8d24
2019-10-04 00:45:18 +00:00
Svet Ganov
7fe065eb66 Update PermissionChecker usages to avoid unnecessary attribution.
We had accidental usages of the PermissionChecker for cases where no
private data was provided to the app but the checkPermission API on
the latter also did blame data access on the app. The PermissionChecker
was designed to handle IPC calls and not for generic API checks.

To avoid future accidental incorrect PermissionChecker usages this
change renames the existing APIs of the latter to clearly indicate
that they should be used for data delivery and also adds sibling
methods for doing the same permission checks for preflight purposes.
Also the documentation is improved to furhter assist developers.

In addition, this change fixes accidental permission checker usages
that blame when they should not by using the new preflight flavor
of the permission check APIs.

Test:
    atest com.android.settingslib.location.RecentLocationAppsTest
    atest CtsPermissionTestCases
    added: LocationAccessCheckTest#notificationOnlyForAccessesSinceFeatureWasEnabled
    added: LocationAccessCheckTest#noNotificationIfFeatureDisabled
    added: LocationAccessCheckTest#noNotificationIfBlamerNotSystemOrLocationProvider
    added: LocationAccessCheckTest#testOpeningLocationSettingsDoesNotTriggerAccess

bug:141028068
Merged-In: I65c71569d0dd8a40bc6fecabb22c5373dd6e806e
Change-Id: I65c71569d0dd8a40bc6fecabb22c5373dd6e806e
2019-10-03 21:58:13 +00:00
John Reck
8d0da1a6c5 Ensure SKP serialization occurs on RenderThread
Instead of doing lazy serialization of SKP on the
background executor serialize to a byte[] immediately
at callback invocation. This ensures no potential
for later mutations, race conditions, or wrong-thread issues
at the expense of potentially impacting app rendering performance.

However it seems preferable for a debug-only tool to be a slow
instead of very crashy.

Bug: 141772764
Test: test app
Change-Id: I3316d49970b96f1c59bb0a28ff7335db608e539e
2019-10-03 13:20:08 -07:00
Bill Yi
678feaf43a Import translations. DO NOT MERGE
Change-Id: Ide61c9ab75cc7c5a906a9313a0686d082f796804
Auto-generated-cl: translation import
2019-10-02 17:45:56 -07:00
Seigo Nonaka
e548ea7764 [automerger skipped] RESTRICT AUTOMERGE Do not compute outside given range in TextLine am: 4ce901e405 am: b51c7bb175 am: af62f3a7b3 -s ours am: 86ddd9eb6a -s ours am: eab868fa63
am: 59bfe5d653

Change-Id: Ie4856b8d5ef454e47f336b681af0a899c96dcb33
2019-10-02 10:44:31 -07:00
Seigo Nonaka
59bfe5d653 [automerger skipped] RESTRICT AUTOMERGE Do not compute outside given range in TextLine am: 4ce901e405 am: b51c7bb175 am: af62f3a7b3 -s ours am: 86ddd9eb6a -s ours
am: eab868fa63

Change-Id: I2f88eecd916f2642cc3cb0c8ba91ed6348247900
2019-10-02 10:38:35 -07:00
Seigo Nonaka
eab868fa63 [automerger skipped] RESTRICT AUTOMERGE Do not compute outside given range in TextLine am: 4ce901e405 am: b51c7bb175 am: af62f3a7b3 -s ours
am: 86ddd9eb6a -s ours
am skip reason: subject contains skip directive

Change-Id: Ie6db3a3499cb02ef1bd34232a4ca8fb362b18e7d
2019-10-02 10:30:08 -07:00
Sterling Huber
d659d0f3ee [automerger skipped] Merge "RESTRICT AUTOMERGE Do not compute outside given range in TextLine" into pi-dev am: e352c1f2bc -s ours am: 66e93df90a
am: 43a23b721a

Change-Id: Ie3ebb87b2a80189b7e06b93630898f5bb39715b6
2019-10-02 10:23:46 -07:00
Seigo Nonaka
86ddd9eb6a [automerger skipped] RESTRICT AUTOMERGE Do not compute outside given range in TextLine am: 4ce901e405 am: b51c7bb175
am: af62f3a7b3 -s ours
am skip reason: subject contains skip directive

Change-Id: Ifb67887f4b1a5860dca2569e57a74911efde801d
2019-10-02 10:10:34 -07:00
Seigo Nonaka
af62f3a7b3 RESTRICT AUTOMERGE Do not compute outside given range in TextLine am: 4ce901e405
am: b51c7bb175

Change-Id: I6770f4b1a884020c374a75f67eb762b2c2bfd538
2019-10-02 09:59:45 -07:00
Sterling Huber
43a23b721a [automerger skipped] Merge "RESTRICT AUTOMERGE Do not compute outside given range in TextLine" into pi-dev am: e352c1f2bc -s ours
am: 66e93df90a

Change-Id: I1c8d52d8db52e53f15095d43e9744ece11f9c900
2019-10-02 09:59:45 -07:00
Sterling Huber
66e93df90a [automerger skipped] Merge "RESTRICT AUTOMERGE Do not compute outside given range in TextLine" into pi-dev
am: e352c1f2bc -s ours
am skip reason: subject contains skip directive

Change-Id: Id51032f27a8325444290483a9a30da49da8ac2e2
2019-10-02 09:33:57 -07:00
Seigo Nonaka
b51c7bb175 RESTRICT AUTOMERGE Do not compute outside given range in TextLine
am: 4ce901e405

Change-Id: I739746d80a8dd29998a67c1d9aaa2d3f804ac57c
2019-10-02 09:33:53 -07:00
Sterling Huber
e352c1f2bc Merge "RESTRICT AUTOMERGE Do not compute outside given range in TextLine" into pi-dev 2019-10-02 15:51:19 +00:00
Ahan Wu
160c28c36d DO NOT MERGE Validate wallpaper dimension while generating crop
If dimensions of cropped wallpaper image exceed max texture size that
GPU can support, it will cause ImageWallpaper keep crashing
because hwui crashes by invalid operation (0x502).

Bug: 120847476.
Test: Write a custom app to set a 8000x800 bitmap as wallpaper.
Test: The cropped file will be 29600x2960 and make sysui keep crashing.
Test: After applyed this cl, wallpaper will use fallback.
Test: Sysui will not keep crashing any more.
Change-Id: Ifaf2085a0bc94448e49fa2f30066f47310586236
2019-10-02 03:13:50 +00:00
Ahan Wu
f1e1f4f04d DO NOT MERGE Validate wallpaper dimension while generating crop
If dimensions of cropped wallpaper image exceed max texture size that
GPU can support, it will cause ImageWallpaper keep crashing
because hwui crashes by invalid operation (0x502).

Bug: 120847476.
Test: Write a custom app to set a 8000x800 bitmap as wallpaper.
Test: The cropped file will be 29600x2960 and make sysui keep crashing.
Test: After applyed this cl, wallpaper will use fallback.
Test: Sysui will not keep crashing any more.
Change-Id: I8ed5931298c652a2230858cf62df3f6fcd345c5a
2019-10-02 11:02:03 +08:00
Selim Cinek
300dcfb7c3 Dismissed keyguard gone runnables when aborting
Previously those actions could linger around
and lead to a variety of bugs.
Also fixed an issue when gutsManager calls were overlapping
to protect against these issues

Fixes: 130885521
Test: atest SystemUITests
Test: see bug description
Change-Id: Iffe37e6d48bbc9c26ba92f362d7b67bf743c7c28
2019-10-01 16:18:02 -07:00
Bill Yi
e248e57375 [automerger skipped] Import translations. DO NOT MERGE
am: bfb7a7227c -s ours
am skip reason: subject contains skip directive

Change-Id: I0cd9a23fc9d8dc550921d4406e77485dd5a56582
2019-10-01 13:26:31 -07:00
Bill Yi
bfb7a7227c Import translations. DO NOT MERGE
BUG:138175268

Change-Id: I4e6ca4ed7c7ba4a39a15988100fad60dafd79c02
Auto-generated-cl: translation import
2019-10-01 11:19:50 -07:00
TreeHugger Robot
f5b1101af9 Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev 2019-09-30 22:47:26 +00:00
Bill Yi
e1a689b4e8 Import translations. DO NOT MERGE
Change-Id: I7f20d57db33a6376230cb2b28d5f82a21b12c1ce
Auto-generated-cl: translation import
2019-09-30 13:27:32 -07:00
Selim Cinek
29b8d32f0d Merge "Only calling finishedwhen all the animations have finished" into qt-qpr1-dev 2019-09-30 20:12:54 +00:00
Jungshik Shin
1ab055d9c6 Merge "Use NotoSansMyanmar (pure Unicode) fonts" into qt-dev am: e31854028e
am: b5c745e1ae

Change-Id: I344ffbb14c21d230d1089488e05f3f5c58653deb
2019-09-30 10:40:07 -07:00
Seigo Nonaka
4ce901e405 RESTRICT AUTOMERGE
Do not compute outside given range in TextLine

This is second attempt of I646851973b3816bf9ba32dfe26748c0345a5a081
which breaks various layout test on application.
The empty string must be also handled by the TextLine since it
retrieves the default line height from the empty string.

Bug: 140632678
Test: StaticLayoutTest
Test: Manually done
Change-Id: I7089ed9b711dddd7de2b27c9c2fa0fb4cb53a735
2019-09-30 17:33:07 +00:00
Seigo Nonaka
f582b9bc98 RESTRICT AUTOMERGE
Do not compute outside given range in TextLine

This is second attempt of I646851973b3816bf9ba32dfe26748c0345a5a081
which breaks various layout test on application.
The empty string must be also handled by the TextLine since it
retrieves the default line height from the empty string.

Bug: 140632678
Test: StaticLayoutTest
Test: Manually done
Change-Id: I7089ed9b711dddd7de2b27c9c2fa0fb4cb53a735
2019-09-30 17:32:57 +00:00
Jungshik Shin
b5c745e1ae Merge "Use NotoSansMyanmar (pure Unicode) fonts" into qt-dev
am: e31854028e

Change-Id: I5337ac53b41fc00b87e6c74604900764d28359fa
2019-09-30 10:27:18 -07:00
TreeHugger Robot
e31854028e Merge "Use NotoSansMyanmar (pure Unicode) fonts" into qt-dev 2019-09-30 17:09:15 +00:00
Selim Cinek
22fa97577f Only calling finishedwhen all the animations have finished
Previously we would finish way too early if any of the scrims
finished animation. Since some scrims almost never change, we
would have animations being terminated early.

Fixes: 141649119
Test: unlock with bypass, observe no lock icon change
Change-Id: I6aefd6a27ef315995d8e1ae62c27a5f33cc9e160
2019-09-30 09:58:20 -07:00
Kevin Hufnagle
3f80c14817 Merge "docs: Added link to multi-window drag how-to guide" into qt-dev am: 667b944522
am: 52145e2481

Change-Id: Ide5e154813dce831fb117a7d23e85737088b63bb
2019-09-30 09:29:21 -07:00
Kevin Hufnagle
52145e2481 Merge "docs: Added link to multi-window drag how-to guide" into qt-dev
am: 667b944522

Change-Id: Ic5039fb781c73c2e1691c4c32afc7e35a9713683
2019-09-30 09:23:00 -07:00
Kevin Hufnagle
667b944522 Merge "docs: Added link to multi-window drag how-to guide" into qt-dev 2019-09-30 16:10:39 +00:00
Bernardo Rufino
ae9fdac2e7 Merge "Don't consider tasks with INITIALIZING top activity as visible" into qt-dev am: 0a252361dd
am: 48c2a0f493

Change-Id: I58ac53455d40a3c96a738dd29e7e90b9e99a8af3
2019-09-30 04:25:00 -07:00