• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2022 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 #ifndef android_hardware_automotive_evs_aidl_impl_evshal_include_DefaultEvsHal_H_
18 #define android_hardware_automotive_evs_aidl_impl_evshal_include_DefaultEvsHal_H_
19 
20 #include <aidl/android/hardware/automotive/evs/BnEvsEnumerator.h>
21 
22 namespace aidl::android::hardware::automotive::evs::implementation {
23 
24 class DefaultEvsEnumerator final
25     : public ::aidl::android::hardware::automotive::evs::BnEvsEnumerator {
26     ::ndk::ScopedAStatus isHardware(bool* flag) override;
27     ::ndk::ScopedAStatus openCamera(
28             const std::string& cameraId,
29             const ::aidl::android::hardware::automotive::evs::Stream& streamConfig,
30             std::shared_ptr<::aidl::android::hardware::automotive::evs::IEvsCamera>* obj) override;
31     ::ndk::ScopedAStatus closeCamera(
32             const std::shared_ptr<::aidl::android::hardware::automotive::evs::IEvsCamera>& obj)
33             override;
34     ::ndk::ScopedAStatus getCameraList(
35             std::vector<::aidl::android::hardware::automotive::evs::CameraDesc>* list) override;
36     ::ndk::ScopedAStatus getStreamList(
37             const ::aidl::android::hardware::automotive::evs::CameraDesc& desc,
38             std::vector<::aidl::android::hardware::automotive::evs::Stream>* _aidl_return) override;
39     ::ndk::ScopedAStatus openDisplay(
40             int32_t displayId,
41             std::shared_ptr<::aidl::android::hardware::automotive::evs::IEvsDisplay>* obj) override;
42     ::ndk::ScopedAStatus closeDisplay(
43             const std::shared_ptr<::aidl::android::hardware::automotive::evs::IEvsDisplay>& obj)
44             override;
45     ::ndk::ScopedAStatus getDisplayIdList(std::vector<uint8_t>* list) override;
46     ::ndk::ScopedAStatus getDisplayState(
47             ::aidl::android::hardware::automotive::evs::DisplayState* state) override;
48     ::ndk::ScopedAStatus registerStatusCallback(
49             const std::shared_ptr<
50                     ::aidl::android::hardware::automotive::evs::IEvsEnumeratorStatusCallback>&
51                     callback) override;
52     ::ndk::ScopedAStatus openUltrasonicsArray(
53             const std::string& id,
54             std::shared_ptr<::aidl::android::hardware::automotive::evs::IEvsUltrasonicsArray>* obj)
55             override;
56     ::ndk::ScopedAStatus closeUltrasonicsArray(
57             const std::shared_ptr<::aidl::android::hardware::automotive::evs::IEvsUltrasonicsArray>&
58                     arr) override;
59     ::ndk::ScopedAStatus getUltrasonicsArrayList(
60             std::vector<::aidl::android::hardware::automotive::evs::UltrasonicsArrayDesc>* list)
61             override;
62 };
63 
64 }  // namespace aidl::android::hardware::automotive::evs::implementation
65 
66 #endif  // android_hardware_automotive_evs_aidl_impl_evshal_include_DefaultEvsHal_H_
67