summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Jernej Virag <jernej@google.com> 2022-12-20 16:15:47 +0100
committer Jernej Virag <jernej@google.com> 2022-12-20 15:24:11 +0000
commit86ce1809aef3189254c17d4354a691fb28fbec3d (patch)
tree0045c12211dd01fa164d658f8d0f844a1b1d0020 /api/api.go
parentde157676364faaff6143d7f6f28466e8c0c81e14 (diff)
Do not keep MediaSession Tokens for Notification accounting
In some cases we're tracking 50+ MediaSession.Tokens being retained. Since Tokens contain strong binder links, they can retain big resources on the other side of the link. The code inside MediaSessionBasedFilter doesn't actually need to hold tokens at all - it just tests for equality between tokens. As such, we can only retain their identifiers and let Tokens themselves be deallocated if necessary. Bug: 261882243 Test: atest MediaSessionBasedFilterTest, verified Media behaviour on device Change-Id: I65fc3b47ad87cd6b90a814ef217b2ec1c90cac29
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions