1df37269852ea92bafd939fe793209d0581c4a574François Gaffie/*
2df37269852ea92bafd939fe793209d0581c4a574François Gaffie * Copyright (C) 2015 The Android Open Source Project
3df37269852ea92bafd939fe793209d0581c4a574François Gaffie *
4df37269852ea92bafd939fe793209d0581c4a574François Gaffie * Licensed under the Apache License, Version 2.0 (the "License");
5df37269852ea92bafd939fe793209d0581c4a574François Gaffie * you may not use this file except in compliance with the License.
6df37269852ea92bafd939fe793209d0581c4a574François Gaffie * You may obtain a copy of the License at
7df37269852ea92bafd939fe793209d0581c4a574François Gaffie *
8df37269852ea92bafd939fe793209d0581c4a574François Gaffie *      http://www.apache.org/licenses/LICENSE-2.0
9df37269852ea92bafd939fe793209d0581c4a574François Gaffie *
10df37269852ea92bafd939fe793209d0581c4a574François Gaffie * Unless required by applicable law or agreed to in writing, software
11df37269852ea92bafd939fe793209d0581c4a574François Gaffie * distributed under the License is distributed on an "AS IS" BASIS,
12df37269852ea92bafd939fe793209d0581c4a574François Gaffie * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13df37269852ea92bafd939fe793209d0581c4a574François Gaffie * See the License for the specific language governing permissions and
14df37269852ea92bafd939fe793209d0581c4a574François Gaffie * limitations under the License.
15df37269852ea92bafd939fe793209d0581c4a574François Gaffie */
16df37269852ea92bafd939fe793209d0581c4a574François Gaffie
17df37269852ea92bafd939fe793209d0581c4a574François Gaffie#pragma once
18df37269852ea92bafd939fe793209d0581c4a574François Gaffie
19df37269852ea92bafd939fe793209d0581c4a574François Gaffie#include <system/audio.h>
20df37269852ea92bafd939fe793209d0581c4a574François Gaffie#include <utils/Errors.h>
21df37269852ea92bafd939fe793209d0581c4a574François Gaffie#include <utils/KeyedVector.h>
22df37269852ea92bafd939fe793209d0581c4a574François Gaffie
23df37269852ea92bafd939fe793209d0581c4a574François Gaffienamespace android {
24df37269852ea92bafd939fe793209d0581c4a574François Gaffie
25df37269852ea92bafd939fe793209d0581c4a574François Gaffieclass SoundTriggerSessionCollection : public DefaultKeyedVector<audio_session_t, audio_io_handle_t>
26df37269852ea92bafd939fe793209d0581c4a574François Gaffie{
27df37269852ea92bafd939fe793209d0581c4a574François Gaffiepublic:
28df37269852ea92bafd939fe793209d0581c4a574François Gaffie    status_t releaseSession(audio_session_t session);
29df37269852ea92bafd939fe793209d0581c4a574François Gaffie
30df37269852ea92bafd939fe793209d0581c4a574François Gaffie    status_t acquireSession(audio_session_t session, audio_io_handle_t ioHandle);
31df37269852ea92bafd939fe793209d0581c4a574François Gaffie};
32df37269852ea92bafd939fe793209d0581c4a574François Gaffie
33df37269852ea92bafd939fe793209d0581c4a574François Gaffie}; // namespace android
34