Closed Bug 794005 Opened 13 years ago Closed 13 years ago

[b2g-bluetooth] Broadcast dialer-related system message

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla18
blocking-basecamp +

People

(Reporter: gyeh, Assigned: gyeh)

References

Details

(Whiteboard: [LOE:S])

Attachments

(1 file, 1 obsolete file)

For the following actions, we have to broadcast system message to dialer app: * Accept an incoming voice call (ATA) * Terminate a call (AT+CHUP) * Place a call to the last number dialed (AT+BLDN) The topic of system message is "bluetooth-dialer-command", and the message will be like {"command":"ATA"}/{"command":"CHUP"}/{"command":"BLDN"}.
Attached patch v1 patch (obsolete) — Splinter Review
Attachment #664410 - Flags: review?(kyle)
Comment on attachment 664410 [details] [diff] [review] v1 patch Review of attachment 664410 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/bluetooth/BluetoothHfpManager.cpp @@ +67,5 @@ > { > + mListener = nullptr; > + if (!mListener->StopListening()) { > + NS_WARNING("Failed to stop listening RIL"); > + } So you set it to null, then you call a function on it... ? ::: dom/bluetooth/BluetoothHfpManager.h @@ +38,4 @@ > int mCurrentVgs; > int mCurrentCallIndex; > int mCurrentCallState; > + BluetoothRilListener *mListener; nsAutoPtr
Attachment #664410 - Flags: review?(kyle) → review-
Attached patch v2 patchSplinter Review
Attachment #664410 - Attachment is obsolete: true
Attachment #665227 - Flags: review?(kyle)
Comment on attachment 665227 [details] [diff] [review] v2 patch Review of attachment 665227 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/bluetooth/BluetoothHfpManager.cpp @@ +55,5 @@ > + if (!mListener->StartListening()) { > + NS_WARNING("Failed to start listening RIL"); > + } > + > + if (!sHfpCommandThread) { Not a blocker, but possibly for a followup: How many things are we going to be running through this thread? Seems like we could probably just create the thread when ringing otherwise.
Attachment #665227 - Flags: review?(kyle) → review+
Status: NEW → RESOLVED
Closed: 13 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: