History log of /packages/apps/InCallUI/src/com/android/incallui/AudioModeProvider.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
737f56760b617688aac7218021a5e615ed750810 13-Nov-2014 Ihab Awad <ihab@google.com> Telecom API updates (3/6)

Bug: 18292176
Change-Id: I5bcb1838a8423f15ebdf87c945ca91da460506f4
/packages/apps/InCallUI/src/com/android/incallui/AudioModeProvider.java
6cddf46812634fadc194830774110780f14e9462 13-Sep-2014 Tyler Gunn <tgunn@google.com> Renaming Telecomm to Telecom.

- Changing package from android.telecomm to android.telecom
- Changing package from com.android.telecomm to
com.android.server.telecomm.
- Renaming TelecommManager to TelecomManager.

Bug: 17364651
Change-Id: Ie5ae18f51baa5da2eb9793785ad0c9d83b6343d1
/packages/apps/InCallUI/src/com/android/incallui/AudioModeProvider.java
43f3e6e0760ea774e479935733d8a30b724457cd 08-Aug-2014 Ihab Awad <ihab@google.com> Final structural tweaks to Telecomm API (3/8)

Bug: 16416927
Bug: 16494880
Change-Id: If756941a5bdd25ff8ac633a56fe90c894d4a46a4
/packages/apps/InCallUI/src/com/android/incallui/AudioModeProvider.java
4ed8d8d7d2c6766e3712a407551f79322e544aa8 06-Aug-2014 Santos Cordon <santoscordon@google.com> Remove hardcoded audio route in video provider.

The video provider always calls exitVideo() and as a result always sets
the audio mode to EARPIECE when any call starts, negating any automatic
setting done by telecomm (like bluetooth).

This change has three items:
1. Only set the audio mode if we are exiting a previously entered video
call.
2. When setting audio on exit, set it to the mode that was previously
saved when the video call was entered.
3. Convert usages of the private AudioMode to the public CallStateAudio.

Change-Id: I484ea8fadc9b7cf43692b517c97f906918fc49f8
/packages/apps/InCallUI/src/com/android/incallui/AudioModeProvider.java
df06e232852a93d8238f3cacaab4d704de7e1216 12-Jul-2014 Ihab Awad <ihab@google.com> Implement new In-Call Service interface

Change-Id: Ic1eb6fc98e7f030885596c9c40f0ed4f0e34e28b
(cherry picked from commit c90543e6ef64b16b4c1bb240494152bc513f1e36)
/packages/apps/InCallUI/src/com/android/incallui/AudioModeProvider.java
55e998472730cae27a82eed49cf7b020699b9286 19-Oct-2013 Christine Chen <christinech@google.com> Removing private dependencies in InCallUi

- This CL addresses most of the private API calls in InCallUi.
- This CL removed Android.mk as we are not building InCallUi.apk
separately anymore. Changes to make an unbundled app will go into
Dialer, GoogleDialer, and Contacts apps' makefiles.
- Separated CLs will add libphonenumber, libgeocoding, and util classes
for TelephonyManager and PhoneNumberUtils.
- The only thing left for InCallUi is to unbundle ProximitySensor.
Currently PowerManager's functions to deal with the proximity sensor
are all private. It will take a rather substaintial amount of work to
implement the proximity sensor functions ourselves (read proximity
sensor event values, ask the screen to turn on, etc.). So we should
rather push to get those functions into the public API.

Change-Id: I18b3c52adb41c6131c1eb3c07ce32ebd56d0cc59
/packages/apps/InCallUI/src/com/android/incallui/AudioModeProvider.java
b0d08a16da088e01f416f52a7b74ee9630c1493a 05-Sep-2013 Santos Cordon <santoscordon@google.com> Improve lifecycle ordering for InCallUI

This CL rearranges startup and teardown of InCallUI to reduce the number
of race conditions resulting in runtime exceptions and app crashes.

