OSDN Git Service

android-x86/frameworks-base.git
4 years agoMerge "Removed the confusing note as per guidance from mylesgw@ in BUG:117309989...
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

4 years agoRemoved the confusing note as per guidance from mylesgw@ in
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

4 years ago[automerger skipped] resolve merge conflicts of 88c651eab144bf64acb1d99f11aabe983f236...
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

4 years ago[automerger skipped] resolve merge conflicts of 88c651eab144bf64acb1d99f11aabe983f236...
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

4 years ago[automerger skipped] resolve merge conflicts of 88c651eab144bf64acb1d99f11aabe983f236...
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

4 years agoMerge "Use Metalava to get SDK metadata for devtools" into qt-dev
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

4 years agoMerge "docs: Updated desc. of lockNow() method and its overload" 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

4 years agoUse Metalava to get SDK metadata for devtools
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

4 years agodocs: Updated desc. of lockNow() method and its overload
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

4 years agoresolve merge conflicts of 88c651eab144bf64acb1d99f11aabe983f23658c to oc-dr1-dev
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

4 years agoMerge "docs: fix code example" into qt-dev
TreeHugger Robot [Wed, 13 Nov 2019 01:26:15 +0000 (01:26 +0000)]
Merge "docs: fix code example" into qt-dev

4 years agoMerge "docs: fix typos" into qt-dev
TreeHugger Robot [Tue, 12 Nov 2019 23:10:51 +0000 (23:10 +0000)]
Merge "docs: fix typos" into qt-dev

4 years agoMerge "docs: fix typo" into qt-dev
Joshua Baxter [Tue, 12 Nov 2019 01:00:44 +0000 (01:00 +0000)]
Merge "docs: fix typo" into qt-dev

4 years agodocs: fix typos
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

4 years agodocs: fix code example
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

4 years agoMerge "docs: Fix docs for Canvas#drawTextOnPath add parameter descriptions for index...
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

4 years agoMerge "docs: fix typos" into qt-dev
TreeHugger Robot [Sat, 9 Nov 2019 02:27:54 +0000 (02:27 +0000)]
Merge "docs: fix typos" into qt-dev

4 years agodocs: fix typo
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

4 years agoMerge "docs: remove incorrect (default) identifiers" into qt-dev
Joshua Baxter [Fri, 8 Nov 2019 22:55:18 +0000 (22:55 +0000)]
Merge "docs: remove incorrect (default) identifiers" into qt-dev

4 years agoMerge "Force FGS notifications to show for a minimum time" into oc-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

4 years ago[automerger skipped] Force FGS notifications to show for a minimum time am: 3692a6d23...
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

4 years ago[automerger skipped] Force FGS notifications to show for a minimum time
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

4 years agoForce FGS notifications to show for a minimum time
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

4 years agoMerge "docs: Clarified behavior of TypedArray.getBoolean()" into qt-dev
TreeHugger Robot [Fri, 8 Nov 2019 01:17:29 +0000 (01:17 +0000)]
Merge "docs: Clarified behavior of TypedArray.getBoolean()" into qt-dev

4 years agoMerge "docs: Added perm req for getUserCount()" 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

4 years agodocs: remove incorrect (default) identifiers
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

4 years agoForce FGS notifications to show for a minimum time
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

4 years agoMerge "docs: remove old broken link" into qt-dev
Joshua Baxter [Wed, 6 Nov 2019 21:22:59 +0000 (21:22 +0000)]
Merge "docs: remove old broken link" into qt-dev

4 years agoMerge "docs: fix typo" into qt-dev
Joshua Baxter [Wed, 6 Nov 2019 21:20:53 +0000 (21:20 +0000)]
Merge "docs: fix typo" into qt-dev

4 years agodocs: fix typo
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

4 years agoMerge "docs: fix typos" into qt-dev
Joshua Baxter [Wed, 6 Nov 2019 21:16:10 +0000 (21:16 +0000)]
Merge "docs: fix typos" into qt-dev

4 years agodocs: fix typos
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

4 years agoMerge "docs: fix typo" into qt-dev
Joshua Baxter [Wed, 6 Nov 2019 21:15:03 +0000 (21:15 +0000)]
Merge "docs: fix typo" into qt-dev

