/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | WifiNetworkAgentSpecifierTest.java | 158 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 …]
|
D | WifiNetworkSpecifierTest.java | 694 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/ |
D | NetworkSpecifierTest.kt | 36 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()
|
D | MatchAllNetworkSpecifierTest.kt | 64 assertFalse(specifier.canBeSatisfiedBy(wifiAwareNetworkSpecifier)) in testCanBeSatisfiedBy_OnlyForR() 70 specifier.canBeSatisfiedBy(wifiAwareNetworkSpecifier) in testCanBeSatisfiedBy()
|
D | NetworkCapabilitiesTest.java | 1080 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/ |
D | NetworkRequestTest.java | 98 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/ |
D | WifiAwareAgentNetworkSpecifierTest.java | 82 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/ |
D | TelephonyNetworkSpecifierTest.java | 109 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/ |
D | TestableNetworkOfferCallback.kt | 63 it.request.canBeSatisfiedBy(capabilities) in expectOnNetworkNeeded() 68 it.request.canBeSatisfiedBy(capabilities) in expectOnNetworkUnneeded()
|
/packages/modules/Connectivity/staticlibs/device/android/net/ |
D | NetworkFactoryLegacyImpl.java | 305 && n.request.canBeSatisfiedBy(mCapabilityFilter) in shouldNeedNetworkFor() 321 || !n.request.canBeSatisfiedBy(mCapabilityFilter) in shouldReleaseNetworkFor()
|
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | EthernetNetworkSpecifier.java | 61 public boolean canBeSatisfiedBy(@Nullable NetworkSpecifier other) { in canBeSatisfiedBy() method in EthernetNetworkSpecifier
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | TestNetworkSpecifier.java | 58 public boolean canBeSatisfiedBy(@Nullable NetworkSpecifier other) { in canBeSatisfiedBy() method in TestNetworkSpecifier
|
D | NetworkRequest.java | 747 public boolean canBeSatisfiedBy(@Nullable NetworkCapabilities nc) { in canBeSatisfiedBy() method in NetworkRequest
|
D | NetworkCapabilities.java | 1876 return mNetworkSpecifier == null || mNetworkSpecifier.canBeSatisfiedBy(nc.mNetworkSpecifier) in satisfiedBySpecifier()
|
/packages/modules/Wifi/framework/java/android/net/wifi/aware/ |
D | WifiAwareAgentNetworkSpecifier.java | 123 public boolean canBeSatisfiedBy(NetworkSpecifier other) { in canBeSatisfiedBy() method in WifiAwareAgentNetworkSpecifier
|
D | WifiAwareNetworkSpecifier.java | 299 public boolean canBeSatisfiedBy(NetworkSpecifier other) { in canBeSatisfiedBy() method in WifiAwareNetworkSpecifier
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | WifiNetworkAgentSpecifier.java | 104 public boolean canBeSatisfiedBy(@Nullable NetworkSpecifier other) { in canBeSatisfiedBy() method in WifiNetworkAgentSpecifier
|
D | WifiNetworkSpecifier.java | 839 public boolean canBeSatisfiedBy(NetworkSpecifier other) { in canBeSatisfiedBy() method in WifiNetworkSpecifier
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | NetworkRanker.java | 380 if (!request.canBeSatisfiedBy(contestant.getCapsNoCopy())) return false; in mightBeat()
|
/packages/modules/Connectivity/framework/api/ |
D | current.txt | 421 method public boolean canBeSatisfiedBy(@Nullable android.net.NetworkCapabilities);
|
/packages/modules/Connectivity/service/src/com/android/server/ |
D | ConnectivityService.java | 7716 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/ |
D | ConnectivityServiceTest.java | 5221 public boolean canBeSatisfiedBy(NetworkSpecifier other) { 5263 public boolean canBeSatisfiedBy(NetworkSpecifier other) { 5375 public boolean canBeSatisfiedBy(NetworkSpecifier other) { 5720 public boolean canBeSatisfiedBy(NetworkSpecifier other) {
|