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

Commit c75b9d4e authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 8293149 from e1c6809d to tm-release

Change-Id: Id64ee335c714ff224a42ef1122c31c05f0f592c1
parents 5b4392a1 e1c6809d
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -66,13 +66,13 @@ static void runBenchmark(benchmark::State& state, microseconds delay, R (IPower:
    sp<IPower> hal = waitForVintfService<IPower>();

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

    binder::Status ret = (*hal.*fn)(std::forward<Args1>(args1)...);
    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;
    }

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

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

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

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

    binder::Status ret = (*hal.*fn)(std::forward<Args1>(args1)...);
    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;
    }

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

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

    binder::Status ret = hal->createHintSession(tgid, uid, threadIds, durationNanos, &appSession);
    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;
    }

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

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