commit | 494b4ab56ffc60bb75ea3966bd3bf6e633a5cf7c | [log] [tgz] |
---|---|---|
author | Philip P. Moltmann <moltmann@google.com> | Fri Jan 31 09:33:20 2020 -0800 |
committer | Philip P. Moltmann <moltmann@google.com> | Fri Jan 31 09:33:20 2020 -0800 |
tree | d167fbefca6ae349806c3e5a7db81140a7f2476f | |
parent | f0a9dd1e946bc3b337d9b09e3517ffad62a94ff3 [diff] |
Correctly update in-progress events when switching uidStates A in-progress event might have been started multiple times. So to remove the event and then re-add it we have to temporarily reduce the number of unfinished started (== the nesting count) to 1 so that finish() actually removes the event. Test: atest android.app.appops.cts.AppOpEventCollectionTest#switchUidStateWhileOpsAreRunning Fixes: 148527247 Change-Id: I40afd83946be202be048c69611f62974a762bdc6