Home
last modified time | relevance | path

Searched refs:IpConfiguration (Results 1 – 25 of 74) sorted by relevance

123

/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DIpConfigurationTest.java24 import android.net.IpConfiguration;
77 IpConfiguration ipConfig = new IpConfiguration(); in testConstructor()
79 assertIpConfigurationEqual(ipConfig, new IpConfiguration()); in testConstructor()
80 assertIpConfigurationEqual(ipConfig, new IpConfiguration(ipConfig)); in testConstructor()
85 ipConfig.setIpAssignment(IpConfiguration.IpAssignment.STATIC); in testConstructor()
86 ipConfig.setProxySettings(IpConfiguration.ProxySettings.PAC); in testConstructor()
87 assertIpConfigurationEqual(ipConfig, new IpConfiguration(ipConfig)); in testConstructor()
89 ipConfig.setIpAssignment(IpConfiguration.IpAssignment.STATIC); in testConstructor()
90 ipConfig.setProxySettings(IpConfiguration.ProxySettings.STATIC); in testConstructor()
91 assertIpConfigurationEqual(ipConfig, new IpConfiguration(ipConfig)); in testConstructor()
[all …]
DEthernetNetworkUpdateRequestTest.java29 import android.net.IpConfiguration;
50 private static final IpConfiguration DEFAULT_IP_CONFIG =
51 new IpConfiguration.Builder()
55 @NonNull final IpConfiguration ipConfig) { in createRequest()
/packages/modules/Connectivity/framework/src/android/net/
DIpConfiguration.java33 public final class IpConfiguration implements Parcelable { class
101 public IpConfiguration() { in IpConfiguration() method in IpConfiguration
107 public IpConfiguration(IpAssignment ipAssignment, in IpConfiguration() method in IpConfiguration
116 public IpConfiguration(@NonNull IpConfiguration source) { in IpConfiguration() method in IpConfiguration
205 if (!(o instanceof IpConfiguration)) { in equals()
209 IpConfiguration other = (IpConfiguration) o; in equals()
238 public static final @NonNull Creator<IpConfiguration> CREATOR =
239 new Creator<IpConfiguration>() {
240 public IpConfiguration createFromParcel(Parcel in) {
241 IpConfiguration config = new IpConfiguration();
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DIpConfigStoreTest.java25 import android.net.IpConfiguration;
26 import android.net.IpConfiguration.IpAssignment;
27 import android.net.IpConfiguration.ProxySettings;
90 final IpConfiguration expectedConfig = in backwardCompatibility2to3()
97 ArrayMap<String, IpConfiguration> configurations = IpConfigStore.readIpConfigurations(in); in backwardCompatibility2to3()
101 IpConfiguration actualConfig = configurations.get(String.valueOf(KEY_CONFIG)); in backwardCompatibility2to3()
108 final IpConfiguration expectedConfig1 = newIpConfiguration(IpAssignment.STATIC, in staticIpMultiNetworks()
110 final IpConfiguration expectedConfig2 = newIpConfiguration(IpAssignment.STATIC, in staticIpMultiNetworks()
113 final ArrayMap<String, IpConfiguration> expectedNetworks = new ArrayMap<>(); in staticIpMultiNetworks()
122 final ArrayMap<String, IpConfiguration> actualNetworks = in staticIpMultiNetworks()
[all …]
/packages/modules/Connectivity/framework-t/src/android/net/
DEthernetNetworkUpdateRequest.java37 private final IpConfiguration mIpConfig;
48 public IpConfiguration getIpConfiguration() { in getIpConfiguration()
49 return mIpConfig == null ? null : new IpConfiguration(mIpConfig); in getIpConfiguration()
63 private EthernetNetworkUpdateRequest(@Nullable final IpConfiguration ipConfig, in EthernetNetworkUpdateRequest()
71 mIpConfig = source.readParcelable(IpConfiguration.class.getClassLoader(), in EthernetNetworkUpdateRequest()
72 IpConfiguration.class); in EthernetNetworkUpdateRequest()
82 private IpConfiguration mBuilderIpConfig;
96 ? null : new IpConfiguration(request.mIpConfig); in Builder()
107 public Builder setIpConfiguration(@Nullable final IpConfiguration ipConfig) { in setIpConfiguration()
108 mBuilderIpConfig = ipConfig == null ? null : new IpConfiguration(ipConfig); in setIpConfiguration()
DIEthernetManager.aidl19 import android.net.IpConfiguration;
36 IpConfiguration getConfiguration(String iface); in getConfiguration()
37 void setConfiguration(String iface, in IpConfiguration config); in setConfiguration()
/packages/modules/Connectivity/tests/unit/java/com/android/server/ethernet/
DEthernetConfigStoreTest.java25 import android.net.IpConfiguration;
26 import android.net.IpConfiguration.IpAssignment;
27 import android.net.IpConfiguration.ProxySettings;
60 private static final IpConfiguration APEX_IP_CONFIG =
61 new IpConfiguration(IpAssignment.DHCP, ProxySettings.NONE, null, null);
62 private static final IpConfiguration LEGACY_IP_CONFIG =
63 new IpConfiguration(IpAssignment.STATIC, ProxySettings.STATIC, STATIC_IP_CONFIG,
116 final ArrayMap<String, IpConfiguration> ipConfigurations = in testWriteIpConfigToApexFilePathAndRead()
132 final ArrayMap<String, IpConfiguration> ipConfigurations = in testWriteIpConfigToLegacyFilePathAndRead()
DEthernetNetworkFactoryTest.java40 import android.net.IpConfiguration;
203 private IpConfiguration createDefaultIpConfig() { in createDefaultIpConfig()
204 IpConfiguration ipConfig = new IpConfiguration(); in createDefaultIpConfig()
205 ipConfig.setIpAssignment(IpConfiguration.IpAssignment.DHCP); in createDefaultIpConfig()
206 ipConfig.setProxySettings(IpConfiguration.ProxySettings.NONE); in createDefaultIpConfig()
215 private IpConfiguration createStaticIpConfig() { in createStaticIpConfig()
216 final IpConfiguration ipConfig = new IpConfiguration(); in createStaticIpConfig()
217 ipConfig.setIpAssignment(IpConfiguration.IpAssignment.STATIC); in createStaticIpConfig()
232 final IpConfiguration ipConfig = createDefaultIpConfig(); in createInterfaceUndergoingProvisioning()
474 private void verifyRestart(@NonNull final IpConfiguration ipConfig) { in verifyRestart()
[all …]
DEthernetTrackerTest.java35 import android.net.IpConfiguration;
36 import android.net.IpConfiguration.IpAssignment;
37 import android.net.IpConfiguration.ProxySettings;
160 final IpConfiguration expectedIpConfiguration = new IpConfiguration(); in assertStaticConfiguration()
335 final IpConfiguration ipConfig = in testUpdateConfiguration()
336 new IpConfiguration.Builder().setStaticIpConfiguration(staticIpConfig).build(); in testUpdateConfiguration()
/packages/modules/Connectivity/service-t/src/com/android/server/net/
DIpConfigStore.java20 import android.net.IpConfiguration;
21 import android.net.IpConfiguration.IpAssignment;
22 import android.net.IpConfiguration.ProxySettings;
80 IpConfiguration config) throws IOException { in writeConfig()
89 IpConfiguration config, int version) throws IOException { in writeConfig()
192 final SparseArray<IpConfiguration> networks) { in writeIpAndProxyConfigurationsToFile()
205 ArrayMap<String, IpConfiguration> networks) { in writeIpConfigurations()
217 public static ArrayMap<String, IpConfiguration> readIpConfigurations(String filePath) { in readIpConfigurations()
232 public static SparseArray<IpConfiguration> readIpAndProxyConfigurations(String filePath) { in readIpAndProxyConfigurations()
247 public static SparseArray<IpConfiguration> readIpAndProxyConfigurations( in readIpAndProxyConfigurations()
[all …]
/packages/modules/Connectivity/service-t/src/com/android/server/ethernet/
DEthernetConfigStore.java22 import android.net.IpConfiguration;
48 private final ArrayMap<String, IpConfiguration> mIpConfigurations;
109 final ArrayMap<String, IpConfiguration> configs = in loadConfigFileLocked()
118 public void write(String iface, IpConfiguration config) { in write()
127 void write(String iface, IpConfiguration config, String filepath) { in write()
134 IpConfiguration oldConfig = mIpConfigurations.put(iface, config); in write()
144 public ArrayMap<String, IpConfiguration> getIpConfigurations() { in getIpConfigurations()
DEthernetTracker.java33 import android.net.IpConfiguration;
34 import android.net.IpConfiguration.IpAssignment;
35 import android.net.IpConfiguration.ProxySettings;
114 private final ConcurrentHashMap<String, IpConfiguration> mIpConfigurations =
272 final ArrayMap<String, IpConfiguration> configs = mConfigStore.getIpConfigurations(); in start()
283 void updateIpConfiguration(String iface, IpConfiguration ipConfiguration) { in updateIpConfiguration()
295 @NonNull final IpConfiguration ipConfig) { in writeIpConfiguration()
300 private IpConfiguration getIpConfigurationForCallback(String iface, int state) { in getIpConfigurationForCallback()
320 final IpConfiguration config = getIpConfigurationForCallback(iface, state); in broadcastInterfaceStateChange()
346 final IpConfiguration config = getIpConfigurationForCallback(iface, state); in unicastInterfaceStateChange()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DIpConfigStore.java21 import android.net.IpConfiguration;
22 import android.net.IpConfiguration.IpAssignment;
23 import android.net.IpConfiguration.ProxySettings;
69 public static SparseArray<IpConfiguration> readIpAndProxyConfigurations( in readIpAndProxyConfigurations()
71 ArrayMap<String, IpConfiguration> networks = readIpConfigurations(inputStream); in readIpAndProxyConfigurations()
76 SparseArray<IpConfiguration> networksById = new SparseArray<>(); in readIpAndProxyConfigurations()
86 public static ArrayMap<String, IpConfiguration> readIpConfigurations( in readIpConfigurations()
88 ArrayMap<String, IpConfiguration> networks = new ArrayMap<>(); in readIpConfigurations()
183 IpConfiguration config = new IpConfiguration(); in readIpConfigurations()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DEthernetConfig.java22 import android.net.IpConfiguration;
32 private IpConfiguration mIpConfiguration;
36 EthernetConfig(Context context, String iface, IpConfiguration initialConfig) { in EthernetConfig()
44 public void setIpConfiguration(IpConfiguration configuration) { in setIpConfiguration()
49 public IpConfiguration getIpConfiguration() { in getIpConfiguration()
DNetworkConfiguration.java19 import android.net.IpConfiguration;
32 public void setIpConfiguration(IpConfiguration configuration); in setIpConfiguration()
39 public IpConfiguration getIpConfiguration(); in getIpConfiguration()
DWifiConfig.java20 import android.net.IpConfiguration;
37 public void setIpConfiguration(IpConfiguration configuration) { in setIpConfiguration()
42 public IpConfiguration getIpConfiguration() { in getIpConfiguration()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/
DAdvancedOptionsFlowUtil.java20 import android.net.IpConfiguration;
53 IpConfiguration mIpConfiguration = flowInfo.getIpConfiguration(); in processProxySettings()
62 ? IpConfiguration.ProxySettings.STATIC : IpConfiguration.ProxySettings.NONE); in processProxySettings()
97 IpConfiguration mIpConfiguration = flowInfo.getIpConfiguration(); in processIpSettings()
106 ? IpConfiguration.IpAssignment.STATIC in processIpSettings()
107 : IpConfiguration.IpAssignment.DHCP); in processIpSettings()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DIpConfigurationCompat.java17 import android.net.IpConfiguration;
20 IpConfiguration mIpConfiguration;
22 IpConfigurationCompat(IpConfiguration ipConfiguration) { in IpConfigurationCompat()
DEthernetManagerCompat.java22 import android.net.IpConfiguration;
34 int role, @Nullable IpConfiguration configuration); in onInterfaceStateChanged()
40 public EthernetNetworkUpdateRequestCompat(IpConfiguration ipConfiguration, in EthernetNetworkUpdateRequestCompat()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationTestUtil.java22 import android.net.IpConfiguration;
227 public static IpConfiguration generateIpConfig( in generateIpConfig()
233 IpConfiguration.IpAssignment ipAssignment = IpConfiguration.IpAssignment.UNASSIGNED; in generateIpConfig()
234 IpConfiguration.ProxySettings proxySettings = IpConfiguration.ProxySettings.UNASSIGNED; in generateIpConfig()
259 ipAssignment = IpConfiguration.IpAssignment.STATIC; in generateIpConfig()
261 ipAssignment = IpConfiguration.IpAssignment.DHCP; in generateIpConfig()
266 proxySettings = IpConfiguration.ProxySettings.STATIC; in generateIpConfig()
269 proxySettings = IpConfiguration.ProxySettings.PAC; in generateIpConfig()
271 proxySettings = IpConfiguration.ProxySettings.NONE; in generateIpConfig()
273 return new IpConfiguration(ipAssignment, proxySettings, staticIpConfiguration, proxyInfo); in generateIpConfig()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DAdvancedOptionsFlowInfo.java19 import android.net.IpConfiguration;
65 private IpConfiguration mIpConfiguration;
128 public IpConfiguration getIpConfiguration() { in getIpConfiguration()
132 public void setIpConfiguration(IpConfiguration ipConfiguration) { in setIpConfiguration()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/wifi/
DWifiConfigurationProviderTest.java23 import android.net.IpConfiguration;
118 assertEquals(IpConfiguration.ProxySettings.UNASSIGNED, in testWpa()
129 assertEquals(IpConfiguration.ProxySettings.UNASSIGNED, in testWep()
140 assertEquals(IpConfiguration.ProxySettings.UNASSIGNED, in testWep2()
151 assertEquals(IpConfiguration.ProxySettings.UNASSIGNED, in testNone()
162 assertEquals(IpConfiguration.ProxySettings.UNASSIGNED, in testNull()
171 assertEquals(IpConfiguration.ProxySettings.PAC, in testPac()
180 assertEquals(IpConfiguration.ProxySettings.STATIC, in testStaticProxy()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/
DProxySettingsPreferenceController.java24 import android.net.IpConfiguration;
61 IpConfiguration.ProxySettings proxySettings = in update()
63 mPreferenceCompat.setSummary(proxySettings == IpConfiguration.ProxySettings.NONE in update()
DIpSettingsPreferenceController.java23 import android.net.IpConfiguration;
60 IpConfiguration.IpAssignment ipAssignment = in update()
62 mPreferenceCompat.setSummary(ipAssignment == IpConfiguration.IpAssignment.STATIC in update()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DEthernetManagerPermissionTest.java27 import android.net.IpConfiguration;
59 .setIpConfiguration(new IpConfiguration.Builder().build()) in buildUpdateRequest()
66 .setIpConfiguration(new IpConfiguration.Builder().build()) in buildUpdateRequestWithoutCapabilities()

123