From f28caa33d1680c9ad71a505c6379c55dddb103dd Mon Sep 17 00:00:00 2001 From: Jessica Jong Date: Wed, 30 Oct 2013 12:03:25 +0800 Subject: [PATCH] Bug 818353 - Part 3: DOM changes - use default client id (0) in BT. r=gyeh --- dom/bluetooth/BluetoothHfpManager.cpp | 6 ++++-- dom/bluetooth/BluetoothRilListener.cpp | 12 ++++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/dom/bluetooth/BluetoothHfpManager.cpp b/dom/bluetooth/BluetoothHfpManager.cpp index 5f3a61e061e..43e90171060 100644 --- a/dom/bluetooth/BluetoothHfpManager.cpp +++ b/dom/bluetooth/BluetoothHfpManager.cpp @@ -593,7 +593,8 @@ BluetoothHfpManager::HandleVoiceConnectionChanged() NS_ENSURE_TRUE_VOID(connection); nsCOMPtr voiceInfo; - connection->GetVoiceConnectionInfo(getter_AddRefs(voiceInfo)); + // TODO: Bug 921991 - B2G BT: support multiple sim cards + connection->GetVoiceConnectionInfo(0, getter_AddRefs(voiceInfo)); NS_ENSURE_TRUE_VOID(voiceInfo); nsString type; @@ -629,7 +630,8 @@ BluetoothHfpManager::HandleVoiceConnectionChanged() * - manual: set mNetworkSelectionMode to 1 (manual) */ nsString mode; - connection->GetNetworkSelectionMode(mode); + // TODO: Bug 921991 - B2G BT: support multiple sim cards + connection->GetNetworkSelectionMode(0, mode); if (mode.EqualsLiteral("manual")) { mNetworkSelectionMode = 1; } else { diff --git a/dom/bluetooth/BluetoothRilListener.cpp b/dom/bluetooth/BluetoothRilListener.cpp index 5de926fbde4..71d73180894 100644 --- a/dom/bluetooth/BluetoothRilListener.cpp +++ b/dom/bluetooth/BluetoothRilListener.cpp @@ -125,6 +125,12 @@ MobileConnectionListener::NotifyOtaStatusChanged(const nsAString & status) return NS_OK; } +NS_IMETHODIMP +MobileConnectionListener::NotifyIccChanged() +{ + return NS_OK; +} + /** * TelephonyListener Implementation */ @@ -292,8 +298,9 @@ BluetoothRilListener::StartMobileConnectionListening() do_GetService(NS_RILCONTENTHELPER_CONTRACTID); NS_ENSURE_TRUE(provider, false); + // TODO: Bug 921991 - B2G BT: support multiple sim cards nsresult rv = provider-> - RegisterMobileConnectionMsg(mMobileConnectionListener); + RegisterMobileConnectionMsg(0, mMobileConnectionListener); return NS_SUCCEEDED(rv); } @@ -304,8 +311,9 @@ BluetoothRilListener::StopMobileConnectionListening() do_GetService(NS_RILCONTENTHELPER_CONTRACTID); NS_ENSURE_TRUE(provider, false); + // TODO: Bug 921991 - B2G BT: support multiple sim cards nsresult rv = provider-> - UnregisterMobileConnectionMsg(mMobileConnectionListener); + UnregisterMobileConnectionMsg(0, mMobileConnectionListener); return NS_SUCCEEDED(rv); }