Loading services/core/java/com/android/server/am/ActivityManagerService.java +16 −9 Original line number Diff line number Diff line Loading @@ -20642,6 +20642,9 @@ public class ActivityManagerService extends IActivityManager.Stub // Has the UID or resumed package name changed? if (uid != mCurResumedUid || (pkg != mCurResumedPackage && (pkg == null || !pkg.equals(mCurResumedPackage)))) { final long identity = Binder.clearCallingIdentity(); try { if (mCurResumedPackage != null) { mBatteryStatsService.noteEvent(BatteryStats.HistoryItem.EVENT_TOP_FINISH, mCurResumedPackage, mCurResumedUid); Loading @@ -20652,6 +20655,10 @@ public class ActivityManagerService extends IActivityManager.Stub mBatteryStatsService.noteEvent(BatteryStats.HistoryItem.EVENT_TOP_START, mCurResumedPackage, mCurResumedUid); } } finally { Binder.restoreCallingIdentity(identity); } } return act; } Loading
services/core/java/com/android/server/am/ActivityManagerService.java +16 −9 Original line number Diff line number Diff line Loading @@ -20642,6 +20642,9 @@ public class ActivityManagerService extends IActivityManager.Stub // Has the UID or resumed package name changed? if (uid != mCurResumedUid || (pkg != mCurResumedPackage && (pkg == null || !pkg.equals(mCurResumedPackage)))) { final long identity = Binder.clearCallingIdentity(); try { if (mCurResumedPackage != null) { mBatteryStatsService.noteEvent(BatteryStats.HistoryItem.EVENT_TOP_FINISH, mCurResumedPackage, mCurResumedUid); Loading @@ -20652,6 +20655,10 @@ public class ActivityManagerService extends IActivityManager.Stub mBatteryStatsService.noteEvent(BatteryStats.HistoryItem.EVENT_TOP_START, mCurResumedPackage, mCurResumedUid); } } finally { Binder.restoreCallingIdentity(identity); } } return act; }