Haoxiang Li | 0601e85 | 2020-06-19 16:41:33 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2020 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 <android/hardware/automotive/sv/1.0/ISurroundViewService.h> |
| 20 | #include <android/hardware/automotive/sv/1.0/ISurroundViewStream.h> |
| 21 | |
| 22 | using namespace android::hardware::automotive::sv::V1_0; |
| 23 | |
| 24 | namespace android { |
| 25 | namespace hardware { |
| 26 | namespace automotive { |
| 27 | namespace sv { |
| 28 | namespace V1_0 { |
| 29 | namespace implementation { |
| 30 | |
| 31 | class MockSurroundViewCallback : public ISurroundViewStream { |
| 32 | public: |
| 33 | MockSurroundViewCallback(android::sp<ISurroundViewSession> pSession); |
| 34 | |
| 35 | // Methods from ::android::hardware::automotive::sv::V1_0::ISurroundViewStream. |
| 36 | android::hardware::Return<void> notify(SvEvent svEvent) override; |
| 37 | android::hardware::Return<void> receiveFrames(const SvFramesDesc& svFramesDesc) override; |
Haoxiang Li | b53ae8d | 2020-06-28 23:04:10 -0700 | [diff] [blame] | 38 | |
| 39 | private: |
| 40 | android::sp<ISurroundViewSession> mSession; |
Haoxiang Li | 0601e85 | 2020-06-19 16:41:33 -0700 | [diff] [blame] | 41 | }; |
| 42 | |
| 43 | } // namespace implementation |
| 44 | } // namespace V1_0 |
| 45 | } // namespace sv |
| 46 | } // namespace automotive |
| 47 | } // namespace hardware |
| 48 | } // namespace android |