summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/SensorService.java
diff options
context:
space:
mode:
authorJoe Onorato <joeo@android.com>2010-02-26 18:56:32 -0800
committerJoe Onorato <joeo@android.com>2010-03-01 13:06:50 -0800
commit8a9b22056b13477f59df934928c00c58b5871c95 (patch)
treeba3f00f16d2f0b744de34b49da37f4df2da7e95e /services/java/com/android/server/SensorService.java
parent0ec40173b6875cf5ab0b95fb0b2e480f18bfcfbf (diff)
Switch the services library to using the new Slog
Diffstat (limited to 'services/java/com/android/server/SensorService.java')
-rw-r--r--services/java/com/android/server/SensorService.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/services/java/com/android/server/SensorService.java b/services/java/com/android/server/SensorService.java
index 4dfeb9d51b8d..01d64a7339b2 100644
--- a/services/java/com/android/server/SensorService.java
+++ b/services/java/com/android/server/SensorService.java
@@ -23,7 +23,7 @@ import android.os.Bundle;
import android.os.RemoteException;
import android.os.IBinder;
import android.util.Config;
-import android.util.Log;
+import android.util.Slog;
import java.util.ArrayList;
@@ -74,7 +74,7 @@ class SensorService extends ISensorService.Stub {
}
public void binderDied() {
- if (localLOGV) Log.d(TAG, "sensor listener died");
+ if (localLOGV) Slog.d(TAG, "sensor listener died");
synchronized(mListeners) {
mListeners.remove(this);
mToken.unlinkToDeath(this, 0);
@@ -86,7 +86,7 @@ class SensorService extends ISensorService.Stub {
try {
deactivateIfUnusedLocked(sensor);
} catch (RemoteException e) {
- Log.w(TAG, "RemoteException in binderDied");
+ Slog.w(TAG, "RemoteException in binderDied");
}
}
}
@@ -101,7 +101,7 @@ class SensorService extends ISensorService.Stub {
@SuppressWarnings("unused")
public SensorService(Context context) {
- if (localLOGV) Log.d(TAG, "SensorService startup");
+ if (localLOGV) Slog.d(TAG, "SensorService startup");
_sensors_control_init();
}
@@ -114,7 +114,7 @@ class SensorService extends ISensorService.Stub {
public boolean enableSensor(IBinder binder, String name, int sensor, int enable)
throws RemoteException {
- if (localLOGV) Log.d(TAG, "enableSensor " + name + "(#" + sensor + ") " + enable);
+ if (localLOGV) Slog.d(TAG, "enableSensor " + name + "(#" + sensor + ") " + enable);
// Inform battery statistics service of status change
int uid = Binder.getCallingUid();
@@ -127,13 +127,13 @@ class SensorService extends ISensorService.Stub {
Binder.restoreCallingIdentity(identity);
if (binder == null) {
- Log.w(TAG, "listener is null (sensor=" + name + ", id=" + sensor + ")");
+ Slog.w(TAG, "listener is null (sensor=" + name + ", id=" + sensor + ")");
return false;
}
synchronized(mListeners) {
if (enable!=SENSOR_DISABLE && !_sensors_control_activate(sensor, true)) {
- Log.w(TAG, "could not enable sensor " + sensor);
+ Slog.w(TAG, "could not enable sensor " + sensor);
return false;
}
@@ -157,7 +157,7 @@ class SensorService extends ISensorService.Stub {
if (l == null) {
// by construction, this means we're disabling a listener we
// don't know about...
- Log.w(TAG, "listener with binder " + binder +
+ Slog.w(TAG, "listener with binder " + binder +
", doesn't exist (sensor=" + name + ", id=" + sensor + ")");
return false;
}