OSDN Git Service

android-x86/frameworks-base.git
4 years agoAction chips in share sheet. (DO NOT MERGE)
Dan Sandler [Fri, 22 Nov 2019 16:58:58 +0000 (11:58 -0500)]
Action chips in share sheet. (DO NOT MERGE)

Move the Copy button to a new row of chips below the
(now larger) preview. Optionally, if a proximity-sharing
service is installed, show that chip as well.

Bug: 143229724
Fixes: 144290152
Test: atest SystemUITests frameworks/base/core/tests/coretests
Change-Id: I0d6457df85bc937f72ca97da6b4b84b634a90daf

4 years agoMerge "DO NOT MERGE - Added user flags to 'dumpsys user'" into qt-qpr1-dev
TreeHugger Robot [Thu, 14 Nov 2019 22:27:22 +0000 (22:27 +0000)]
Merge "DO NOT MERGE - Added user flags to 'dumpsys user'" into qt-qpr1-dev

4 years agoMerge "DO NOT MERGE - Added reset geo-fencing checking after airplane mode support...
TreeHugger Robot [Thu, 14 Nov 2019 20:59:47 +0000 (20:59 +0000)]
Merge "DO NOT MERGE - Added reset geo-fencing checking after airplane mode support" into qt-qpr1-dev

4 years agoDO NOT MERGE - Added reset geo-fencing checking after airplane mode support
Jack Yu [Wed, 13 Nov 2019 01:24:26 +0000 (17:24 -0800)]
DO NOT MERGE - Added reset geo-fencing checking after airplane mode support

The out-of-polygon cell broadcast messages will not be
considered for rebroadcasting after airplane mode turned on
or reboot.

Bug: 143614007
Test: Unit tests
Merged-In: Ifa3de1576f23f68b040c8473bc79b4bf5a5f7261
Change-Id: Ifa3de1576f23f68b040c8473bc79b4bf5a5f7261

4 years agoMerge "Don't send session committed broadcast for dry runs" into qt-qpr1-dev
Gavin Corkery [Thu, 14 Nov 2019 16:08:27 +0000 (16:08 +0000)]
Merge "Don't send session committed broadcast for dry runs" into qt-qpr1-dev

4 years agoMerge "Add prefix to logs based on call source" into qt-qpr1-dev
TreeHugger Robot [Wed, 13 Nov 2019 21:33:01 +0000 (21:33 +0000)]
Merge "Add prefix to logs based on call source" into qt-qpr1-dev

4 years agoMerge "Actually use mContext directly" into qt-qpr1-dev
TreeHugger Robot [Wed, 13 Nov 2019 21:22:02 +0000 (21:22 +0000)]
Merge "Actually use mContext directly" into qt-qpr1-dev

4 years agoMerge "DO NOT MERGE Create a single provider of car service" into qt-qpr1-dev
TreeHugger Robot [Wed, 13 Nov 2019 20:32:34 +0000 (20:32 +0000)]
Merge "DO NOT MERGE Create a single provider of car service" into qt-qpr1-dev

4 years agoMerge "Fix Settings creating too many threads unexpectedly" into qt-qpr1-dev
TreeHugger Robot [Wed, 13 Nov 2019 17:33:58 +0000 (17:33 +0000)]
Merge "Fix Settings creating too many threads unexpectedly" into qt-qpr1-dev

4 years agoMerge "Add helpers to check whether the BluetoothCodecConfig instance is selectable...
TreeHugger Robot [Wed, 13 Nov 2019 02:48:43 +0000 (02:48 +0000)]
Merge "Add helpers to check whether the BluetoothCodecConfig instance is selectable" into qt-qpr1-dev

4 years agoMerge "docs: fix code example" into qt-dev am: 330701c156
Joshua Baxter [Wed, 13 Nov 2019 02:13:03 +0000 (18:13 -0800)]
Merge "docs: fix code example" into qt-dev am: 330701c156
am: e53e500eac

Change-Id: Ib02af685daa0668187661f9fffbedc4f248b8136

4 years agoMerge "docs: fix code example" into qt-dev
Joshua Baxter [Wed, 13 Nov 2019 02:04:50 +0000 (18:04 -0800)]
Merge "docs: fix code example" into qt-dev
am: 330701c156

