android_packages_modules_Co.../tests/unit/java/android/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Remi NGUYEN VAN 1a8ee102d3 Fix service resolve on tethering downstreams
Tethering downstreams do not have NetworkAgents, and although they have
a netid of 99, Networks with netId 99 are not usable by apps for most
connectivity APIs.

Recent refactoring in NsdService adds the Network of a found service
into its NsdServiceInfo, and uses that network to resolve the service.
In that case the Network has netId 99 and resolving the service fails.

Avoid that problem by:
 - Keeping the Network field null when a service is found on a tethering
   downstream; this avoids giving apps a confusing and unusable Network
   with netId 99
 - Using the interface index found during discovery to resolve the
   service, if the app uses the NsdServiceInfo that was obtained from
   discovery to resolve. If not, all interfaces will be used to resolve,
   as per legacy APIs.

Bug: 233979892
Test: atest NsdServiceTest
      Also manual test with 2 devices connected via hotspot
Change-Id: Idd176153b67ccbd1d4f1b1fd66dafaa2f3a9e27a
2022-05-31 13:06:22 +09:00
..
ipmemorystore Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
netstats [SUBID01-1]Grow NetworkIdentity to include a new mSubId field 2022-03-01 16:43:28 +08:00
nsd Fix service resolve on tethering downstreams 2022-05-31 13:06:22 +09:00
util Add new network capabilities to support automotive head unit via USB 2021-07-08 09:44:39 +09:00
ConnectivityManagerTest.java Fix ConnectivityManager memory leak 2022-04-29 08:01:23 +00:00
EthernetNetworkUpdateRequestTest.java Add test for nullable IpConfiguration 2022-03-16 20:29:10 +01:00
Ikev2VpnProfileTest.java Test Ikev2VpnProfile provisioned with IkeTunnelConnectionParams 2022-04-21 14:49:41 +08:00
IpMemoryStoreTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
IpSecAlgorithmTest.java Fix IpSecAlgorithmTest on S 2021-08-25 18:10:22 +09:00
IpSecConfigTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
IpSecManagerTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
IpSecTransformTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
KeepalivePacketDataUtilTest.java Move fromStableParcelable to KeepaliveController 2021-11-01 13:23:27 +09:00
MacAddressTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
NetworkIdentitySetTest.kt Fix NullPointerException happens in dumpCheckin 2022-04-19 17:49:30 +08:00
NetworkIdentityTest.kt [SUBID01-1]Grow NetworkIdentity to include a new mSubId field 2022-03-01 16:43:28 +08:00
NetworkStatsAccessTest.java Update the SDK for the tests with intended target in T+ 2022-01-20 10:30:19 +08:00
NetworkStatsCollectionTest.java [MS81] Support remove history before cutoff timestamp 2022-05-12 16:31:39 +08:00
NetworkStatsHistoryTest.java [MS81] Support remove history before cutoff timestamp 2022-05-12 16:31:39 +08:00
NetworkStatsTest.java Add unit test for NetworkStats iterator 2022-01-19 17:10:44 +08:00
NetworkTemplateTest.kt Add NetworkTemplateTest to common test for cts coverage 2022-03-10 14:57:46 +00:00
NetworkUtilsTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
QosSocketFilterTest.java Support QosCallback with UDP socket. UnitTest 2022-05-05 08:45:00 +00:00
QosSocketInfoTest.java Support QosCallback with UDP socket. UnitTest 2022-05-05 08:45:00 +00:00
TelephonyNetworkSpecifierTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
VpnManagerTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
VpnTransportInfoTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00