Closed
Bug 794005
Opened 13 years ago
Closed 13 years ago
[b2g-bluetooth] Broadcast dialer-related system message
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
People
(Reporter: gyeh, Assigned: gyeh)
References
Details
(Whiteboard: [LOE:S])
Attachments
(1 file, 1 obsolete file)
4.99 KB,
patch
|
qdot
:
review+
|
Details | Diff | Splinter Review |
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"}.
Assignee | ||
Comment 1•13 years ago
|
||
Attachment #664410 -
Flags: review?(kyle)
Comment 2•13 years ago
|
||
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-
Assignee | ||
Comment 3•13 years ago
|
||
Attachment #664410 -
Attachment is obsolete: true
Attachment #665227 -
Flags: review?(kyle)
Comment 4•13 years ago
|
||
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+
Comment 6•13 years ago
|
||
Comment 7•13 years ago
|
||
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.
Description
•