4 years agodocs: fix typo
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

4 years agodocs: fix typos
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

4 years agodocs: fix a couple of minor typos
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

4 years agodocs: remove old broken link
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

4 years agoMerge "docs: fix typo" into qt-dev
Joshua Baxter [Wed, 6 Nov 2019 21:02:42 +0000 (21:02 +0000)]
Merge "docs: fix typo" into qt-dev

4 years agodocs: fix typo
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

4 years agoMerge "docs: fix typos" into qt-dev
Joshua Baxter [Wed, 6 Nov 2019 21:01:14 +0000 (21:01 +0000)]
Merge "docs: fix typos" into qt-dev

4 years agodocs: fix typos
Joshua Baxter [Wed, 6 Nov 2019 00:13:56 +0000 (00:13 +0000)]
docs: fix typos

test: make ds-docs
bug: 36974889

4 years agodocs: Fix docs for Canvas#drawTextOnPath
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

4 years agoMerge "docs: fix typos" into qt-dev
Joshua Baxter [Wed, 6 Nov 2019 20:54:08 +0000 (20:54 +0000)]
Merge "docs: fix typos" into qt-dev

4 years agodocs: fix typos
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

4 years ago[automerger skipped] Merge "DO NOT MERGE Validate wallpaper dimension while generatin...
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

4 years ago[automerger skipped] DO NOT MERGE Validate wallpaper dimension while generating crop...
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

4 years ago[automerger skipped] Merge "DO NOT MERGE Validate wallpaper dimension while generatin...
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

4 years ago[automerger skipped] DO NOT MERGE Validate wallpaper dimension while generating crop...
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

4 years agoMerge "DO NOT MERGE Validate wallpaper dimension while generating crop" into oc-dev...
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

4 years agoDO NOT MERGE Validate wallpaper dimension while generating crop am: 160c28c36d
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

4 years agoMerge "DO NOT MERGE Validate wallpaper dimension while generating crop" into oc-dev
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

4 years agoDO NOT MERGE Validate wallpaper dimension while generating crop
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

4 years ago[automerger skipped] Merge "DO NOT MERGE Validate wallpaper dimension while generatin...
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

4 years agoMerge "DO NOT MERGE Validate wallpaper dimension while generating crop" into pi-dev
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

4 years agoMerge "DO NOT MERGE Validate wallpaper dimension while generating crop" into oc-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

4 years agoMerge "Validate wallpaper dimension while generating crop" into qt-dev
TreeHugger Robot [Wed, 6 Nov 2019 03:59:30 +0000 (03:59 +0000)]
Merge "Validate wallpaper dimension while generating crop" into qt-dev

4 years ago[automerger skipped] Merge "Prevent system uid component from running in an isolated...
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

4 years ago[automerger skipped] Only allow INSTALL_ALLOW_TEST from shell or root am: 702d394762...
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

4 years agoMerge "Prevent system uid component from running in an isolated app process" into...
Jing Ji [Wed, 6 Nov 2019 00:32:53 +0000 (16:32 -0800)]
Merge "Prevent system uid component from running in an isolated app process" into oc-dev am: 909ff7dc71 am: 68f3234072
am: 038be975a1

Change-Id: Ib4d8700eb5f5a8275a0a917ef6f6db2a0a3b85de

4 years agoOnly allow INSTALL_ALLOW_TEST from shell or root am: 702d394762 am: 8ff59f6a14
Todd Kennedy [Wed, 6 Nov 2019 00:27:32 +0000 (16:27 -0800)]
Only allow INSTALL_ALLOW_TEST from shell or root am: 702d394762 am: 8ff59f6a14
am: aa1d74e287

Change-Id: If511af964e4705e65e76a9ccb502cddb4f4b0012

4 years agoMerge "Prevent system uid component from running in an isolated app process" into...
Jing Ji [Wed, 6 Nov 2019 00:24:07 +0000 (16:24 -0800)]
Merge "Prevent system uid component from running in an isolated app process" into oc-dev am: 909ff7dc71
am: 68f3234072

Change-Id: I2393d4b5c683892d489398c906790c966a38b36b

4 years agoOnly allow INSTALL_ALLOW_TEST from shell or root am: 702d394762
Todd Kennedy [Wed, 6 Nov 2019 00:20:48 +0000 (16:20 -0800)]
Only allow INSTALL_ALLOW_TEST from shell or root am: 702d394762
am: 8ff59f6a14

Change-Id: I13fc086058cf0f40614bdb5d19cb53211772e628

4 years agoMerge "Prevent system uid component from running in an isolated app process" into...
Jing Ji [Wed, 6 Nov 2019 00:13:50 +0000 (16:13 -0800)]
Merge "Prevent system uid component from running in an isolated app process" into oc-dev
am: 909ff7dc71

Change-Id: Ib725e69bbd84c7e1e141c32c62c5204bd552b12f

4 years agoOnly allow INSTALL_ALLOW_TEST from shell or root
Todd Kennedy [Wed, 6 Nov 2019 00:07:44 +0000 (16:07 -0800)]
Only allow INSTALL_ALLOW_TEST from shell or root
am: 702d394762

Change-Id: I6e19c9738e083ce8863ffd1d9d467cae2f973c37

4 years agoMerge "Prevent system uid component from running in an isolated app process" into...
Jing Ji [Tue, 5 Nov 2019 23:52:53 +0000 (23:52 +0000)]
Merge "Prevent system uid component from running in an isolated app process" into oc-dev

4 years agoMerge "WebView: note deprecation of onscreen zoom controls." into qt-dev
TreeHugger Robot [Tue, 5 Nov 2019 22:57:36 +0000 (22:57 +0000)]
Merge "WebView: note deprecation of onscreen zoom controls." into qt-dev

4 years agoPrevent system uid component from running in an isolated app process
Jing Ji [Mon, 4 Nov 2019 22:22:27 +0000 (14:22 -0800)]
Prevent system uid component from running in an isolated app process

Bug: 140055304
Test: Manua
Change-Id: Ie7f6ed23f0c6009aad0f67a00af119b02cdceac3
Merged-In: I5a1618fab529cb0300d4a8e9c7762ee218ca09eb

4 years agoPrevent system uid component from running in an isolated app process
Jing Ji [Mon, 4 Nov 2019 19:35:49 +0000 (11:35 -0800)]
Prevent system uid component from running in an isolated app process

Bug: 140055304
Test: Manual
Change-Id: I5a1618fab529cb0300d4a8e9c7762ee218ca09eb
Merged-In: I5a1618fab529cb0300d4a8e9c7762ee218ca09eb

4 years agodocs: Clarified behavior of TypedArray.getBoolean()
Andrew Solovay [Fri, 1 Nov 2019 22:19:04 +0000 (22:19 +0000)]
docs: Clarified behavior of TypedArray.getBoolean()

Doc currently says "The method will return whether [the attribute] is equal to zero", which could be read as "returns true if the attribute is zero", which is incorrect. Rephrased as: "...returns false if the attribute is equal to zero, and true otherwise."

Change-Id: Ie7d763ac2784ecc3a7fb522b4fa583ec8d2644d4
BUG: 143049875
Test: make ds-docs

4 years agodocs: Added perm req for getUserCount()
Kevin Hufnagle [Mon, 30 Sep 2019 16:25:02 +0000 (16:25 +0000)]
docs: Added perm req for getUserCount()

Test: make ds-docs -j32

Bug: 31091793

Change-Id: Ib1cae91795b0c054f2ae95af6376a8f01d839d9f

4 years agoMerge "Clarify CookieManager RFC reference." into qt-dev
TreeHugger Robot [Wed, 30 Oct 2019 16:31:03 +0000 (16:31 +0000)]
Merge "Clarify CookieManager RFC reference." into qt-dev

4 years agoWebView: clarify docs for onShowCustomView
Nate Fischer [Fri, 25 Oct 2019 03:35:54 +0000 (20:35 -0700)]
WebView: clarify docs for onShowCustomView

No change to logic, only docs.

This clarifies the docs for onShowCustomView. This @links to
FLAG_FULLSCREEN, reminds the developer they must override both
onShowCustomView and onHideCustomView, and provides guidance for
CustomViewCallback.

