Mikhail Naganov | e501100 | 2024-01-26 10:57:19 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2024 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 <aidl/android/media/audio/BnHalAdapterVendorExtension.h> |
| 20 | |
| 21 | namespace vendor::audio::parserservice { |
| 22 | |
| 23 | class ParameterParser : public ::aidl::android::media::audio::BnHalAdapterVendorExtension { |
| 24 | public: |
| 25 | ParameterParser() = default; |
| 26 | |
| 27 | private: |
| 28 | ::ndk::ScopedAStatus parseVendorParameterIds( |
| 29 | ::aidl::android::media::audio::IHalAdapterVendorExtension::ParameterScope in_scope, |
| 30 | const std::string& in_rawKeys, std::vector<std::string>* _aidl_return) override; |
| 31 | |
| 32 | ::ndk::ScopedAStatus parseVendorParameters( |
| 33 | ::aidl::android::media::audio::IHalAdapterVendorExtension::ParameterScope in_scope, |
| 34 | const std::string& in_rawKeysAndValues, |
| 35 | std::vector<::aidl::android::hardware::audio::core::VendorParameter>* |
| 36 | out_syncParameters, |
| 37 | std::vector<::aidl::android::hardware::audio::core::VendorParameter>* |
| 38 | out_asyncParameters) override; |
| 39 | |
| 40 | ::ndk::ScopedAStatus parseBluetoothA2dpReconfigureOffload( |
| 41 | const std::string& in_rawValue, |
| 42 | std::vector<::aidl::android::hardware::audio::core::VendorParameter>* _aidl_return) |
| 43 | override; |
| 44 | |
| 45 | ::ndk::ScopedAStatus parseBluetoothLeReconfigureOffload( |
| 46 | const std::string& in_rawValue, |
| 47 | std::vector<::aidl::android::hardware::audio::core::VendorParameter>* _aidl_return) |
| 48 | override; |
| 49 | |
| 50 | ::ndk::ScopedAStatus processVendorParameters( |
| 51 | ::aidl::android::media::audio::IHalAdapterVendorExtension::ParameterScope in_scope, |
| 52 | const std::vector<::aidl::android::hardware::audio::core::VendorParameter>& |
| 53 | in_parameters, |
| 54 | std::string* _aidl_return) override; |
| 55 | }; |
| 56 | |
| 57 | } // namespace vendor::audio::parserservice |