Change-Id: I4f2ea4c128b2019d48b129f20bf8a800fc6b6fce

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 agoActually use mContext directly
Daniel Rosenberg [Tue, 12 Nov 2019 23:33:22 +0000 (15:33 -0800)]
Actually use mContext directly

I40e95d72c63f864131f0028c47f121463d0f6dff (Use mContext directly)
lost a needed line in a rebase

Test: Forced commit to return exception, checked that device reboots
Bug: 138952436
Merged-In: Idb7cb9a5b7c4c0d237ece9716932a260956a0109
Change-Id: I8e7484631cd76965e660544a1af9f567dc5d3a34

4 years agoMerge "docs: fix typos" into qt-dev am: 748dd651f4
Joshua Baxter [Tue, 12 Nov 2019 23:33:33 +0000 (15:33 -0800)]
Merge "docs: fix typos" into qt-dev am: 748dd651f4
am: fcf4eace37

Change-Id: I7644a7262bf0ac26870c5c106d94832015f3bff2

4 years agoMerge "docs: fix typos" into qt-dev
Joshua Baxter [Tue, 12 Nov 2019 23:29:04 +0000 (15:29 -0800)]
Merge "docs: fix typos" into qt-dev
am: 748dd651f4

Change-Id: I795c039941adfb8d6743d7af3224231f864efd57

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 "[WifiAware] fix creator from parcel" into qt-qpr1-dev
TreeHugger Robot [Tue, 12 Nov 2019 22:55:10 +0000 (22:55 +0000)]
Merge "[WifiAware] fix creator from parcel" into qt-qpr1-dev

4 years ago[WifiAware] fix creator from parcel
Nate(Qiang) Jiang [Mon, 11 Nov 2019 18:28:48 +0000 (10:28 -0800)]
[WifiAware] fix creator from parcel

creator should read all content from parcel before verify available

Bug: 144286370
Test: atest android.net.wifi
Change-Id: Ie0f4954f5ca6cdb0ae1f77bfd4420b75f302c0f3
Merged-In: Ie0f4954f5ca6cdb0ae1f77bfd4420b75f302c0f3

4 years agoDO NOT MERGE - Added user flags to 'dumpsys user'
Felipe Leme [Tue, 12 Nov 2019 19:06:58 +0000 (11:06 -0800)]
DO NOT MERGE - Added user flags to 'dumpsys user'

Test: adb shell dumpsys user | grep Flags
Bug: 132111956

Change-Id: If5a406906cb8bc4b74f8a1f4d9dcc9ad60bc935d

4 years agoFix Settings creating too many threads unexpectedly
Jason Chiu [Tue, 29 Oct 2019 09:06:28 +0000 (17:06 +0800)]
Fix Settings creating too many threads unexpectedly

Provide a method to submit a Callable for execution in the shared
background thread pool.

Bug: 143434413
Test: manual, robotest
Change-Id: I149b5926f20acd0e43c4071cc35520c6bc50efef
Merged-In: I149b5926f20acd0e43c4071cc35520c6bc50efef
(cherry picked from commit ab21b8a838b40906cad5f9eafd020b7bde7ade1c)

4 years agoMerge "DO NOT MERGE - Removed FLAG_EPHEMERAL from pre-created users." into qt-qpr1-dev
TreeHugger Robot [Tue, 12 Nov 2019 02:08:36 +0000 (02:08 +0000)]
Merge "DO NOT MERGE - Removed FLAG_EPHEMERAL from pre-created users." into qt-qpr1-dev

4 years agoMerge "docs: fix typo" into qt-dev am: aee0f9c343
Joshua Baxter [Tue, 12 Nov 2019 01:27:04 +0000 (17:27 -0800)]
Merge "docs: fix typo" into qt-dev am: aee0f9c343
am: bdaa73c0f9

Change-Id: Icf6cfce76db7d99310c97353fad531a1982717dc

4 years agoMerge "docs: fix typo" into qt-dev
Joshua Baxter [Tue, 12 Nov 2019 01:22:35 +0000 (17:22 -0800)]
Merge "docs: fix typo" into qt-dev
am: aee0f9c343

