Home
last modified time | relevance | path

Searched refs:TestNetworkSpecifier (Results 1 – 13 of 13) sorted by relevance

/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkSpecifierTest.kt32 private class TestNetworkSpecifier( class in android.net.NetworkSpecifierTest
38 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()
/packages/modules/Connectivity/framework/src/android/net/
DTestNetworkSpecifier.java35 public final class TestNetworkSpecifier extends NetworkSpecifier implements Parcelable { class
43 public TestNetworkSpecifier(@NonNull String interfaceName) { in TestNetworkSpecifier() method in TestNetworkSpecifier
64 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];
DNetworkRequest.java535 return setNetworkSpecifier(new TestNetworkSpecifier(networkSpecifier)); in setNetworkSpecifier()
/packages/modules/Connectivity/thread/tests/utils/src/android/net/thread/utils/
DTapTestNetworkTracker.java39 import android.net.TestNetworkSpecifier;
141 .setNetworkSpecifier(new TestNetworkSpecifier(getInterfaceName())) in newNetworkRequest()
149 .setNetworkSpecifier(new TestNetworkSpecifier(getInterfaceName())); in newNetworkCapabilities()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DPacketBridge.kt29 import android.net.TestNetworkSpecifier
122 .setNetworkSpecifier(TestNetworkSpecifier(testIface.interfaceName)) in createTestNetwork()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DRateLimitTest.java50 import android.net.TestNetworkSpecifier;
104 private TestNetworkSpecifier mNetworkSpecifier;
146 mNetworkSpecifier = new TestNetworkSpecifier(mTunInterface.getInterfaceName()); in setUp()
/packages/modules/Connectivity/service/src/com/android/server/
DTestNetworkService.java38 import android.net.TestNetworkSpecifier;
271 nc.setNetworkSpecifier(new TestNetworkSpecifier(iface)); in registerTestNetworkAgent()
/packages/modules/Connectivity/framework-t/src/android/net/
DNetworkIdentity.java426 if (ns instanceof TestNetworkSpecifier) { in setNetworkStateSnapshot()
428 setWifiNetworkKey(((TestNetworkSpecifier) ns).getInterfaceName()); in setNetworkStateSnapshot()
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
DNetworkStatsIntegrationTest.kt36 import android.net.TestNetworkSpecifier in <lambda>()
170 .setNetworkSpecifier(TestNetworkSpecifier(iface)) in <lambda>()
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DThreadNetworkControllerService.java89 import android.net.TestNetworkSpecifier;
204 private TestNetworkSpecifier mUpstreamTestNetworkSpecifier;
1160 TestNetworkSpecifier testNetworkSpecifier = null;
1162 testNetworkSpecifier = new TestNetworkSpecifier(testNetworkInterfaceName);
/packages/modules/Connectivity/framework/api/
Dmodule-lib-current.txt228 …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;
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkTemplateTest.kt103 wifiKey?.let { TestNetworkSpecifier(it) }?.let { in buildMobileNetworkState()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsServiceTest.java122 import android.net.TestNetworkSpecifier;
2767 capabilities.setNetworkSpecifier(new TestNetworkSpecifier(wifiNetworkKey)); in buildStateOfTransport()