Update language to comply with Android's inclusive language guidance

See https://source.android.com/setup/contribute/respectful-code for reference

Bug: 161896447
Change-Id: Iafcccbdbdf3ff1078e87000e2ce560ff09b43f68
This commit is contained in:
Jeff Sharkey 2020-07-31 15:25:43 -06:00
parent fcaed0effa
commit 7b21637782
9 changed files with 9 additions and 10 deletions

View file

@ -55,7 +55,7 @@ std::string perror_str(const char* msg);
bool set_file_block_mode(borrowed_fd fd, bool block);
// Given forward/reverse targets, returns true if they look sane. If an error is found, fills
// Given forward/reverse targets, returns true if they look valid. If an error is found, fills
// |error| and returns false.
// Currently this only checks "tcp:" targets. Additional checking could be added for other targets
// if needed.

View file

@ -65,7 +65,7 @@ class FdeventTest : public ::testing::Test {
ASSERT_EQ(0u, fdevent_installed_count());
}
// Register a dummy socket used to wake up the fdevent loop to tell it to die.
// Register a placeholder socket used to wake up the fdevent loop to tell it to die.
void PrepareThread() {
int dummy_fds[2];
if (adb_socketpair(dummy_fds) != 0) {
@ -84,7 +84,7 @@ class FdeventTest : public ::testing::Test {
}
size_t GetAdditionalLocalSocketCount() {
// dummy socket installed in PrepareThread()
// placeholder socket installed in PrepareThread()
return 1;
}

View file

@ -856,7 +856,7 @@ static int smart_socket_enqueue(asocket* s, apacket::payload_type data) {
s->peer->shutdown = nullptr;
s->peer->close = local_socket_close_notify;
s->peer->peer = nullptr;
/* give him our transport and upref it */
/* give them our transport and upref it */
s->peer->transport = s->transport;
connect_to_remote(s->peer, std::string_view(s->smart_socket_data).substr(4));

View file

@ -1331,7 +1331,7 @@ if [ X"--macros" != X"${1}" ]; then
shift
fi
# Check if all conditions for the script are sane
# Check if all conditions for the script are valid
if [ -z "${ANDROID_SERIAL}" ]; then
ndev=`(

View file

@ -174,7 +174,7 @@ static void dump_signal_info(log_t* log, const ThreadInfo& thread_info,
}
static void dump_thread_info(log_t* log, const ThreadInfo& thread_info) {
// Blacklist logd, logd.reader, logd.writer, logd.auditd, logd.control ...
// Deny logd, logd.reader, logd.writer, logd.auditd, logd.control ...
// TODO: Why is this controlled by thread name?
if (thread_info.thread_name == "logd" ||
android::base::StartsWith(thread_info.thread_name, "logd.")) {

View file

@ -44,7 +44,6 @@
using android::base::unique_fd;
// Whitelist output desired in the logcat output.
bool is_allowed_in_logcat(enum logtype ltype) {
if ((ltype == HEADER)
|| (ltype == REGISTERS)

View file

@ -36,7 +36,7 @@
#pragma once
/* This is the master Users and Groups config for the platform.
/* This is the main Users and Groups config for the platform.
* DO NOT EVER RENUMBER
*/

View file

@ -33,7 +33,7 @@
#include <gtest/gtest.h>
TEST(keyutils, smoke) {
// Check that the exported type is sane.
// Check that the exported type is the right size.
ASSERT_EQ(4U, sizeof(key_serial_t));
// Check that all the functions actually exist.

View file

@ -82,7 +82,7 @@ Nonce generateNonce() {
/**
* This is an implementation of the SecureInput protocol in unserspace. This is
* just an example and should not be used as is. The protocol implemented her
* just an example and should not be used as is. The protocol implemented here
* should be used by a trusted input device that can assert user events with
* high assurance even if the HLOS kernel is compromised. A confirmationui HAL
* that links directly against this implementation is not secure and shal not be