No description. Add one?
  • Java 78%
  • Kotlin 11.8%
  • AIDL 4.4%
  • C++ 3.7%
  • C 1.5%
  • Other 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Remi NGUYEN VAN 905273c7dc Ensure callbacks are run properly on executor
NsdManager callbacks were run on a provided executor by capturing the
handler message in a lambda, but the message will be recycled
immediately after handleMessage returns. This means that any non-inline
executor would see bogus callbacks, as they have an empty Message. Fix
it by not capturing the Message in the lambda, but capturing its
contents instead.
This was broken when updating the class to support executors in change
ID: I4c31e2d7ae601ea808b1fd64df32d116c6fff97f; before that, callbacks
were all run on the NsdManager handler.

Also, DelegatingDiscoveryListener is being run on the NsdManager handler
thread for notifyAllServicesLost, causing onServiceLost to be run there,
but other methods are run on the provided Executor, even though they
access maps maintained on the handler thread, like mPerNetworkListeners.

Revert DelegatingDiscoveryListener to run on the handler thread as
before, and only use the provided executor to execute any app-facing
callback instead.

Bug: 234419509
Test: atest NsdManagerTest

Change-Id: Icca64511b02dad2f725a2849d2a1e871135b3286
(cherry picked from commit 9133888e0c)
Merged-In: Icca64511b02dad2f725a2849d2a1e871135b3286
2022-06-03 09:07:40 +00:00
bpf_progs Support more than 8 firewall chains / match types. 2022-06-01 00:40:57 +00:00
framework Merge "Revert "Autogenerate connectivity jarjar rules"" into tm-dev 2022-05-18 19:50:52 +00:00
framework-t Ensure callbacks are run properly on executor 2022-06-03 09:07:40 +00:00
nearby Explicitly enabled Proguard compat for NearbyMultiDevicesClientsSnippets 2022-05-17 16:00:50 +00:00
netd Support more than 8 firewall chains / match types. 2022-06-01 00:40:57 +00:00
service Merge "Support more than 8 firewall chains / match types." into tm-dev 2022-06-01 03:15:42 +00:00
service-t Hold wifi and mobile interfaces since boot in NetworkStatsService 2022-06-03 15:51:19 +09:00
tests Ensure callbacks are run properly on executor 2022-06-03 09:07:40 +00:00
Tethering Fix jarjar rules for tethering apk 2022-06-02 04:08:57 +00:00
.gitignore Add a .gitignore in packages/modules/Connectivity. 2020-11-27 18:09:21 +09:00
OWNERS Add additional IPsec owners 2021-12-08 06:57:51 +00:00
OWNERS_core_networking add prohr to OWNERS_core_networking 2022-01-11 18:54:31 +00:00
OWNERS_core_networking_xts Add an OWNERS_core_networking_xts for CTS/GTS/... and use it. 2022-01-18 01:42:39 +00:00
PREUPLOAD.cfg Enable tethering to perform its own hidden API processing 2021-06-28 23:41:38 +01:00
TEST_MAPPING Create CtsNetTestCasesMaxTargetSdk31. 2022-06-01 06:05:02 +00:00