Loading apex/jobscheduler/service/java/com/android/server/tare/InternalResourceService.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -382,7 +382,7 @@ public class InternalResourceService extends SystemService { if (increased) { if (increased) { mAgent.distributeBasicIncomeLocked(newBatteryLevel); mAgent.distributeBasicIncomeLocked(newBatteryLevel); } else if (newBatteryLevel == mCurrentBatteryLevel) { } else if (newBatteryLevel == mCurrentBatteryLevel) { Slog.wtf(TAG, "Battery level stayed the same"); // The broadcast is also sent when the plug type changes... return; return; } } mCurrentBatteryLevel = newBatteryLevel; mCurrentBatteryLevel = newBatteryLevel; Loading core/java/android/content/Intent.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -3259,7 +3259,7 @@ public class Intent implements Parcelable, Cloneable { /** /** * Broadcast Action: Sent when the current battery level changes. * Broadcast Action: Sent when the current battery level or plug type changes. * * * It has {@link android.os.BatteryManager#EXTRA_EVENTS} that carries a list of {@link Bundle} * It has {@link android.os.BatteryManager#EXTRA_EVENTS} that carries a list of {@link Bundle} * instances representing individual battery level changes with associated * instances representing individual battery level changes with associated Loading Loading
apex/jobscheduler/service/java/com/android/server/tare/InternalResourceService.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -382,7 +382,7 @@ public class InternalResourceService extends SystemService { if (increased) { if (increased) { mAgent.distributeBasicIncomeLocked(newBatteryLevel); mAgent.distributeBasicIncomeLocked(newBatteryLevel); } else if (newBatteryLevel == mCurrentBatteryLevel) { } else if (newBatteryLevel == mCurrentBatteryLevel) { Slog.wtf(TAG, "Battery level stayed the same"); // The broadcast is also sent when the plug type changes... return; return; } } mCurrentBatteryLevel = newBatteryLevel; mCurrentBatteryLevel = newBatteryLevel; Loading
core/java/android/content/Intent.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -3259,7 +3259,7 @@ public class Intent implements Parcelable, Cloneable { /** /** * Broadcast Action: Sent when the current battery level changes. * Broadcast Action: Sent when the current battery level or plug type changes. * * * It has {@link android.os.BatteryManager#EXTRA_EVENTS} that carries a list of {@link Bundle} * It has {@link android.os.BatteryManager#EXTRA_EVENTS} that carries a list of {@link Bundle} * instances representing individual battery level changes with associated * instances representing individual battery level changes with associated Loading