Merge "Update process_state_changed logging" into rvc-dev am: 144788b5bb
Change-Id: I391161333f2731e08433bd0acd49c7ebff752559
This commit is contained in:
@@ -4009,6 +4009,11 @@ public class BatteryStatsImpl extends BatteryStats {
|
|||||||
// Otherwise the parent's process state will get downgraded incorrectly
|
// Otherwise the parent's process state will get downgraded incorrectly
|
||||||
return;
|
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);
|
getUidStatsLocked(uid).updateUidProcessStateLocked(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
package com.android.server.am;
|
package com.android.server.am;
|
||||||
|
|
||||||
import android.app.ActivityManager;
|
|
||||||
import android.bluetooth.BluetoothActivityEnergyInfo;
|
import android.bluetooth.BluetoothActivityEnergyInfo;
|
||||||
import android.content.ContentResolver;
|
import android.content.ContentResolver;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
@@ -376,9 +375,6 @@ public final class BatteryStatsService extends IBatteryStats.Stub
|
|||||||
/** @param state Process state from ActivityManager.java. */
|
/** @param state Process state from ActivityManager.java. */
|
||||||
void noteUidProcessState(int uid, int state) {
|
void noteUidProcessState(int uid, int state) {
|
||||||
synchronized (mStats) {
|
synchronized (mStats) {
|
||||||
FrameworkStatsLog.write(FrameworkStatsLog.UID_PROCESS_STATE_CHANGED, uid,
|
|
||||||
ActivityManager.processStateAmToProto(state));
|
|
||||||
|
|
||||||
mStats.noteUidProcessStateLocked(uid, state);
|
mStats.noteUidProcessStateLocked(uid, state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user