Home
last modified time | relevance | path

Searched refs:InitialConfiguration (Results 1 – 8 of 8) sorted by relevance

/packages/modules/NetworkStack/common/networkstackclient/src/android/net/shared/
DInitialConfiguration.java38 public class InitialConfiguration { class
51 public static InitialConfiguration copy(InitialConfiguration config) { in copy()
55 InitialConfiguration configCopy = new InitialConfiguration(); in copy()
92 if (any(ipAddresses, not(InitialConfiguration::isPrefixLengthCompliant))) { in isValid()
97 if (any(directlyConnectedRoutes, InitialConfiguration::isIPv6DefaultRoute) in isValid()
98 && all(ipAddresses, not(InitialConfiguration::isIPv6GUA))) { in isValid()
103 if (any(directlyConnectedRoutes, not(InitialConfiguration::isPrefixLengthCompliant))) { in isValid()
107 if (ipAddresses.stream().filter(InitialConfiguration::isIPv4).count() > 1) { in isValid()
161 public static InitialConfiguration fromStableParcelable(InitialConfigurationParcelable p) { in fromStableParcelable()
163 final InitialConfiguration config = new InitialConfiguration(); in fromStableParcelable()
[all …]
DProvisioningConfiguration.java169 public Builder withInitialConfiguration(InitialConfiguration initialConfig) { in withInitialConfiguration()
503 public InitialConfiguration mInitialConfig;
526 mInitialConfig = InitialConfiguration.copy(other.mInitialConfig); in ProvisioningConfiguration()
592 config.mInitialConfig = InitialConfiguration.fromStableParcelable(p.initialConfig); in fromStableParcelable()
/packages/modules/NetworkStack/tests/unit/src/android/net/shared/
DInitialConfigurationTest.java46 private InitialConfiguration mConfig;
51 mConfig = new InitialConfiguration(); in setUp()
62 assertFieldCountEquals(3, InitialConfiguration.class); in setUp()
67 final InitialConfiguration unparceled = in testParcelUnparcelInitialConfiguration()
68 InitialConfiguration.fromStableParcelable(mConfig.toStableParcelable()); in testParcelUnparcelInitialConfiguration()
75 assertEquals(mConfig, InitialConfiguration.copy(mConfig)); in testEquals()
82 assertFieldCountEquals(3, InitialConfiguration.class); in testEquals()
85 private void assertNotEqualsAfterChange(Consumer<InitialConfiguration> mutator) { in assertNotEqualsAfterChange()
86 final InitialConfiguration newConfig = InitialConfiguration.copy(mConfig); in assertNotEqualsAfterChange()
DProvisioningConfigurationTest.java97 config.mInitialConfig = new InitialConfiguration(); in makeTestProvisioningConfiguration()
131 final InitialConfiguration initialConfig = new InitialConfiguration(); in makeTestProvisioningConfigurationParcelable()
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DIpClientTest.java76 import android.net.shared.InitialConfiguration;
552 InitialConfiguration empty = conf(links(), prefixes()); in testIsProvisioned()
604 InitialConfiguration config;
617 Set<InetAddress> lpDns, InitialConfiguration config) { in provisionedCase()
622 Set<RouteInfo> lpRoutes, Set<InetAddress> lpDns, InitialConfiguration config) { in notProvisionedCase()
627 Set<RouteInfo> lpRoutes, Set<InetAddress> lpDns, InitialConfiguration config) { in provisioningTest()
697 InitialConfiguration config;
718 String descr, boolean isValid, InitialConfiguration config) { in confTestCase()
735 static InitialConfiguration conf(Set<LinkAddress> links, Set<IpPrefix> prefixes) { in conf()
739 static InitialConfiguration conf( in conf()
[all …]
/packages/modules/Connectivity/framework/src/android/net/
DNetworkAgent.java558 private static class InitialConfiguration { class in NetworkAgent
566 InitialConfiguration(@NonNull Context context, @NonNull NetworkCapabilities capabilities, in InitialConfiguration() method in NetworkAgent.InitialConfiguration
579 private volatile InitialConfiguration mInitialConfiguration;
593 mInitialConfiguration = new InitialConfiguration(context, in NetworkAgent()
/packages/modules/NetworkStack/src/android/net/ip/
DIpClient.java95 import android.net.shared.InitialConfiguration;
1651 boolean isProvisioned(final LinkProperties lp, final InitialConfiguration config) { in isProvisioned()
1697 InitialConfiguration config = mConfiguration != null ? mConfiguration.mInitialConfig : null; in compareProvisioning()
1958 InitialConfiguration config = mConfiguration.mInitialConfig; in assembleLinkProperties()
2405 private boolean applyInitialConfig(InitialConfiguration config) { in applyInitialConfig()
3119 final InitialConfiguration config = mConfiguration.mInitialConfig; in enter()
/packages/modules/Wifi/framework/
Djarjar-rules.txt60 rule android.net.shared.InitialConfiguration* com.android.wifi.x.@0