1 // Copyright (C) 2021 The Android Open Source Project 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 #pragma once 16 17 namespace audio_proxy { 18 namespace service { 19 20 enum { 21 ERROR_UNEXPECTED = 1, 22 23 // Error caused by AIDL transactions. It doesn't include client/server logical 24 // failures. 25 ERROR_AIDL_FAILURE = 2, 26 27 // Error caused by HIDL transactions. It doesn't include client/server logical 28 // failures. 29 ERROR_HIDL_FAILURE = 3, 30 31 // The server already has a registered IStreamProvider. 32 ERROR_STREAM_PROVIDER_EXIST = 4, 33 34 // Invalid command line args. 35 ERROR_INVALID_ARGS = 5, 36 }; 37 38 } // namespace service 39 } // namespace audio_proxy