Loading services/core/java/com/android/server/appop/AppOpsService.java +6 −2 Original line number Diff line number Diff line Loading @@ -1085,7 +1085,7 @@ public class AppOpsService extends IAppOpsService.Stub { } // no need to record a paused event finishing. InProgressStartOpEvent event = mInProgressEvents.valueAt(indexOfToken); InProgressStartOpEvent event = mPausedInProgressEvents.valueAt(indexOfToken); event.numUnfinishedStarts--; if (event.numUnfinishedStarts == 0) { mPausedInProgressEvents.removeAt(indexOfToken); Loading Loading @@ -1282,6 +1282,10 @@ public class AppOpsService extends IAppOpsService.Stub { return mInProgressEvents != null; } public boolean isPaused() { return mPausedInProgressEvents != null; } boolean hasAnyTime() { return (mAccessEvents != null && mAccessEvents.size() > 0) || (mRejectEvents != null && mRejectEvents.size() > 0); Loading Loading @@ -3953,7 +3957,7 @@ public class AppOpsService extends IAppOpsService.Stub { return; } if (attributedOp.isRunning()) { if (attributedOp.isRunning() || attributedOp.isPaused()) { attributedOp.finished(clientId); } else { Slog.e(TAG, "Operation not started: uid=" + uid + " pkg=" + packageName + "(" Loading Loading
services/core/java/com/android/server/appop/AppOpsService.java +6 −2 Original line number Diff line number Diff line Loading @@ -1085,7 +1085,7 @@ public class AppOpsService extends IAppOpsService.Stub { } // no need to record a paused event finishing. InProgressStartOpEvent event = mInProgressEvents.valueAt(indexOfToken); InProgressStartOpEvent event = mPausedInProgressEvents.valueAt(indexOfToken); event.numUnfinishedStarts--; if (event.numUnfinishedStarts == 0) { mPausedInProgressEvents.removeAt(indexOfToken); Loading Loading @@ -1282,6 +1282,10 @@ public class AppOpsService extends IAppOpsService.Stub { return mInProgressEvents != null; } public boolean isPaused() { return mPausedInProgressEvents != null; } boolean hasAnyTime() { return (mAccessEvents != null && mAccessEvents.size() > 0) || (mRejectEvents != null && mRejectEvents.size() > 0); Loading Loading @@ -3953,7 +3957,7 @@ public class AppOpsService extends IAppOpsService.Stub { return; } if (attributedOp.isRunning()) { if (attributedOp.isRunning() || attributedOp.isPaused()) { attributedOp.finished(clientId); } else { Slog.e(TAG, "Operation not started: uid=" + uid + " pkg=" + packageName + "(" Loading