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)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: hsinyi, Assigned: aknow)

References

Details

Attachments

(2 files)

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 ~
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.
(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
Blocks: 1079723
Depends on: 1082476
No longer depends on: 1082476
Attachment #8520487 - Flags: review?(htsai) → review+
Attachment #8520489 - Flags: review?(htsai) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: