diff --git a/res/drawable/ic_password.xml b/res/drawable/ic_password.xml
index 7d5f47190e9..1924f6eec99 100644
--- a/res/drawable/ic_password.xml
+++ b/res/drawable/ic_password.xml
@@ -20,15 +20,15 @@
android:viewportHeight="24.0"
android:viewportWidth="24.0">
diff --git a/res/drawable/ic_pattern.xml b/res/drawable/ic_pattern.xml
index b41129fb7c1..3320aea9b29 100644
--- a/res/drawable/ic_pattern.xml
+++ b/res/drawable/ic_pattern.xml
@@ -20,18 +20,18 @@
android:viewportHeight="24.0"
android:viewportWidth="24.0">
diff --git a/res/drawable/ic_pin.xml b/res/drawable/ic_pin.xml
index 577e04f6adc..d8c3ae34008 100644
--- a/res/drawable/ic_pin.xml
+++ b/res/drawable/ic_pin.xml
@@ -20,6 +20,6 @@
android:viewportHeight="24.0"
android:viewportWidth="24.0">
diff --git a/res/layout/data_usage_summary_preference.xml b/res/layout/data_usage_summary_preference.xml
index 5ec3da9799d..856d1468048 100644
--- a/res/layout/data_usage_summary_preference.xml
+++ b/res/layout/data_usage_summary_preference.xml
@@ -20,7 +20,7 @@
android:layout_height="wrap_content"
android:paddingTop="22dp"
android:paddingBottom="32dp"
- android:paddingStart="@dimen/preference_no_icon_padding_start"
+ android:paddingStart="?android:attr/listPreferredItemPaddingStart"
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
android:orientation="vertical"
android:selectable="false"
diff --git a/res/layout/face_enroll_button.xml b/res/layout/face_enroll_button.xml
index 2e7ba8dc4c6..09094d507db 100644
--- a/res/layout/face_enroll_button.xml
+++ b/res/layout/face_enroll_button.xml
@@ -22,10 +22,11 @@
\ No newline at end of file
diff --git a/res/layout/face_remove_button.xml b/res/layout/face_remove_button.xml
index 2bbaca9494d..ea860d5caae 100644
--- a/res/layout/face_remove_button.xml
+++ b/res/layout/face_remove_button.xml
@@ -22,10 +22,11 @@
\ No newline at end of file
diff --git a/res/values/strings.xml b/res/values/strings.xml
index ecd5403f34a..05d2b4f5f6d 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -2014,10 +2014,12 @@
Listen channel
Operating channel
-
+
2.4 GHz
-
+
5 GHz
+
+ 6 GHz
Sign in
@@ -5982,6 +5984,8 @@
Unrestricted
Optimized
+
+ Restricted
Allow battery usage in background without restrictions. May use more battery.
@@ -13191,7 +13195,7 @@
Calls & SMS
- Wi\u2011Fi Calling
+ Wi\u2011Fi calling
Make and receive calls over Wi\u2011Fi
diff --git a/res/xml/network_provider_settings.xml b/res/xml/network_provider_settings.xml
index c6d28317fe8..9e8befa4cb1 100644
--- a/res/xml/network_provider_settings.xml
+++ b/res/xml/network_provider_settings.xml
@@ -25,14 +25,16 @@
android:key="resetting_your_internet"
android:title="@string/resetting_internet_text"
android:selectable="false"
- android:layout="@layout/resetting_internet"/>
+ android:layout="@layout/resetting_internet"
+ settings:allowDividerBelow="true"/>
+ android:layout="@layout/airplane_mode_message_preference"
+ settings:allowDividerBelow="true"/>
-
-
+
+
+
+
@@ -58,16 +67,11 @@
android:key="access_points"
android:layout="@layout/preference_category_no_label"/>
-
-
diff --git a/res/xml/tether_prefs.xml b/res/xml/tether_prefs.xml
index d86f4204f48..97ad5fd4b7d 100644
--- a/res/xml/tether_prefs.xml
+++ b/res/xml/tether_prefs.xml
@@ -29,7 +29,7 @@
android:summary="@string/summary_placeholder"
android:fragment="com.android.settings.wifi.tether.WifiTetherSettings"
settings:allowDividerAbove="true"
- settings:summaryLineCount="2"/>
+ settings:maxLines="2"/>
{
mMetricsFeatureProvider.action(getContext(),
diff --git a/src/com/android/settings/network/NetworkProviderSettings.java b/src/com/android/settings/network/NetworkProviderSettings.java
index b1611cdae7f..22b9bccc52f 100644
--- a/src/com/android/settings/network/NetworkProviderSettings.java
+++ b/src/com/android/settings/network/NetworkProviderSettings.java
@@ -169,6 +169,7 @@ public class NetworkProviderSettings extends RestrictedSettingsFragment
return WifiPickerTracker.isVerboseLoggingEnabled();
}
+ private boolean mIsWifiEntryListStale = true;
private final Runnable mUpdateWifiEntryPreferencesRunnable = () -> {
updateWifiEntryPreferences();
};
@@ -437,6 +438,7 @@ public class NetworkProviderSettings extends RestrictedSettingsFragment
@Override
public void onStop() {
+ mIsWifiEntryListStale = true;
getView().removeCallbacks(mUpdateWifiEntryPreferencesRunnable);
getView().removeCallbacks(mHideProgressBarRunnable);
mAirplaneModeEnabler.stop();
@@ -698,7 +700,12 @@ public class NetworkProviderSettings extends RestrictedSettingsFragment
@Override
public void onWifiEntriesChanged() {
- updateWifiEntryPreferencesDelayed();
+ if (mIsWifiEntryListStale) {
+ mIsWifiEntryListStale = false;
+ updateWifiEntryPreferences();
+ } else {
+ updateWifiEntryPreferencesDelayed();
+ }
changeNextButtonState(mWifiPickerTracker.getConnectedWifiEntry() != null);
// Edit the Wi-Fi network of specified SSID.
diff --git a/src/com/android/settings/network/telephony/NetworkProviderWifiCallingGroup.java b/src/com/android/settings/network/telephony/NetworkProviderWifiCallingGroup.java
index c16dbc90c08..3423ad8e3f6 100644
--- a/src/com/android/settings/network/telephony/NetworkProviderWifiCallingGroup.java
+++ b/src/com/android/settings/network/telephony/NetworkProviderWifiCallingGroup.java
@@ -31,7 +31,7 @@ import android.telephony.SubscriptionInfo;
import android.telephony.SubscriptionManager;
import android.telephony.TelephonyManager;
import android.util.ArrayMap;
-import android.util.ArraySet;
+import android.util.Log;
import androidx.annotation.VisibleForTesting;
import androidx.lifecycle.LifecycleObserver;
@@ -50,7 +50,6 @@ import com.android.settingslib.core.lifecycle.Lifecycle;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import java.util.Set;
/**
* Copied the logic of WiFi calling from {@link WifiCallingPreferenceController}.
@@ -72,8 +71,7 @@ public class NetworkProviderWifiCallingGroup extends
private Map mTelephonyManagerList = new HashMap<>();
private Map mSimCallManagerList = new HashMap<>();
private Map mWifiCallingForSubPreferences;
- private Set mSubIdList = new ArraySet<>();
-
+ private List mSubInfoListForWfc;
public NetworkProviderWifiCallingGroup(Context context, Lifecycle lifecycle,
String preferenceGroupKey) {
@@ -83,18 +81,26 @@ public class NetworkProviderWifiCallingGroup extends
mPreferenceGroupKey = preferenceGroupKey;
mWifiCallingForSubPreferences = new ArrayMap<>();
- lifecycle.addObserver(this);
setSubscriptionInfoList(context);
+ lifecycle.addObserver(this);
}
- private void setSubscriptionInfoList(Context context){
- final List subscriptions = SubscriptionUtil.getActiveSubscriptions(
- mSubscriptionManager);
- for (SubscriptionInfo info : subscriptions) {
- final int subId = info.getSubscriptionId();
- mSubIdList.add(subId);
- setTelephonyManagerForSubscriptionId(context, subId);
- setPhoneAccountHandleForSubscriptionId(context, subId);
+ private void setSubscriptionInfoList(Context context) {
+ mSubInfoListForWfc = SubscriptionUtil.getActiveSubscriptions(mSubscriptionManager);
+ if (mSubInfoListForWfc != null) {
+ mSubInfoListForWfc.removeIf(info -> {
+ final int subId = info.getSubscriptionId();
+ setTelephonyManagerForSubscriptionId(context, subId);
+ setPhoneAccountHandleForSubscriptionId(context, subId);
+ boolean isExisted = mSubInfoListForWfc.contains(info);
+ boolean shouldShowWfcForSub = shouldShowWifiCallingForSub(subId);
+ if (!shouldShowWfcForSub && isExisted) {
+ return true;
+ }
+ return false;
+ });
+ } else {
+ Log.d(TAG, "No active subscriptions");
}
}
@@ -110,12 +116,12 @@ public class NetworkProviderWifiCallingGroup extends
mSimCallManagerList.put(subId, phoneAccountHandle);
}
- private TelephonyManager getTelephonyManagerForSubscriptionId(int subId){
- return mTelephonyManagerList.get(subId);
+ private TelephonyManager getTelephonyManagerForSubscriptionId(int subId) {
+ return mTelephonyManagerList.get(subId);
}
@VisibleForTesting
- protected PhoneAccountHandle getPhoneAccountHandleForSubscriptionId(int subId){
+ protected PhoneAccountHandle getPhoneAccountHandleForSubscriptionId(int subId) {
return mSimCallManagerList.get(subId);
}
@@ -131,7 +137,12 @@ public class NetworkProviderWifiCallingGroup extends
@Override
public boolean isAvailable() {
- return mSubIdList.size() >= 1;
+ if (mSubInfoListForWfc == null) {
+ Log.d(TAG, "No active subscriptions, hide the controller");
+ return false;
+ } else {
+ return mSubInfoListForWfc.size() >= 1;
+ }
}
@Override
@@ -167,19 +178,15 @@ public class NetworkProviderWifiCallingGroup extends
final Map toRemovePreferences = mWifiCallingForSubPreferences;
mWifiCallingForSubPreferences = new ArrayMap<>();
- final List subscriptions = SubscriptionUtil.getActiveSubscriptions(
- mSubscriptionManager);
- setSubscriptionInfoForPreference(subscriptions, toRemovePreferences);
-
+ setSubscriptionInfoForPreference(toRemovePreferences);
for (Preference pref : toRemovePreferences.values()) {
mPreferenceGroup.removePreference(pref);
}
}
- private void setSubscriptionInfoForPreference(List subscriptions,
- Map toRemovePreferences) {
+ private void setSubscriptionInfoForPreference(Map toRemovePreferences) {
int order = PREF_START_ORDER;
- for (SubscriptionInfo info : subscriptions) {
+ for (SubscriptionInfo info : mSubInfoListForWfc) {
final int subId = info.getSubscriptionId();
if (!shouldShowWifiCallingForSub(subId)) {
@@ -192,9 +199,11 @@ public class NetworkProviderWifiCallingGroup extends
mPreferenceGroup.addPreference(pref);
}
- CharSequence title = SubscriptionUtil.getUniqueSubscriptionDisplayName(info, mContext);
+ CharSequence title = SubscriptionUtil.getUniqueSubscriptionDisplayName(info,
+ mContext);
if (getPhoneAccountHandleForSubscriptionId(subId) != null) {
- final Intent intent = MobileNetworkUtils.buildPhoneAccountConfigureIntent(mContext,
+ final Intent intent = MobileNetworkUtils.buildPhoneAccountConfigureIntent(
+ mContext,
getPhoneAccountHandleForSubscriptionId(subId));
if (intent != null) {
final PackageManager pm = mContext.getPackageManager();
@@ -245,7 +254,7 @@ public class NetworkProviderWifiCallingGroup extends
* 1. Check the subscription is valid or not.
* 2. Check whether Wi-Fi Calling can be perform or not on this subscription.
* 3. Check the carrier's config (carrier_wfc_ims_available_bool). If true, the carrier
- * supports the Wi-Fi calling, otherwise false.
+ * supports the Wi-Fi calling, otherwise false.
*/
@VisibleForTesting
protected boolean shouldShowWifiCallingForSub(int subId) {
diff --git a/src/com/android/settings/wifi/WifiConfigController2.java b/src/com/android/settings/wifi/WifiConfigController2.java
index 65ac451c849..e8f2384d5cd 100644
--- a/src/com/android/settings/wifi/WifiConfigController2.java
+++ b/src/com/android/settings/wifi/WifiConfigController2.java
@@ -16,7 +16,6 @@
package com.android.settings.wifi;
-import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
@@ -35,7 +34,6 @@ import android.net.wifi.WifiEnterpriseConfig.Eap;
import android.net.wifi.WifiEnterpriseConfig.Phase2;
import android.net.wifi.WifiManager;
import android.os.IBinder;
-import android.os.UserHandle;
import android.security.keystore.KeyProperties;
import android.telephony.SubscriptionInfo;
import android.telephony.SubscriptionManager;
@@ -402,6 +400,9 @@ public class WifiConfigController2 implements TextWatcher,
} else if (frequency >= WifiEntry.MIN_FREQ_5GHZ
&& frequency < WifiEntry.MAX_FREQ_5GHZ) {
band = res.getString(R.string.wifi_band_5ghz);
+ } else if (frequency >= WifiEntry.MIN_FREQ_6GHZ
+ && frequency < WifiEntry.MAX_FREQ_6GHZ) {
+ band = res.getString(R.string.wifi_band_6ghz);
} else {
Log.e(TAG, "Unexpected frequency " + frequency);
}
diff --git a/src/com/android/settings/wifi/WifiSettings.java b/src/com/android/settings/wifi/WifiSettings.java
index dac65c6ec64..75e63079fba 100644
--- a/src/com/android/settings/wifi/WifiSettings.java
+++ b/src/com/android/settings/wifi/WifiSettings.java
@@ -160,6 +160,7 @@ public class WifiSettings extends RestrictedSettingsFragment
return WifiPickerTracker.isVerboseLoggingEnabled();
}
+ private boolean mIsWifiEntryListStale = true;
private final Runnable mUpdateWifiEntryPreferencesRunnable = () -> {
updateWifiEntryPreferences();
};
@@ -421,6 +422,7 @@ public class WifiSettings extends RestrictedSettingsFragment
public void onStop() {
getView().removeCallbacks(mUpdateWifiEntryPreferencesRunnable);
getView().removeCallbacks(mHideProgressBarRunnable);
+ mIsWifiEntryListStale = true;
super.onStop();
}
@@ -678,7 +680,12 @@ public class WifiSettings extends RestrictedSettingsFragment
@Override
public void onWifiEntriesChanged() {
- updateWifiEntryPreferencesDelayed();
+ if (mIsWifiEntryListStale) {
+ mIsWifiEntryListStale = false;
+ updateWifiEntryPreferences();
+ } else {
+ updateWifiEntryPreferencesDelayed();
+ }
changeNextButtonState(mWifiPickerTracker.getConnectedWifiEntry() != null);
// Edit the Wi-Fi network of specified SSID.
diff --git a/src/com/android/settings/wifi/details2/WifiDetailPreferenceController2.java b/src/com/android/settings/wifi/details2/WifiDetailPreferenceController2.java
index e47dfe7b12a..ced198bb887 100644
--- a/src/com/android/settings/wifi/details2/WifiDetailPreferenceController2.java
+++ b/src/com/android/settings/wifi/details2/WifiDetailPreferenceController2.java
@@ -623,12 +623,16 @@ public class WifiDetailPreferenceController2 extends AbstractPreferenceControlle
return;
}
+ // TODO(b/190390803): We should get the band string directly from WifiEntry.ConnectedInfo
+ // instead of doing the frequency -> band conversion here.
final int frequency = connectedInfo.frequencyMhz;
String band = null;
if (frequency >= WifiEntry.MIN_FREQ_24GHZ && frequency < WifiEntry.MAX_FREQ_24GHZ) {
band = mContext.getResources().getString(R.string.wifi_band_24ghz);
} else if (frequency >= WifiEntry.MIN_FREQ_5GHZ && frequency < WifiEntry.MAX_FREQ_5GHZ) {
band = mContext.getResources().getString(R.string.wifi_band_5ghz);
+ } else if (frequency >= WifiEntry.MIN_FREQ_6GHZ && frequency < WifiEntry.MAX_FREQ_6GHZ) {
+ band = mContext.getResources().getString(R.string.wifi_band_6ghz);
} else {
// Connecting state is unstable, make it disappeared if unexpected
if (mWifiEntry.getConnectedState() == WifiEntry.CONNECTED_STATE_CONNECTING) {
diff --git a/tests/robotests/src/com/android/settings/fuelgauge/ConvertUtilsTest.java b/tests/robotests/src/com/android/settings/fuelgauge/ConvertUtilsTest.java
index 7e1d3e43bb8..efabe44ed0d 100644
--- a/tests/robotests/src/com/android/settings/fuelgauge/ConvertUtilsTest.java
+++ b/tests/robotests/src/com/android/settings/fuelgauge/ConvertUtilsTest.java
@@ -29,7 +29,6 @@ import android.os.UserHandle;
import com.android.settings.testutils.FakeFeatureFactory;
import org.junit.Before;
-import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
@@ -316,8 +315,6 @@ public final class ConvertUtilsTest {
.isEqualTo(entry.mConsumePower * ratio);
}
- @Ignore
- @Test
public void testUtcToLocalTime_returnExpectedResult() {
ConvertUtils.sZoneId = null;
ConvertUtils.sLocale = null;
@@ -335,8 +332,6 @@ public final class ConvertUtilsTest {
assertThat(ConvertUtils.sLocale).isEqualTo(Locale.getDefault());
}
- @Ignore
- @Test
public void testUtcToLocalTimeHour_12HourFormat_returnExpectedResult() {
ConvertUtils.sZoneIdForHour = null;
ConvertUtils.sLocaleForHour = null;
@@ -354,8 +349,6 @@ public final class ConvertUtilsTest {
assertThat(ConvertUtils.sLocaleForHour).isEqualTo(Locale.getDefault());
}
- @Ignore
- @Test
public void testUtcToLocalTimeHour_24HourFormat_returnExpectedResult() {
ConvertUtils.sZoneIdForHour = null;
ConvertUtils.sLocaleForHour = null;
diff --git a/tests/unit/src/com/android/settings/fuelgauge/batterytip/BatteryTipPolicyTest.java b/tests/unit/src/com/android/settings/fuelgauge/batterytip/BatteryTipPolicyTest.java
deleted file mode 100644
index 9b42951bcd5..00000000000
--- a/tests/unit/src/com/android/settings/fuelgauge/batterytip/BatteryTipPolicyTest.java
+++ /dev/null
@@ -1,116 +0,0 @@
-/*
- * Copyright (C) 2020 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.android.settings.fuelgauge.batterytip;
-
-import static com.google.common.truth.Truth.assertThat;
-
-import android.content.Context;
-import android.provider.Settings;
-import android.text.format.DateUtils;
-
-import androidx.test.core.app.ApplicationProvider;
-import androidx.test.ext.junit.runners.AndroidJUnit4;
-
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-
-@RunWith(AndroidJUnit4.class)
-public class BatteryTipPolicyTest {
-
- private static final String BATTERY_TIP_CONSTANTS_VALUE = "battery_tip_enabled=true"
- + ",summary_enabled=false"
- + ",battery_saver_tip_enabled=false"
- + ",high_usage_enabled=true"
- + ",high_usage_app_count=5"
- + ",high_usage_period_ms=2000"
- + ",high_usage_battery_draining=30"
- + ",app_restriction_enabled=true"
- + ",reduced_battery_enabled=true"
- + ",reduced_battery_percent=30"
- + ",low_battery_enabled=false"
- + ",low_battery_hour=10"
- + ",data_history_retain_day=24"
- + ",excessive_bg_drain_percentage=25"
- + ",test_battery_saver_tip=true"
- + ",test_high_usage_tip=false"
- + ",test_smart_battery_tip=true"
- + ",test_low_battery_tip=true"
- + ",app_restriction_active_hour=6";
- private Context mContext;
-
- @Before
- public void setUp() {
- mContext = ApplicationProvider.getApplicationContext();
- }
-
- @Test
- public void testInit_usesConfigValues() {
- Settings.Global.putString(mContext.getContentResolver(),
- Settings.Global.BATTERY_TIP_CONSTANTS, BATTERY_TIP_CONSTANTS_VALUE);
-
- final BatteryTipPolicy batteryTipPolicy = new BatteryTipPolicy(mContext);
-
- assertThat(batteryTipPolicy.batteryTipEnabled).isTrue();
- assertThat(batteryTipPolicy.summaryEnabled).isFalse();
- assertThat(batteryTipPolicy.batterySaverTipEnabled).isFalse();
- assertThat(batteryTipPolicy.highUsageEnabled).isTrue();
- assertThat(batteryTipPolicy.highUsageAppCount).isEqualTo(5);
- assertThat(batteryTipPolicy.highUsagePeriodMs).isEqualTo(2000);
- assertThat(batteryTipPolicy.highUsageBatteryDraining).isEqualTo(30);
- assertThat(batteryTipPolicy.appRestrictionEnabled).isTrue();
- assertThat(batteryTipPolicy.appRestrictionActiveHour).isEqualTo(6);
- assertThat(batteryTipPolicy.reducedBatteryEnabled).isTrue();
- assertThat(batteryTipPolicy.reducedBatteryPercent).isEqualTo(30);
- assertThat(batteryTipPolicy.lowBatteryEnabled).isFalse();
- assertThat(batteryTipPolicy.lowBatteryHour).isEqualTo(10);
- assertThat(batteryTipPolicy.dataHistoryRetainDay).isEqualTo(24);
- assertThat(batteryTipPolicy.excessiveBgDrainPercentage).isEqualTo(25);
- assertThat(batteryTipPolicy.testBatterySaverTip).isTrue();
- assertThat(batteryTipPolicy.testHighUsageTip).isFalse();
- assertThat(batteryTipPolicy.testSmartBatteryTip).isTrue();
- assertThat(batteryTipPolicy.testLowBatteryTip).isTrue();
- }
-
- @Test
- public void testInit_defaultValues() {
- Settings.Global.putString(mContext.getContentResolver(),
- Settings.Global.BATTERY_TIP_CONSTANTS, "");
-
- final BatteryTipPolicy batteryTipPolicy = new BatteryTipPolicy(mContext);
-
- assertThat(batteryTipPolicy.batteryTipEnabled).isTrue();
- assertThat(batteryTipPolicy.summaryEnabled).isFalse();
- assertThat(batteryTipPolicy.batterySaverTipEnabled).isTrue();
- assertThat(batteryTipPolicy.highUsageEnabled).isTrue();
- assertThat(batteryTipPolicy.highUsageAppCount).isEqualTo(3);
- assertThat(batteryTipPolicy.highUsagePeriodMs).isEqualTo(2 * DateUtils.HOUR_IN_MILLIS);
- assertThat(batteryTipPolicy.highUsageBatteryDraining).isEqualTo(25);
- assertThat(batteryTipPolicy.appRestrictionEnabled).isTrue();
- assertThat(batteryTipPolicy.appRestrictionActiveHour).isEqualTo(24);
- assertThat(batteryTipPolicy.reducedBatteryEnabled).isFalse();
- assertThat(batteryTipPolicy.reducedBatteryPercent).isEqualTo(50);
- assertThat(batteryTipPolicy.lowBatteryEnabled).isTrue();
- assertThat(batteryTipPolicy.lowBatteryHour).isEqualTo(3);
- assertThat(batteryTipPolicy.dataHistoryRetainDay).isEqualTo(30);
- assertThat(batteryTipPolicy.excessiveBgDrainPercentage).isEqualTo(10);
- assertThat(batteryTipPolicy.testBatterySaverTip).isFalse();
- assertThat(batteryTipPolicy.testHighUsageTip).isFalse();
- assertThat(batteryTipPolicy.testSmartBatteryTip).isFalse();
- assertThat(batteryTipPolicy.testLowBatteryTip).isFalse();
- }
-}