Jin Seok Park
643f3e419e
[Media ML] Replace observing changes in Settings value
...
Currently, MediaSessionService observes the
ENABLED_NOTIFICATION_LISTENERS value in Settings to be notified
when a previously "enabled" NotificationListener becomes "disabled".
Instead, this CL adds a new broadcast intent action that
NotificationManagerService can use to notify MediaSessionService
whenever the enabled value of a notification listener changes.
Bug: 160762852, Bug: 147019349
Test: Go to Settings > Apps & Notifications > Special app access
> Notification access
and check if allowing/disallowing Notification access for any
app causes onEnabledChanged to be called.
Change-Id: I3aefa40083fedb78214ae884c7cccaf8de206663
2020-08-14 01:10:31 +09:00
Chalard Jean
2ea424eac6
[automerger skipped] Merge changes I33b70b0a,I1074eedb am: e286c5e1ef am: cbcb46cb87 -s ours am: 26187e2fba -s ours am: 8b9473a80b -s ours am: 78a23f1bdd -s ours
...
am skip reason: Change-Id Icd141a992c46290c74929785e261a1cd57bc001b with SHA-1 deae676127 is in history
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1392725
Change-Id: Ice038957c1a18e1a978362309adeef798b6223bf
2020-08-07 07:45:45 +00:00
Chalard Jean
6af5edccf2
[automerger skipped] Revert "Revert "Move Inet[4]AddressUtils to libs/net"" am: be00709344 am: 62a694f865 -s ours am: b4cf848fe7 -s ours am: c64e1a0e2c -s ours am: 1b402113fe -s ours
...
am skip reason: Change-Id Icd141a992c46290c74929785e261a1cd57bc001b with SHA-1 deae676127 is in history
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1382497
Change-Id: I9b0b0167f3ac86bf41aeb9655e6e4c19ea33a554
2020-08-07 07:45:39 +00:00
JW Wang
93e4ff90c4
Merge changes I018a36d7,I33c6e9b6,Ieed57ea6,I05580968
...
* changes:
Some code cleanup (4/n)
Some code cleanup (3/n)
Some code cleanup (2/n)
Store object references along with child session Ids (1/n)
2020-08-07 07:41:21 +00:00
Chalard Jean
78a23f1bdd
[automerger skipped] Merge changes I33b70b0a,I1074eedb am: e286c5e1ef am: cbcb46cb87 -s ours am: 26187e2fba -s ours am: 8b9473a80b -s ours
...
am skip reason: Change-Id Icd141a992c46290c74929785e261a1cd57bc001b with SHA-1 deae676127 is in history
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1392725
Change-Id: I8a133f595e5f40a0aec4b831070997c9a0fa4bdc
2020-08-07 07:37:08 +00:00
Chalard Jean
1b402113fe
[automerger skipped] Revert "Revert "Move Inet[4]AddressUtils to libs/net"" am: be00709344 am: 62a694f865 -s ours am: b4cf848fe7 -s ours am: c64e1a0e2c -s ours
...
am skip reason: Change-Id Icd141a992c46290c74929785e261a1cd57bc001b with SHA-1 deae676127 is in history
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1382497
Change-Id: I3fa582c372cf3b4c9d4063e343411eaa71ef438b
2020-08-07 07:37:06 +00:00
Chalard Jean
8b9473a80b
[automerger skipped] Merge changes I33b70b0a,I1074eedb am: e286c5e1ef am: cbcb46cb87 -s ours am: 26187e2fba -s ours
...
am skip reason: Change-Id Icd141a992c46290c74929785e261a1cd57bc001b with SHA-1 deae676127 is in history
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1392725
Change-Id: I039772ce9b09d2f0f9d07fbf632d3d8efa01630b
2020-08-07 07:26:54 +00:00
Chalard Jean
c64e1a0e2c
[automerger skipped] Revert "Revert "Move Inet[4]AddressUtils to libs/net"" am: be00709344 am: 62a694f865 -s ours am: b4cf848fe7 -s ours
...
am skip reason: Change-Id Icd141a992c46290c74929785e261a1cd57bc001b with SHA-1 deae676127 is in history
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1382497
Change-Id: I853068e1d6301fc99466f255e9084a130d122971
2020-08-07 07:26:47 +00:00
Chalard Jean
26187e2fba
[automerger skipped] Merge changes I33b70b0a,I1074eedb am: e286c5e1ef am: cbcb46cb87 -s ours
...
am skip reason: Change-Id Icd141a992c46290c74929785e261a1cd57bc001b with SHA-1 deae676127 is in history
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1392725
Change-Id: I462f911d13e7574a0babd6d661c0b569f0265b58
2020-08-07 07:16:28 +00:00
Chalard Jean
b4cf848fe7
[automerger skipped] Revert "Revert "Move Inet[4]AddressUtils to libs/net"" am: be00709344 am: 62a694f865 -s ours
...
am skip reason: Change-Id Icd141a992c46290c74929785e261a1cd57bc001b with SHA-1 deae676127 is in history
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1382497
Change-Id: I5b15fde5cb76d1dc178a3cb2b1597e0c27aa7af2
2020-08-07 07:16:23 +00:00
Automerger Merge Worker
a2fac8d146
Merge "[automerger skipped] Resolve the endpoint in legacy VPN am: 002944f78e am: 926a2a40cf -s ours" into rvc-qpr-dev-plus-aosp am: 496ee02096 -s ours
...
am skip reason: Change-Id I96691f6091c43377f23a00621242ed034fcb0444 with SHA-1 9da9925389 is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12325669
Change-Id: I4df4adf27b866a4111ab6c4d8a63903dd26c39c9
2020-08-07 07:05:11 +00:00
Automerger Merge Worker
5f6aa76ca2
Merge "[automerger skipped] Resolve the endpoint in legacy VPN am: 002944f78e -s ours am: b07add8ebc -s ours" into rvc-qpr-dev-plus-aosp am: e7ccdf2aca -s ours
...
am skip reason: Change-Id I96691f6091c43377f23a00621242ed034fcb0444 with SHA-1 9da9925389 is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12325669
Change-Id: I4e4ebec9b206d6511e3c82796d1d31e0fb79ec9c
2020-08-07 07:04:44 +00:00
Automerger Merge Worker
3393c9629c
Merge "[automerger skipped] Add a test for starting the legacy VPN. am: c9e026f4e9 am: 6995503731 -s ours" into rvc-qpr-dev-plus-aosp am: 3e5500dc34 -s ours
...
am skip reason: Change-Id I3c4a94181bd71df68121fa0f71669fa4fa588bdd with SHA-1 4d64450516 is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12330622
Change-Id: I40b47a0c828172ffdc19ca04820138048a0f720a
2020-08-07 07:04:32 +00:00
Chalard Jean
0df12416a7
[automerger skipped] Add a test for starting the legacy VPN. am: c9e026f4e9 -s ours am: 6786885985 -s ours am: ad43b35e35 -s ours
...
am skip reason: Change-Id I3c4a94181bd71df68121fa0f71669fa4fa588bdd with SHA-1 4d64450516 is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12330622
Change-Id: I1709251d8a3cc1990c12436ed6c4c712a193d493
2020-08-07 07:04:01 +00:00
Chalard Jean
cbcb46cb87
Merge changes I33b70b0a,I1074eedb am: e286c5e1ef
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1392725
Change-Id: I18869fe6bddd51f77068a91034b524f12c5a3450
2020-08-07 06:59:30 +00:00
Chalard Jean
62a694f865
Revert "Revert "Move Inet[4]AddressUtils to libs/net"" am: be00709344
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1382497
Change-Id: Ia5e7e926bc3a9af8b03f8970738e6abe4c6d15b6
2020-08-07 06:59:26 +00:00
Automerger Merge Worker
496ee02096
Merge "[automerger skipped] Resolve the endpoint in legacy VPN am: 002944f78e am: 926a2a40cf -s ours" into rvc-qpr-dev-plus-aosp
2020-08-07 06:54:59 +00:00
Automerger Merge Worker
e7ccdf2aca
Merge "[automerger skipped] Resolve the endpoint in legacy VPN am: 002944f78e -s ours am: b07add8ebc -s ours" into rvc-qpr-dev-plus-aosp
2020-08-07 06:54:54 +00:00
Chalard Jean
2523203757
[automerger skipped] Resolve the endpoint in legacy VPN am: 002944f78e am: 926a2a40cf -s ours
...
am skip reason: Change-Id I96691f6091c43377f23a00621242ed034fcb0444 with SHA-1 9da9925389 is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12325669
Change-Id: I9ecb2fdf57554028c60084f6ed86f2e4d08fc387
2020-08-07 06:54:54 +00:00
Automerger Merge Worker
3e5500dc34
Merge "[automerger skipped] Add a test for starting the legacy VPN. am: c9e026f4e9 am: 6995503731 -s ours" into rvc-qpr-dev-plus-aosp
2020-08-07 06:54:48 +00:00
Chalard Jean
8bab75e200
[automerger skipped] Resolve the endpoint in legacy VPN am: 002944f78e -s ours am: b07add8ebc -s ours
...
am skip reason: Change-Id I96691f6091c43377f23a00621242ed034fcb0444 with SHA-1 9da9925389 is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12325669
Change-Id: Ie5b037df1d53019c773ecebf7db9d38dd9dd8df0
2020-08-07 06:54:29 +00:00
Chalard Jean
a07af16637
[automerger skipped] Add a test for starting the legacy VPN. am: c9e026f4e9 am: 6995503731 -s ours
...
am skip reason: Change-Id I3c4a94181bd71df68121fa0f71669fa4fa588bdd with SHA-1 4d64450516 is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12330622
Change-Id: Ifee93b0591d129129731d6dcf9c47e0a6ca2f5a9
2020-08-07 06:54:27 +00:00
Chalard Jean
ad43b35e35
[automerger skipped] Add a test for starting the legacy VPN. am: c9e026f4e9 -s ours am: 6786885985 -s ours
...
am skip reason: Change-Id I3c4a94181bd71df68121fa0f71669fa4fa588bdd with SHA-1 4d64450516 is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12330622
Change-Id: Ic7c62d74001747f8983b9e6585de1ddbda16b06e
2020-08-07 06:54:10 +00:00
Chalard Jean
e286c5e1ef
Merge changes I33b70b0a,I1074eedb
...
* changes:
Remove the services.net-module-wifi module target.
Revert "Revert "Move Inet[4]AddressUtils to libs/net""
2020-08-07 06:45:15 +00:00
Chalard Jean
926a2a40cf
Resolve the endpoint in legacy VPN am: 002944f78e
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12325669
Change-Id: I31744fca265bd28d01562003c507f4214278285c
2020-08-07 06:45:07 +00:00
Chalard Jean
b07add8ebc
[automerger skipped] Resolve the endpoint in legacy VPN am: 002944f78e -s ours
...
am skip reason: Change-Id I96691f6091c43377f23a00621242ed034fcb0444 with SHA-1 9da9925389 is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12325669
Change-Id: If767dc2c9fd68e0a6610a42319f2a61d7fb60c1f
2020-08-07 06:45:05 +00:00
Chalard Jean
90fd266418
Remove the services.net-module-wifi module target.
...
Test: still builds
Change-Id: I33b70b0a624b6ab786f4c584592d839309eaac3e
Merged-In: Icd141a992c46290c74929785e261a1cd57bc001b
2020-08-07 06:45:02 +00:00
Chalard Jean
6995503731
Add a test for starting the legacy VPN. am: c9e026f4e9
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12330622
Change-Id: Id1d6c6405563dc8ab3d6ac9c2cd8dabf19dc9f74
2020-08-07 06:44:57 +00:00
Chalard Jean
6786885985
[automerger skipped] Add a test for starting the legacy VPN. am: c9e026f4e9 -s ours
...
am skip reason: Change-Id I3c4a94181bd71df68121fa0f71669fa4fa588bdd with SHA-1 4d64450516 is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12330622
Change-Id: Ieff977b6742a93b3a8f335ff6022cf1fbdcec2e7
2020-08-07 06:44:53 +00:00
Chalard Jean
002944f78e
Resolve the endpoint in legacy VPN
...
This adds code to resolve the endpoint in the legacy VPN
runner if it was specified as a hostname, and enables the
previously added test that was disabled because this was
broken until this patch. See the linked bug for details.
This patch uses the async DNS API to do the resolution.
This lets the resolution be fully cancellable, though the
code is more complex than with the non-interruptible
getByName.
Test: VpnTest and in particular VpnTest#testStartRacoon
Fixes the test meant to test this
Also manual testing that resolution of a real
hostname works as expected, that failure to resolve
returns correctly, and that cancellation/interruption
will unblock the thread and terminate immediately.
Bug: 158974172
Change-Id: I90bec6d85706fa9b2f9a01f81701138a54347005
Merged-In: I96691f6091c43377f23a00621242ed034fcb0444
(cherry picked from commit 8ab570d9c9 )
2020-08-07 06:43:22 +00:00
Hui Yu
d1151ce050
Merge "Set mAllowWhileInUsePermissionInFgs correctly when bindService() from background."
2020-08-07 06:42:12 +00:00
Lorenzo Colitti
db8ae41da2
Merge "Fix fd leak in KeepaliveTracker." am: 4f1a3c1c74 am: af8f6f7111 am: f3ced351f0 am: 7b01e919c3 am: f453719006
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1361907
Change-Id: Ie486543475b0e4e8227f71aea47000da14979e5f
2020-08-07 06:39:05 +00:00
Wei Sheng Shih
9e4adbcf04
Merge "Don't send onMultiWindowModeChanged if relaunch activity."
2020-08-07 06:38:39 +00:00
Lorenzo Colitti
f453719006
Merge "Fix fd leak in KeepaliveTracker." am: 4f1a3c1c74 am: af8f6f7111 am: f3ced351f0 am: 7b01e919c3
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1361907
Change-Id: Idee2fcb96d2b94120d5b53b8d402faa11c94d142
2020-08-07 06:30:11 +00:00
Sudheer Shanka
1aeabd05be
[automerger skipped] Merge "Postpone updating idle states to after the boot." into rvc-qpr-dev am: 77c54c7c4b am: 59bf36c71e -s ours
...
am skip reason: Change-Id Ic22e1e7bf3356d523a37ca41a234aefc5d738ec5 with SHA-1 88338ff080 is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12204314
Change-Id: Ia5b6f7fdd4f4a04c9f2d56ef3c1442de3f43a69d
2020-08-07 06:17:23 +00:00
Lorenzo Colitti
7b01e919c3
Merge "Fix fd leak in KeepaliveTracker." am: 4f1a3c1c74 am: af8f6f7111 am: f3ced351f0
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1361907
Change-Id: I69f4f8073b057f294e0665ab7b1dcf57818d3089
2020-08-07 06:17:00 +00:00
Sudheer Shanka
59bf36c71e
Merge "Postpone updating idle states to after the boot." into rvc-qpr-dev am: 77c54c7c4b
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12204314
Change-Id: Ie98696f856461e5e9f969f1218a184f2c713ec14
2020-08-07 06:07:33 +00:00
Lorenzo Colitti
f3ced351f0
Merge "Fix fd leak in KeepaliveTracker." am: 4f1a3c1c74 am: af8f6f7111
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1361907
Change-Id: I68dcb3da95c803179733861604e092582eefb254
2020-08-07 06:02:12 +00:00
Sudheer Shanka
77c54c7c4b
Merge "Postpone updating idle states to after the boot." into rvc-qpr-dev
2020-08-07 05:53:12 +00:00
Lorenzo Colitti
af8f6f7111
Merge "Fix fd leak in KeepaliveTracker." am: 4f1a3c1c74
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1361907
Change-Id: I13df61b292a9ec964854641ba170d39caf66125a
2020-08-07 05:48:00 +00:00
Lorenzo Colitti
4f1a3c1c74
Merge "Fix fd leak in KeepaliveTracker."
2020-08-07 05:40:33 +00:00
Chalard Jean
c9e026f4e9
Add a test for starting the legacy VPN.
...
The legacy VPN has, among many parameters, a host to connect to.
This host can be specified as a numeric address, or as a hostname.
When it's a name, resolution is required. Currently, name
resolution is performed by the native VPN daemons racoon and
mtpd. When a hostname is used, the framework does not know the
IP address of the VPN server and does not add a throw route for
the VPN server IP address. On older kernels this does not matter
because the legacy PPP kernel code binds the PPP socket to the
right network, but on newer devices that use the upstream PPP
code, this does not work. See b/133797637.
This patch instruments the legacy VPN code so that it can be
run in tests, and uses this instrumentation to simulate passing
a configuration that contains a host, and verifies that the
arguments passed to the mptd and racoon daemons receive the
expected server address, and that the expected throw route is
correctly installed.
It then adds two tests : one specifying the server as a numeric
address, and one as a hostname. As the resolution is currently
broken, the latter of these tests is added disabled, and the
followup fix to the issue enables it.
This test is basic and very targeted, but it's what we need right
now. Also there are plans to remove this entire code path in S, so
the test being ad-hoc is not much of a problem.
Test: this
Bug: 158974172
Change-Id: I96f4bbb9b109e3e5813d083bed1989d88fb156b8
Merged-In: I3c4a94181bd71df68121fa0f71669fa4fa588bdd
(cherry picked from commit dece7f3f74 )
2020-08-07 05:11:43 +00:00
TreeHugger Robot
9dd69675ef
Merge "Allow controlling the SDR white point"
2020-08-07 04:16:26 +00:00
Puma Hsu
708294a7ad
Merge "Update language to comply with Android's inclusive language guidance" am: b8017c9d03 am: cbc7b156b2 am: 185d02ec5d am: a9d3817d69 am: b1204095ec
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1382480
Change-Id: I15fe04f74c0ce6ba1f161bd197a7b91fd4c389d4
2020-08-07 03:54:57 +00:00
Puma Hsu
b1204095ec
Merge "Update language to comply with Android's inclusive language guidance" am: b8017c9d03 am: cbc7b156b2 am: 185d02ec5d am: a9d3817d69
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1382480
Change-Id: If055ea9f7a1a45cf0f1e82deda99178f88ace2ec
2020-08-07 03:40:21 +00:00
Chalard Jean
be00709344
Revert "Revert "Move Inet[4]AddressUtils to libs/net""
...
This patch is still needed and should go in now that the
error is fixed.
The patch was submitted into rvc-dev and is already in
rvc-dev-plus-aosp (patch in in ag/11923559, revert
skipped in ag/12072199). A follow-up will remove the
unused services.net-module-wifi target.
Test: originally tested in aosp/1324109
Test: m; manual: flashed, wifi and telephony working
Test: atest NetworkStackCoverageTests
Change-Id: I1074eedb0b0f156a1135e11210ec102de15ea674
Merged-In: Icd141a992c46290c74929785e261a1cd57bc001b
2020-08-07 03:31:04 +00:00
Puma Hsu
a9d3817d69
Merge "Update language to comply with Android's inclusive language guidance" am: b8017c9d03 am: cbc7b156b2 am: 185d02ec5d
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1382480
Change-Id: Ib364c43dc446a87ea9f76fccc634d35e90c8042a
2020-08-07 03:26:30 +00:00
Josh Gao
a67198dbfd
Fix fd leak in KeepaliveTracker.
...
The semantics of FileDescriptor in AIDL are that the callee must close
the file descriptor it receives manually.
Bug: http://b/157789860
Test: treehugger
Change-Id: Ice9fc9abe2959a84ad138a95c900dff676653665
2020-08-07 03:22:38 +00:00
Puma Hsu
185d02ec5d
Merge "Update language to comply with Android's inclusive language guidance" am: b8017c9d03 am: cbc7b156b2
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1382480
Change-Id: Ia235f0faf642f5752e9c169c3383c37219e735a6
2020-08-07 03:07:01 +00:00
Puma Hsu
cbc7b156b2
Merge "Update language to comply with Android's inclusive language guidance" am: b8017c9d03
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1382480
Change-Id: Ia0c937717d130ea844bab629c744e32201991610
2020-08-07 02:54:33 +00:00