Home
last modified time | relevance | path

Searched refs:nc1 (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkCapabilitiesTest.java167 NetworkCapabilities nc1; in testDescribeImmutableDifferences() local
171 nc1 = new NetworkCapabilities().addTransportType(TRANSPORT_CELLULAR); in testDescribeImmutableDifferences()
173 assertNotEquals("", nc1.describeImmutableDifferences(nc2)); in testDescribeImmutableDifferences()
174 assertEquals("", nc1.describeImmutableDifferences(nc1)); in testDescribeImmutableDifferences()
177 nc1 = new NetworkCapabilities().addCapability(NET_CAPABILITY_VALIDATED); in testDescribeImmutableDifferences()
179 assertEquals("", nc1.describeImmutableDifferences(nc2)); in testDescribeImmutableDifferences()
180 assertEquals("", nc1.describeImmutableDifferences(nc1)); in testDescribeImmutableDifferences()
183 nc1 = new NetworkCapabilities() in testDescribeImmutableDifferences()
187 assertEquals("", nc1.describeImmutableDifferences(nc2)); in testDescribeImmutableDifferences()
188 assertEquals("", nc1.describeImmutableDifferences(nc1)); in testDescribeImmutableDifferences()
[all …]
/packages/modules/Connectivity/framework/src/android/net/
DNetworkCapabilities.java1592 public static boolean hasSameUids(@Nullable NetworkCapabilities nc1, in hasSameUids() argument
1594 final Set<UidRange> uids1 = (nc1 == null) ? null : nc1.mUids; in hasSameUids()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkAgentTest.kt819 val nc1 = NetworkCapabilities(agent.nc) in testTemporarilyUnmeteredCapability() constant
821 agent.sendNetworkCapabilities(nc1) in testTemporarilyUnmeteredCapability()