summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Huang <jserv@0xlab.org>2011-01-13 06:06:43 +0800
committerPatrik Ryd <patrik.ryd@linaro.org>2011-01-13 14:43:39 -0600
commitc2149349a661dc57124899db761ccb1e4b615c91 (patch)
tree6c13696ea1bf79ae3a74c6284ffd3bc62f7f16cb
parent6bcc7a7e5fc5a2340c4f060141bec9d181454807 (diff)
downloadbase-linaro_android_2.3.1.tar.gz
BatteryService: Remove battery library dependencylinaro_android_2.3.1dev_dallas_sprint
In usual senario of Beagleboard, battery service does not really make sense since it is powered by DC power or USB wire. Removing battery library dependency is necessary because it lacks of the corresponding implementation. Change-Id: I5543f1faabf4aef055ddb20891817fb99e292707
-rw-r--r--services/java/com/android/server/BatteryService.java22
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;