summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
author Eden Su <edensu@google.com> 2023-11-23 02:21:37 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2023-11-23 02:21:37 +0000
commit9d3f99b0ce13d872cba558d62f2ad4c41dc2a744 (patch)
treeb28d06244853ce9f5427863d9c6a647c4c85a173 /libs
parent5434b8dc8a9f8e7999b59f4809a54c77078c84ac (diff)
parent04b22dd2210c6d108c4bff4e5708cd3099ba770e (diff)
Merge "Update language to comply with Android’s inclusive language guidance" into main am: 04b22dd221
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2836225 Change-Id: I31870fe39f4dfd25bc3c6f443f72e55aed162a7b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'libs')
-rw-r--r--libs/binder/include/binder/IInterface.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/binder/include/binder/IInterface.h b/libs/binder/include/binder/IInterface.h
index dc572ac953..ac845bc003 100644
--- a/libs/binder/include/binder/IInterface.h
+++ b/libs/binder/include/binder/IInterface.h
@@ -119,8 +119,8 @@ public:
"The preferred way to add interfaces is to define " \
"an .aidl file to auto-generate the interface. If " \
"an interface must be manually written, add its " \
- "name to the whitelist."); \
- DO_NOT_DIRECTLY_USE_ME_IMPLEMENT_META_INTERFACE(INTERFACE, NAME) \
+ "name to the allowlist."); \
+ DO_NOT_DIRECTLY_USE_ME_IMPLEMENT_META_INTERFACE(INTERFACE, NAME)
#else
@@ -305,10 +305,10 @@ constexpr bool equals(const char* a, const char* b) {
return equals(a + 1, b + 1);
}
-constexpr bool inList(const char* a, const char* const* whitelist) {
- if (*whitelist == nullptr) return false;
- if (equals(a, *whitelist)) return true;
- return inList(a, whitelist + 1);
+constexpr bool inList(const char* a, const char* const* allowlist) {
+ if (*allowlist == nullptr) return false;
+ if (equals(a, *allowlist)) return true;
+ return inList(a, allowlist + 1);
}
constexpr bool allowedManualInterface(const char* name) {