Loading src/com/android/settings/datausage/DataUsageSummaryPreferenceController.java +2 −2 Original line number Diff line number Diff line Loading @@ -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; } Loading src/com/android/settings/network/TetherProvisioningActivity.java +1 −1 Original line number Diff line number Diff line Loading @@ -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}. Loading src/com/android/settings/wifi/WifiSettings.java +1 −1 Original line number Diff line number Diff line Loading @@ -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); } Loading src/com/android/settings/wifi/details/WifiDetailPreferenceController.java +1 −1 Original line number Diff line number Diff line Loading @@ -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); Loading tests/robotests/src/com/android/settings/TetherSettingsTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -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); Loading @@ -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 Loading
src/com/android/settings/datausage/DataUsageSummaryPreferenceController.java +2 −2 Original line number Diff line number Diff line Loading @@ -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; } Loading
src/com/android/settings/network/TetherProvisioningActivity.java +1 −1 Original line number Diff line number Diff line Loading @@ -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}. Loading
src/com/android/settings/wifi/WifiSettings.java +1 −1 Original line number Diff line number Diff line Loading @@ -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); } Loading
src/com/android/settings/wifi/details/WifiDetailPreferenceController.java +1 −1 Original line number Diff line number Diff line Loading @@ -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); Loading
tests/robotests/src/com/android/settings/TetherSettingsTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -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); Loading @@ -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