diff options
| author | 2024-10-07 16:22:13 -0700 | |
|---|---|---|
| committer | 2024-10-11 17:40:25 -0700 | |
| commit | 8fd9b5cb6f5016e4ca35d6413f2d7ec68928b240 (patch) | |
| tree | 9bee3a9735642d916dbc1de61ac2b6258a5a590f /api/api_test.go | |
| parent | 46ede9296b530f726c4378a091a91cb372f6a969 (diff) | |
add a new AppOpsManager.setOnOpNotedCallback API
This change expands the existing setOnOpNotedCallback API and adds an
optional flag parameter that can be used to listen to only sync op noted
events. This addresses the issue where async op noted events are
delivered to every single app process that registeres for op noted
callbacks. An app process can now opt to listen only to sync op noted
events happening within that process, and avoid getting duplicated async
op noted events from other processes in the app.
Flag: android.permission.flags.sync_on_op_noted_api
Change-Id: I572d897bb98408e56389d5af386b1025766317ea
Bug: 327047060
Bug: 372910217
Test: atest AppOpsLoggingTest
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions