Home
last modified time | relevance | path

Searched refs:canBeSatisfiedBy (Results 1 – 19 of 19) 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.java691 assertFalse(specifier.canBeSatisfiedBy(null)); in testWifiNetworkSpecifierDoesNotSatisfyNullAndAllMatch()
692 assertFalse(specifier.canBeSatisfiedBy(new MatchAllNetworkSpecifier())); in testWifiNetworkSpecifierDoesNotSatisfyNullAndAllMatch()
721 assertTrue(specifier2.canBeSatisfiedBy(specifier1)); in testWifiNetworkSpecifierSatisfiesSame()
752 assertFalse(specifier2.canBeSatisfiedBy(specifier1)); in testWifiNetworkSpecifierDoesNotSatisfyWhenKeyMgmtDifferent()
781 assertFalse(specifier2.canBeSatisfiedBy(specifier1)); in testWifiNetworkSpecifierDoesNotSatisfyWhenSsidDifferent()
810 assertFalse(specifier2.canBeSatisfiedBy(specifier1)); in testWifiNetworkSpecifierDoesNotSatisfyWhenBssidDifferent()
837 assertTrue(specifier2.canBeSatisfiedBy(specifier1)); in testWifiNetworkSpecifierBandMatching()
838 assertTrue(specifier1.canBeSatisfiedBy(specifier2)); in testWifiNetworkSpecifierBandMatching()
848 assertFalse(specifier2.canBeSatisfiedBy(specifier1)); in testWifiNetworkSpecifierBandMatching()
849 assertFalse(specifier1.canBeSatisfiedBy(specifier2)); in testWifiNetworkSpecifierBandMatching()
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkRequestTest.java89 public boolean canBeSatisfiedBy(NetworkSpecifier other) { in canBeSatisfiedBy() method in NetworkRequestTest.LocalNetworkSpecifier
216 assertFalse(requestCellularInternetSpecifier1.canBeSatisfiedBy(null)); in testCanBeSatisfiedBy()
217 assertFalse(requestCellularInternetSpecifier1.canBeSatisfiedBy(new NetworkCapabilities())); in testCanBeSatisfiedBy()
218 assertTrue(requestCellularInternetSpecifier1.canBeSatisfiedBy( in testCanBeSatisfiedBy()
220 assertFalse(requestCellularInternetSpecifier1.canBeSatisfiedBy(capCellularMmsInternet)); in testCanBeSatisfiedBy()
221 assertTrue(requestCellularInternetSpecifier1.canBeSatisfiedBy( in testCanBeSatisfiedBy()
223 assertFalse(requestCellularInternetSpecifier1.canBeSatisfiedBy(capCellularVpnMmsInternet)); in testCanBeSatisfiedBy()
224 assertFalse(requestCellularInternetSpecifier1.canBeSatisfiedBy( in testCanBeSatisfiedBy()
231 assertTrue(requestCellularInternet.canBeSatisfiedBy(capCellularMmsInternet)); in testCanBeSatisfiedBy()
232 assertTrue(requestCellularInternet.canBeSatisfiedBy(capCellularMmsInternetSpecifier1)); in testCanBeSatisfiedBy()
[all …]
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkSpecifierTest.kt37 override fun canBeSatisfiedBy(other: NetworkSpecifier?): Boolean = in canBeSatisfiedBy() method in android.net.NetworkSpecifierTest.TestNetworkSpecifier
59 assertFalse(target.canBeSatisfiedBy(null)) in testcanBeSatisfiedBy()
60 assertTrue(target.canBeSatisfiedBy(TestNetworkSpecifier())) in testcanBeSatisfiedBy()
62 assertFalse(target.canBeSatisfiedBy(otherNs)) in testcanBeSatisfiedBy()
63 assertTrue(target.canBeSatisfiedBy(TestNetworkSpecifier(intData = 999))) in testcanBeSatisfiedBy()
64 assertFalse(target.canBeSatisfiedBy(TestNetworkSpecifier(intData = 1))) in testcanBeSatisfiedBy()
65 assertFalse(target.canBeSatisfiedBy(TestNetworkSpecifier(stringData = "diff"))) in testcanBeSatisfiedBy()
DMatchAllNetworkSpecifierTest.kt67 assertFalse(specifier.canBeSatisfiedBy(wifiAwareNetworkSpecifier)) in testCanBeSatisfiedBy_OnlyForR()
73 specifier.canBeSatisfiedBy(wifiAwareNetworkSpecifier) in testCanBeSatisfiedBy()
DNetworkCapabilitiesTest.java944 assertFalse(requestWithIds.canBeSatisfiedBy(ncWithoutId)); in testSubIds()
945 assertTrue(requestWithIds.canBeSatisfiedBy(ncWithOtherIds)); in testSubIds()
946 assertFalse(requestWithIds.canBeSatisfiedBy(ncWithoutRequestedIds)); in testSubIds()
947 assertTrue(requestWithIds.canBeSatisfiedBy(ncWithId)); in testSubIds()
948 assertTrue(requestWithoutId.canBeSatisfiedBy(ncWithoutId)); in testSubIds()
949 assertTrue(requestWithoutId.canBeSatisfiedBy(ncWithId)); in testSubIds()
/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/framework/src/android/net/
DTestNetworkSpecifier.java58 public boolean canBeSatisfiedBy(@Nullable NetworkSpecifier other) { in canBeSatisfiedBy() method in TestNetworkSpecifier
DNetworkRequest.java652 public boolean canBeSatisfiedBy(@Nullable NetworkCapabilities nc) { in canBeSatisfiedBy() method in NetworkRequest
DNetworkCapabilities.java1410 return mNetworkSpecifier == null || mNetworkSpecifier.canBeSatisfiedBy(nc.mNetworkSpecifier) in satisfiedBySpecifier()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiNetworkAgentSpecifier.java104 public boolean canBeSatisfiedBy(@Nullable NetworkSpecifier other) { in canBeSatisfiedBy() method in WifiNetworkAgentSpecifier
DWifiNetworkSpecifier.java765 public boolean canBeSatisfiedBy(NetworkSpecifier other) { in canBeSatisfiedBy() method in WifiNetworkSpecifier
/packages/modules/Wifi/framework/java/android/net/wifi/aware/
DWifiAwareAgentNetworkSpecifier.java123 public boolean canBeSatisfiedBy(NetworkSpecifier other) { in canBeSatisfiedBy() method in WifiAwareAgentNetworkSpecifier
DWifiAwareNetworkSpecifier.java223 public boolean canBeSatisfiedBy(NetworkSpecifier other) { in canBeSatisfiedBy() method in WifiAwareNetworkSpecifier
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DNetworkRanker.java321 if (!request.canBeSatisfiedBy(contestant.getCapsNoCopy())) return false; in mightBeat()
/packages/modules/Connectivity/framework/api/
Dcurrent.txt389 method public boolean canBeSatisfiedBy(@Nullable android.net.NetworkCapabilities);
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java5820 if (candidate.canBeSatisfiedBy(satisfier.networkCapabilities)) { in NetworkRequestInfo()
8361 if (request.canBeSatisfiedBy(offer.caps) && !offer.neededFor(request)) { in informOffer()
8373 && activeRequest.canBeSatisfiedBy(offer.caps); in informOffer()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java4054 public boolean canBeSatisfiedBy(NetworkSpecifier other) { in testNetworkSpecifier() method in ConfidentialMatchAllNetworkSpecifier
4082 public boolean canBeSatisfiedBy(NetworkSpecifier other) { in testNetworkSpecifier() method in LocalStringNetworkSpecifier
4202 public boolean canBeSatisfiedBy(NetworkSpecifier other) { in testInvalidNetworkSpecifier() method in NonParcelableSpecifier
4508 public boolean canBeSatisfiedBy(NetworkSpecifier other) { in canBeSatisfiedBy() method in RedactableNetworkSpecifier