| Chunk |
|---|
| Conflicting content |
|---|
Log.v(TAG, "endElement: " + tagName);
if (tagName.equalsIgnoreCase("accesspoint")) {
networks.add(config);
<<<<<<< HEAD
=======
if (mDhcpInfo != null) {
ssidToDhcpInfoHM.put(config.SSID, mDhcpInfo);
mDhcpInfo = null;
}
>>>>>>> 5343f5a84e66cc0806d20c16b96e612e80131ac2
}
}
|
| Solution content |
|---|
Log.v(TAG, "endElement: " + tagName);
if (tagName.equalsIgnoreCase("accesspoint")) {
networks.add(config);
}
}
|
| File |
|---|
| AccessPointParserHelper.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| If statement |
| Chunk |
|---|
| Conflicting content |
|---|
import android.util.Log; import java.util.ArrayList; <<<<<<< HEAD ======= import java.util.HashMap; import java.util.HashSet; >>>>>>> 5343f5a84e66cc0806d20c16b96e612e80131ac2 import java.util.List; /** |
| Solution content |
|---|
import android.util.Log; import java.util.ArrayList; import java.util.List; /** |
| File |
|---|
| WifiConnectionTest.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
private static final boolean DEBUG = false;
private List |
| Solution content |
|---|
private List |
| File |
|---|
| WifiConnectionTest.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Attribute |
| Chunk |
|---|
| Conflicting content |
|---|
@Override
public void setUp() throws Exception {
super.setUp();
<<<<<<< HEAD
mAct = getActivity();
=======
log("before we launch the test activity, we preserve all the configured networks.");
mRunner = ((ConnectivityManagerTestRunner)getInstrumentation());
mWifiManager = (WifiManager) mRunner.getContext().getSystemService(Context.WIFI_SERVICE);
enabledNetworks = getEnabledNetworks(mWifiManager.getConfiguredNetworks());
mAct = getActivity();
cr = mRunner.getContext().getContentResolver();
>>>>>>> 5343f5a84e66cc0806d20c16b96e612e80131ac2
networks = mAct.loadNetworkConfigurations();
if (DEBUG) {
printNetworkConfigurations(); |
| Solution content |
|---|
@Override
public void setUp() throws Exception {
super.setUp();
mAct = getActivity();
networks = mAct.loadNetworkConfigurations();
if (DEBUG) {
printNetworkConfigurations(); |
| File |
|---|
| WifiConnectionTest.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Attribute |
| Cast expression |
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
}
}
<<<<<<< HEAD
=======
private void printDhcpInfo() {
if (hm == null) {
return;
} else {
Set |
| Solution content |
|---|
}
}
@Override
public void tearDown() throws Exception { |
| File |
|---|
| WifiConnectionTest.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
}
}
super.tearDown();
}
<<<<<<< HEAD
=======
private Set |
| Solution content |
|---|
super.tearDown();
}
/**
* Connect to the provided Wi-Fi network
* @param config is the network configuration |
| File |
|---|
| WifiConnectionTest.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
mAct.mWifiManager.getConnectionInfo().getSSID());
}
assertTrue(config.SSID.contains(mAct.mWifiManager.getConnectionInfo().getSSID()));
<<<<<<< HEAD
// Maintain the connection for 50 seconds before switching
try {
Thread.sleep(50*1000);
} catch (Exception e) {
fail("interrupted while waiting for WPA_SUPPLICANT to start");
=======
if (isStaticIP) {
Settings.System.putInt(cr, Settings.System.WIFI_USE_STATIC_IP, 0);
Settings.System.putString(cr, Settings.System.WIFI_STATIC_IP, "");
Settings.System.putString(cr, Settings.System.WIFI_STATIC_GATEWAY, "");
Settings.System.putString(cr, Settings.System.WIFI_STATIC_NETMASK, "");
Settings.System.putString(cr, Settings.System.WIFI_STATIC_DNS1, "");
Settings.System.putString(cr, Settings.System.WIFI_STATIC_DNS2, "");
>>>>>>> 5343f5a84e66cc0806d20c16b96e612e80131ac2
}
}
|
| Solution content |
|---|
mAct.mWifiManager.getConnectionInfo().getSSID());
}
assertTrue(config.SSID.contains(mAct.mWifiManager.getConnectionInfo().getSSID()));
// Maintain the connection for 50 seconds before switching
try {
Thread.sleep(50*1000);
} catch (Exception e) {
fail("interrupted while waiting for WPA_SUPPLICANT to start");
}
}
|
| File |
|---|
| WifiConnectionTest.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Catch clause |
| Comment |
| If statement |
| Method invocation |
| Try statement |
| Chunk |
|---|
| Conflicting content |
|---|
@LargeTest
public void testWifiConnections() {
for (int i = 0; i < networks.size(); i++) {
<<<<<<< HEAD
connectToWifi(networks.get(i));
mAct.removeConfiguredNetworksAndDisableWifi();
=======
String ssid = networks.get(i).SSID;
log("-- START Wi-Fi connection test for SSID: " + ssid + " --");
connectToWifi(networks.get(i));
sleep(2 * ConnectivityManagerTestActivity.SHORT_TIMEOUT,
String.format("Interrupted while connecting to ", ssid));
log("-- END Wi-Fi connection test for SSID: " + ssid + " --");
>>>>>>> 5343f5a84e66cc0806d20c16b96e612e80131ac2
}
}
} |
| Solution content |
|---|
@LargeTest
public void testWifiConnections() {
for (int i = 0; i < networks.size(); i++) {
connectToWifi(networks.get(i));
mAct.removeConfiguredNetworksAndDisableWifi();
}
}
} |
| File |
|---|
| WifiConnectionTest.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Method invocation |
| Variable |