Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6bbeb49a authored by Goven Liu's avatar Goven Liu Committed by Android (Google) Code Review
Browse files

Merge "[Wi-Fi] WiFi Settings inclusive language fix plan phase 2"

parents dbf64071 fec71036
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -378,11 +378,11 @@ public class DataUsageSummaryPreferenceController extends TelephonyBasePreferenc
        // First plan in the list is the primary plan
        SubscriptionPlan plan = plans.get(0);
        return plan.getDataLimitBytes() > 0
                && saneSize(plan.getDataUsageBytes())
                && validSize(plan.getDataUsageBytes())
                && plan.getCycleRule() != null ? plan : null;
    }

    private static boolean saneSize(long value) {
    private static boolean validSize(long value) {
        return value >= 0L && value < PETA;
    }

+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ import android.util.Log;
import androidx.annotation.VisibleForTesting;

/**
 * Activity which acts as a proxy to the tether provisioning app for sanity checks and permission
 * Activity which acts as a proxy to the tether provisioning app for validity checks and permission
 * restrictions. Specifically, the provisioning apps require
 * {@link android.permission.TETHER_PRIVILEGED}, while this activity can be started by a caller
 * with {@link android.permission.TETHER_PRIVILEGED}.
+1 −1
Original line number Diff line number Diff line
@@ -490,7 +490,7 @@ public class WifiSettings extends RestrictedSettingsFragment
        }

        // "forget" for normal saved network. And "disconnect" for ephemeral network because it
        // could only be disconnected and be put in blacklists so it won't be used again.
        // could only be disconnected and be put in blocklists so it won't be used again.
        if (canForgetNetwork()) {
            menu.add(Menu.NONE, MENU_ID_FORGET, 0 /* order */, R.string.forget);
        }
+1 −1
Original line number Diff line number Diff line
@@ -846,7 +846,7 @@ public class WifiDetailPreferenceController extends AbstractPreferenceController
    }

    private void refreshButtons() {
        // Ephemeral network won't be removed permanently, but be putted in blacklist.
        // Ephemeral network won't be removed permanently, but be putted in blocklist.
        mButtonsPref.setButton1Text(
                mIsEphemeral ? R.string.wifi_disconnect_button_text : R.string.forget);

+2 −2
Original line number Diff line number Diff line
@@ -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);
Loading