summaryrefslogtreecommitdiff
path: root/InCallUI/src/com
AgeCommit message (Collapse)Author
2013-08-23Merge "Show gateway UI when dialing via a gateway" into klp-devSantos Cordon
2013-08-23Show gateway UI when dialing via a gatewaySantos Cordon
Gateway information is not available in the Call object. Inside CallCardPresenter, we use this to show the user dialing information when dialing out through a gateway. This includes a "Calling via..." notice above the call state label and the gateway number. bug: 10393622 Change-Id: Iff1247cd592b0730bb7cfc6d16bd8f60b47f3737
2013-08-23Disabling quick response since it's not done yet.Chiao Cheng
Feature is incomplete. Ui needs to handle case where there are no text responses and switch to 2 targets. Bug: 10424370 Change-Id: Iae59ec0adeea6131374a61abe05031eb29da9ca4
2013-08-21Removing explicit dependency on http calls.Chiao Cheng
Bug: 10413514 Change-Id: Id4db77f4417827ce4ecc140ea09f3228154f50de
2013-08-21fix build break from mergeSantos Cordon
Change-Id: I0a0ae18bca3575d10e5b3d113b1e3d878e5c34e0
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-21Adding proximity sensor code to in-call UI.Santos Cordon
Many of these changes are verbatim code copies from what used to exist in services/Telephony. The rest of them are straight logic copies that should do the exact same things. New class ProximitySensor manages the proximity behavior. It receives device state from InCallPresenter, AudioModeProvider, CallButtonPresenter, and AcceleromterListener, the last of which is a transplanted class from services/Telephony. ProximitySensor listens for the following events: 1. Change in the call state 2. Change in the audio mode 3. Change in the device orientation (from AccelerometerListener) 4. Change in the dialpad visibility 5. Change in hard keyboard open/close events. 6. Change in foreground position of InCall UI app. It uses these to figure out when to enable/disable proximity sensor. CL that removes code from TeleService: I77e0d15ad1a8f5a090c1368db98edaa246dbcd72 bug: 10366512 Change-Id: I5c2ea6daa9443e7ad77c67f272bc0bafdb060e5e
2013-08-20Merge "Adding interfaces for phone number service." into klp-devChiao Cheng
2013-08-20Adding interfaces for phone number service.Chiao Cheng
- Fetch image url if present. Bug: 10359919 Change-Id: Idf2ff5405255f1e90a383902762585ae68249dbe
2013-08-19Support connecting and disconnecting from Phone app.Santos Cordon
Phone app now connects/disconnects from the UI when there are no active calls but UI did not previously support being disconnected. This change adds the following functionality to support dis/reconnection: - CallCommandClient now supports setting new ICallCommandService instances. - CallCommandClient now checks if mCommandService is null before executing a method. - CallHandlerService performs more careful ordered cleanup with destroyed including removing pending messages and clearing any existing calls from the call list. - InCallActivity now performs tearDown of the presenters with onDestroy instead of finish() to reduce NPE instances. - InCallActivity not notifies InCallPresenter when is finishes, and not just when it starts. - InCallPresenter tears itself down after two things happen: the UI is destroyed and the service is disconnected. - InCallPresenter now issues a full-screen restart of the UI if the UI was previously hidden (except for new outgoing calls). This allows the UI to come back to the foreground if it was in the foreground when the app went down. The above changes also now protect against the phone app crashing or the incall UI crashing. bug: 10363682 Change-Id: I9b785f906f29015827e8e53e64cd5f5c72cd7981
2013-08-15Add logic support for manage conference screen. (Part 2 of 4)Santos Cordon
Changes: - Add conference call resource photo - Move logic to determine the name/numbers to show in the Call card from CallCardFragment to CallCardPresenter. - CallCardPresenter now tells CallCardFragment if the primary call is a conference call. - Updated the primary/secondary call order do that Active Calls are primary instead of Disconnected calls when both exist. - Cleaned up some excessive logging. - The CallCard code uses a whitelist to know which callcard to show. The change in services/Telephony to add CONFERENCED state is what causes the new child calls to now show since that is not added to the whitelist in this CL (by design). bug: 10334739 Change-Id: Iaeab3f8bc9bda7693fa4a27bb8d3fe5de4dc9dfc
2013-08-14Fix NullPointerException in InCallUI with CallTimer.Santos Cordon
bug: 10325158 Change-Id: Ie7e89c2e1e3038df89387e99de6849ed12203824
2013-08-13fix break.Santos Cordon
Change-Id: I2e05a32ab3548e8047cfe504aabcc46d274e2abd
2013-08-13Adding duration time to callsSantos Cordon
Adding chromometer support in the notification. More manual update process for in-call UI (Call card). Change-Id: I9a1598969d92296dc38b7485bd9fb872ad501e7b
2013-08-13Use shared contact info cache to get data for the notification.Santos Cordon
Move around where ContactInfoCache is created so that StatusBarNotifier and CallCardPresenter will use the same shared instance. Change-Id: I6e0a7c48aa7a35a0f1a52b399eb127d69f41a879
2013-08-13Merge "Add Simplifying layer between Contact Info search and ↵Santos Cordon
CallCardProvider." into klp-dev
2013-08-13Add Simplifying layer between Contact Info search and CallCardProvider.Santos Cordon
I will be getting contact info on notifications for the next CL so this creates a simpler layer for interacting with the contact data async requester. CHANGES: - Moved the code which does the requesting from CallCardPresenter to ContactInfoCache. - ContactInfo Cache defines new listening interface and new simpler object for transmitting the return data: ContactInfoEntry. - Updated CallCardPresenter to use the new simpler interface. - Updated some logging entries. - Simplified Ui interface inside for CallCardPresenter. Change-Id: Ic802c4e53cdf17fcd37c70deb6da61a78b9d8993
2013-08-12Add basic call information to the notification.Santos Cordon
Change-Id: I33bc1445e9fc515b68205a12d7297a8f3013fecd
2013-08-09Adding suppression behavior for in-call notification.Santos Cordon
This suppresses the notificaiton if the call isn't active of outgoing. We also suppress the notification if the user is currently in the in-call screen. ...except during incoming (ringing) calls...we always show it for ringing calls. Change-Id: Ib75545339376c62c975c390298ef9567d733b8e3
2013-08-09Adding hangup capability to in-call notification.Santos Cordon
Change-Id: I7ba4dd0824f41d9989e36bff10fbfca68596134e
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-08Add support for more call state labels.Santos Cordon
Add remaining call-state UI for the callstate label. Include some bluetooth logic to show an icon for incoming calls. Change-Id: Iecd9b06fb58baf38f665e70e34014c8026d80f68 (cherry picked from commit 946291cb1bb0ec3b4b7f2939fd93dff15627403d)
2013-08-08Remove STARTED and START_UP statesChristine Chen
Change-Id: I963f0ce7c695349854b738ae57b39f2c6718e570
2013-08-08Merge "Fix bug in InCallUi crash when opening the dialpad." into klp-devChristine Chen
2013-08-08Fix bug in InCallUi crash when opening the dialpad.Christine Chen
Change-Id: I971cf9f6ac6d2a49de80d8204870ca62df304f8d
2013-08-08Reduce timeout for showing "CALL ENDED" stringsSantos Cordon
Change-Id: Iea244033f77835a395fbf639defe73aa09559026 (cherry picked from commit 5e36f26c23c400aa17470e5bb91b1d694a53b648)
2013-08-08Improve outgoing call sequenceSantos Cordon
Changes: - When we get a new outgoing call, fire up the UI (without the notification) by sending it an ACTION_MAIN intent. - Fix up the InCallState-setting code in InCallPresenter to be a little cleaner and accomodate new OUTGOING code. - Add missing call to set HOLD Ui button - Fix an occassional NullPointerException in CallCardPresenter.java Change-Id: I557a777287d9ab25ef1447be63b5da080f1b2532 (cherry picked from commit 4d5c29af103c13e78568dc772d26eb56a3e6d3e1)
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-08Fix race-condition case.Santos Cordon
Hitting a button when the call just disconnected can cause mCall = null. Protect against it instead of throwing exception. Change-Id: I529579b43746c7611bad1209fe4d19a355ae6203
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-07Supports for outgoing calls starting up the UI.Santos Cordon
- Added the OUTGOING InCallState - Added support for OUTGOING into InCallState, InCallPresenter, and StatusBarNotifier. Change-Id: I49d5a56a4394d05e948b16a82f23e3eb925fd0a0
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-07Add image to caller infoYorke Lee
* Add various image setting method sto CallCardFragment * Added AnimationUtils and ContactsAsyncHelper, copied unchanged from Phone Change-Id: I6175ccc2433a5d0ad8a9bffac678a263ee65622c
2013-08-08Merge "Display primary call info in call card"Yorke Lee
2013-08-07Display primary call info in call cardYorke Lee
* CallerInfo, CallerInfoAsyncQuery are copied verbatim from existing Phone code. * Added logging methods to Logger to support logging via TAG in static methods * Only primary caller information (name, phone number and label) are displayed for now. Secondary caller information and photos are not displayed. Change-Id: Id4cfdef78f10f7b32255f4892cd51161f37c8be5
2013-08-07Adds support for text messagesChristine Chen
Change-Id: Ibdb279a7dff0db710bcc1d6a313b486f6816ea65
2013-08-07UI AudioMode method supportSantos Cordon
For the time being, we are attaching bluetooth to "mute". This will be fixed in a coming CL. Change-Id: I696dd5adffdc54bc0c69aeaf13a45e0da9fd326a
2013-08-06Dialpad Ui elements for InCallUiChristine Chen
Change-Id: I7b230cc46993493459923c436a643910026cf6a6
2013-08-05Notifications in Phone (part 1)Santos Cordon
- Added StatusBarNotification class to handle notifications - StatusBarNotification has tons of copied comments from NotificationMgr.java. Also has minimal code to make the notification pop up (without call-specific data). - Moved the UI start-up code from InCallPresenter to StatusBarNotification. Incoming phone calls need to display an alert above immersive (fullscreen) foreground activities and the way to do that is through notifications. The old phone app did the same thing...finally bringing over that functionality. Change-Id: I3324503e0d7bb1de00d8e7fab72d4b40519491dd
2013-08-05Use rejectCall() for rejecting call.Santos Cordon
Was previously using non-functional disconnectCall(). Change-Id: I14f17290f74434dfb85a7671374d1b6070595394
2013-08-05Adding a central logging class.Santos Cordon
Change-Id: I24f68d5ebcfed2740f9645736c35edf17efb4769
2013-08-05Improve InCall State managementSantos Cordon
CL Contains the following changes: - InCallPresenter now manages an overall in-call state - Other presenters now listen to in-call state changes instead of getting updates from CallList directly. - Changes AnswerPresenter to a static fragment instead of dynamically loading it. It makes code easier and more aligned with other fragments used in the class. - Presenters now save the appropriate call and use callId() for commands sent to the telephony layer. - Extra logging in CallList - cleaned up the startup sequence in InCallActivity and moved everything to onCreate instead of onCreate & onResume Change-Id: I4ce4182eefcc134bfa16c33be8fe4aefc041f563
2013-08-03Fixing incoming call sequence, adding InCallPresenterSantos Cordon
Moved handling of AnswerWidget from AnswerPresenter and into the new InCallPresenter class. InCallPresenter now also manages a high-level in-call UI state to be expanded in subsequent CLs. Change-Id: Ia4fee84db68f7eaedea307b25329dadb8cf754e5
2013-08-01Adding multi-call support.Santos Cordon
Before this change, the UI came up when we were notified that a new call came in, but we did not actually look at the call state, etc. This seemingly worked while we only supported single calls but did not scale. This change does two main things: a) Plugs in CallList into the presenters so that they can perform their logic based on the actual state of the calls (necessary for multi-call support) b) Adds Secondary CallInfo UI to the Call Card so that we can display information foreground and background calls. As a result of (a) from above, a lot of changes you see will be to Presenters, which now take their cues from CallList and update their Ui's accordingly. A problem with this approach is that the presenters (callcard/buttons/answer-widget) perform their changes independently. A subsequent change will consolidate interactions with CallList to a Presenter-Manager class and away from the presenters. Change-Id: I89d1926fa1eef6f10d897d2ce360f666c8f341f8
2013-07-31Adding simple number data to callcardSantos Cordon
This CL allows the number to be displayed in the CallCard. Previous interaction: CallHandlerService->CallList CallCardFragment (isolated, no data) New interaction: CallHandlerService->MainHandler->CallList->CallCardPresenter->CallCardFragment 1) CallHandlerService.MainHandler: executes remote method calls on the main thread. 2) CallList: Added support for listeners. 3) CallCardPresenter: Presenter layer for fragment. Listens to CallList 4) CallCardFragment: Gets real data from presenter, displays phone #. Change-Id: I6de3a9da15b69d44826c3226701eed6a1b86239c
2013-07-30Merge "Adding hold support to phone call."Santos Cordon
2013-07-30Adding hold support to phone call.Santos Cordon
Change-Id: I5290100b93ef56fcd07615e8cd0aeffe443fa4a4
2013-07-29Adding a CallList class to manage Calls from CallHandlerService.Santos Cordon
Change-Id: Ic6a7c88721a881654fb8afa174291415539b586e
2013-07-29Adding onUpdate from ICallHandlerService.Santos Cordon
Change-Id: I44884a99dcf90272ae56f1f15490ef7562df1295
2013-07-25Add Call Model and CallStateUpdateSantos Cordon
Change-Id: I7905fc90b0fd66cbacc268c861658dd8762cc5c7
2013-07-25Merge "Finishing in call screen when call ends."Chiao Cheng
2013-07-24Finishing in call screen when call ends.Chiao Cheng
Change-Id: I80220deb47ec17fbfb017795f916ba0822ea41da
2013-07-25Merge "Integrating end call button to command service."Chiao Cheng
2013-07-24Integrating end call button to command service.Chiao Cheng
Change-Id: I2d3cbd6944423ad80b8b6a603ddbf43f44f9a488
2013-07-25Merge "Renaming client side stub of ICallCommandService."Chiao Cheng
2013-07-24Renaming client side stub of ICallCommandService.Chiao Cheng
Since the server side already has a class named CallCommandService, renaming client side to be CallCommandClient to avoid confusion. Change-Id: If8aa1741e45a97b11e6699746a3561227900f792
2013-07-24Merge "Integrating mute and speaker buttons."Chiao Cheng
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-23Adding onDisconnect.Santos Cordon
Change-Id: If1499f1c80a98abe5b1874f4e92d7959281d1b07
2013-07-22Adding singleton wrapper for ICallCommandService.Chiao Cheng
Change-Id: I1ab36019f4d754ba9bca5a4d24f6292b91f60d18
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
2013-07-19Renaming CallMonitorService to CallHandlerServiceSantos Cordon
Change-Id: I936341bbad768cc718e27faaef20b498479f0e28
2013-07-19Connecting answer call action in UI to service.Chiao Cheng
Also starting pinging animation for glow pad. Change-Id: Ifac94582b8448c288a07577db02633bf9452ee56
2013-07-18Merge "Adding fragment and listener for answering calls."Chiao Cheng
2013-07-18Adding fragment and listener for answering calls.Chiao Cheng
Created mvp pattern for answer fragment. Change-Id: Ibe0c3b5ce2b61a098c2237aab549238fd4518e9b
2013-07-18Use new command interface to answer the call automatically.Santos Cordon
This funcitonality is temporary and eventually, we will not answer the call automatically. Change-Id: I47d3c0673ae07d9c5a45d357c289bf3bf9b2b9ac
2013-07-17Adding in call screen template.Chiao Cheng
Along with glow pad for incoming call interaction.. Change-Id: I8d518b5247bee4a10c8fd06763a7e3fe6cff5652
2013-07-16Adding a UI toast on an incoming call.Santos Cordon
This will eventually be replaced with actual activity UI. Change-Id: I3df2a2ad6bb2103925559d6dab4beab04ac6e8b3
2013-07-12Adding skeleton code for InCallUI.Santos Cordon
Defines a service to communicate with Telephony Service. Change-Id: I633cbdae529ff61989f30cebfac240ce5a895687