Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85864fd7 authored by Amy Zhang's avatar Amy Zhang
Browse files

Update language in VtsHalPowerV1_0TargetTest to comply with Android’s inclusive language guidance

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


BUG=161896447

Change-Id: I90de581df24872a30d93d9416a73e702f413c332
parent 3d5e0bb6
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ class PowerHidlTest : public testing::TestWithParam<std::string> {
  sp<IPower> power;
};

// Sanity check Power::setInteractive.
// Validate Power::setInteractive.
TEST_P(PowerHidlTest, SetInteractive) {
  Return<void> ret;

@@ -111,7 +111,7 @@ TEST_P(PowerHidlTest, TryDifferentGovernors) {
  ASSERT_LE(0, write(fd1, old_governor, strlen(old_governor)));
}

// Sanity check Power::powerHint on good and bad inputs.
// Validate Power::powerHint on good and bad inputs.
TEST_P(PowerHidlTest, PowerHint) {
  PowerHint badHint = static_cast<PowerHint>(0xA);
  auto hints = {PowerHint::VSYNC,         PowerHint::INTERACTION,
@@ -149,7 +149,7 @@ TEST_P(PowerHidlTest, PowerHint) {
  } while (std::next_permutation(hints2.begin(), hints2.end(), compareHints));
}

// Sanity check Power::setFeature() on good and bad inputs.
// Validate Power::setFeature() on good and bad inputs.
TEST_P(PowerHidlTest, SetFeature) {
  Return<void> ret;
  ret = power->setFeature(Feature::POWER_FEATURE_DOUBLE_TAP_TO_WAKE, true);
@@ -164,7 +164,7 @@ TEST_P(PowerHidlTest, SetFeature) {
  ASSERT_TRUE(ret.isOk());
}

// Sanity check Power::getPlatformLowPowerStats().
// Validate Power::getPlatformLowPowerStats().
TEST_P(PowerHidlTest, GetPlatformLowPowerStats) {
  hidl_vec<PowerStatePlatformSleepState> vec;
  Status s;