Merge "Removing BatteryStatsImpl lock that causes a deadlock" into rvc-dev am: afe0f89d59
Change-Id: Ic04a4abbbc9494ab8e380020e67fc0ac9a681be2
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