blob: 388b7fff3f74f6e3ccce8d88ae6a4d81857f8ec5 [file] [log] [blame]
Hanumant Singh4abaf5d2019-09-20 20:03:18 -07001/*
2 * Copyright 2019 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#include "FakeRunner.h"
18
19namespace android {
20namespace automotive {
21namespace computepipe {
22namespace tests {
23
Hanumant Singh2d5d2952019-12-17 14:34:15 -080024using namespace aidl::android::automotive::computepipe::runner;
Hanumant Singh9c481cf2019-11-08 22:18:52 -080025
Hanumant Singh4abaf5d2019-09-20 20:03:18 -070026// Methods from ::android::automotive::computepipe::runner::V1_0::IFakeRunnerV1_0 follow.
Hanumant Singh2d5d2952019-12-17 14:34:15 -080027
28::ndk::ScopedAStatus FakeRunner::init(
29 const std::shared_ptr<
30 ::aidl::android::automotive::computepipe::runner::IPipeStateCallback>& /* in_statecb */) {
31 return ndk::ScopedAStatus::ok();
Hanumant Singh229ce512019-12-09 12:35:09 -080032}
33
Hanumant Singh2d5d2952019-12-17 14:34:15 -080034::ndk::ScopedAStatus FakeRunner::getPipeDescriptor(
35 ::aidl::android::automotive::computepipe::runner::PipeDescriptor* desc) {
36 *desc = mDesc;
37 return ndk::ScopedAStatus::ok();
38}
39::ndk::ScopedAStatus FakeRunner::setPipeInputSource(int32_t /*in_configId*/) {
40 ::ndk::ScopedAStatus _aidl_status;
41 _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION));
42 return _aidl_status;
43}
44::ndk::ScopedAStatus FakeRunner::setPipeOffloadOptions(int32_t /*in_configId*/) {
45 ::ndk::ScopedAStatus _aidl_status;
46 _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION));
47 return _aidl_status;
48}
49::ndk::ScopedAStatus FakeRunner::setPipeTermination(int32_t /*in_configId*/) {
50 ::ndk::ScopedAStatus _aidl_status;
51 _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION));
52 return _aidl_status;
Hanumant Singh4abaf5d2019-09-20 20:03:18 -070053}
54
Hanumant Singh2d5d2952019-12-17 14:34:15 -080055::ndk::ScopedAStatus FakeRunner::setPipeOutputConfig(
56 int32_t /*in_configId*/, int32_t /*in_maxInFlightCount*/,
57 const std::shared_ptr<
58 ::aidl::android::automotive::computepipe::runner::IPipeStream>& /*in_handler*/) {
59 ::ndk::ScopedAStatus _aidl_status;
60 _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION));
61 return _aidl_status;
Hanumant Singh4abaf5d2019-09-20 20:03:18 -070062}
Hanumant Singh2d5d2952019-12-17 14:34:15 -080063::ndk::ScopedAStatus FakeRunner::applyPipeConfigs() {
64 ::ndk::ScopedAStatus _aidl_status;
65 _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION));
66 return _aidl_status;
Hanumant Singh4abaf5d2019-09-20 20:03:18 -070067}
Kathan Shukla624a1b82020-01-13 12:53:21 -080068
69::ndk::ScopedAStatus FakeRunner::resetPipeConfigs() {
70 ::ndk::ScopedAStatus _aidl_status;
71 _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION));
72 return _aidl_status;
73}
74
Hanumant Singh2d5d2952019-12-17 14:34:15 -080075::ndk::ScopedAStatus FakeRunner::startPipe() {
76 ::ndk::ScopedAStatus _aidl_status;
77 _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION));
78 return _aidl_status;
Hanumant Singh4abaf5d2019-09-20 20:03:18 -070079}
Hanumant Singh2d5d2952019-12-17 14:34:15 -080080::ndk::ScopedAStatus FakeRunner::stopPipe() {
81 ::ndk::ScopedAStatus _aidl_status;
82 _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION));
83 return _aidl_status;
Hanumant Singh4abaf5d2019-09-20 20:03:18 -070084}
Yogeshwar Nagaraj62056322020-01-27 10:27:33 -080085::ndk::ScopedAStatus FakeRunner::doneWithPacket(int32_t /*in_bufferId*/, int32_t /*in_streamId*/) {
Hanumant Singh2d5d2952019-12-17 14:34:15 -080086 ::ndk::ScopedAStatus _aidl_status;
87 _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION));
88 return _aidl_status;
Hanumant Singh4abaf5d2019-09-20 20:03:18 -070089}
Hanumant Singh2d5d2952019-12-17 14:34:15 -080090::ndk::ScopedAStatus FakeRunner::getPipeDebugger(
91 std::shared_ptr<::aidl::android::automotive::computepipe::runner::IPipeDebugger>* /*_aidl_return*/) {
92 ::ndk::ScopedAStatus _aidl_status;
93 _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION));
94 return _aidl_status;
Hanumant Singh4abaf5d2019-09-20 20:03:18 -070095}
Hanumant Singh2d5d2952019-12-17 14:34:15 -080096::ndk::ScopedAStatus FakeRunner::releaseRunner() {
97 ::ndk::ScopedAStatus _aidl_status;
98 _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION));
99 return _aidl_status;
Hanumant Singh4abaf5d2019-09-20 20:03:18 -0700100}
Hanumant Singh4abaf5d2019-09-20 20:03:18 -0700101} // namespace tests
102} // namespace computepipe
103} // namespace automotive
104} // namespace android