Bug: 143247282
Test: make -j4 docs
Change-Id: I64de3723674da5c138438921cc8232c4bf2a3d98

4 years agoWebView: note deprecation of onscreen zoom controls.
Torne (Richard Coles) [Fri, 25 Oct 2019 20:38:30 +0000 (16:38 -0400)]
WebView: note deprecation of onscreen zoom controls.

Inform developers that having onscreen zoom controls is deprecated and
that it's therefore not recommended to enable them in WebView, with
reference to ZoomButtonsController (which is what WebView uses to
implement them).

Bug: 141732094
Test: make ds-docs
Change-Id: I134551b87d3a93072e28aef56667507214b3e9c4

4 years agoMerge "[DO NOT MERGE] Split access-media-storage from read-external-storage" into...
TreeHugger Robot [Fri, 25 Oct 2019 18:08:22 +0000 (18:08 +0000)]
Merge "[DO NOT MERGE] Split access-media-storage from read-external-storage" into qt-dev

4 years agoOnly allow INSTALL_ALLOW_TEST from shell or root
Todd Kennedy [Fri, 20 Sep 2019 20:45:15 +0000 (13:45 -0700)]
Only allow INSTALL_ALLOW_TEST from shell or root

Bug: 141169173
Test: Manual. App can't be installed as test-only
Change-Id: Ib6dcca7901aa549d620448c0165c22270a3042be
Merged-In: Ib6dcca7901aa549d620448c0165c22270a3042be

4 years ago[DO NOT MERGE] Split access-media-storage from read-external-storage
Philip P. Moltmann [Fri, 13 Sep 2019 22:12:34 +0000 (15:12 -0700)]
[DO NOT MERGE] Split access-media-storage from read-external-storage

And also pre-grant it to all apps that currently get any storage
permission pre-granted

Test: atest SplitPermissionTest
      m -j gts && gts-tradefed run commandAndExit gts-dev -m GtsPermissionTestCases --test=com.google.android.permission.gts.DefaultPermissionGrantPolicyTest#testDefaultGrantsWithRemoteExceptions
      Manual testing:
         All combinations of
           - App targetSdk = 28 and 29 (and 22 for extra credit)
           - App having the <uses-permission> tag for
             ACCESS_MEDIA_LOCATION or not
           - Upgrade from P->Q-QPR and from vanilla Q->Q-QPR
         Further upgrade of targetSdk from 28->29 while on Q-QPR
         ==> All permission behavior should make sense. Sometimes there
             are weird, but expected behaviors. Hence we need to
             collect the results and then look at the unexpected ones.
             See SplitPermissionTest for some tests I added for the
             location-background permission which was split from
             the fine/coarse-location permissions
Fixes: 141048840,140961754
Change-Id: Ib9f50d25c002036f13cf2d42fc4d1b214f20920c
(cherry picked from commit ac7b10c135bb148edcad1aad8e19c733d333f769)

4 years agoFix zen alarms only mode check
Beverly [Tue, 3 Sep 2019 21:00:51 +0000 (17:00 -0400)]
Fix zen alarms only mode check

Also fixes setting the consolidated zen policy logging.

Fixes: 140329813
Test: android.app.cts.NotificationManagerTest#testTotalSilenceOnlyMuteStreams
Test: android.app.cts.NotificationManagerTest#testAlarmsOnlyMuteStreams
Change-Id: I43d503ac23d7b0b141930d77cb76f1f589b22525
(cherry picked from commit dcc5cfc56111676d687c8c29d1ceb6914dc1d8ce)

4 years agoMerge "docs: App doesn't receive "first launch" broadcast" into qt-dev
Kevin Hufnagle [Mon, 21 Oct 2019 22:33:05 +0000 (22:33 +0000)]
Merge "docs: App doesn't receive "first launch" broadcast" into qt-dev

4 years agoMerge "docs: Added consent notice re. getAccounts()" into qt-dev
Kevin Hufnagle [Mon, 21 Oct 2019 22:14:54 +0000 (22:14 +0000)]
Merge "docs: Added consent notice re. getAccounts()" into qt-dev

4 years agoClarify CookieManager RFC reference.
Torne (Richard Coles) [Mon, 21 Oct 2019 18:34:03 +0000 (14:34 -0400)]
Clarify CookieManager RFC reference.

