Home
last modified time | relevance | path

Searched refs:canBeSatisfiedBy (Results 1 – 22 of 22) sorted by relevance

/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiNetworkAgentSpecifierTest.java158 assertTrue(specifier.canBeSatisfiedBy(null)); in testWifiNetworkAgentSpecifierSatisifiesNullAndAllMatch()
159 assertTrue(specifier.canBeSatisfiedBy(new MatchAllNetworkSpecifier())); in testWifiNetworkAgentSpecifierSatisifiesNullAndAllMatch()
173 assertTrue(specifier2.canBeSatisfiedBy(specifier1)); in testWifiNetworkAgentSpecifierDoesSatisifySame()
200 assertTrue(wifiNetworkSpecifier.canBeSatisfiedBy(wifiNetworkAgentSpecifier)); in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidPattern()
201 assertTrue(wifiNetworkAgentSpecifier.canBeSatisfiedBy(wifiNetworkSpecifier)); in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidPattern()
229 assertTrue(wifiNetworkSpecifier.canBeSatisfiedBy(wifiNetworkAgentSpecifier)); in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithBssidPattern()
230 assertTrue(wifiNetworkAgentSpecifier.canBeSatisfiedBy(wifiNetworkSpecifier)); in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithBssidPattern()
258 assertTrue(wifiNetworkSpecifier.canBeSatisfiedBy(wifiNetworkAgentSpecifier)); in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidAndBssidPattern()
259 assertTrue(wifiNetworkAgentSpecifier.canBeSatisfiedBy(wifiNetworkSpecifier)); in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidAndBssidPattern()
290 assertFalse(wifiNetworkSpecifier.canBeSatisfiedBy(wifiNetworkAgentSpecifier)); in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithSsidPattern()
[all …]
DWifiNetworkSpecifierTest.java694 assertFalse(specifier.canBeSatisfiedBy(null)); in testWifiNetworkSpecifierDoesNotSatisfyNullAndAllMatch()
695 assertFalse(specifier.canBeSatisfiedBy(new MatchAllNetworkSpecifier())); in testWifiNetworkSpecifierDoesNotSatisfyNullAndAllMatch()
724 assertTrue(specifier2.canBeSatisfiedBy(specifier1)); in testWifiNetworkSpecifierSatisfiesSame()
755 assertFalse(specifier2.canBeSatisfiedBy(specifier1)); in testWifiNetworkSpecifierDoesNotSatisfyWhenKeyMgmtDifferent()
784 assertFalse(specifier2.canBeSatisfiedBy(specifier1)); in testWifiNetworkSpecifierDoesNotSatisfyWhenSsidDifferent()
813 assertFalse(specifier2.canBeSatisfiedBy(specifier1)); in testWifiNetworkSpecifierDoesNotSatisfyWhenBssidDifferent()
840 assertTrue(specifier2.canBeSatisfiedBy(specifier1)); in testWifiNetworkSpecifierBandMatching()
841 assertTrue(specifier1.canBeSatisfiedBy(specifier2)); in testWifiNetworkSpecifierBandMatching()
851 assertFalse(specifier2.canBeSatisfiedBy(specifier1)); in testWifiNetworkSpecifierBandMatching()
852 assertFalse(specifier1.canBeSatisfiedBy(specifier2)); in testWifiNetworkSpecifierBandMatching()
[all …]
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkSpecifierTest.kt36 override fun canBeSatisfiedBy(other: NetworkSpecifier?): Boolean = in canBeSatisfiedBy() method in android.net.NetworkSpecifierTest.TestNetworkSpecifier
58 assertFalse(target.canBeSatisfiedBy(null)) in testcanBeSatisfiedBy()
59 assertTrue(target.canBeSatisfiedBy(TestNetworkSpecifier())) in testcanBeSatisfiedBy()
61 assertFalse(target.canBeSatisfiedBy(otherNs)) in testcanBeSatisfiedBy()
62 assertTrue(target.canBeSatisfiedBy(TestNetworkSpecifier(intData = 999))) in testcanBeSatisfiedBy()
63 assertFalse(target.canBeSatisfiedBy(TestNetworkSpecifier(intData = 1))) in testcanBeSatisfiedBy()
64 assertFalse(target.canBeSatisfiedBy(TestNetworkSpecifier(stringData = "diff"))) in testcanBeSatisfiedBy()
DMatchAllNetworkSpecifierTest.kt64 assertFalse(specifier.canBeSatisfiedBy(wifiAwareNetworkSpecifier)) in testCanBeSatisfiedBy_OnlyForR()
70 specifier.canBeSatisfiedBy(wifiAwareNetworkSpecifier) in testCanBeSatisfiedBy()
DNetworkCapabilitiesTest.java1080 assertFalse(requestWithIds.canBeSatisfiedBy(ncWithoutId)); in testSubIds()
1081 assertTrue(requestWithIds.canBeSatisfiedBy(ncWithOtherIds)); in testSubIds()
1082 assertFalse(requestWithIds.canBeSatisfiedBy(ncWithoutRequestedIds)); in testSubIds()
1083 assertTrue(requestWithIds.canBeSatisfiedBy(ncWithId)); in testSubIds()
1084 assertTrue(requestWithoutId.canBeSatisfiedBy(ncWithoutId)); in testSubIds()
1085 assertTrue(requestWithoutId.canBeSatisfiedBy(ncWithId)); in testSubIds()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkRequestTest.java98 public boolean canBeSatisfiedBy(NetworkSpecifier other) { in canBeSatisfiedBy() method in NetworkRequestTest.LocalNetworkSpecifier
256 assertFalse(requestCellularInternetSpecifier1.canBeSatisfiedBy(null)); in testCanBeSatisfiedBy()
257 assertFalse(requestCellularInternetSpecifier1.canBeSatisfiedBy(new NetworkCapabilities())); in testCanBeSatisfiedBy()
258 assertTrue(requestCellularInternetSpecifier1.canBeSatisfiedBy( in testCanBeSatisfiedBy()
260 assertFalse(requestCellularInternetSpecifier1.canBeSatisfiedBy(capCellularMmsInternet)); in testCanBeSatisfiedBy()
261 assertTrue(requestCellularInternetSpecifier1.canBeSatisfiedBy( in testCanBeSatisfiedBy()
263 assertFalse(requestCellularInternetSpecifier1.canBeSatisfiedBy(capCellularVpnMmsInternet)); in testCanBeSatisfiedBy()
264 assertFalse(requestCellularInternetSpecifier1.canBeSatisfiedBy( in testCanBeSatisfiedBy()
271 assertTrue(requestCellularInternet.canBeSatisfiedBy(capCellularMmsInternet)); in testCanBeSatisfiedBy()
272 assertTrue(requestCellularInternet.canBeSatisfiedBy(capCellularMmsInternetSpecifier1)); in testCanBeSatisfiedBy()
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/aware/
DWifiAwareAgentNetworkSpecifierTest.java82 collector.checkThat("No match expected", ns.canBeSatisfiedBy(dut), equalTo(false)); in testEmptyDoesntMatchAnything()
94 collector.checkThat("Match expected", nsThis.canBeSatisfiedBy(dut), equalTo(true)); in testSingleMatch()
95 collector.checkThat("No match expected", nsOther.canBeSatisfiedBy(dut), equalTo(false)); in testSingleMatch()
116 collector.checkThat("Match expected", nsThis.canBeSatisfiedBy(dut), equalTo(true)); in testMultipleMatchesAllMembers()
118 collector.checkThat("No match expected", nsOther.canBeSatisfiedBy(dut), equalTo(false)); in testMultipleMatchesAllMembers()
140 collector.checkThat("Match expected", oldNs.canBeSatisfiedBy(newNs), equalTo(true)); in testMatchSuperset()
162 collector.checkThat("Match unexpected", oldNs.canBeSatisfiedBy(newNs), equalTo(false)); in testNoMatchSubset()
/packages/modules/Connectivity/tests/unit/java/android/net/
DTelephonyNetworkSpecifierTest.java109 assertTrue(tns1.canBeSatisfiedBy(tns1)); in testCanBeSatisfiedBy()
110 assertTrue(tns1.canBeSatisfiedBy(tns2)); in testCanBeSatisfiedBy()
113 assertFalse(tns1.canBeSatisfiedBy(null)); in testCanBeSatisfiedBy()
114 assertFalse(tns1.canBeSatisfiedBy(wns)); in testCanBeSatisfiedBy()
115 assertTrue(tns1.canBeSatisfiedBy(mans)); in testCanBeSatisfiedBy()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DTestableNetworkOfferCallback.kt63 it.request.canBeSatisfiedBy(capabilities) in expectOnNetworkNeeded()
68 it.request.canBeSatisfiedBy(capabilities) in expectOnNetworkUnneeded()
/packages/modules/Connectivity/staticlibs/device/android/net/
DNetworkFactoryLegacyImpl.java305 && n.request.canBeSatisfiedBy(mCapabilityFilter) in shouldNeedNetworkFor()
321 || !n.request.canBeSatisfiedBy(mCapabilityFilter) in shouldReleaseNetworkFor()
/packages/modules/Connectivity/framework-t/src/android/net/
DEthernetNetworkSpecifier.java61 public boolean canBeSatisfiedBy(@Nullable NetworkSpecifier other) { in canBeSatisfiedBy() method in EthernetNetworkSpecifier
/packages/modules/Connectivity/framework/src/android/net/
DTestNetworkSpecifier.java58 public boolean canBeSatisfiedBy(@Nullable NetworkSpecifier other) { in canBeSatisfiedBy() method in TestNetworkSpecifier
DNetworkRequest.java747 public boolean canBeSatisfiedBy(@Nullable NetworkCapabilities nc) { in canBeSatisfiedBy() method in NetworkRequest
DNetworkCapabilities.java1876 return mNetworkSpecifier == null || mNetworkSpecifier.canBeSatisfiedBy(nc.mNetworkSpecifier) in satisfiedBySpecifier()
/packages/modules/Wifi/framework/java/android/net/wifi/aware/
DWifiAwareAgentNetworkSpecifier.java123 public boolean canBeSatisfiedBy(NetworkSpecifier other) { in canBeSatisfiedBy() method in WifiAwareAgentNetworkSpecifier
DWifiAwareNetworkSpecifier.java299 public boolean canBeSatisfiedBy(NetworkSpecifier other) { in canBeSatisfiedBy() method in WifiAwareNetworkSpecifier
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiNetworkAgentSpecifier.java104 public boolean canBeSatisfiedBy(@Nullable NetworkSpecifier other) { in canBeSatisfiedBy() method in WifiNetworkAgentSpecifier
DWifiNetworkSpecifier.java839 public boolean canBeSatisfiedBy(NetworkSpecifier other) { in canBeSatisfiedBy() method in WifiNetworkSpecifier
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DNetworkRanker.java380 if (!request.canBeSatisfiedBy(contestant.getCapsNoCopy())) return false; in mightBeat()
/packages/modules/Connectivity/framework/api/
Dcurrent.txt421 method public boolean canBeSatisfiedBy(@Nullable android.net.NetworkCapabilities);
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java7716 if (candidate.canBeSatisfiedBy(satisfier.networkCapabilities)) {
11083 if (request.canBeSatisfiedBy(offer.caps) && !offer.neededFor(request)) {
11095 && activeRequest.canBeSatisfiedBy(offer.caps);
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java5221 public boolean canBeSatisfiedBy(NetworkSpecifier other) {
5263 public boolean canBeSatisfiedBy(NetworkSpecifier other) {
5375 public boolean canBeSatisfiedBy(NetworkSpecifier other) {
5720 public boolean canBeSatisfiedBy(NetworkSpecifier other) {