blob: eeabc98d8b377cb8023b7758b853582e8d8da667 [file] [log] [blame]
Haoxiang Li0601e852020-06-19 16:41:33 -07001/*
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
22using namespace android::hardware::automotive::sv::V1_0;
23
24namespace android {
25namespace hardware {
26namespace automotive {
27namespace sv {
28namespace V1_0 {
29namespace implementation {
30
31class MockSurroundViewCallback : public ISurroundViewStream {
32public:
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 Lib53ae8d2020-06-28 23:04:10 -070038
39private:
40 android::sp<ISurroundViewSession> mSession;
Haoxiang Li0601e852020-06-19 16:41:33 -070041};
42
43} // namespace implementation
44} // namespace V1_0
45} // namespace sv
46} // namespace automotive
47} // namespace hardware
48} // namespace android