1 /*
2  * Copyright 2023 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #pragma once
18 
19 #include <aidl/android/hardware/automotive/evs/BnEvsDisplay.h>
20 #include <aidl/android/hardware/automotive/evs/BufferDesc.h>
21 #include <aidl/android/hardware/automotive/evs/DisplayDesc.h>
22 #include <aidl/android/hardware/automotive/evs/DisplayState.h>
23 
24 namespace android::automotive::evs {
25 
26 namespace aidlevs = ::aidl::android::hardware::automotive::evs;
27 
28 class NoOpEvsDisplay final : public ::aidl::android::hardware::automotive::evs::BnEvsDisplay {
29 public:
30     // Methods from ::aidl::android::hardware::automotive::evs::IEvsDisplay follow.
getDisplayInfo(aidlevs::DisplayDesc *)31     ndk::ScopedAStatus getDisplayInfo(aidlevs::DisplayDesc*) override {
32         return ndk::ScopedAStatus::ok();
33     };
getDisplayState(aidlevs::DisplayState *)34     ndk::ScopedAStatus getDisplayState(aidlevs::DisplayState*) override {
35         return ndk::ScopedAStatus::ok();
36     };
getTargetBuffer(aidlevs::BufferDesc *)37     ndk::ScopedAStatus getTargetBuffer(aidlevs::BufferDesc*) override {
38         return ndk::ScopedAStatus::ok();
39     };
returnTargetBufferForDisplay(const aidlevs::BufferDesc &)40     ndk::ScopedAStatus returnTargetBufferForDisplay(const aidlevs::BufferDesc&) override {
41         return ndk::ScopedAStatus::ok();
42     };
setDisplayState(aidlevs::DisplayState)43     ndk::ScopedAStatus setDisplayState(aidlevs::DisplayState) override {
44         return ndk::ScopedAStatus::ok();
45     };
46 
47     // Implementation details
48     virtual ~NoOpEvsDisplay() override = default;
49 };
50 
51 }  // namespace android::automotive::evs
52