зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1207649: Convert Bluetooth AVRCP backend to |BluetoothAddress|, r=shuang
This patch converts all methods in Bluetooth's AVRCP interface to |BluetoothAddress|.
This commit is contained in:
Родитель
06468d6f08
Коммит
0d139b5990
|
@ -797,7 +797,7 @@ BluetoothAvrcpManager::RegisterNotificationNotification(
|
|||
*/
|
||||
void
|
||||
BluetoothAvrcpManager::RemoteFeatureNotification(
|
||||
const nsAString& aBdAddr, unsigned long aFeatures)
|
||||
const BluetoothAddress& aBdAddr, unsigned long aFeatures)
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
||||
|
@ -809,7 +809,7 @@ BluetoothAvrcpManager::RemoteFeatureNotification(
|
|||
*/
|
||||
void
|
||||
BluetoothAvrcpManager::VolumeChangeNotification(uint8_t aVolume,
|
||||
uint8_t aCType)
|
||||
uint8_t aCType)
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
||||
|
|
|
@ -101,7 +101,7 @@ private:
|
|||
BluetoothAvrcpEvent aEvent, uint32_t aParam) override;
|
||||
|
||||
void RemoteFeatureNotification(
|
||||
const nsAString& aBdAddr, unsigned long aFeatures) override;
|
||||
const BluetoothAddress& aBdAddr, unsigned long aFeatures) override;
|
||||
|
||||
void VolumeChangeNotification(uint8_t aVolume, uint8_t aCType) override;
|
||||
|
||||
|
|
|
@ -483,13 +483,12 @@ public:
|
|||
{ }
|
||||
|
||||
nsresult
|
||||
operator () (nsString& aArg1, unsigned long& aArg2) const
|
||||
operator () (BluetoothAddress& aArg1, unsigned long& aArg2) const
|
||||
{
|
||||
DaemonSocketPDU& pdu = GetPDU();
|
||||
|
||||
/* Read address */
|
||||
nsresult rv = UnpackPDU(
|
||||
pdu, UnpackConversion<BluetoothAddress, nsAString>(aArg1));
|
||||
nsresult rv = UnpackPDU(pdu, aArg1);
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
|
|
|
@ -189,8 +189,9 @@ protected:
|
|||
class NotificationHandlerWrapper;
|
||||
|
||||
typedef mozilla::ipc::DaemonNotificationRunnable2<
|
||||
NotificationHandlerWrapper, void, nsString, unsigned long,
|
||||
const nsAString&>
|
||||
NotificationHandlerWrapper, void,
|
||||
BluetoothAddress, unsigned long,
|
||||
const BluetoothAddress&>
|
||||
RemoteFeatureNotification;
|
||||
|
||||
typedef mozilla::ipc::DaemonNotificationRunnable0<
|
||||
|
|
|
@ -378,7 +378,7 @@ BluetoothAvrcpNotificationHandler::RegisterNotificationNotification(
|
|||
|
||||
void
|
||||
BluetoothAvrcpNotificationHandler::RemoteFeatureNotification(
|
||||
const nsAString& aBdAddr, unsigned long aFeatures)
|
||||
const BluetoothAddress& aBdAddr, unsigned long aFeatures)
|
||||
{ }
|
||||
|
||||
void
|
||||
|
|
|
@ -362,7 +362,7 @@ public:
|
|||
uint32_t aParam);
|
||||
|
||||
virtual void
|
||||
RemoteFeatureNotification(const nsAString& aBdAddr,
|
||||
RemoteFeatureNotification(const BluetoothAddress& aBdAddr,
|
||||
unsigned long aFeatures);
|
||||
|
||||
virtual void
|
||||
|
|
Загрузка…
Ссылка в новой задаче