OSDN Git Service
Automerger Merge Worker [Thu, 12 Dec 2019 07:30:36 +0000 (07:30 +0000)]
[automerger skipped] DO NOT MERGE back porting for fixing sysui direct reply am:
08aae90860 am:
a37fe87922 am:
bf965b484f -s ours am skip reason: subject contains skip directive am:
dec51767c9 -s ours
am skip reason: subject contains skip directive
Change-Id: Icc516d8aa87f24084cf3c7053bf260357ccbc72a
Automerger Merge Worker [Thu, 12 Dec 2019 07:10:17 +0000 (07:10 +0000)]
[automerger skipped] DO NOT MERGE back porting for fixing sysui direct reply am:
08aae90860 am:
a37fe87922 am:
bf965b484f -s ours
am skip reason: subject contains skip directive
Change-Id: Idb67d00b6ace91b47ec5e633be5c2f23942934bf
Automerger Merge Worker [Thu, 12 Dec 2019 06:49:56 +0000 (06:49 +0000)]
DO NOT MERGE back porting for fixing sysui direct reply am:
08aae90860 am:
a37fe87922
Change-Id: Ic5b84e6b650b01d38801a2ff39c059a51173fe0b
Automerger Merge Worker [Thu, 12 Dec 2019 05:00:18 +0000 (05:00 +0000)]
DO NOT MERGE back porting for fixing sysui direct reply am:
08aae90860
Change-Id: Iebebd941ee806b4e06d35f2134113f609160396f
Automerger Merge Worker [Thu, 12 Dec 2019 02:54:53 +0000 (02:54 +0000)]
[automerger skipped] Merge "DO NOT MERGE back porting for fixing sysui direct reply" into pi-dev am:
da2466a36d -s ours
am skip reason: subject contains skip directive
Change-Id: I784440f3454db036f414da52065ac6afc1f92e3f
TreeHugger Robot [Thu, 12 Dec 2019 02:38:28 +0000 (02:38 +0000)]
Merge "DO NOT MERGE back porting for fixing sysui direct reply" into pi-dev
Automerger Merge Worker [Thu, 12 Dec 2019 00:17:28 +0000 (00:17 +0000)]
[automerger skipped] Merge changes Iaa78a7ed,I6497b7ef into pi-dev am:
6e79d000ab -s ours
am skip reason: Change-Id Iaa78a7edcf23755c89d7b354edbc28d37d74d891 with SHA-1
f98611062c is in history
Change-Id: I92c1131ef02f7ca5e399b47c62993cf28719b66a
Lorenzo Colitti [Wed, 11 Dec 2019 23:55:10 +0000 (23:55 +0000)]
Merge changes Iaa78a7ed,I6497b7ef into pi-dev
* changes:
Support strict mode private DNS on VPNs that provide Internet.
Add test coverage for strict mode private DNS.
Automerger Merge Worker [Wed, 11 Dec 2019 22:17:36 +0000 (22:17 +0000)]
[automerger skipped] Merge "RESTRICT AUTOMERGE Disable TextClassifier for RemoteInputView." into pi-dev am:
4828033816 -s ours
am skip reason: subject contains skip directive
Change-Id: I744ace4b545c756b50b9d5708c46957ec920fa8b
Abodunrinwa Toki [Wed, 11 Dec 2019 21:58:38 +0000 (21:58 +0000)]
Merge "RESTRICT AUTOMERGE Disable TextClassifier for RemoteInputView." into pi-dev
Automerger Merge Worker [Wed, 11 Dec 2019 21:44:09 +0000 (21:44 +0000)]
[automerger skipped] Merge "DO NOT MERGE: Disable SpellChecker in secondary user's direct reply" into pi-dev am:
319f57f0d7 -s ours
am skip reason: subject contains skip directive
Change-Id: Iba84efe287e2a35d51693ceb76caa035c6efdf2f
TreeHugger Robot [Wed, 11 Dec 2019 21:30:13 +0000 (21:30 +0000)]
Merge "DO NOT MERGE: Don't let NotificationEntryManager keep around old RankingMaps" into qt-dev
Evan Laird [Tue, 10 Dec 2019 22:15:03 +0000 (17:15 -0500)]
DO NOT MERGE: Don't let NotificationEntryManager keep around old RankingMaps
When a notification becomes lifetime-extended, NotificationEntryManager
was holding onto the RankingMap that was passed at the time of removal
of _that_ notification, and using it again in the
NotificationSafeToRemoveCallback. The problem here is that when
onSafeToRemove gets called, it was passing that same stale ranking map
to removeNotification, which caused any notification that arrived in the
intervening time to get improperly ranked.
This fixes an issue where any notification that arrives while another is
lifetime-extended can get the wrong ranking applied to it, causing
trouble later in time such as mis-ranking and mis-sorting until the next
update from system server.
Bug:
146046016
Bug:
119041698
Test: atest SystemUITests
Test: manual - Post a FGS notification and immediately cancel, then post
a regular notification and wait for the FGS notification to dismiss.
Note that the regular notification keeps showing in the status bar.
Change-Id: I3df1279f13c424fcedd878bae2095fadc75d61b4
TreeHugger Robot [Wed, 11 Dec 2019 21:10:46 +0000 (21:10 +0000)]
Merge "DO NOT MERGE: Disable SpellChecker in secondary user's direct reply" into pi-dev
TreeHugger Robot [Wed, 11 Dec 2019 20:55:34 +0000 (20:55 +0000)]
Merge "RESTRICT AUTOMERGE TextClassifier cross-user vulnerability in direct-reply" into qt-dev
Automerger Merge Worker [Wed, 11 Dec 2019 20:17:43 +0000 (20:17 +0000)]
[automerger skipped] Merge "DO NOT MERGE: Disable SpellChecker in secondary user's direct reply" into oc-dev am:
70ffc41cad am:
063d83ca63 am:
402a7b2c33 -s ours am skip reason: subject contains skip directive am:
e561e0fdbb -s ours
am skip reason: subject contains skip directive
Change-Id: I3b336c9f55f01e5213ff15a60a99c042cd039671
Automerger Merge Worker [Wed, 11 Dec 2019 20:17:34 +0000 (20:17 +0000)]
[automerger skipped] DO NOT MERGE: Disable SpellChecker in secondary user's direct reply am:
b52efcb9d5 am:
9b1ddfe488 am:
4f5d0e446e -s ours am skip reason: subject contains skip directive am:
9238b76a83 -s ours
am skip reason: subject contains skip directive
Change-Id: I97b04b1eb70144e0c34e608b13bf2868fa1dce4b
Automerger Merge Worker [Wed, 11 Dec 2019 19:53:03 +0000 (19:53 +0000)]
[automerger skipped] Merge "DO NOT MERGE: Disable SpellChecker in secondary user's direct reply" into oc-dev am:
70ffc41cad am:
063d83ca63 am:
402a7b2c33 -s ours
am skip reason: subject contains skip directive
Change-Id: Ie33411c2b6b95dba41997171acf0fced3ba4a740
Automerger Merge Worker [Wed, 11 Dec 2019 19:52:49 +0000 (19:52 +0000)]
[automerger skipped] DO NOT MERGE: Disable SpellChecker in secondary user's direct reply am:
b52efcb9d5 am:
9b1ddfe488 am:
4f5d0e446e -s ours
am skip reason: subject contains skip directive
Change-Id: I770bd1ba8cc66b4179e88f194d45bb715be1977c
Automerger Merge Worker [Wed, 11 Dec 2019 19:30:18 +0000 (19:30 +0000)]
Merge "DO NOT MERGE: Disable SpellChecker in secondary user's direct reply" into oc-dev am:
70ffc41cad am:
063d83ca63
Change-Id: I0622df10fdde4fb961c920fc0c9529e4c3b3ecfc
Automerger Merge Worker [Wed, 11 Dec 2019 19:30:08 +0000 (19:30 +0000)]
DO NOT MERGE: Disable SpellChecker in secondary user's direct reply am:
b52efcb9d5 am:
9b1ddfe488
Change-Id: Idcdef9d986a8d0e2f6f0209fd550900a6275796d
Automerger Merge Worker [Wed, 11 Dec 2019 19:10:38 +0000 (19:10 +0000)]
Merge "DO NOT MERGE: Disable SpellChecker in secondary user's direct reply" into oc-dev am:
70ffc41cad
Change-Id: I8439eee725f85cc1e939772663a4217e5dde2e38
Automerger Merge Worker [Wed, 11 Dec 2019 19:10:27 +0000 (19:10 +0000)]
DO NOT MERGE: Disable SpellChecker in secondary user's direct reply am:
b52efcb9d5
Change-Id: I438383977e4b7454e732dba8d2906a8c333f2bad
Taran Singh [Wed, 11 Dec 2019 18:52:54 +0000 (18:52 +0000)]
Merge "DO NOT MERGE: Disable SpellChecker in secondary user's direct reply" into oc-dev
Lorenzo Colitti [Fri, 10 May 2019 11:33:43 +0000 (04:33 -0700)]
Support strict mode private DNS on VPNs that provide Internet.
Currently, strict mode private DNS does not work on VPNs because
NetworkMonitor does not validate VPNs. When a VPN connects, it
immediately transitions to ValidatedState, skipping private DNS
hostname resolution.
This change makes NetworkMonitor perform private DNS hostname
resolution and evaluation even on VPNs.
In order to ensure that the system always immediately switches to
the VPN as soon as it connects, remove the unvalidated penalty
for VPN networks. This ensures that the VPN score is always 101
and the VPN always outscores other networks as soon as it
connects. Previously, it would only outscore other networks
when no-op validation completed.
Backport of
414b8c8b1ce8ae2ad6ef95c1ffba19062077d3e6.
Bug:
122652057
Test: atest FrameworksNetTests
Test: manually ran a VPN with private DNS in strict mode
Test: atest android.net.cts.ConnectivityManagerTest com.android.cts.net.HostsideVpnTests
Change-Id: Iaa78a7edcf23755c89d7b354edbc28d37d74d891
Merged-In: Iaa78a7edcf23755c89d7b354edbc28d37d74d891
Lorenzo Colitti [Fri, 25 Oct 2019 16:20:57 +0000 (01:20 +0900)]
Add test coverage for strict mode private DNS.
Support faking out the DNS lookups used by NetworkMonitor to
resolve strict mode DNS, and add more test coverage.
These tests were partly adapted from tests we have in Q but
also contain new coverage. This is because in Q the interface
between ConnectivityService and NetworkMonitor changed
substantially, and it is impractical to backport
NetworkMonitorTest.
Bug:
122652057
Test: atest FrameworksNetTests
Change-Id: I6497b7efa539267576d38d3036eef0af0df4e9cb
Merged-In: Iaa78a7edcf23755c89d7b354edbc28d37d74d891
TreeHugger Robot [Tue, 10 Dec 2019 20:39:08 +0000 (20:39 +0000)]
Merge "Revoke granted permission when the permission defining app is removed." into qt-dev
TreeHugger Robot [Thu, 5 Dec 2019 00:28:44 +0000 (00:28 +0000)]
Merge "DO NOT MERGE Remove *.aidl for parcelable declarations from srcs" into qt-dev
Jin Seok Park [Wed, 4 Dec 2019 02:16:32 +0000 (02:16 +0000)]
Merge "[DO NOT MERGE] Return correct offsets for getAttributeRange()" into qt-dev
Nick Cook [Mon, 2 Dec 2019 22:50:55 +0000 (22:50 +0000)]
Merge "docs: Delete duplicate word." into qt-dev
TreeHugger Robot [Mon, 2 Dec 2019 22:18:44 +0000 (22:18 +0000)]
Merge "Doc: Adds a link to the WifiRTT codelab" into qt-dev
David Castro [Fri, 15 Nov 2019 23:01:04 +0000 (23:01 +0000)]
Doc: Adds a link to the WifiRTT codelab
BUG:
113332240
Change-Id: I404de18dd3c8880332b5a103079723fb1927d60d
Exempt-From-Owner-Approval: Docs-only change
Nick Cook [Wed, 27 Nov 2019 22:03:40 +0000 (22:03 +0000)]
docs: Delete duplicate word.
Change-Id: I09fcceda7a7b0fd291c57a3005d4e027ecb99bcc
bug:
145259639
Jiyong Park [Mon, 21 Oct 2019 04:19:42 +0000 (13:19 +0900)]
DO NOT MERGE Remove *.aidl for parcelable declarations from srcs
When an AIDL file is listed in the srcs property, the build system
expects a Java file for the AIDL file even when the AIDL file is for a
parcelable declaration. Previously, the AIDL compiler generated an empty
Java file in that case, but with Iaa9c78c5df06afee165462db05c6dc6e11a1ba8a
that is no longer the case.
Therefore, removing two AIDL files for the parcelable declarations from
the srcs property.
Note that, in master branch (for R and beyond), we don't need to
filter-out such AIDL files because the build system expects a srcjar
file from AIDL files. This change is only for Q where the build system
change doesn't exist.
Bug:
143993752
Test: m
Merged-In: I0705ddf76b3c628127f65d75e0a8b06c6c250fe2
Change-Id: Iadb82092b8f6ea12c93285e9e0af18845f0feab9
TreeHugger Robot [Fri, 22 Nov 2019 16:48:36 +0000 (16:48 +0000)]
Merge "Removes reference to deprecated code sample, https://github.com/googlesamples/android-CustomChoiceList." into qt-dev
David Castro [Fri, 22 Nov 2019 15:57:29 +0000 (15:57 +0000)]
Merge "Expands on the definition of the timestamp parameter, as per clju@ in BUG:
119380943." into qt-dev
David Castro [Fri, 22 Nov 2019 03:36:51 +0000 (03:36 +0000)]
Merge "Updates the description of the provider parameter as per feedback in BUG:
111695926." into qt-dev
David Castro [Mon, 18 Nov 2019 19:25:20 +0000 (19:25 +0000)]
Updates the description of the provider parameter as per feedback in
BUG:
111695926.
Change-Id: I74fa22d7733d06616be44da3923649271584090c
TreeHugger Robot [Thu, 21 Nov 2019 12:37:08 +0000 (12:37 +0000)]
Merge "Removed the confusing note as per guidance from mylesgw@ in BUG:
117309989." into qt-dev
David Castro [Fri, 15 Nov 2019 23:51:03 +0000 (23:51 +0000)]
Removed the confusing note as per guidance from mylesgw@ in
BUG:
117309989.
Change-Id: I07680c04798642d21420bbea5c6b592c1c741f43
David Castro [Mon, 18 Nov 2019 20:10:38 +0000 (20:10 +0000)]
Removes reference to deprecated code sample, https://github.com/googlesamples/android-CustomChoiceList.
BUG:
140947822
Change-Id: I77b9e3a5b466afea51467418f25ffe7f1b921c7d
David Castro [Sat, 16 Nov 2019 00:16:13 +0000 (00:16 +0000)]
Expands on the definition of the timestamp parameter, as per clju@ in
BUG:
119380943.
Change-Id: Ib0f440a1f07eb1dad7690723a1b133955ad290b4
Evan Laird [Wed, 20 Nov 2019 19:36:55 +0000 (11:36 -0800)]
[automerger skipped] resolve merge conflicts of
88c651eab144bf64acb1d99f11aabe983f23658c to oc-dr1-dev am:
2bb3845dff -s ours am:
ff797c3ba3 -s ours
am:
b868794d17 -s ours
am skip reason: change_id I0680034ed9315aa2c05282524d48faaed066ebd0 with SHA1
5136eefeb3 is in history
Change-Id: I91c96455652ba75033f7bc56fa70d31c0dc019d0
Evan Laird [Wed, 20 Nov 2019 19:28:47 +0000 (11:28 -0800)]
[automerger skipped] resolve merge conflicts of
88c651eab144bf64acb1d99f11aabe983f23658c to oc-dr1-dev am:
2bb3845dff -s ours
am:
ff797c3ba3 -s ours
am skip reason: change_id I0680034ed9315aa2c05282524d48faaed066ebd0 with SHA1
3b8c4743f6 is in history
Change-Id: I4236581921e3572b932a95c37a69a062e90b9231
Automerger Merge Worker [Wed, 20 Nov 2019 19:05:29 +0000 (19:05 +0000)]
[automerger skipped] resolve merge conflicts of
88c651eab144bf64acb1d99f11aabe983f23658c to oc-dr1-dev am:
2bb3845dff -s ours
am skip reason: Change-Id I0680034ed9315aa2c05282524d48faaed066ebd0 with SHA-1
3692a6d231 is in history
Change-Id: I43e5186089d0f40fccdcf9ac85c78f8bda488aac
Jin Seok Park [Tue, 19 Nov 2019 09:55:40 +0000 (18:55 +0900)]
[DO NOT MERGE] Return correct offsets for getAttributeRange()
Cherry-picked from ag/
9745767
Currently, the offset value returned from getAttributeRange() does
not take into account the offset to the EXIF data within the image
file. This CL fixes the code to return the correct offsets.
The existing test code could not detect this issue because it does
not explicitly seek to the given offset and retrieve/compare the
data. This CL also adds test code to do this. Make tag information
is also added because all test files have this information, while only
a select few have thumbnail/GPS tag information.
This CL also fixes a bug where the thumbnail offset was not being
updated if the data was passed with StripOffsets tag.
Bug:
143118731, Bug:
143663411
Test: atest ExifInterfaceTest
Change-Id: Ia147cdcacf4699c5e7efc43f52e58b945032a51f
Jerome Gaillard [Tue, 19 Nov 2019 12:12:59 +0000 (12:12 +0000)]
Merge "Use Metalava to get SDK metadata for devtools" into qt-dev
Kevin Hufnagle [Mon, 18 Nov 2019 21:47:10 +0000 (21:47 +0000)]
Merge "docs: Updated desc. of lockNow() method and its overload" into qt-dev
Jerome Gaillard [Thu, 10 Oct 2019 18:09:21 +0000 (19:09 +0100)]
Use Metalava to get SDK metadata for devtools
Metalava, not Doclava, should be used to extract the metadata used in
devtools. The files created then need to be copied into the SDK.
Bug:
142480924
Test: m sdk
Change-Id: I7eb15341fde9520d51a696a6416a63e6c19c71f9
Merged-In: I7eb15341fde9520d51a696a6416a63e6c19c71f9
Kevin Hufnagle [Sat, 24 Aug 2019 01:18:39 +0000 (01:18 +0000)]
docs: Updated desc. of lockNow() method and its overload
Explains in more complete detail who should call lockNow(), when to call the method,
and what happens when there's no lock set on a device.
Test: make ds-docs -j32
Bug:
28831838
Change-Id: I5acc0cbfa63dffe8676e8b60476b584fd43b5bde
Evan Laird [Thu, 14 Nov 2019 16:27:07 +0000 (11:27 -0500)]
resolve merge conflicts of
88c651eab144bf64acb1d99f11aabe983f23658c to oc-dr1-dev
Bug:
119041698
Test: atest SystemUITests
Change-Id: I9d1547f98cc19111ce2dc8ab2f4e2bf2d3cb0baa
Merged-In: I0680034ed9315aa2c05282524d48faaed066ebd0
TreeHugger Robot [Wed, 13 Nov 2019 01:26:15 +0000 (01:26 +0000)]
Merge "docs: fix code example" into qt-dev
TreeHugger Robot [Tue, 12 Nov 2019 23:10:51 +0000 (23:10 +0000)]
Merge "docs: fix typos" into qt-dev
Yohei Yukawa [Sat, 19 Jan 2019 19:49:37 +0000 (11:49 -0800)]
DO NOT MERGE back porting for fixing sysui direct reply
Root cause: systemui run as user 0 service to handle all of users'
notifications. And, the users can user the copy/cut/paste
functionality.
Solution: To crate @hide API in TextView let SystemUI to mark the
TextView instance should check if the power of
INTERACT_ACROSS_USER_FULL is needed to be restricted.
e.x. Keyguard password textview/Notificaiton entries
Bug:
123232892
Test: manual test
Reference: I6d11e4d6a84570bc2991a8552349e8b216b0d139
Reference: Ibabe13e5b85e5bb91f9f8af6ec07c395c25c4393
Reference: I975baa748c821538e5a733bb98a33ac609bf40a7
Change-Id: I6d11e4d6a84570bc2991a8552349e8b216b0d139
Merged-In: Ie3daecd1e8fc2f7fdf37baeb5979da9f2e0b3937
Merged-In: I6d11e4d6a84570bc2991a8552349e8b216b0d139
Joshua Baxter [Tue, 12 Nov 2019 01:00:44 +0000 (01:00 +0000)]
Merge "docs: fix typo" into qt-dev
Joshua Baxter [Thu, 18 Jul 2019 21:12:33 +0000 (21:12 +0000)]
docs: fix typos
bug:
119075364
Change-Id: I452fc3bb80ffc7466d096b7eaf5becd18bc1fb45
test: make ds-docs
Joshua Baxter [Thu, 18 Jul 2019 20:45:53 +0000 (20:45 +0000)]
docs: fix code example
bug:
135556269
Change-Id: I9ba7a0f7de0322ba5e82413c0a95dffbef5a6236
test: make ds-docs
Joshua Baxter [Mon, 11 Nov 2019 21:52:31 +0000 (21:52 +0000)]
Merge "docs: Fix docs for Canvas#drawTextOnPath add parameter descriptions for index and count in drawTextOnPath fix a couple of typos" into qt-dev
TreeHugger Robot [Sat, 9 Nov 2019 02:27:54 +0000 (02:27 +0000)]
Merge "docs: fix typos" into qt-dev
Joshua Baxter [Thu, 18 Jul 2019 21:16:19 +0000 (21:16 +0000)]
docs: fix typo
bug:
119479852
Change-Id: I5c2c31432446ef6fccf3ac80e44a1660654375c0
Test: make ds-docs
Joshua Baxter [Fri, 8 Nov 2019 22:55:18 +0000 (22:55 +0000)]
Merge "docs: remove incorrect (default) identifiers" into qt-dev
TreeHugger Robot [Fri, 8 Nov 2019 22:30:24 +0000 (22:30 +0000)]
Merge "Force FGS notifications to show for a minimum time" into oc-dev
Evan Laird [Fri, 8 Nov 2019 21:25:14 +0000 (13:25 -0800)]
[automerger skipped] Force FGS notifications to show for a minimum time am:
3692a6d231 -s ours
am:
663d3d7991 -s ours
am skip reason: change_id I0680034ed9315aa2c05282524d48faaed066ebd0 with SHA1
3b8c4743f6 is in history
Change-Id: I74620297e68c2bfd6664ed903f912e5e25d575be
Evan Laird [Fri, 8 Nov 2019 21:19:35 +0000 (13:19 -0800)]
[automerger skipped] Force FGS notifications to show for a minimum time
am:
3692a6d231 -s ours
am skip reason: change_id I0680034ed9315aa2c05282524d48faaed066ebd0 with SHA1
3b8c4743f6 is in history
Change-Id: I575817ba777d7212391d75a6163c28e75c7ccbc4
Evan Laird [Wed, 6 Nov 2019 19:04:59 +0000 (14:04 -0500)]
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
TreeHugger Robot [Fri, 8 Nov 2019 01:17:29 +0000 (01:17 +0000)]
Merge "docs: Clarified behavior of TypedArray.getBoolean()" into qt-dev
Kevin Hufnagle [Wed, 6 Nov 2019 22:44:46 +0000 (22:44 +0000)]
Merge "docs: Added perm req for getUserCount()" into qt-dev
Joshua Baxter [Wed, 6 Nov 2019 01:19:36 +0000 (01:19 +0000)]
docs: remove incorrect (default) identifiers
Change-Id: I4ce6bc8a7b0e2f18055416a21f465cd2cfe4ec66
test: make ds-docs
bug:
112679894
Evan Laird [Wed, 6 Nov 2019 19:04:59 +0000 (14:04 -0500)]
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: I428bc334362f6e4b95f5f0c6974b71f76175c7ae
Merged-In: I0680034ed9315aa2c05282524d48faaed066ebd0
Joshua Baxter [Wed, 6 Nov 2019 21:22:59 +0000 (21:22 +0000)]
Merge "docs: remove old broken link" into qt-dev
Joshua Baxter [Wed, 6 Nov 2019 21:20:53 +0000 (21:20 +0000)]
Merge "docs: fix typo" into qt-dev
Joshua Baxter [Wed, 6 Nov 2019 01:24:13 +0000 (01:24 +0000)]
docs: fix typo
Change-Id: Ia0dab15920fdbead1842ff5a20ec6d4988f11fbe
test: make ds-docs
bug:
79355169
Exempt-From-Owner-Approval: docs-only change
Joshua Baxter [Wed, 6 Nov 2019 21:16:10 +0000 (21:16 +0000)]
Merge "docs: fix typos" into qt-dev
Joshua Baxter [Tue, 5 Nov 2019 23:12:40 +0000 (23:12 +0000)]
docs: fix typos
Change-Id: Ica9765713212955caf3c7fb246ef4ad8ca0e1c35
test: make ds-docs
bug:
113636515
Joshua Baxter [Wed, 6 Nov 2019 21:15:03 +0000 (21:15 +0000)]
Merge "docs: fix typo" into qt-dev
Joshua Baxter [Tue, 5 Nov 2019 23:15:19 +0000 (23:15 +0000)]
docs: fix typo
Change-Id: I2e8f28a917d0b09c0bf0a11f0db863ae7bf03ac8
test: make ds-docs
bug:
79156293
Joshua Baxter [Tue, 5 Nov 2019 23:58:52 +0000 (23:58 +0000)]
docs: fix typos
Change-Id: Ifee929d0adaaa94c5026a4b0fdf926489af639b5
test: make ds-docs
bug:
37009580
Joshua Baxter [Wed, 6 Nov 2019 00:05:24 +0000 (00:05 +0000)]
docs: fix a couple of minor typos
test: make ds-docs
Change-Id: Ia68f66980e447209efb8102a156f78314c199f56
bug:
36979979
Exempt-From-Owner-Approval: docs-only change
Joshua Baxter [Tue, 5 Nov 2019 23:55:34 +0000 (23:55 +0000)]
docs: remove old broken link
Change-Id: If39d214fde055c412dd881c282e543975a7cbc49
test: make ds-docs
bug:
120135854
Joshua Baxter [Wed, 6 Nov 2019 21:02:42 +0000 (21:02 +0000)]
Merge "docs: fix typo" into qt-dev
Joshua Baxter [Wed, 6 Nov 2019 00:09:20 +0000 (00:09 +0000)]
docs: fix typo
Change-Id: I843a3d94e48335babffdf8a226fa9e3d00c5bbf1
test: make ds-docs
bug:
144041941
Joshua Baxter [Wed, 6 Nov 2019 21:01:14 +0000 (21:01 +0000)]
Merge "docs: fix typos" into qt-dev
Joshua Baxter [Wed, 6 Nov 2019 00:13:56 +0000 (00:13 +0000)]
docs: fix typos
test: make ds-docs
bug:
36974889
Joshua Baxter [Wed, 6 Nov 2019 00:46:42 +0000 (00:46 +0000)]
docs: Fix docs for Canvas#drawTextOnPath
add parameter descriptions for index and count in drawTextOnPath
fix a couple of typos
test: make ds-docs
Bug:
36969777
Change-Id: I7c451fac4468fb2066b9b29a321fad57785a8a36
Joshua Baxter [Wed, 6 Nov 2019 20:54:08 +0000 (20:54 +0000)]
Merge "docs: fix typos" into qt-dev
Joshua Baxter [Wed, 6 Nov 2019 01:49:23 +0000 (01:49 +0000)]
docs: fix typos
Change-Id: Ie238360300cac54bd4717b4ff75d5534f82e0307
test: make ds-docs
bug:
36948876
Ahan Wu [Wed, 6 Nov 2019 09:38:45 +0000 (01:38 -0800)]
[automerger skipped] Merge "DO NOT MERGE Validate wallpaper dimension while generating crop" into oc-dev am:
17fd658061 am:
9c9c1c0f8a am:
7c50686c92 -s ours
am:
a234d64df2 -s ours
am skip reason: subject contains skip directive
Change-Id: Idf6c540baa337eec7c2c23ac5c1b27ded3c3adc0
Ahan Wu [Wed, 6 Nov 2019 09:32:41 +0000 (01:32 -0800)]
[automerger skipped] DO NOT MERGE Validate wallpaper dimension while generating crop am:
160c28c36d am:
f4c3460e24 am:
145dcf2c25 -s ours
am:
554254d2c0 -s ours
am skip reason: subject contains skip directive
Change-Id: Ib3fe50e963294791acf04246045461b63957b0cc
Ahan Wu [Wed, 6 Nov 2019 09:32:40 +0000 (01:32 -0800)]
[automerger skipped] Merge "DO NOT MERGE Validate wallpaper dimension while generating crop" into oc-dev am:
17fd658061 am:
9c9c1c0f8a
am:
7c50686c92 -s ours
am skip reason: subject contains skip directive
Change-Id: I0c0d041dada006775e7fab48e312d61c3ee5f492
Ahan Wu [Wed, 6 Nov 2019 09:27:05 +0000 (01:27 -0800)]
[automerger skipped] DO NOT MERGE Validate wallpaper dimension while generating crop am:
160c28c36d am:
f4c3460e24
am:
145dcf2c25 -s ours
am skip reason: subject contains skip directive
Change-Id: Id9c033a137dcc5ce774fe864b940a3afa0f65093
Ahan Wu [Wed, 6 Nov 2019 09:23:55 +0000 (01:23 -0800)]
Merge "DO NOT MERGE Validate wallpaper dimension while generating crop" into oc-dev am:
17fd658061
am:
9c9c1c0f8a
Change-Id: I02286162c176e9edc5962f91c65c993767f83afc
Ahan Wu [Wed, 6 Nov 2019 09:20:31 +0000 (01:20 -0800)]
DO NOT MERGE Validate wallpaper dimension while generating crop am:
160c28c36d
am:
f4c3460e24
Change-Id: I7a866644b805e7e71f188051fb3c7d30c5a8b7fb
Ahan Wu [Wed, 6 Nov 2019 09:08:34 +0000 (01:08 -0800)]
Merge "DO NOT MERGE Validate wallpaper dimension while generating crop" into oc-dev
am:
17fd658061
Change-Id: I5d783568dd734e880b7d5a88117cbfad30c880ef
Ahan Wu [Wed, 6 Nov 2019 09:08:32 +0000 (01:08 -0800)]
DO NOT MERGE Validate wallpaper dimension while generating crop
am:
160c28c36d
Change-Id: Icee3d103aee1d5775a7d8feeb7a0ac3fc9b7fa26
Ahan Wu [Wed, 6 Nov 2019 05:08:22 +0000 (21:08 -0800)]
[automerger skipped] Merge "DO NOT MERGE Validate wallpaper dimension while generating crop" into pi-dev
am:
b92ba1bd57 -s ours
am skip reason: subject contains skip directive
Change-Id: I5a1adc8590c03971a0dbee8f461162ed123450a5
TreeHugger Robot [Wed, 6 Nov 2019 04:58:32 +0000 (04:58 +0000)]
Merge "DO NOT MERGE Validate wallpaper dimension while generating crop" into pi-dev
TreeHugger Robot [Wed, 6 Nov 2019 04:45:50 +0000 (04:45 +0000)]
Merge "DO NOT MERGE Validate wallpaper dimension while generating crop" into oc-dev
TreeHugger Robot [Wed, 6 Nov 2019 03:59:30 +0000 (03:59 +0000)]
Merge "Validate wallpaper dimension while generating crop" into qt-dev
Jing Ji [Wed, 6 Nov 2019 00:39:58 +0000 (16:39 -0800)]
[automerger skipped] Merge "Prevent system uid component from running in an isolated app process" into oc-dev am:
909ff7dc71 am:
68f3234072 am:
038be975a1
am:
e385cb9204 -s ours
am skip reason: change_id I5a1618fab529cb0300d4a8e9c7762ee218ca09eb with SHA1
84f2b227b0 is in history
Change-Id: Ia74b8de26e9dc24d23094ff2335e4c9f4320e033
Todd Kennedy [Wed, 6 Nov 2019 00:33:54 +0000 (16:33 -0800)]
[automerger skipped] Only allow INSTALL_ALLOW_TEST from shell or root am:
702d394762 am:
8ff59f6a14 am:
aa1d74e287
am:
3b0553b17a -s ours
am skip reason: change_id Ib6dcca7901aa549d620448c0165c22270a3042be with SHA1
b5afc87483 is in history
Change-Id: Ibb601e676fc557ee717c12e48c7f48fc63f51f02