Searched refs:TestNetworkSpecifier (Results 1 – 13 of 13) sorted by relevance
32 private class TestNetworkSpecifier( class in android.net.NetworkSpecifierTest38 other is TestNetworkSpecifier && in canBeSatisfiedBy()42 override fun redact(): NetworkSpecifier = TestNetworkSpecifier(intData, "redact") in canBeSatisfiedBy()47 val ns: TestNetworkSpecifier = TestNetworkSpecifier() in canBeSatisfiedBy()49 assertTrue(redactNs is TestNetworkSpecifier) in canBeSatisfiedBy()57 val target: TestNetworkSpecifier = TestNetworkSpecifier() in testcanBeSatisfiedBy()59 assertTrue(target.canBeSatisfiedBy(TestNetworkSpecifier())) 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()
35 public final class TestNetworkSpecifier extends NetworkSpecifier implements Parcelable { class43 public TestNetworkSpecifier(@NonNull String interfaceName) { in TestNetworkSpecifier() method in TestNetworkSpecifier64 if (!(o instanceof TestNetworkSpecifier)) return false; in equals()65 return TextUtils.equals(mInterfaceName, ((TestNetworkSpecifier) o).mInterfaceName); in equals()88 public static final @NonNull Creator<TestNetworkSpecifier> CREATOR =89 new Creator<TestNetworkSpecifier>() {90 public TestNetworkSpecifier createFromParcel(Parcel in) {91 return new TestNetworkSpecifier(in.readString());93 public TestNetworkSpecifier[] newArray(int size) {94 return new TestNetworkSpecifier[size];
535 return setNetworkSpecifier(new TestNetworkSpecifier(networkSpecifier)); in setNetworkSpecifier()
39 import android.net.TestNetworkSpecifier;141 .setNetworkSpecifier(new TestNetworkSpecifier(getInterfaceName())) in newNetworkRequest()149 .setNetworkSpecifier(new TestNetworkSpecifier(getInterfaceName())); in newNetworkCapabilities()
29 import android.net.TestNetworkSpecifier122 .setNetworkSpecifier(TestNetworkSpecifier(testIface.interfaceName)) in createTestNetwork()
50 import android.net.TestNetworkSpecifier;104 private TestNetworkSpecifier mNetworkSpecifier;146 mNetworkSpecifier = new TestNetworkSpecifier(mTunInterface.getInterfaceName()); in setUp()
38 import android.net.TestNetworkSpecifier;271 nc.setNetworkSpecifier(new TestNetworkSpecifier(iface)); in registerTestNetworkAgent()
426 if (ns instanceof TestNetworkSpecifier) { in setNetworkStateSnapshot()428 setWifiNetworkKey(((TestNetworkSpecifier) ns).getInterfaceName()); in setNetworkStateSnapshot()
36 import android.net.TestNetworkSpecifier in <lambda>()170 .setNetworkSpecifier(TestNetworkSpecifier(iface)) in <lambda>()
89 import android.net.TestNetworkSpecifier;204 private TestNetworkSpecifier mUpstreamTestNetworkSpecifier;1160 TestNetworkSpecifier testNetworkSpecifier = null;1162 testNetworkSpecifier = new TestNetworkSpecifier(testNetworkInterfaceName);
228 …public final class TestNetworkSpecifier extends android.net.NetworkSpecifier implements android.os…229 ctor public TestNetworkSpecifier(@NonNull String);233 …onNull public static final android.os.Parcelable.Creator<android.net.TestNetworkSpecifier> CREATOR;
103 wifiKey?.let { TestNetworkSpecifier(it) }?.let { in buildMobileNetworkState()
122 import android.net.TestNetworkSpecifier;2767 capabilities.setNetworkSpecifier(new TestNetworkSpecifier(wifiNetworkKey)); in buildStateOfTransport()