summaryrefslogtreecommitdiff
path: root/InCallUI/src/com/android/incallui/CallButtonFragment.java
AgeCommit message (Collapse)Author
2014-12-18Add haptic vibration feedback on in-call buttons.Santos Cordon
For buttons which appear an first-class actions in the in-call screen, add haptic feedback. This feedback ignores the system settings, meaning that it vibrates when buttons are touched regardless of the system settings for vibrating on keypress. Bug: 18388068 Change-Id: Ifadc973af9bcdfdfdc9d51b1c927b08d93714a58
2014-11-11Bring ripples back to InCallUI.Nancy Chen
With the color-change for MSIM, the ripples disappeared from the InCallUI buttons. This change adds them back. Bug: 18332863 Change-Id: Ic6125df06d0d2f3f2323fc2c422ccf075ff2df84
2014-11-07Grey out merge button after it is clicked.Andrew Lee
Bug: 18230928 Change-Id: I5be1ab8cb759aa7afe1e937f7b3223ed3d6dcac2
2014-10-29In Multi-SIM cases use the color of the SIM icon for InCallUI.Nancy Chen
Set the color of the InCallUI to be the color of the SIM icon. In the single SIM case, the background should be the default background. * Added id to all call button backgrounds for color change * Initialize color onResume for InCallActivity * CallCardFragment/CallButtonFragment/DialpadFragment update their colors * Added InCallUIMaterialColorMapUtils to extract color Bug: 17971273 Change-Id: Ia247b153b57ffc8a5277d521c433ab0be6696cf6
2014-10-17Disable video upgrade if call is on hold.Andrew Lee
Bug: 16681502 Change-Id: Icce3f50d1204fd7466e3853dba7d05acef0135ec
2014-09-12Renaming Telecomm to Telecom.Tyler Gunn
- 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
2014-09-05Support CDMA conference calling.Santos Cordon
Bug:17316859 Change from using GENERIC_CONFERENCE to a better MANAGE_CONFERENCE. Change-Id: I0306aaa5cf4d35bf095d85db63b3d08395394645
2014-09-03Show swap button if there is active and background call.Andrew Lee
Bug: 17316508 Change-Id: I47766556d083fdfc8961664af2523e61783ed46e
2014-08-22Move "manage conference calls" button above photo.Andrew Lee
- Remove it from the CallButtonFragment. This meant that related logic was removed from CallButtonFragment/Presenter, and similar logic was added to the CallCardFragment/Presenter. - Delete old groups icons. (new ones added in ContactsCommon) - Delete the extra_button_row logic. + Replace extra_button_row with a dedicated "manage conference calls" button, and added to call card content layouts. + Style the new button to be similar to the secondary call info. Bug: 15862303 Change-Id: I2b4e1a3a30422c7d5e9c01479f13291a785d85f3
2014-08-22Merge "Remove generic call merge button." into lmp-devAndrew Lee
2014-08-22Remove generic call merge button.Andrew Lee
We now use the same button component for merge. Formerly, it seems that it was included in the "extra button row" to accomodate the add and merge options both showing at the same time. Now, we handle this as an additional scenario for the overflow menu button. This is prework in order to be able to delete the extra button row, and add a different "row" for the conferece call manager. Bug: 15862303 Change-Id: I278ea17291d8daf3c5201116a10e3641b5deb4e1
2014-08-22Ensuring Video APIs are only called when video is available.Tyler Gunn
Bug: 17179079 Change-Id: I3b327250c181f821ec37d574ae804f8003d04603
2014-08-20Add accessibility announcements for call state changesYorke Lee
* Add new accessibility-related strings * Create and send accessibility events as necessary when a button's state changes Bug: 17147682 Bug: 17144849 Bug: 17161247 Change-Id: Ib1637993c644c4f159e850bdb9d54e0f00d3a68e
2014-08-13Final structural tweaks to Telecomm API (3/8)Ihab Awad
Bug: 16416927 Bug: 16494880 Change-Id: If756941a5bdd25ff8ac633a56fe90c894d4a46a4
2014-08-06Merge "Remove hardcoded audio route in video provider." into lmp-devSantos Cordon
2014-08-05Remove hardcoded audio route in video provider.Santos Cordon
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
2014-08-06Add setConferenceable() API from ConnectionService to incall. (3/4)Santos Cordon
Change-Id: I64fdca08d35f893d755e3b154543a261b1418343
2014-07-29Various changes.Tyler Gunn
1. Add InCallCameraManager to track active camera and manage camera capabilities. 2. Use new camera manager in CallButtonPresenter instead of directly accessing camera. 3. Implemented new camera setup flow between incall and telephony. 4. Landscape video call support (actively rotating while video is running crashes InCall at the moment, but you can start it in portrait or landscape fine). Includes ensuring layout works properly with RTL locales. 5. Added progress spinner to CallCardFragment, useful to show when an upgrade to video is pending. Bug: 16012946 Change-Id: Iff33422eec3a92d8cbeb217f5be2f1c9c5f3e98d
2014-07-21Implement InCall overflow button.Andrew Lee
- If there are more than 5 items (for a specifically identified case) collapse extra menu items into an overflow menu. - Construct/update menu, with appropriate click/dismiss listeners. This will happen every time something with the call buttons is updated, but I thought it was better to continue to track state in the presenter, rather than the fragment. - Add strings for associated menu items. Change-Id: Iaa036de3ed1c9abf16605181590d7241896c941d
2014-07-21Implement new video-call-related buttons.Andrew Lee
- Implemented downgrade/upgrade, switch camera, pause camear. - Implemented code to find front/back-facing cameraIds. - Also, cleaned up listener logic in CallButtonFragment to be more consistent. Bug: 16014280 Change-Id: I267a73943dc768900b663bb4db6ec52f4a35cac5
2014-07-21Fix white text in audio mode popup (1/2)Yorke Lee
Bug: 15643498 Change-Id: I3d9205eb99b42b95e6a05d07039995277f8e29c6
2014-07-18Show correct call buttons depending on voice/video call.Andrew Lee
Behaviors to be implemented in separate changelist. Renamed some of the methods to reference buttons, and rearranged the order in which buttons are listed and dealt with to be more consistent with the order in the layout. Bug: 16014280 Change-Id: I40a9137d222daf6959a869c11e6ac763baa61788
2014-07-16Delete auxiliary action button in call button fragment.Andrew Lee
Bug:16014280 Change-Id: I28546c95fda0174a4e50a2efd321982d00c4e86f
2014-06-09Updating Dialpad animation in InCallUI.Sai Cheemalapati
Dialpad now saves orientation state. Animation now matches duration and direction in Dialtacts. Bug: 15386162 Change-Id: I6b8f23147c9be956d16c758a6a51a9fa3bb47ec6
2014-05-22Remove dual-state icons for call buttons.Andrew Lee
Per discussion with design, it'll be simpler to just have one icon which does not toggle/change on state (besides color accent). Bug: 15165717 Change-Id: I2856c403b549e734e8f6c55b5be65f9a337730d6
2014-05-14resolved conflicts for merge of 500e399c to masterEvan Charlton
Change-Id: I7cc16e713bb142450c7689942097110bde404b54
2014-05-14resolved conflicts for merge of 36b5e5f9 to masterEvan Charlton
Change-Id: I66befab929f19a53e3466f55f78c99f9afda047e
2014-05-09Change tints, backgrounds on incoming call icons.Andrew Lee
- Also tweaked icon tints for the InCall buttons, to make them less prominent in the disabled state. - Strengthened the logic around setting the audio button's enabled state in the call button fragment. Before, updateAudioButtons() was setting the audio button to be enabled after setEnabled(false) was called on the fragment, causing it to be set to disabled notably later than the other buttons. Bug: 14658215 Change-Id: I68145fcc7420713e492e96b6c6a636fad9047ed1
2014-05-09Change toolbar icons in the InCallUI.Andrew Lee
Also, some slight fixes on the "add call" button so that it's ripple is properly constrained to the circle, and so that the mute button is not toggled when mute has automatically been invoked. Bug: 14108639 Change-Id: I1a23111a212a1f7f86ffde734b195f0bd9350741
2014-05-07Change selected/unselected states of buttons.Andrew Lee
- Add touch feedback (w00t). - Adjust button heights/positions to spec. - Add drawables for the different button states (no longer tabs). - Remove vertical spacers (interfered with touch feedback). Change-Id: I383ca898c8d2fcfc8c34021efc62cb03adbde1c1
2014-05-01Consolidate buttons to use more common drawables.Andrew Lee
- Work is to facilitate styling selected button states to QP spec. - Change buttons to use btn_compound_background instead of the _fake_ version. - Deleted now-unused assets. - Changed btn_compound_background to use common action tab drawables. - Switched the dialpad button from a ToggleButton into an ImageButton, so that all the call buttons can use the same background. Technically, ToggleButton is more precise, but ImageButton is sufficient for behavior, and allows me to switch the state casing in the drawable to use state_selected instead of state_checked. Bug: 14108639 Change-Id: If6ebf05e51648a09307bf37926efb3670f55ba55
2014-04-23Relocate EndCallButton and CallButtonFragment.Andrew Lee
This is an incremental checkin. - Split out EndCallButton from CallButtonFragment into CallCardFragment, and update the presenter to handle end call clicks. - Move CallButtonFragment and EndCallButton into the container for the primary call info. - Rearranged the layouts of the call_card and primary_call_info to accomodate the new locations of these buttons. - Temporarily attached a linear layout around the InCallUI dialpad so that it doesn't render full-screen. That is the immediate followup work to this.. Bug: 14108639 Change-Id: Ie0e2afae109aed4bc7c75de67c70698c92962760
2014-02-18Revert "Add handoff buttons"Sailesh Nepal
This reverts commit 36b5e5f96678bafc325491d5294b2d97e0a0e499.
2014-02-11Add video handoff button to InCallUISailesh Nepal
This CL adds a video handoff button to the InCallUI. The actual functionality will be implemented in t Google Dialer using the AuxiliaryActionService binding. Bug: 10929230 Change-Id: Ie44aef5160be388ec19b5239d71faa7297080c6e
2013-12-17Add handoff buttonsSailesh Nepal
This CL adds two buttons to the in call UI: - video handoff - switch to video mode - connection handoff - switch between wifi and cell Change-Id: I42a36d22dc0a37d1ed00f1a3ab1ebcb53c35864c
2013-10-14Replaces ToggleButtons with ImageButtonsChristine Chen
- Defer setting the toggled/selected state until TeleService gets back to us. Bug: 11172457 Change-Id: I4d103c1288b6e730c61aaf49e679f6b58746897b
2013-10-01Adding the (lost) buttons back upon disconnected calls, see b/11028671.Ben Gilad
Change-Id: If4f48879bb9601484e69cb66fa0eb980ece53909
2013-09-27Add deadzone to end call button.Santos Cordon
inside perimeter previously had a deadzone around the inside perimeter of the end call button to avoid unintentional hits. This change reintroduces the SmallerHitTargetTouchListener in order to add back the deadzone. Also added deadzone to the secondary call hit target since that previously also implemented the deadzone. SmallerHitTargetTouchListener.java copied from existing apps/Phone code. bug:10884607 Change-Id: I7445b6a2e364878aabf6fcb2f7a3e4b1dee87578
2013-09-17Un-mute phone when add-call does not go throughChristine Chen
- Keeps a special flag for auto muted state. When the InCallUi resumes, checkes whether the auto mute is no longer needed. - Removes all exciplit setMute unless it is triggered by the AudioMode listener. Do not set UI mute state unless the Telephony layer sends an update. Bug: 10786369 Change-Id: Ifd1809f2d9df44121fcb29a87016152c706944cc
2013-09-17Outgoing/Conference UI changes for Cdma supportSantos Cordon
Changes: - rename Cdma* to Generic* in code - Stop showing "manage conference" for generic_conference cases - Show simple "merge" button for generic_conference cases - Add generic icon/name label for generic conference calls - Do not submit a contact info request for any conference call sincle they always display generic information (this also fixed some jank of the image flipping back and forth between generic and normal conference call).o bug:10769004 Change-Id: I379895612614483f7f3ea6fef493796ea855743b
2013-09-14Takes new Call states to enable/disable buttons.Christine Chen
Bug: 10733320 Change-Id: Ic8e58cad46610a1fcaef2b55af458ca7661c4f8b
2013-09-13Fix mute state infinite loop when quickly clicking speaker and mute buttonsYorke Lee
Bug: 10648433 Change-Id: Id45d374fb0741ad87c9afe609e0f9f04c7cdb02e
2013-09-06Adds manage conference call UIChristine Chen
Bug: 10334739 Change-Id: I46a52ec967a1c496dd4b797f2064d9099670711f
2013-08-30Automating calls to onUiUnready() in parent fragment.Chiao Cheng
The code was duplicated un-necessarily in each child fragment. Change-Id: I619b723c9afc690ff9011fc43367fe5752094fb6
2013-08-29Support visual indication of mute from headsetSantos Cordon
This change uses new binder api changes to bring down mute status from TeleService. mute state routed through AudioModeProvider. bug:10395427 Change-Id: Ie15efcc780e99072363188de2a954a1888eec9dd
2013-08-21Protect all logging statements.Chiao Cheng
- Rename global logger so it can be a drop in replacement for framework log class. - Remove imports of android.util.Log Bug: 10411948 Change-Id: I377625263b16c4f9408c79d5c533a1810fa6cde7
2013-08-20Adding interfaces for phone number service.Chiao Cheng
- Fetch image url if present. Bug: 10359919 Change-Id: Idf2ff5405255f1e90a383902762585ae68249dbe
2013-08-09Singletons are hard, lets go chopping...them out of the code.Santos Cordon
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
2013-08-08Fix bug in InCallUi crash when opening the dialpad.Christine Chen
Change-Id: I971cf9f6ac6d2a49de80d8204870ca62df304f8d
2013-08-08Merge/Swap/AddCall support in UI.Santos Cordon
Add UI support, presenter logic and CallCommandClient code. Change-Id: I3d561b67cbecd9b4672ecef49dad99d1f6b07b11
2013-08-07Show/Hide HOLD depending on phone capabilities.Santos Cordon
Change-Id: I9fc00175d214668e59058a9b0983019457134b12
2013-08-07Add UI to show when the Call disconnects.Santos Cordon
When the call disconnects, we need to show UI for a short time before existing the UI. Change-Id: Iee648b8c54ee4b5ea09cfaec508e1bf8fb8f1643
2013-08-07Audio Routing support in UISantos Cordon
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
2013-08-06Dialpad Ui elements for InCallUiChristine Chen
Change-Id: I7b230cc46993493459923c436a643910026cf6a6
2013-08-05Adding a central logging class.Santos Cordon
Change-Id: I24f68d5ebcfed2740f9645736c35edf17efb4769
2013-07-30Adding hold support to phone call.Santos Cordon
Change-Id: I5290100b93ef56fcd07615e8cd0aeffe443fa4a4
2013-07-24Finishing in call screen when call ends.Chiao Cheng
Change-Id: I80220deb47ec17fbfb017795f916ba0822ea41da
2013-07-24Integrating end call button to command service.Chiao Cheng
Change-Id: I2d3cbd6944423ad80b8b6a603ddbf43f44f9a488
2013-07-24Integrating mute and speaker buttons.Chiao Cheng
* Adding base classes for presenter, ui and fragments. * Moved common presenter integration logic into base fragment. * Adding presenter to handle button logic. * Integrated disconnect and text from glowpad to presenter. * Changed in-call buttons to be invisible so they do not show under transparent glowpad. Change-Id: I446db149769b5cf1abce960ecede01effeabfe1e
2013-07-22Adding call card and buttons to UI.Chiao Cheng
- Created a fragment for call card and a fragment for UI. - Adding corresponding button images. Change-Id: I5facacd3a4346ab9d9ec2a67a2742dc27dbf5583