RFC2109 has been obsolete for a long time, and the docs aren't very
clear what exactly the RFC has to do with CookieManager; the RFC is
about HTTP and it's not immediately clear how this would apply to a Java
API.

Update the reference to the current cookie spec (and hyperlink it), and
clarify the text to explain that the HTTP header formats from the RFC
are the formats used to get/set set cookies.

Fixes: 143086151
Test: make ds-docs
Change-Id: I5e5838d3435b74516847b63e485fdd93810284aa

4 years agodocs: Added consent notice re. getAccounts()
Kevin Hufnagle [Mon, 30 Sep 2019 17:59:49 +0000 (17:59 +0000)]
docs: Added consent notice re. getAccounts()

Test: make ds-docs -j32

Bug: 32704758
Change-Id: Id5e5c00840f2bde6c31a4f95f365b8bc8857884d

4 years ago[automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into...
Seigo Nonaka [Thu, 17 Oct 2019 04:37:26 +0000 (21:37 -0700)]
[automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into oc-mr1-dev am: 9f7fb87dc4 -s ours
am: aa76cf3da5 -s ours
am skip reason: subject contains skip directive

Change-Id: I1681d85652afe4fb20fa3d76f2f9483303e3d429

4 years ago[automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into...
Seigo Nonaka [Thu, 17 Oct 2019 04:11:44 +0000 (21:11 -0700)]
[automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into pi-dev
am: d7f6ede261 -s ours
am skip reason: subject contains skip directive

Change-Id: I1f761fe6c5336996407892ebae25eb34a8d83538

4 years ago[automerger skipped] RESTRICT AUTOMERGE Revive runLimit check logic am: b730f1984f...
Seigo Nonaka [Thu, 17 Oct 2019 04:08:47 +0000 (21:08 -0700)]
[automerger skipped] RESTRICT AUTOMERGE Revive runLimit check logic am: b730f1984f am: 2af4f537ff am: 709e9e6855 -s ours
am: 37c65a3e5c -s ours
am skip reason: subject contains skip directive

Change-Id: Id5cce5424c5e712de76143a301e26e823d3df249

4 years ago[automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into...
Seigo Nonaka [Thu, 17 Oct 2019 04:07:12 +0000 (21:07 -0700)]
[automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into oc-mr1-dev
am: 9f7fb87dc4 -s ours
am skip reason: subject contains skip directive

Change-Id: If95365aeca3f84f75f571dcf705f477b01425a0c

4 years agoMerge "RESTRICT AUTOMERGE Revive runLimit check logic" into pi-dev
TreeHugger Robot [Thu, 17 Oct 2019 02:33:30 +0000 (02:33 +0000)]
Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into pi-dev

4 years agoMerge "RESTRICT AUTOMERGE Revive runLimit check logic" into oc-mr1-dev
TreeHugger Robot [Thu, 17 Oct 2019 01:46:22 +0000 (01:46 +0000)]
Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into oc-mr1-dev

4 years ago[automerger skipped] RESTRICT AUTOMERGE Revive runLimit check logic am: b730f1984f...
Seigo Nonaka [Thu, 17 Oct 2019 00:38:11 +0000 (17:38 -0700)]
[automerger skipped] RESTRICT AUTOMERGE Revive runLimit check logic am: b730f1984f am: 2af4f537ff
am: 709e9e6855 -s ours
am skip reason: subject contains skip directive

Change-Id: Ib2c5674e2cf4442fe10d3dd5eb7ae7906e432254

4 years agoRESTRICT AUTOMERGE Revive runLimit check logic am: b730f1984f
Seigo Nonaka [Thu, 17 Oct 2019 00:26:09 +0000 (17:26 -0700)]
RESTRICT AUTOMERGE Revive runLimit check logic am: b730f1984f
am: 2af4f537ff

Change-Id: Ia671d3f5a7fa62c80dd3c2468d199ce66fe734f1

4 years agoRESTRICT AUTOMERGE Revive runLimit check logic
Seigo Nonaka [Thu, 17 Oct 2019 00:14:15 +0000 (17:14 -0700)]
RESTRICT AUTOMERGE Revive runLimit check logic
am: b730f1984f

Change-Id: I329515d36c12ee5e12a63262ff7db8daff350832

4 years agoRESTRICT AUTOMERGE
Seigo Nonaka [Wed, 16 Oct 2019 21:48:30 +0000 (14:48 -0700)]
RESTRICT AUTOMERGE
Revive runLimit check logic

The runLimit check logic was accidentally removed by
I7089ed9b711dddd7de2b27c9c2fa0fb4cb53a735

Bug: 142134328
Bug: 140632678
Test: Manually done with reported step
Test: StaticLayoutTest passes
Change-Id: Ib1d5efdcb9adcc18a6a43370dc016ea464f48148

4 years agoRESTRICT AUTOMERGE
Seigo Nonaka [Wed, 16 Oct 2019 21:48:30 +0000 (14:48 -0700)]
RESTRICT AUTOMERGE
Revive runLimit check logic

The runLimit check logic was accidentally removed by
I7089ed9b711dddd7de2b27c9c2fa0fb4cb53a735

Bug: 142134328
Bug: 140632678
Test: Manually done with reported step
Test: StaticLayoutTest passes
Change-Id: Ib1d5efdcb9adcc18a6a43370dc016ea464f48148

4 years agoRESTRICT AUTOMERGE
Seigo Nonaka [Wed, 16 Oct 2019 21:48:30 +0000 (14:48 -0700)]
RESTRICT AUTOMERGE
Revive runLimit check logic

The runLimit check logic was accidentally removed by
I7089ed9b711dddd7de2b27c9c2fa0fb4cb53a735

Bug: 142134328
Bug: 140632678
Test: Manually done with reported step
Test: StaticLayoutTest passes
Change-Id: Ib1d5efdcb9adcc18a6a43370dc016ea464f48148

4 years agodocs: App doesn't receive "first launch" broadcast
Kevin Hufnagle [Tue, 15 Oct 2019 19:47:35 +0000 (19:47 +0000)]
docs: App doesn't receive "first launch" broadcast

Test: make ds-docs -j32

Bug: 116543817
Change-Id: I9aa1f1851ce236397ad2e1a36ea487b96daa55c5

4 years agoMerge "docs: Updated SECURITY_PATCH field description" into qt-dev
Kevin Hufnagle [Tue, 8 Oct 2019 18:36:19 +0000 (18:36 +0000)]
Merge "docs: Updated SECURITY_PATCH field description" into qt-dev

4 years ago[automerger skipped] Force FGS notifications to show for a minimum time
Evan Laird [Mon, 7 Oct 2019 23:30:51 +0000 (16:30 -0700)]
[automerger skipped] Force FGS notifications to show for a minimum time
am: 3b8c4743f6 -s ours
am skip reason: change_id I0680034ed9315aa2c05282524d48faaed066ebd0 with SHA1 5136eefeb3 is in history

Change-Id: I5ad32c66fa4502e232b802241789977252ddec8e

4 years agoMerge "Force FGS notifications to show for a minimum time" into qt-dev
TreeHugger Robot [Mon, 7 Oct 2019 23:04:14 +0000 (23:04 +0000)]
Merge "Force FGS notifications to show for a minimum time" into qt-dev

4 years agoMerge "add java_api_finder plugin to mainline module Media to generate java APIs...
TreeHugger Robot [Mon, 7 Oct 2019 20:14:31 +0000 (20:14 +0000)]
Merge "add java_api_finder plugin to mainline module Media to generate java APIs used by Media." into qt-dev

4 years agoMerge "docs: Edited sharedUserId deprecation message" into qt-dev
Kevin Hufnagle [Mon, 7 Oct 2019 19:35:38 +0000 (19:35 +0000)]
Merge "docs: Edited sharedUserId deprecation message" into qt-dev

4 years agoForce FGS notifications to show for a minimum time
Evan Laird [Mon, 5 Aug 2019 21:11:54 +0000 (17:11 -0400)]
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 ForegroundServiceNotificationListenerTest
Change-Id: I0680034ed9315aa2c05282524d48faaed066ebd0
Merged-In: I0680034ed9315aa2c05282524d48faaed066ebd0