• 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 // TODO(b/203661081): Remove below lines to disable compiler warnings.
18 #pragma clang diagnostic push
19 #pragma clang diagnostic ignored "-Wunused-parameter"
20 
21 #define LOG_TAG "DefaultEvsEnumerator"
22 
23 #include <DefaultEvsEnumerator.h>
24 
25 namespace aidl::android::hardware::automotive::evs::implementation {
26 
27 using ::ndk::ScopedAStatus;
28 
isHardware(bool * flag)29 ScopedAStatus DefaultEvsEnumerator::isHardware(bool* flag) {
30     // This returns true always.
31     *flag = true;
32     return ScopedAStatus::ok();
33 }
34 
openCamera(const std::string & cameraId,const Stream & streamConfig,std::shared_ptr<IEvsCamera> * obj)35 ScopedAStatus DefaultEvsEnumerator::openCamera(const std::string& cameraId,
36                                                const Stream& streamConfig,
37                                                std::shared_ptr<IEvsCamera>* obj) {
38     return ScopedAStatus::ok();
39 }
40 
closeCamera(const std::shared_ptr<IEvsCamera> & obj)41 ScopedAStatus DefaultEvsEnumerator::closeCamera(const std::shared_ptr<IEvsCamera>& obj) {
42     return ScopedAStatus::ok();
43 }
44 
getCameraList(std::vector<CameraDesc> * list)45 ScopedAStatus DefaultEvsEnumerator::getCameraList(std::vector<CameraDesc>* list) {
46     return ScopedAStatus::ok();
47 }
48 
getStreamList(const CameraDesc & desc,std::vector<Stream> * _aidl_return)49 ScopedAStatus DefaultEvsEnumerator::getStreamList(const CameraDesc& desc,
50                                                   std::vector<Stream>* _aidl_return) {
51     return ScopedAStatus::ok();
52 }
53 
openDisplay(int32_t displayId,std::shared_ptr<IEvsDisplay> * obj)54 ScopedAStatus DefaultEvsEnumerator::openDisplay(int32_t displayId,
55                                                 std::shared_ptr<IEvsDisplay>* obj) {
56     return ScopedAStatus::ok();
57 }
58 
closeDisplay(const std::shared_ptr<IEvsDisplay> & state)59 ScopedAStatus DefaultEvsEnumerator::closeDisplay(const std::shared_ptr<IEvsDisplay>& state) {
60     return ScopedAStatus::ok();
61 }
62 
getDisplayIdList(std::vector<uint8_t> * list)63 ScopedAStatus DefaultEvsEnumerator::getDisplayIdList(std::vector<uint8_t>* list) {
64     return ScopedAStatus::ok();
65 }
66 
getDisplayState(DisplayState * state)67 ScopedAStatus DefaultEvsEnumerator::getDisplayState(DisplayState* state) {
68     return ScopedAStatus::ok();
69 }
70 
registerStatusCallback(const std::shared_ptr<IEvsEnumeratorStatusCallback> & callback)71 ScopedAStatus DefaultEvsEnumerator::registerStatusCallback(
72         const std::shared_ptr<IEvsEnumeratorStatusCallback>& callback) {
73     return ScopedAStatus::ok();
74 }
75 
openUltrasonicsArray(const std::string & id,std::shared_ptr<IEvsUltrasonicsArray> * obj)76 ScopedAStatus DefaultEvsEnumerator::openUltrasonicsArray(
77         const std::string& id, std::shared_ptr<IEvsUltrasonicsArray>* obj) {
78     return ScopedAStatus::ok();
79 }
80 
closeUltrasonicsArray(const std::shared_ptr<IEvsUltrasonicsArray> & obj)81 ScopedAStatus DefaultEvsEnumerator::closeUltrasonicsArray(
82         const std::shared_ptr<IEvsUltrasonicsArray>& obj) {
83     return ScopedAStatus::ok();
84 }
85 
getUltrasonicsArrayList(std::vector<UltrasonicsArrayDesc> * list)86 ScopedAStatus DefaultEvsEnumerator::getUltrasonicsArrayList(
87         std::vector<UltrasonicsArrayDesc>* list) {
88     return ScopedAStatus::ok();
89 }
90 
91 }  // namespace aidl::android::hardware::automotive::evs::implementation
92 
93 #pragma clang diagnostic pop
94