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;
|
return array;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void noteNetworkInterfaceTypeLocked(String iface, int networkType) {
|
/** @hide */
|
||||||
|
public void noteNetworkInterfaceType(String iface, int networkType) {
|
||||||
if (TextUtils.isEmpty(iface)) return;
|
if (TextUtils.isEmpty(iface)) return;
|
||||||
|
|
||||||
synchronized (mModemNetworkLock) {
|
synchronized (mModemNetworkLock) {
|
||||||
|
|||||||
@@ -1013,9 +1013,7 @@ public final class BatteryStatsService extends IBatteryStats.Stub
|
|||||||
@Override
|
@Override
|
||||||
public void noteNetworkInterfaceType(String iface, int networkType) {
|
public void noteNetworkInterfaceType(String iface, int networkType) {
|
||||||
enforceCallingPermission();
|
enforceCallingPermission();
|
||||||
synchronized (mStats) {
|
mStats.noteNetworkInterfaceType(iface, networkType);
|
||||||
mStats.noteNetworkInterfaceTypeLocked(iface, networkType);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user