Register service on the specified network

Currently, NsdManager registers services on all interfaces when
one network was specified in NsdServiceInfo. It's unexpected
behavior. The service should be only advertised on specified
network. Thus, correct the behavior on NsdService and add cts
test to verify it.

Bug: 220070737
Test: atest CtsNetTestCases:android.net.cts.NsdManagerTest
Change-Id: Ief3bfa110bfa340c53edec561eb5376f6bd305e6
(cherry picked from commit 360a8e9e1b2c08c2bc598ea892ac671799a74535)
Merged-In: Ief3bfa110bfa340c53edec561eb5376f6bd305e6
2 files changed