| commit | ebdeed13ce3250c8848f5d81fd02a6c19dbbbf69 | [log] [tgz] |
|---|---|---|
| author | Manjeet Rulhania <mrulhania@google.com> | Fri Jan 20 15:50:43 2023 -0800 |
| committer | Manjeet Rulhania <mrulhania@google.com> | Tue Jan 24 00:55:59 2023 +0000 |
| tree | 286da6ec31f8afdf0fd45815699a24f69b3f2a80 | |
| parent | 0f5c1d95934a717e1ae00af5a419c60804db09ab [diff] |
Add api to check if an app is in foreground or not. This api is backed by existing appops logic and should only be used in the context of runtime permissions. This is different than ActivityManager's foreground check, which only consider proc state/importance. Fix: 265802019 API-Coverage-Bug: 266482297 Test: atest AppOpsUidStateTrackerTest Change-Id: I0a7ce12910199435c0c08f613798b2645455ab5e