f60833507e30522afc99010a0fc9c9c38c92618a
This patch changes NsdService to call registerContentObserver in the ContentResolver class indirectly through NsdSettings. This allows to easily intercept it and mock it in unit tests, and solves test failures on the internal master branch where registerContentObserver uses final or static methods that cannot be worked around. Bug: 32561414 Bug: 62044295 Test: runtest -x frameworks/base/tests/net/../NsdServiceTest.java Change-Id: If4deb106de551746babb70196b20f21ece478850
Description
android_packages_modules_Connectivity
Languages
Java
81.4%
Kotlin
7.7%
AIDL
4.5%
C++
4.5%
C
1.7%
Other
0.1%