[Wi-Fi] WiFi Settings inclusive language fix plan phase 2
Replace WiFi related terms which contain Blacklist,Dummy,Sane or Sanity Check wordings. Goal: Create a fixit for Android Platform to reduce the use of non-inclusive language for all code. Bug: 161425297 Test: make RunSettingsRoboTests -j Change-Id: I1ff89bd2a6636ada1e0f5b9879aecbbd5dab4012
This commit is contained in:
@@ -113,7 +113,7 @@ public class TetherSettingsTest {
|
||||
FeatureFlagUtils.setEnabled(mContext, FeatureFlags.TETHER_ALL_IN_ONE, false);
|
||||
// We can ignore the condition of Utils.isMonkeyRunning()
|
||||
// In normal case, monkey and robotest should not execute at the same time
|
||||
when(mConnectivityManager.getTetherableUsbRegexs()).thenReturn(new String[]{"dummyRegex"});
|
||||
when(mConnectivityManager.getTetherableUsbRegexs()).thenReturn(new String[]{"fakeRegex"});
|
||||
|
||||
final List<String> niks =
|
||||
TetherSettings.SEARCH_INDEX_DATA_PROVIDER.getNonIndexableKeys(mContext);
|
||||
@@ -135,7 +135,7 @@ public class TetherSettingsTest {
|
||||
public void testTetherNonIndexableKeys_bluetoothAvailable_bluetoothKeyNotReturned() {
|
||||
FeatureFlagUtils.setEnabled(mContext, FeatureFlags.TETHER_ALL_IN_ONE, false);
|
||||
when(mConnectivityManager.getTetherableBluetoothRegexs())
|
||||
.thenReturn(new String[]{"dummyRegex"});
|
||||
.thenReturn(new String[]{"fakeRegex"});
|
||||
|
||||
final List<String> niks =
|
||||
TetherSettings.SEARCH_INDEX_DATA_PROVIDER.getNonIndexableKeys(mContext);
|
||||
|
@@ -106,12 +106,12 @@ public class WifiP2PPreferenceControllerTest {
|
||||
mController.displayPreference(mScreen);
|
||||
verify(mWifiDirectPreference).setEnabled(true);
|
||||
|
||||
Intent dummyIntent = new Intent();
|
||||
mController.mReceiver.onReceive(mContext, dummyIntent);
|
||||
Intent fakeIntent = new Intent();
|
||||
mController.mReceiver.onReceive(mContext, fakeIntent);
|
||||
verify(mWifiDirectPreference, times(2)).setEnabled(true);
|
||||
|
||||
when(mWifiManager.isWifiEnabled()).thenReturn(false);
|
||||
mController.mReceiver.onReceive(mContext, dummyIntent);
|
||||
mController.mReceiver.onReceive(mContext, fakeIntent);
|
||||
verify(mWifiDirectPreference).setEnabled(false);
|
||||
}
|
||||
|
||||
@@ -136,12 +136,12 @@ public class WifiP2PPreferenceControllerTest {
|
||||
public void updateState_withLocationDisabled_preferenceShouldBeDisable() {
|
||||
when(mWifiManager.isWifiEnabled()).thenReturn(true);
|
||||
when(mLocationManager.isLocationEnabled()).thenReturn(true);
|
||||
Intent dummyIntent = new Intent();
|
||||
Intent fakeIntent = new Intent();
|
||||
mController.displayPreference(mScreen);
|
||||
verify(mWifiDirectPreference).setEnabled(true);
|
||||
|
||||
when(mLocationManager.isLocationEnabled()).thenReturn(false);
|
||||
mController.mLocationReceiver.onReceive(mContext, dummyIntent);
|
||||
mController.mLocationReceiver.onReceive(mContext, fakeIntent);
|
||||
verify(mWifiDirectPreference).setEnabled(false);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user