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

Commit 4d65ff51 authored by Matt Buckley's avatar Matt Buckley
Browse files

Remove redundant support checks

NDKs are not flaggable and returning unsupport is no longer a part of the load hint API.

Bug: 385808376
Test: atest android.os.cts.PerformanceHintManagerTest
Flag: EXEMPT ndk
Change-Id: I83e9d0341d8226ddd8bf3bf0fc3856f691b691bc
parent c429127d
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -1269,9 +1269,6 @@ int APerformanceHint_notifyWorkloadIncrease(APerformanceHintSession* session, bo
                                            const char* debugName) {
    VALIDATE_PTR(session)
    VALIDATE_PTR(debugName)
    if (!useNewLoadHintBehavior()) {
        return ENOTSUP;
    }
    return session->notifyWorkloadIncrease(cpu, gpu, debugName);
}

@@ -1279,9 +1276,6 @@ int APerformanceHint_notifyWorkloadReset(APerformanceHintSession* session, bool
                                         const char* debugName) {
    VALIDATE_PTR(session)
    VALIDATE_PTR(debugName)
    if (!useNewLoadHintBehavior()) {
        return ENOTSUP;
    }
    return session->notifyWorkloadReset(cpu, gpu, debugName);
}

@@ -1289,9 +1283,6 @@ int APerformanceHint_notifyWorkloadSpike(APerformanceHintSession* session, bool
                                         const char* debugName) {
    VALIDATE_PTR(session)
    VALIDATE_PTR(debugName)
    if (!useNewLoadHintBehavior()) {
        return ENOTSUP;
    }
    return session->notifyWorkloadSpike(cpu, gpu, debugName);
}