Closed
Bug 1072868
Opened 10 years ago
Closed 10 years ago
[B2G][Telephony] introduce a new interface as proxy between telephony modules and AudioManager
Categories
(Firefox OS Graveyard :: RIL, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: hsinyi, Assigned: aknow)
References
Details
Attachments
(2 files)
1.15 KB,
patch
|
hsinyi
:
review+
|
Details | Diff | Splinter Review |
13.64 KB,
patch
|
hsinyi
:
review+
|
Details | Diff | Splinter Review |
We want to greatly reduce the need to change the telephony-related interfaces as we make other changes to gecko. It would be good if we separate the interfaces that we use towards Telephony modules from those that we use in the rest of gecko.
This bug is for discussing how we could deal with AudioManager queried in Telephony modules.
A possible proposal:
nterface nsITelephonyAudioService : nsISupports
{
/**
* Microphone muted?
*/
attribute boolean microphoneMuted;
/**
* Set the phone's audio mode.
*/
const long PHONE_STATE_INVALID = -2;
const long PHONE_STATE_CURRENT = -1;
const long PHONE_STATE_NORMAL = 0;
const long PHONE_STATE_RINGTONE = 1;
const long PHONE_STATE_IN_CALL = 2;
const long PHONE_STATE_IN_COMMUNICATION = 3;
attribute long phoneState;
/**
* Configure a particular device ("force") to be used for communication.
*/
const long FORCE_NONE = 0; // the default
const long FORCE_SPEAKER = 1;
void setForceForUseCommunication(in long force);
long getForceForUseCommunication();
};
Comments are welcome ~
Reporter | ||
Comment 1•10 years ago
|
||
Hi Aknow,
Would you mind taking care of this? I also think we might need to take bug 1072808 into account when proposing a solution to this. Thank you.
Assignee | ||
Comment 2•10 years ago
|
||
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #1)
> Hi Aknow,
>
> Would you mind taking care of this? I also think we might need to take bug
> 1072808 into account when proposing a solution to this. Thank you.
Sure. Btw, what's the target milestone for this bug.
Assignee: nobody → szchen
Assignee | ||
Comment 3•10 years ago
|
||
Attachment #8520487 -
Flags: review?(htsai)
Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8520489 -
Flags: review?(htsai)
Reporter | ||
Updated•10 years ago
|
Attachment #8520487 -
Flags: review?(htsai) → review+
Reporter | ||
Updated•10 years ago
|
Attachment #8520489 -
Flags: review?(htsai) → review+
Assignee | ||
Comment 5•10 years ago
|
||
Assignee | ||
Comment 6•10 years ago
|
||
Comment 7•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/f8611fe1576a
https://hg.mozilla.org/mozilla-central/rev/b13aee1c3fa2
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•