summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Hai Zhang <zhanghai@google.com> 2022-12-12 03:41:29 -0800
committer Hai Zhang <zhanghai@google.com> 2022-12-13 21:33:57 -0800
commite455c28fd01e292155ff921ab576ba4702c20a69 (patch)
tree5687784d5dfc40ee55faefd943086099c680cb90 /libs/androidfw/StringPool.cpp
parent8ec0b69dba4e8d939f603ba99527c91a10d2e034 (diff)
Expose app op mode getter/setter/change listener directly on policy.
This allows the compat layer to call them with less ceremony of going through URIs. Also call UserState.requestWrite() upon changes. It is unfortunate that we have to duplicate some code this way, but we have to do it because Java/Kotlin generics doesn't allow primitive ints and we want to avoid auto-boxing. Also made mutateState()'s lambda crossinline so that the caller don't accidentally stop the state mutation mid-way. Bug: 182523293 Test: presubmit Change-Id: I1f61c35352a9c614939976bf98ee2eeb9bb8d0e0
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions