зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1042691: Asynchronous |BluetoothAvrcpInterface::SetVolume| (under bluetooth2/), r=btian
This commit is contained in:
Родитель
34f4929103
Коммит
a4d154c381
|
@ -1129,14 +1129,20 @@ BluetoothAvrcpInterface::RegisterNotificationRsp(
|
|||
}
|
||||
}
|
||||
|
||||
bt_status_t
|
||||
BluetoothAvrcpInterface::SetVolume(uint8_t aVolume)
|
||||
void
|
||||
BluetoothAvrcpInterface::SetVolume(uint8_t aVolume,
|
||||
BluetoothAvrcpResultHandler* aRes)
|
||||
{
|
||||
#if ANDROID_VERSION >= 19
|
||||
return mInterface->set_volume(aVolume);
|
||||
bt_status_t status = mInterface->set_volume(aVolume);
|
||||
#else
|
||||
return BT_STATUS_UNSUPPORTED;
|
||||
bt_status_t status = BT_STATUS_UNSUPPORTED;
|
||||
#endif
|
||||
|
||||
if (aRes) {
|
||||
DispatchBluetoothAvrcpResult(
|
||||
aRes, &BluetoothAvrcpResultHandler::SetVolume, status);
|
||||
}
|
||||
}
|
||||
#endif // ANDROID_VERSION >= 18
|
||||
|
||||
|
|
|
@ -297,7 +297,7 @@ public:
|
|||
btrc_register_notification_t* aPParam,
|
||||
BluetoothAvrcpResultHandler* aRes);
|
||||
|
||||
bt_status_t SetVolume(uint8_t aVolume);
|
||||
void SetVolume(uint8_t aVolume, BluetoothAvrcpResultHandler* aRes);
|
||||
|
||||
protected:
|
||||
BluetoothAvrcpInterface(const btrc_interface_t* aInterface);
|
||||
|
|
Загрузка…
Ссылка в новой задаче