Loading packages/SettingsLib/src/com/android/settingslib/fuelgauge/PowerAllowlistBackend.java +8 −0 Original line number Diff line number Diff line Loading @@ -327,4 +327,12 @@ public class PowerAllowlistBackend { return sInstance; } } /** Testing only. Reset the instance to avoid tests affecting each other. */ @VisibleForTesting(otherwise = VisibleForTesting.PRIVATE) public static void resetInstance() { synchronized (PowerAllowlistBackend.class) { sInstance = null; } } } Loading
packages/SettingsLib/src/com/android/settingslib/fuelgauge/PowerAllowlistBackend.java +8 −0 Original line number Diff line number Diff line Loading @@ -327,4 +327,12 @@ public class PowerAllowlistBackend { return sInstance; } } /** Testing only. Reset the instance to avoid tests affecting each other. */ @VisibleForTesting(otherwise = VisibleForTesting.PRIVATE) public static void resetInstance() { synchronized (PowerAllowlistBackend.class) { sInstance = null; } } }