diff options
-rw-r--r-- | services/java/com/android/server/BatteryService.java | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/services/java/com/android/server/BatteryService.java b/services/java/com/android/server/BatteryService.java index fc4e06f3b4e1..b3c571af9dd7 100644 --- a/services/java/com/android/server/BatteryService.java +++ b/services/java/com/android/server/BatteryService.java @@ -182,31 +182,15 @@ class BatteryService extends Binder { } private final void shutdownIfNoPower() { - // shut down gracefully if our battery is critically low and we are not powered. - // wait until the system has booted before attempting to display the shutdown dialog. - if (mBatteryLevel == 0 && !isPowered() && ActivityManagerNative.isSystemReady()) { - Intent intent = new Intent(Intent.ACTION_REQUEST_SHUTDOWN); - intent.putExtra(Intent.EXTRA_KEY_CONFIRM, false); - intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); - mContext.startActivity(intent); - } + /* NOT IMPLEMENTED */ } private final void shutdownIfOverTemp() { - // shut down gracefully if temperature is too high (> 68.0C) - // wait until the system has booted before attempting to display the shutdown dialog. - if (mBatteryTemperature > 680 && ActivityManagerNative.isSystemReady()) { - Intent intent = new Intent(Intent.ACTION_REQUEST_SHUTDOWN); - intent.putExtra(Intent.EXTRA_KEY_CONFIRM, false); - intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); - mContext.startActivity(intent); - } + /* NOT IMPLEMENTED */ } - private native void native_update(); - private synchronized final void update() { - native_update(); + /* NOT IMPLMENTED */ boolean logOutlier = false; long dischargeDuration = 0; |