Change-Id: Iba7623797bfd340fce0b24f6bbf669898feb8e26

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 agoMerge "DO NOT MERGE: Fix several issues with precreated users." into qt-qpr1-dev
Jovana Knezevic [Mon, 11 Nov 2019 23:13:57 +0000 (23:13 +0000)]
Merge "DO NOT MERGE: Fix several issues with precreated users." into qt-qpr1-dev

4 years agoMerge "Terminate statsd on a few signals including SIGTERM" into qt-qpr1-dev
TreeHugger Robot [Mon, 11 Nov 2019 23:10:59 +0000 (23:10 +0000)]
Merge "Terminate statsd on a few signals including SIGTERM" into qt-qpr1-dev

4 years agoMerge "docs: Fix docs for Canvas#drawTextOnPath add parameter descriptions for index...
Joshua Baxter [Mon, 11 Nov 2019 22:24:16 +0000 (14:24 -0800)]
Merge "docs: Fix docs for Canvas#drawTextOnPath add parameter descriptions for index and count in drawTextOnPath fix a couple of typos" into qt-dev am: 228d235d5b
am: 5f4d7e4ac5

Change-Id: I9edc4a336aa9574dc5741a44c13375c710411b15

4 years agoMerge "docs: Fix docs for Canvas#drawTextOnPath add parameter descriptions for index...
Joshua Baxter [Mon, 11 Nov 2019 22:19:09 +0000 (14:19 -0800)]
Merge "docs: Fix docs for Canvas#drawTextOnPath add parameter descriptions for index and count in drawTextOnPath fix a couple of typos" into qt-dev
am: 228d235d5b

Change-Id: I557d0c2ea9f091af7707542d041c707a848034d3

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 agoTerminate statsd on a few signals including SIGTERM
Eric Jeong [Thu, 3 Oct 2019 20:33:48 +0000 (13:33 -0700)]
Terminate statsd on a few signals including SIGTERM

- statsd is handling SIGHUP/SIGQUIT/SIGINT/SIGTERM, but doesn't exit.
- The expected behaviour is that statsd would exit after finalizing log
processing when those signals are received.

Bug: 139817664
Test: Send SIGTERM to statsd and check if it is terminated. (note that
init will revive statsd)

Change-Id: Id1146d772f8c68892256ee7a3eea70837fee5c7a
(cherry picked from commit 2d99718adf13eb116207abd25d05676dd2a691db)
(cherry picked from commit 931811bda4e52ba74dd17121b514615f2991583f)
Merged-In: Id1146d772f8c68892256ee7a3eea70837fee5c7a

4 years agoDon't send session committed broadcast for dry runs
Gavin Corkery [Mon, 11 Nov 2019 12:35:14 +0000 (12:35 +0000)]
Don't send session committed broadcast for dry runs

For staged installs, pre-reboot verification performs a dry run install.
Since this dry run install is non-staged, the session committed
broadcast will be sent, in some cases causing app icons to
erroneously appear. Add check for this case.

Test: Inspect SESSION_COMMITTED broadcasts sent for a staged install
      with and without this patch
Bug: 139663018

Change-Id: Ib0ba29a4506cda8da1865926ae62b137e1dce8ff

