1/* Copyright 2020 Google Inc. All Rights Reserved. */ 2 3package device.google.atv.audio_proxy@5.0; 4 5import IBusDevice; 6 7/** 8 * Main entrance for audio proxy service. Client should use this interface to 9 * register IBusDevice. Service also implements audio HAL IDevicesFactory. When 10 * needed, service will use registered IBusDevice to open output stream. This 11 * allows the client to behave like an audio HAL and read audio from audio 12 * server, if permitted. 13 * 14 * Note, the implementation only supports one version of audio HAL. To avoid 15 * confusion, this interface shares the same version as the supported audio HAL 16 * version. 17 */ 18interface IAudioProxyDevicesManager { 19 /** 20 * Registers IBusDevice at `address`. IBusService impl should live as long 21 * as its process, after registered. 22 * 23 * @param address The address associated with the device. 24 * @param device The audio bus device. 25 * @return success True if the device is registered successfully. 26 */ 27 registerDevice(string address, IBusDevice device) generates (bool success); 28}; 29