summaryrefslogtreecommitdiff
path: root/libs/binder/PermissionCache.cpp
AgeCommit message (Collapse)Author
2023-08-25Use String8/16 c_str [binder] Tomasz Wasilczyk
Current String8::string() has two problems: it may suggest it's returning a std::string and also prevents a drop-in replacement with std::string. Bug: 295394788 Test: make checkbuild Change-Id: I1eb6ddebe3faede57f3e6f046da572a79056125a
2021-04-27PermissionCache: expose a method to purge permission cache Eric Laurent
Expose PermissionCache::purge() method. This is needed when running CTS tests that adopt the shell permission identity to make sure the CTS apk permissions are checked again after adopting the shell permission. Bug: 185972521 Test: AudioRecord regression tests Change-Id: I2c013eb857917e4c4477abf6237d0a76ef70aa9a Merged-In: I2c013eb857917e4c4477abf6237d0a76ef70aa9a
2020-11-25remove extra semicolons [-Wextra-semi] Jooyung Han
Bug: n/a Test: no errors with -Werror,-Wextra-semi Change-Id: If523cadea4c6f02a9155fb7482ba5463fff7854a
2019-09-27Remove extraneous semicolon. Steven Moreland
Bug: N/A Test: build w/o -Wno-c++98-compat-extra-semi Merged-In: I632d6df9a03485e547a6e7f14df0f1c068066c1e Change-Id: I632d6df9a03485e547a6e7f14df0f1c068066c1e
2018-06-07[binder] Replace NULL/0 with nullptr Yi Kong
Fixes -Wzero-as-null-pointer-constant warning. clang-tidy -checks=modernize-use-nullptr -p compile_commands.json -fix ... Test: m Bug: 68236239 Change-Id: I3181bc5683796423a98b0f9b94daf30880c07bdc Merged-In: I3181bc5683796423a98b0f9b94daf30880c07bdc (cherry picked from commit 91635563b8a1bf7a31e4ceb439728dacb79abd76)
2012-01-03Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE Steve Block
See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: I4c4e33bb9df3e39e11cd985e193e6fbab4635298
2011-06-27PermissionCache caches permission checks Mathias Agopian
This is intended to absorb the cost of the IPC to the permission controller. Cached permission checks cost about 3us, while full blown ones are two orders of magnitude slower. CAVEAT: PermissionCache can only handle system permissions safely for now, because the cache is not purged upon global permission changes. Change-Id: I8b8a5e71e191e3c01e8f792f253c379190eee62e