4 years agoMerge "Import translations. DO NOT MERGE" into qt-qpr1-dev
TreeHugger Robot [Sat, 9 Nov 2019 23:55:27 +0000 (23:55 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev

4 years agoMerge "Import translations. DO NOT MERGE" into qt-qpr1-dev
TreeHugger Robot [Sat, 9 Nov 2019 23:50:46 +0000 (23:50 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev

4 years agoMerge "Import translations. DO NOT MERGE" into qt-qpr1-dev
TreeHugger Robot [Sat, 9 Nov 2019 23:48:24 +0000 (23:48 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev

4 years agoMerge "Import translations. DO NOT MERGE" into qt-qpr1-dev
TreeHugger Robot [Sat, 9 Nov 2019 23:44:29 +0000 (23:44 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev

4 years agoMerge "Import translations. DO NOT MERGE" into qt-qpr1-dev
TreeHugger Robot [Sat, 9 Nov 2019 23:44:07 +0000 (23:44 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev

4 years agoMerge "Import translations. DO NOT MERGE" into qt-qpr1-dev
TreeHugger Robot [Sat, 9 Nov 2019 23:42:29 +0000 (23:42 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev

4 years agoMerge "Import translations. DO NOT MERGE" into qt-qpr1-dev
TreeHugger Robot [Sat, 9 Nov 2019 23:38:47 +0000 (23:38 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev

4 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 9 Nov 2019 22:59:50 +0000 (14:59 -0800)]
Import translations. DO NOT MERGE

Change-Id: Ia81e7775e38905f238d0241ac41b5f2339c04ed7
Auto-generated-cl: translation import

4 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 9 Nov 2019 21:11:07 +0000 (13:11 -0800)]
Import translations. DO NOT MERGE

Change-Id: Ib1604a2b872e5ce9587d6844b24994426a507c3a
Auto-generated-cl: translation import

4 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 9 Nov 2019 21:04:16 +0000 (13:04 -0800)]
Import translations. DO NOT MERGE

Change-Id: I25d22d60c5fd8ddccc165ce5b7b24b726ebf36da
Auto-generated-cl: translation import

4 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 9 Nov 2019 20:57:01 +0000 (12:57 -0800)]
Import translations. DO NOT MERGE

Change-Id: Ic7256ccaf07c40426fc416a1c2712fcd794f4134
Auto-generated-cl: translation import

4 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 9 Nov 2019 16:40:01 +0000 (08:40 -0800)]
Import translations. DO NOT MERGE

Change-Id: I8e867a09e4d157ab92511d831065884217318117
Auto-generated-cl: translation import

4 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 9 Nov 2019 16:13:45 +0000 (08:13 -0800)]
Import translations. DO NOT MERGE

Change-Id: Iaecb1686ab7c614549635a3378fb05f6cd310be2
Auto-generated-cl: translation import

4 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 9 Nov 2019 16:06:14 +0000 (08:06 -0800)]
Import translations. DO NOT MERGE

Change-Id: Ie5f2c92fda64835be84bea6402c454fb25022b9d
Auto-generated-cl: translation import

4 years agoMerge "Import translations. DO NOT MERGE" into qt-qpr1-dev
TreeHugger Robot [Sat, 9 Nov 2019 06:42:03 +0000 (06:42 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev

4 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 9 Nov 2019 05:32:59 +0000 (21:32 -0800)]
Import translations. DO NOT MERGE

Change-Id: I36e1a8823e69d09befa58f820f4e1356e4dd3e2b
Auto-generated-cl: translation import

4 years agoMerge "docs: fix typos" into qt-dev am: bab7d8512b
Joshua Baxter [Sat, 9 Nov 2019 02:49:36 +0000 (18:49 -0800)]
Merge "docs: fix typos" into qt-dev am: bab7d8512b
am: 983cf20e77

Change-Id: Ic2dc6a44ef4b7c6042ecade84cace268ee477903

4 years agoMerge "docs: fix typos" into qt-dev
Joshua Baxter [Sat, 9 Nov 2019 02:44:23 +0000 (18:44 -0800)]
Merge "docs: fix typos" into qt-dev
am: bab7d8512b

Change-Id: Ia6e23981e604c2906a59b9a14d50c06ae2b92912

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 agoMerge "Don't allow reading IMSI of one active sub if only has carrier privilege on...
Xiangyu/Malcolm Chen [Sat, 9 Nov 2019 01:07:49 +0000 (01:07 +0000)]
Merge "Don't allow reading IMSI of one active sub if only has carrier privilege on the other." into qt-qpr1-dev

4 years agoMerge "docs: remove incorrect (default) identifiers" into qt-dev am: 2c7d94c7ed
Joshua Baxter [Fri, 8 Nov 2019 23:26:57 +0000 (15:26 -0800)]
Merge "docs: remove incorrect (default) identifiers" into qt-dev am: 2c7d94c7ed
am: b2a8b29d10

Change-Id: Ie1d730b2777f85cd2a2d601576aeedd5e3728620

4 years agoMerge "docs: remove incorrect (default) identifiers" into qt-dev
Joshua Baxter [Fri, 8 Nov 2019 23:18:53 +0000 (15:18 -0800)]
Merge "docs: remove incorrect (default) identifiers" into qt-dev
am: 2c7d94c7ed

Change-Id: I3b86d60b47443b7b3d50deccc81048b78c0e1dc7

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 agoAdd prefix to logs based on call source
Heemin Seog [Fri, 8 Nov 2019 18:09:10 +0000 (10:09 -0800)]
Add prefix to logs based on call source

Bug: 144166111
Test: manual, ./external/chromium-trace/systrace.py camera -o
/tmp/mytrace.html (after changing tracing tag to "camera" since it isn't
used for anything else in automotive)

Change-Id: I082888daee17c671ba9ab5c8cf1ae486e683ab16

4 years agoDO NOT MERGE Create a single provider of car service
Heemin Seog [Fri, 8 Nov 2019 00:38:03 +0000 (16:38 -0800)]
DO NOT MERGE Create a single provider of car service

This should be shared across all things requiring it in system UI.

Test: manual
Bug: 142808072
Change-Id: I334d74c3bbe8270822feae268513bf93a4160a5b

4 years agoDon't allow reading IMSI of one active sub if only has carrier privilege
Malcolm Chen [Thu, 7 Nov 2019 02:54:55 +0000 (18:54 -0800)]
Don't allow reading IMSI of one active sub if only has carrier privilege
on the other.

Bug: 136123413
Test: unittest
Change-Id: I67a0121d3e965f193be9e827533646423502fe70

4 years ago[automerger skipped] Force FGS notifications to show for a minimum time am: 3692a6d23...
Evan Laird [Fri, 8 Nov 2019 21:36:59 +0000 (13:36 -0800)]
[automerger skipped] Force FGS notifications to show for a minimum time am: 3692a6d231 -s ours am: 663d3d7991 -s ours am: 13be3108cb -s ours
am: fead6f705d -s ours
am skip reason: change_id I0680034ed9315aa2c05282524d48faaed066ebd0 with SHA1 09843a687b is in history

Change-Id: I70bd239e00bc10f394c88c49fb266c9ce23d03a6

4 years ago[automerger skipped] Force FGS notifications to show for a minimum time am: 3692a6d23...
Evan Laird [Fri, 8 Nov 2019 21:31:06 +0000 (13:31 -0800)]
[automerger skipped] Force FGS notifications to show for a minimum time am: 3692a6d231 -s ours am: 663d3d7991 -s ours
am: 13be3108cb -s ours
am skip reason: change_id I0680034ed9315aa2c05282524d48faaed066ebd0 with SHA1 3b8c4743f6 is in history

Change-Id: I6d39b885aff0624f983e7290b83a88eeb6c92518

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 "Don't retain the filtered list of notifications." into qt-qpr1-dev
Daniel Sandler [Fri, 8 Nov 2019 15:36:01 +0000 (15:36 +0000)]
Merge "Don't retain the filtered list of notifications." into qt-qpr1-dev

4 years agoMerge "Fix notification shell commands" into qt-qpr1-dev
TreeHugger Robot [Fri, 8 Nov 2019 15:30:30 +0000 (15:30 +0000)]
Merge "Fix notification shell commands" into qt-qpr1-dev

4 years agoFix notification shell commands
Julia Reynolds [Thu, 7 Nov 2019 16:37:18 +0000 (11:37 -0500)]
Fix notification shell commands

- Notification posting is done as calling app
- make some only callable by shell

Test: atest
Test: sample app; make sure posted notification is from app itself
Test: sample app; make sure some commands fail
Test: make sure all modified commands still work from shell
Fixes: 143339775
Change-Id: I50ee768e792266ad2091f1913168e89d5d1463ed
(cherry picked from commit 1c943a2670c1ff499669b42ef72dcd9f07db08c3)

4 years agoMerge "Added UserInfo.preCreated on fixture used by unit tests." into qt-qpr1-dev
Felipe Leme [Fri, 8 Nov 2019 10:36:13 +0000 (10:36 +0000)]
Merge "Added UserInfo.preCreated on fixture used by unit tests." into qt-qpr1-dev

4 years agoDO NOT MERGE - Removed FLAG_EPHEMERAL from pre-created users.
Felipe Leme [Wed, 30 Oct 2019 01:03:18 +0000 (18:03 -0700)]
DO NOT MERGE - Removed FLAG_EPHEMERAL from pre-created users.

When a User is pre-created with that flag, its CE & DE keys are not persisted on storage. Hence,
when that pre-creatd user is converted to full-user, the expected keys don't exist and the user
doesn't boot properly.

This change fix the issue by making the pre-created user non-ephemeral, and changing it to
ephemeral when it's converted to a "real" user.

Test: manual verification on Automotive by creating a new user than deleting it using the UI -
that creates and switches to a new guest user (which was pre-created); without this change,
that user  would be hanging with a "Android is starting..." message

Bug: 143092698
Fixes: 143553590

Change-Id: If595b29356b5b50c812f2888cda6e636f18a0d4b

4 years agoFix Jank when factory resetting
Raff Tsai [Mon, 30 Sep 2019 06:39:32 +0000 (14:39 +0800)]
Fix Jank when factory resetting

A progress dialog is shown and quickly disappear caused the UI jank.
The progress dialog should be shown only when erase external SD card
is needed because WipeDataTask only wipe SD card in it background
task. Other factory reset function is done in Thread thr.

Fixes: 140594314
Test: manual
Change-Id: I71ab1577165ceab79704b359c47c3f752d9dfc79
(cherry picked from commit d5b1510994ee265c7d95d66f819352dca91f7d24)

4 years agoMerge "Fix LocalOnlyHotspotReservation double stop of local hotspot." into qt-qpr1-dev
TreeHugger Robot [Fri, 8 Nov 2019 06:11:19 +0000 (06:11 +0000)]
Merge "Fix LocalOnlyHotspotReservation double stop of local hotspot." into qt-qpr1-dev

4 years agoMerge "DO NOT MERGE: Fixes NPE when preparing app data during init" into qt-qpr1-dev
TreeHugger Robot [Fri, 8 Nov 2019 04:58:27 +0000 (04:58 +0000)]
Merge "DO NOT MERGE: Fixes NPE when preparing app data during init" into qt-qpr1-dev

4 years agoMerge "docs: Clarified behavior of TypedArray.getBoolean()" into qt-dev am: de21a30cda
Andrew Solovay [Fri, 8 Nov 2019 01:35:10 +0000 (17:35 -0800)]
Merge "docs: Clarified behavior of TypedArray.getBoolean()" into qt-dev am: de21a30cda
am: c5f06a08c8

Change-Id: Ic61f305c81ebeaa0e4002c4f23007f2edacc6e4a

4 years agoMerge "docs: Clarified behavior of TypedArray.getBoolean()" into qt-dev
Andrew Solovay [Fri, 8 Nov 2019 01:29:10 +0000 (17:29 -0800)]
Merge "docs: Clarified behavior of TypedArray.getBoolean()" into qt-dev
am: de21a30cda

Change-Id: Ib53cd5a940756e4d3448fa4dc280a87bc0c06f58

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 agoDO NOT MERGE: Fixes NPE when preparing app data during init
Patrick Baumann [Wed, 6 Nov 2019 18:36:39 +0000 (10:36 -0800)]
DO NOT MERGE: Fixes NPE when preparing app data during init

When deleting an unused static shared library on Q, the user manager was
fetched via mContext.getSystemService. At this time during boot, the
service wasn't registered and so null was returned. This has already
been addressed in R with a move to injecting dependencies in the
PackageManagerService constructor.

Bug: 142083996
Bug: 141413692
Test: manual; remove static dependency on eng Q build and reboot
Change-Id: I8ae4e331d09b4734c54cdc6887b273705dce88b1

4 years agoDO NOT MERGE: Fix several issues with precreated users.
jovanak [Mon, 28 Oct 2019 16:56:29 +0000 (09:56 -0700)]
DO NOT MERGE: Fix several issues with precreated users.

1. Prevent UserManager from destroying storage for precreated users.
2. Modify UMS.getUserIds to exclude precreated users.
3. Remove pre-created users if the system has upgraded.
4. Read permissions during conversion to a "real" user. Permissions should have been granted during the pre-creation. If we cannot read permissions, re-grant them for the user.

Fixes: 143464654
Fixes: 143463955
Test: Repeated subsequent boots; observing logs; boot systrace; applied OTA, verified user cleanup
Change-Id: I75b031105b2622a8a28e84cf2394e43ec93e4174

4 years agoMerge "DO NOT MERGE Revert "Adding scrim bubble to car's super_status_bar.xml"" into...
Eric Berglund [Thu, 7 Nov 2019 22:31:36 +0000 (22:31 +0000)]
Merge "DO NOT MERGE Revert "Adding scrim bubble to car's super_status_bar.xml"" into qt-qpr1-dev

4 years agoMerge "Fixed incorrect WAC decoding" into qt-qpr1-dev
TreeHugger Robot [Thu, 7 Nov 2019 21:45:06 +0000 (21:45 +0000)]
Merge "Fixed incorrect WAC decoding" into qt-qpr1-dev

4 years agoMerge "Add comment in getSubscriptionsInGroup about throwing IllegalStateException...
TreeHugger Robot [Thu, 7 Nov 2019 20:50:32 +0000 (20:50 +0000)]
Merge "Add comment in getSubscriptionsInGroup about throwing IllegalStateException" into qt-qpr1-dev

4 years agoFixed incorrect WAC decoding
Jack Yu [Thu, 7 Nov 2019 19:06:48 +0000 (11:06 -0800)]
Fixed incorrect WAC decoding

Fixed the incorrect warning area coordinate decoding
when data length is greater than 127 bytes.

Bug: 143762197
Test: unit test
Change-Id: I498ccd0933f31898d531dcea307e160ae94653e8

4 years agoMerge "Dedup smart reply updates for bubble flyout [DO NOT MERGE]" into qt-qpr1-dev
TreeHugger Robot [Thu, 7 Nov 2019 18:29:49 +0000 (18:29 +0000)]
Merge "Dedup smart reply updates for bubble flyout [DO NOT MERGE]" into qt-qpr1-dev

4 years agoDon't retain the filtered list of notifications.
Dan Sandler [Wed, 30 Oct 2019 19:01:32 +0000 (15:01 -0400)]
Don't retain the filtered list of notifications.

Previously the entire set of notifications was "leaked" until
the next call to getNotificationsForCurrentUser(), which
currently only happens for certain configuration changes
(UiMode, density, fontscale).

Bug: 143461605
Test: atest SystemUITests
Test: sanity check: boot and switch night mode
Change-Id: I39f2c96f848ab92a050aa4bda3ae203fbf99d915
(cherry picked from commit c0c6edee7f46ac2d247f496f83e53f9adfd163e7)

4 years agoAdded UserInfo.preCreated on fixture used by unit tests.
Felipe Leme [Mon, 14 Oct 2019 17:00:34 +0000 (10:00 -0700)]
Added UserInfo.preCreated on fixture used by unit tests.

Bug: 140750212
Bug: 142093568

Test: atest UserManagerServiceUserInfoTest

Merged-In: I5ccaca67e2a0a9b93be9a9ac270970d7cc9926a8
Change-Id: I5ccaca67e2a0a9b93be9a9ac270970d7cc9926a8
(cherry picked from commit 9cbee8aa9b02c16266729872007b03366bd7b907)

4 years agoMerge "Refine battery saver footer string" into qt-qpr1-dev
Tsung-Mao Fang [Thu, 7 Nov 2019 09:17:15 +0000 (09:17 +0000)]
Merge "Refine battery saver footer string" into qt-qpr1-dev

4 years agoMerge "Hide "swipe up to unlock" when entering Doze" into qt-qpr1-dev
TreeHugger Robot [Thu, 7 Nov 2019 08:02:48 +0000 (08:02 +0000)]
Merge "Hide "swipe up to unlock" when entering Doze" into qt-qpr1-dev

4 years agoMerge "Carrier config to switch data if primary is OOS" into qt-qpr1-dev
TreeHugger Robot [Thu, 7 Nov 2019 05:54:19 +0000 (05:54 +0000)]
Merge "Carrier config to switch data if primary is OOS" into qt-qpr1-dev

4 years agoFix LocalOnlyHotspotReservation double stop of local hotspot.
Yury Kotlyarov [Tue, 6 Aug 2019 20:10:59 +0000 (15:10 -0500)]
Fix LocalOnlyHotspotReservation double stop of local hotspot.

If user executed startLocalOnlyHotspot(), then reservation.close()
garbage collector still keeps reservation object until drain.
If user executed startLocalOnlyHotspot second time during
application life cycle, garbage collector can delete previously
allocated reservation object. In this case finalize() of old
reservation object will be executed, then close(), then
stopLocalOnlyHotspot(). As result, new started LocalOnlyHostpot
can be immediatly stopped by old reservation object delete.
Steps to reproduce: execute startLocalOnlyHostpot() and
reservation.close() multiple times during application life cycle,
check if hotspot up couple of seconds after start.
This fix prevents stopping of local hotspot if reservation
was previously closed.
Test: manual

Bug: 139074896
Bug: 143653311

Change-Id: I86c10b577dbab8cad2d5f7e19805511a93bcb668
Merged-In: I86c10b577dbab8cad2d5f7e19805511a93bcb668
(cherry-picked from ee7b0a6ab2cf7a38699fcdcfe4096b1de232f7f0)

4 years agoHide "swipe up to unlock" when entering Doze
Lucas Dupin [Tue, 5 Nov 2019 00:01:51 +0000 (16:01 -0800)]
Hide "swipe up to unlock" when entering Doze

"Swipe up to unlock" should only be visible when the screen is
interactive, even though it would last for 5sec otherwise.

Test: manual
Test: atest KeyguardIndicationControllerTest
Fixes: 139400542
Change-Id: If7290459a3ae28f689cf4c9e2311398e5f6bcf13
Merged-In: If7290459a3ae28f689cf4c9e2311398e5f6bcf13

4 years agoMerge "docs: Added perm req for getUserCount()" into qt-dev am: c949db391d
Kevin Hufnagle [Wed, 6 Nov 2019 23:04:13 +0000 (15:04 -0800)]
Merge "docs: Added perm req for getUserCount()" into qt-dev am: c949db391d
am: f58949bd0e

Change-Id: Ifbced59e15c2ad19ad94b93af05d28ccfbccd255

4 years agoMerge "docs: Added perm req for getUserCount()" into qt-dev
Kevin Hufnagle [Wed, 6 Nov 2019 22:57:13 +0000 (14:57 -0800)]
Merge "docs: Added perm req for getUserCount()" into qt-dev
am: c949db391d

Change-Id: Ib9f6f7561cc6dd365537cf169d45c2eb191f514a

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 agoMerge "Use KNOWN_PACKAGES when shared lib consumers" into qt-qpr1-dev
Patrick Baumann [Wed, 6 Nov 2019 22:40:09 +0000 (22:40 +0000)]
Merge "Use KNOWN_PACKAGES when shared lib consumers" into qt-qpr1-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 agoMerge "docs: remove old broken link" into qt-dev am: 2dc61fc4f4
Joshua Baxter [Wed, 6 Nov 2019 22:09:20 +0000 (14:09 -0800)]
Merge "docs: remove old broken link" into qt-dev am: 2dc61fc4f4
am: 101f294b58

Change-Id: Id655af3e092e125cc80cdb0d792e56a4adb93100

4 years agoMerge "docs: fix typo" into qt-dev am: 49357cbf9e
Joshua Baxter [Wed, 6 Nov 2019 22:05:27 +0000 (14:05 -0800)]
Merge "docs: fix typo" into qt-dev am: 49357cbf9e
am: 01b5ee8eca

Change-Id: I449250128879b14a4cf9da7c43f8d40af765c4d6

4 years agoAdd comment in getSubscriptionsInGroup about throwing IllegalStateException
Malcolm Chen [Wed, 6 Nov 2019 22:02:46 +0000 (14:02 -0800)]
Add comment in getSubscriptionsInGroup about throwing IllegalStateException

Bug: 142250528
Test: build
Change-Id: I57b87755f6ddf962721e620f869ff48370e3f2d6

4 years agoMerge "docs: fix typos" into qt-dev am: f6c85f3c0d
Joshua Baxter [Wed, 6 Nov 2019 22:01:38 +0000 (14:01 -0800)]
Merge "docs: fix typos" into qt-dev am: f6c85f3c0d
am: 256363052e

Change-Id: I3596d0642bb2bb36eb673f1c387d324cbc02295d