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

Commit deacc125 authored by Lais Andrade's avatar Lais Andrade
Browse files

Reduce log level to verbose for skipped benchmarks in power manager

Fix: 223730136
Test: N/A
Change-Id: Iaac448fe291e22d9a5ca97516b48be9d316da522
parent aedf10c2
Loading
Loading
Loading
Loading
+7 −7
Original line number Original line Diff line number Diff line
@@ -66,13 +66,13 @@ static void runBenchmark(benchmark::State& state, microseconds delay, R (IPower:
    sp<IPower> hal = waitForVintfService<IPower>();
    sp<IPower> hal = waitForVintfService<IPower>();


    if (hal == nullptr) {
    if (hal == nullptr) {
        ALOGI("Power HAL not available, skipping test...");
        ALOGV("Power HAL not available, skipping test...");
        return;
        return;
    }
    }


    binder::Status ret = (*hal.*fn)(std::forward<Args1>(args1)...);
    binder::Status ret = (*hal.*fn)(std::forward<Args1>(args1)...);
    if (ret.exceptionCode() == binder::Status::Exception::EX_UNSUPPORTED_OPERATION) {
    if (ret.exceptionCode() == binder::Status::Exception::EX_UNSUPPORTED_OPERATION) {
        ALOGI("Power HAL does not support this operation, skipping test...");
        ALOGV("Power HAL does not support this operation, skipping test...");
        return;
        return;
    }
    }


@@ -93,7 +93,7 @@ static void runSessionBenchmark(benchmark::State& state, R (IPowerHintSession::*
    sp<IPower> pwHal = waitForVintfService<IPower>();
    sp<IPower> pwHal = waitForVintfService<IPower>();


    if (pwHal == nullptr) {
    if (pwHal == nullptr) {
        ALOGI("Power HAL not available, skipping test...");
        ALOGV("Power HAL not available, skipping test...");
        return;
        return;
    }
    }


@@ -105,13 +105,13 @@ static void runSessionBenchmark(benchmark::State& state, R (IPowerHintSession::*
    auto status = pwHal->createHintSession(1, 0, threadIds, durationNanos, &hal);
    auto status = pwHal->createHintSession(1, 0, threadIds, durationNanos, &hal);


    if (hal == nullptr) {
    if (hal == nullptr) {
        ALOGI("Power HAL doesn't support session, skipping test...");
        ALOGV("Power HAL doesn't support session, skipping test...");
        return;
        return;
    }
    }


    binder::Status ret = (*hal.*fn)(std::forward<Args1>(args1)...);
    binder::Status ret = (*hal.*fn)(std::forward<Args1>(args1)...);
    if (ret.exceptionCode() == binder::Status::Exception::EX_UNSUPPORTED_OPERATION) {
    if (ret.exceptionCode() == binder::Status::Exception::EX_UNSUPPORTED_OPERATION) {
        ALOGI("Power HAL does not support this operation, skipping test...");
        ALOGV("Power HAL does not support this operation, skipping test...");
        return;
        return;
    }
    }


@@ -159,13 +159,13 @@ static void BM_PowerHalAidlBenchmarks_createHintSession(benchmark::State& state)
    sp<IPower> hal = waitForVintfService<IPower>();
    sp<IPower> hal = waitForVintfService<IPower>();


    if (hal == nullptr) {
    if (hal == nullptr) {
        ALOGI("Power HAL not available, skipping test...");
        ALOGV("Power HAL not available, skipping test...");
        return;
        return;
    }
    }


    binder::Status ret = hal->createHintSession(tgid, uid, threadIds, durationNanos, &appSession);
    binder::Status ret = hal->createHintSession(tgid, uid, threadIds, durationNanos, &appSession);
    if (ret.exceptionCode() == binder::Status::Exception::EX_UNSUPPORTED_OPERATION) {
    if (ret.exceptionCode() == binder::Status::Exception::EX_UNSUPPORTED_OPERATION) {
        ALOGI("Power HAL does not support this operation, skipping test...");
        ALOGV("Power HAL does not support this operation, skipping test...");
        return;
        return;
    }
    }


+1 −1
Original line number Original line Diff line number Diff line
@@ -51,7 +51,7 @@ static void runBenchmark(benchmark::State& state, microseconds delay, Return<R>
    sp<I> hal = I::getService();
    sp<I> hal = I::getService();


    if (hal == nullptr) {
    if (hal == nullptr) {
        ALOGI("Power HAL HIDL not available, skipping test...");
        ALOGV("Power HAL HIDL not available, skipping test...");
        return;
        return;
    }
    }