Merge "Update process_state_changed logging" into rvc-dev am: 144788b5bb am: 7ce9800214 am: 02431a89df
Change-Id: I5e2109e253d293d492e02d7cc3ac8e2b1bb7c727
This commit is contained in:
@@ -4009,6 +4009,11 @@ public class BatteryStatsImpl extends BatteryStats {
|
||||
// Otherwise the parent's process state will get downgraded incorrectly
|
||||
return;
|
||||
}
|
||||
// TODO(b/155216561): It is possible for isolated uids to be in a higher
|
||||
// state than its parent uid. We should track the highest state within the union of host
|
||||
// and isolated uids rather than only the parent uid.
|
||||
FrameworkStatsLog.write(FrameworkStatsLog.UID_PROCESS_STATE_CHANGED, uid,
|
||||
ActivityManager.processStateAmToProto(state));
|
||||
getUidStatsLocked(uid).updateUidProcessStateLocked(state);
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
package com.android.server.am;
|
||||
|
||||
import android.app.ActivityManager;
|
||||
import android.bluetooth.BluetoothActivityEnergyInfo;
|
||||
import android.content.ContentResolver;
|
||||
import android.content.Context;
|
||||
@@ -376,9 +375,6 @@ public final class BatteryStatsService extends IBatteryStats.Stub
|
||||
/** @param state Process state from ActivityManager.java. */
|
||||
void noteUidProcessState(int uid, int state) {
|
||||
synchronized (mStats) {
|
||||
FrameworkStatsLog.write(FrameworkStatsLog.UID_PROCESS_STATE_CHANGED, uid,
|
||||
ActivityManager.processStateAmToProto(state));
|
||||
|
||||
mStats.noteUidProcessStateLocked(uid, state);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user