Merge "Removing BatteryStatsImpl lock that causes a deadlock" into rvc-dev am: afe0f89d59 am: 1c4f7f8ddd am: 3d45902ba3
Change-Id: Ifb87bbc45935aba91e87437a7a3c257dc50fbc41
This commit is contained in:
@@ -6093,7 +6093,8 @@ public class BatteryStatsImpl extends BatteryStats {
|
||||
return array;
|
||||
}
|
||||
|
||||
public void noteNetworkInterfaceTypeLocked(String iface, int networkType) {
|
||||
/** @hide */
|
||||
public void noteNetworkInterfaceType(String iface, int networkType) {
|
||||
if (TextUtils.isEmpty(iface)) return;
|
||||
|
||||
synchronized (mModemNetworkLock) {
|
||||
|
||||
@@ -1013,9 +1013,7 @@ public final class BatteryStatsService extends IBatteryStats.Stub
|
||||
@Override
|
||||
public void noteNetworkInterfaceType(String iface, int networkType) {
|
||||
enforceCallingPermission();
|
||||
synchronized (mStats) {
|
||||
mStats.noteNetworkInterfaceTypeLocked(iface, networkType);
|
||||
}
|
||||
mStats.noteNetworkInterfaceType(iface, networkType);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user