blob: d7f5bc3e46d7e28c983699fcdc0e1e9c13041bd9 [file] [log] [blame]
/*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#include <aidl/com/google/hardware/pixel/display/BnDisplay.h>
#include <hwc_session.h>
namespace aidl {
namespace com {
namespace google {
namespace hardware {
namespace pixel {
namespace display {
using sdm::HWCSession;
// Default implementation
class Display : public BnDisplay {
public:
Display(HWCSession *hwc_session);
ndk::ScopedAStatus isHbmSupported(bool *_aidl_return) override;
ndk::ScopedAStatus setHbmState(HbmState state) override;
ndk::ScopedAStatus getHbmState(HbmState *_aidl_return) override;
ndk::ScopedAStatus isLbeSupported(bool *_aidl_return) override;
ndk::ScopedAStatus setLbeState(LbeState state) override;
ndk::ScopedAStatus setLbeAmbientLight(int ambientLux) override;
ndk::ScopedAStatus getLbeState(LbeState *_aidl_return) override;
private:
HWCSession *mHWCSession = nullptr;
};
} // namespace display
} // namespace pixel
} // namespace hardware
} // namespace google
} // namespace com
} // namespace aidl