Merge "Removing BatteryStatsImpl lock that causes a deadlock" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
afe0f89d59
@@ -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