commit | 3dc45fbc57c664539e97bc3031337aeb9643a90e | [log] [tgz] |
---|---|---|
author | Hui Yu <huiyu@google.com> | Mon Mar 16 18:56:21 2020 -0700 |
committer | Hui Yu <huiyu@google.com> | Sat Mar 21 08:36:54 2020 -0700 |
tree | 2b5b2581eb96870bbcfdd77c381b2b75980331d0 | |
parent | 4846c5e3a95d4221f3667d62110a717dd9796d9b [diff] |
Update AppOps & UsageStats when app widget tapped. When the app widget on the launcher is tapped on: 1. Update AppOps. AppOps treats the underlying app as foreground so the app can get while-in-use permission. 2. Report a USER_INTERACTION event to UsageStats so UsageStats can update mLastTimeUsed and mLastTimeVisible of this package. Bug: 149043079 Test: manual test, tapped on a widget. Change-Id: Ic8c91190881cf5dcf89f0f72cfd410b0c2e86bf6