From 1d675e65465fd08d7474a9674d9a9f77ba12e128 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Wed, 10 Apr 2013 12:50:32 -0700 Subject: [PATCH] Fix issue #7691456: adbd CPU usage identified as Bluetooth in battery stats Should be comparing with Bluetooth UID, not the wrong and broken GID. Change-Id: I2cb33e25b0ae5a441a467c12d91860dcf36232dc --- src/com/android/settings/fuelgauge/PowerUsageSummary.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/settings/fuelgauge/PowerUsageSummary.java b/src/com/android/settings/fuelgauge/PowerUsageSummary.java index 1dcb02c4458..2a3d5f86eef 100644 --- a/src/com/android/settings/fuelgauge/PowerUsageSummary.java +++ b/src/com/android/settings/fuelgauge/PowerUsageSummary.java @@ -606,7 +606,7 @@ public class PowerUsageSummary extends PreferenceFragment implements Runnable { app.tcpBytesSent = tcpBytesSent; if (u.getUid() == Process.WIFI_UID) { mWifiSippers.add(app); - } else if (u.getUid() == Process.BLUETOOTH_GID) { + } else if (u.getUid() == Process.BLUETOOTH_UID) { mBluetoothSippers.add(app); } else if (userId != UserHandle.myUserId() && UserHandle.getAppId(u.getUid()) >= Process.FIRST_APPLICATION_UID) { @@ -627,7 +627,7 @@ public class PowerUsageSummary extends PreferenceFragment implements Runnable { if (power != 0) { if (u.getUid() == Process.WIFI_UID) { mWifiPower += power; - } else if (u.getUid() == Process.BLUETOOTH_GID) { + } else if (u.getUid() == Process.BLUETOOTH_UID) { mBluetoothPower += power; } else if (isOtherUser) { Double userPower = mUserPower.get(userId);