/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | IpConfigurationTest.java | 24 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 …]
|
D | EthernetNetworkUpdateRequestTest.java | 29 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/ |
D | IpConfiguration.java | 33 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/ |
D | IpConfigStoreTest.java | 25 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/ |
D | EthernetNetworkUpdateRequest.java | 37 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()
|
D | IEthernetManager.aidl | 19 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/ |
D | EthernetConfigStoreTest.java | 25 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()
|
D | EthernetNetworkFactoryTest.java | 40 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 …]
|
D | EthernetTrackerTest.java | 35 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/ |
D | IpConfigStore.java | 20 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/ |
D | EthernetConfigStore.java | 22 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()
|
D | EthernetTracker.java | 33 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/ |
D | IpConfigStore.java | 21 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/ |
D | EthernetConfig.java | 22 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()
|
D | NetworkConfiguration.java | 19 import android.net.IpConfiguration; 32 public void setIpConfiguration(IpConfiguration configuration); in setIpConfiguration() 39 public IpConfiguration getIpConfiguration(); in getIpConfiguration()
|
D | WifiConfig.java | 20 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/ |
D | AdvancedOptionsFlowUtil.java | 20 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/ |
D | IpConfigurationCompat.java | 17 import android.net.IpConfiguration; 20 IpConfiguration mIpConfiguration; 22 IpConfigurationCompat(IpConfiguration ipConfiguration) { in IpConfigurationCompat()
|
D | EthernetManagerCompat.java | 22 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/ |
D | WifiConfigurationTestUtil.java | 22 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/ |
D | AdvancedOptionsFlowInfo.java | 19 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/ |
D | WifiConfigurationProviderTest.java | 23 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/ |
D | ProxySettingsPreferenceController.java | 24 import android.net.IpConfiguration; 61 IpConfiguration.ProxySettings proxySettings = in update() 63 mPreferenceCompat.setSummary(proxySettings == IpConfiguration.ProxySettings.NONE in update()
|
D | IpSettingsPreferenceController.java | 23 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/ |
D | EthernetManagerPermissionTest.java | 27 import android.net.IpConfiguration; 59 .setIpConfiguration(new IpConfiguration.Builder().build()) in buildUpdateRequest() 66 .setIpConfiguration(new IpConfiguration.Builder().build()) in buildUpdateRequestWithoutCapabilities()
|