At a high level this CL fixes the following:
- TeleService should be able to unbind and rebind at any time without
causing problems in the UI. (Fixes to InCallPresenter)
- On weird occasions we were seeing secondary UIs pop up if we
rebound while the older UI was still up and one of the UIs would be
orphaned on the foreground.
- call notifications can be sent during (1) activity startup, (2)
activity lifetime, (3) activity destruction, (4) no activity...and
nothing should crash.
- Lots of crashes when notifications came during destruction and
startup. (Fixed setup in InCallActivity + presenters, and
startup/teardown ordering in InCallPresenter)

Details:
(1) InCallPresenter handed out instances of member classes to the UI
classes, but upon unbinding and rebinding, the classes were
recreated. This meant that the activity which was potentially still up
had stale versions of AudioModeProvider and ProximitySensor.
- Classes created/used by CallHandlerService are now singletons so that
they do not change from one bind to the other. If the service tries
to initialize InCallPresenter while the activity is still up (and so
we haven't yet torn down) we reuse the reuse the previous
initialization since there is no need to recreate them, and classes
in the Activity dont ever become stale.
(2) We were recreating new copies of InCallActivity on updates that
occur while tearing down the previous activity. This caused weird
errors where second emptier activities were up after all calls ended.
- Solution to this was to ignore all updates while we are finishing the
activity. When the activity is finally finished, we check if we
should bring up a new activity in case some update came while we were
finishing.
(3) We set listeners on presenters from a parent class that wasn't aware
of UI transitions.
- All Presenters are not responsible for setting and unsetting their
listeners. This allows them to unset them before their UI goes away.

+ renamed HIDDEN to NO_CALLS as hidden was confusing to developers
which associated the term with foreground/backgroundness of the app.
+ Improved some logging

bug:10573125

Change-Id: I2d1af6a6e972b3b3bd93af839054e879f0b74b4f
/packages/apps/InCallUI/src/com/android/incallui/AudioModeProvider.java
e08284ea58e98666e6f1b45734d9901de91c2bb4 03-Sep-2013 Yorke Lee <yorkelee@google.com> Automatically unmute call if user decides not to add call

Bug: 10446594
Change-Id: If48fbbebc89b5b48641af3093a0f6547bddcaeea
/packages/apps/InCallUI/src/com/android/incallui/AudioModeProvider.java
3e69e4fe0e6dbce738cc6b3f9a71fc177e9fe1b6 29-Aug-2013 Santos Cordon <santoscordon@google.com> Support visual indication of mute from headset

This change uses new binder api changes to bring down mute status from
TeleService. mute state routed through AudioModeProvider.

bug:10395427
Change-Id: Ie15efcc780e99072363188de2a954a1888eec9dd
/packages/apps/InCallUI/src/com/android/incallui/AudioModeProvider.java
9de3d7c5188c02cabf03799f87d494ee7dc702cb 09-Aug-2013 Santos Cordon <santoscordon@google.com> Singletons are hard, lets go chopping...them out of the code.

After this change, there remains only one singleton (InCallPresenter).
The whole system needs to be reworked in a better manner in terms of
build up and tear down.

Change-Id: I393ec648526bc28a3ae709004aed6d4627670549
/packages/apps/InCallUI/src/com/android/incallui/AudioModeProvider.java
dab149c9b2185be82cbca63cc3980e41444900c0 07-Aug-2013 Santos Cordon <santoscordon@google.com> Audio Routing support in UI

Changes:
- AudioModeProvider - receives audio mode changes from
CallHandlerService
- CallButtonPresenter listens to AudioModeProvider so that it can use
those changes in the UI.
- CallButtonFragment uses the audio mode from Presenter() to display:
- The correct layers for the supported modes
- The popup menu when bluetooth is enabled

Change-Id: I8ec4024f7bbb5e3b1cfdaae20a4dd2f85ae802cf
/packages/apps/InCallUI/src/com/android/incallui/AudioModeProvider.java