blob: 86598e00ac35fdcf7381cbd5d02f4cd3c1acf4fe [file] [log] [blame]
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -07001/*
2 * Copyright (C) 2018 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 <bufferhub/BufferHubService.h>
18
19namespace android {
20namespace frameworks {
21namespace bufferhub {
22namespace V1_0 {
23namespace implementation {
24
Fan Xuca70b7b2018-10-31 13:20:12 -070025using hardware::Void;
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070026
27Return<void> BufferHubService::allocateBuffer(const HardwareBufferDescription& /*description*/,
Fan Xuca70b7b2018-10-31 13:20:12 -070028 const uint32_t /*userMetadataSize*/,
29 allocateBuffer_cb _hidl_cb) {
30 // TODO(b/118614333): implement buffer allocation
31 _hidl_cb(/*bufferClient=*/nullptr, /*status=*/BufferHubStatus::NO_ERROR);
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070032 return Void();
33}
34
Fan Xuca70b7b2018-10-31 13:20:12 -070035Return<void> BufferHubService::importBuffer(const hidl_handle& /*nativeHandle*/,
36 importBuffer_cb _hidl_cb) {
37 // TODO(b/118614157): implement buffer import
38 _hidl_cb(/*bufferClient=*/nullptr, /*status=*/BufferHubStatus::NO_ERROR);
39 return Void();
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070040}
41
42} // namespace implementation
43} // namespace V1_0
44} // namespace bufferhub
45} // namespace frameworks
46} // namespace android