am e52a2ea0: am f91526ce: Merge "Fix issue #17323751: Additional items in aggregated battery stats" into lmp-mr1-dev
* commit 'e52a2ea03bd7b8ed2f3680c5198e00fb7ad5c34c': Fix issue #17323751: Additional items in aggregated battery stats
This commit is contained in:
@@ -1544,6 +1544,17 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
||||
}
|
||||
|
||||
final long ident = Binder.clearCallingIdentity();
|
||||
if (ConnectivityManager.CONNECTIVITY_ACTION.equals(intent.getAction())) {
|
||||
final IBatteryStats bs = BatteryStatsService.getService();
|
||||
try {
|
||||
NetworkInfo ni = intent.getParcelableExtra(
|
||||
ConnectivityManager.EXTRA_NETWORK_INFO);
|
||||
bs.noteConnectivityChanged(intent.getIntExtra(
|
||||
ConnectivityManager.EXTRA_NETWORK_TYPE, ConnectivityManager.TYPE_NONE),
|
||||
ni != null ? ni.getState().toString() : "?");
|
||||
} catch (RemoteException e) {
|
||||
}
|
||||
}
|
||||
try {
|
||||
mContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL);
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user