Home
last modified time | relevance | path

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

/frameworks/base/tests/net/java/android/net/shared/
DInitialConfigurationTest.java45 private InitialConfiguration mConfig;
49 mConfig = new InitialConfiguration(); in setUp()
60 assertFieldCountEquals(3, InitialConfiguration.class); in setUp()
65 final InitialConfiguration unparceled = in testParcelUnparcelInitialConfiguration()
66 InitialConfiguration.fromStableParcelable(mConfig.toStableParcelable()); in testParcelUnparcelInitialConfiguration()
72 assertEquals(mConfig, InitialConfiguration.copy(mConfig)); in testEquals()
79 assertFieldCountEquals(3, InitialConfiguration.class); in testEquals()
82 private void assertNotEqualsAfterChange(Consumer<InitialConfiguration> mutator) { in assertNotEqualsAfterChange()
83 final InitialConfiguration newConfig = InitialConfiguration.copy(mConfig); in assertNotEqualsAfterChange()
DProvisioningConfigurationTest.java57 mConfig.mInitialConfig = new InitialConfiguration(); in setUp()
/frameworks/base/services/net/java/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.java126 public Builder withInitialConfiguration(InitialConfiguration initialConfig) { in withInitialConfiguration()
200 public InitialConfiguration mInitialConfig;
216 mInitialConfig = InitialConfiguration.copy(other.mInitialConfig); in ProvisioningConfiguration()
261 config.mInitialConfig = InitialConfiguration.fromStableParcelable(p.initialConfig); in fromStableParcelable()