1/* 2 * Copyright 2017, 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 <ios> 18#include <list> 19 20#include <android-base/logging.h> 21 22#include "Conversion.h" 23#include "OmxStore.h" 24 25namespace android { 26namespace hardware { 27namespace media { 28namespace omx { 29namespace V1_0 { 30namespace implementation { 31 32OmxStore::OmxStore() { 33} 34 35OmxStore::~OmxStore() { 36} 37 38Return<void> OmxStore::listServiceAttributes(listServiceAttributes_cb _hidl_cb) { 39 _hidl_cb(toStatus(NO_ERROR), hidl_vec<ServiceAttribute>()); 40 return Void(); 41} 42 43Return<void> OmxStore::getNodePrefix(getNodePrefix_cb _hidl_cb) { 44 _hidl_cb(hidl_string()); 45 return Void(); 46} 47 48Return<void> OmxStore::listRoles(listRoles_cb _hidl_cb) { 49 _hidl_cb(hidl_vec<RoleInfo>()); 50 return Void(); 51} 52 53Return<sp<IOmx>> OmxStore::getOmx(hidl_string const& omxName) { 54 return IOmx::tryGetService(omxName); 55} 56 57// Methods from ::android::hidl::base::V1_0::IBase follow. 58 59IOmxStore* HIDL_FETCH_IOmxStore(const char* /* name */) { 60 return new OmxStore(); 61} 62 63} // namespace implementation 64} // namespace V1_0 65} // namespace omx 66} // namespace media 67} // namespace hardware 68} // namespace android 69