summaryrefslogtreecommitdiff
path: root/InCallUI/src
AgeCommit message (Collapse)Author
2015-06-25Make switch access work for incoming call screenYorke Lee
An accessibility click on the glowpad now exposes the touch targets as virtual views to accessibility services. Performing an accessibility click on each virtual view performs the same function as swiping towards that target. Mark contact photo as unimportant for accessibility, it doesn't provide any useful context or functionality. Bug: 19075527 Change-Id: I2e980394175bf77379f5cb99126dd5970e0f0555
2015-06-24Merge "Fix two animations when using Connection.setInitialized" into mnc-devYorke Lee
2015-06-23Don't wtf if second InCallActivity is setYorke Lee
Setting a second InCallActivity before destroying the first is unexpected but not irrecoverable, so don't crash. Bug: 21806586 Change-Id: I817041ff6bae900c3b9f225ec66fe223c877e68d
2015-06-20Merge "Make sure to remove CallCardPresenter from CallUpdateListeners map" ↵Yorke Lee
into mnc-dev
2015-06-19Make sure to remove CallCardPresenter from CallUpdateListeners mapYorke Lee
Bug: 21959749 Change-Id: I6662d96b9caaf3c5c94cfc0453cdd226ab850cec
2015-06-19Fix two animations when using Connection.setInitializedYorke Lee
STATE_NEW has no meaning within InCallUI and can confuse the internal logic. Treat it as STATE_CONNECTING for purposes of state tracking. Also, track whether the activity is visible rather than whether it is the foreground activity (by tracking onStart/onStop vs onResume/onPause). This fixes some unexpected UI transitions when a dialog (e.g. wifi-calling dialog) shows up over the InCallUI. Bug: 19217176 Change-Id: Ifa5953e27aa4ed777ed8798c628df1bdc96ed1eb
2015-06-18Merge "Fix for InCallUI finishing too quickly to display error dialog" into ↵Yorke Lee
mnc-dev
2015-06-18Fix for InCallUI finishing too quickly to display error dialogYorke Lee
Increase the delay before disconnecting the call for DisconnectCause.ERROR, so that the user has time to acknowledge the error. To avoid regressing on b/20956721, keep track of any calls that are pending a disconnect. If the user has explicitly dismissed the error dialog, disconnect the call immediately to avoid blocking the UI any further. Bug: 21436856 Change-Id: I339cdbf1ba99fda5b1f5c8c31f722c97b64f487f
2015-06-15Merge "Check if numbers have changed to update the contact cache." into mnc-devRoshan Pius
2015-06-15Check if numbers have changed to update the contact cache.Roshan Pius
Along with checking if the call ID's are the same, add a check to see if the 2 phone call numbers are still the same to correctly update the contact info cache used to present the UI to the user. Bug: 20032056 Change-Id: I81bcc6b31df9fa12c3a399ce6a2897662a1be74b
2015-06-15Switch hanodff broadcast from click to long pressSailesh Nepal
Nova Wi-Fi calling allows you to switch between Wi-Fi and cell by clicking on the status label. Unfortunately many users are accidentally triggering this with their face. As a work around I'm switching the trigger from click to long press. Change-Id: I68d7c597cf4d74a3f6b5bfee06e470b4ddcfc1ee
2015-06-05Defer retrieval of camera ids and capabilities until in video call.Tyler Gunn
- The InCallCameraManager used to call initializeCameraList on startup. - Delayed this until getActiveCameraId() is called, Bug: 20993325 Change-Id: Ia8cf16c621650fd4adafa2c506a0021a0f63a6f8
2015-06-03API Cleanup: Remove references to VideoState.Tyler Gunn
Replace method references from VideoState to VideoProfile equivalents. Bug: 21573551 Change-Id: I3c5c55652e0dd12df97eac42f1791f8b67dbac5c
2015-06-02Merge "Rename PhoneNumberUtils APIs" into mnc-devBrian Attwell
2015-06-02Rename PhoneNumberUtils APIsBrian Attwell
In response to more API review. Bug: 21571895 Change-Id: Ia1fa69da07a3427997919ba61c77fcbad7e79f2a
2015-06-01Merge "Disable OrientationEventListener when activity backgrounded" into mnc-devYorke Lee
2015-06-01Disable OrientationEventListener when activity backgroundedYorke Lee
Bug: 21439982 Change-Id: I8cc014ffd272b6a4fa19030eeaeef87f3ffd5d82
2015-05-28Merge "Add extras to Connections/Calls. (3/3)" into mnc-devSantos Cordon
2015-05-28Add extras to Connections/Calls. (3/3)Santos Cordon
Two major changes: 1) Add the notion of extras to a Connection. These extras will be parceled through to InCallService as Call.getExtras() 2) The previously existing Call.getExtras() has been renamed to getIntentExtras(). This name better describes the fact that these particular extras are from the original CALL or INCOMING_CALL intents. Change-Id: I85358827905abe3fd93b6b901dd78c86bb7d653c
2015-05-27Merge "Stop logging all." into mnc-devSantos Cordon
2015-05-26Fix call duration talkback verbalization.Andrew Lee
+ Uncomment code which generates content description. + Pass in local context, rather than System context, for getting the plurals resource strings. This fixes a crash happening in languages even if correctly translations existed. + Catch Resource.NotFoundExceptions in the utility which generates this human-readable string so that for locales missing the translation we don't crash the whole Dialer. Bug: 20813003 Change-Id: I861078a116d2d31f3ac361757a14581726a78f1c
2015-05-22Stop logging all.Santos Cordon
Change-Id: I3249708e038fa3b5532a7ea671a59410ae2c6ba4
2015-05-19Remove unused InCallAppYorke Lee
Move NotificationBroadcastReceiver into its own class. Change-Id: Ieefc840af7df596bfbb9297847ad164870e48970
2015-05-18Remove reliance on getDefaultDisplay() to determine screen rotation.Tyler Gunn
Replaced the calls to getWindowManager().getDefaultDisplay() with code to determine the screen rotation angle based on the angle ranges. Bug: 21208380 Change-Id: Ie91d38f9c0b4227bb2148a193c00339b5d8f4ce6
2015-05-14Merge "Fix build" into mnc-devYorke Lee
2015-05-13Fix buildYorke Lee
Dialer was building against the platform locally but against the current SDK on the build server. Change-Id: I6ad50e354655cda5a30814988911e0c5178d384c
2015-05-14Merge "Rename AudioState to CallAudioState" into mnc-devYorke Lee
2015-05-13Refactor StatusHints (3/3)Ihab Awad
Refactor StatusHints to use the new Icon class. Bug: 21040387 Change-Id: If5f92bfc83ddad37370832e457be65ab2440a1cf
2015-05-13Rename AudioState to CallAudioStateYorke Lee
Deprecate AudioState class and make methods @SystemApi where necessary to minimize impact to SystemApi Replace usages of AudioState inside Telecom sub-systems Fire both onCallAudioStateChanged and onAudioStateChanged callbacks for backward compatibility Support both setAudioState and setCallAudioState for all classes Bug: 21040387 Bug: 21088300 Change-Id: I3ec7b3afdaa344c6d639d1c421f1842d67f7d0f7
2015-05-12More video related API fixesYorke Lee
android.telecom.Connection.VideoProvider * onSetPauseImage takes Uri instead of String * changeCallDataUsage -> setCallDataUsage * add quality constants to changeVideoQuality() docs android.telecom.InCallService.VideoCall * setPauseImage takes Uri instea dof String android.telecom.VideoProfile.VideoState * Move constants to VideoProfile, prefix with STATE_ Bug: 21040387 Bug: 21066505 Change-Id: I764e72aced9d1e2d30d6d0cf0862100860d47c79
2015-05-12Fixes for APi reviewYorke Lee
Move CameraCapabilities into VideoProfile Make PhoneAccount and PhoneAccountHandle final Bug: 21040387 Bug: 21066505 Change-Id: I2c0eb2f3a20ada68ad5109363c4f7ff64c349776
2015-05-12Merge "Save CNAP in call history" into mnc-devYorke Lee
2015-05-12Merge "Handle fullscreen mode toggle when tapping contact photo." into mnc-devTyler Gunn
2015-05-12Handle fullscreen mode toggle when tapping contact photo.Tyler Gunn
1. Moved the fullscreen mode state tracking and logic from VideoCallPresenter to InCallPresenter (since it is more to do with the entire InCall UI rather than just the video presenter). 2. Added click handler for the contact card to toggle fullscreen video mode. Bug: 20912417 Change-Id: If1656365f7fcfcee5a902c7f5d5d2862edee1661
2015-05-11Save CNAP in call historyYorke Lee
If the call contains necessary CNAP information, try to save it into the CachedNumberLookupService. Bug: 10121624 Change-Id: I2e842b3145e00618b1afd3ed661d7c40764d0536
2015-05-11Merge "Finish InCallActivity immediately for DisconnectCause.ERROR" into mnc-devYorke Lee
2015-05-11Finish InCallActivity immediately for DisconnectCause.ERRORYorke Lee
For DisconnectCause.ERROR, finish InCallActivity immediately instead of waiting for the 5s timeout. This is because a dialog is always shown for error cases, so the activity should finish as soon as the user acknowledges the dialog. Bug: 20956721 Change-Id: I1f1b8047cac0a6c15e331086cdc0924ff3d268cf
2015-05-11Merge "Show end call button for disconnecting calls" into mnc-devYorke Lee
2015-05-11Show end call button for disconnecting callsYorke Lee
Bug: 21017840 Change-Id: I05a239db26b7c47a744b96549fb1b7e5440a824c
2015-05-11Don't use static instance of EmergencyCallListener.Andrew Lee
There's a couple ways to fix this, but this seemed to be the most straightforward one. Basically, we want the values for the emergency call listener (ie. the cached isEmergency value) to reset across different displays of the InCall UI. Bug: 21027909 Change-Id: I0b42873e3fa52ee2fc8ee98ee876caf31ec98883
2015-05-11Merge "Dynamically check for permission denials" into mnc-devYorke Lee
2015-05-08Merge "Fix NPE when hitting back in InCallActivity" into mnc-devYorke Lee
2015-05-08Fix NPE when hitting back in InCallActivityYorke Lee
Bug: 20921372 Change-Id: I25969a56eb293f20e3dfeaccf6f929177da00e85
2015-05-07Merge "Fix issues with fullscreen video call mode and incoming calls." into ↵Tyler Gunn
mnc-dev
2015-05-07Fix issues with fullscreen video call mode and incoming calls.Tyler Gunn
In onStateChange, when there is an incoming call, the primary call is kept as the active call. This is problematic for the logic in the maybeAutoEnterFullscreen method which relied on the primary call to determine if the UX should automatically switch to fullscreen mode. Added code to ensure we auto-exit fullscreen mode based on the current call context. Bug: 20915113 Change-Id: If11c358c83c92a308d6f78f229354f7feb5bfea4
2015-05-07Merge changes I696bddf2,I4f62d509 into mnc-devYorke Lee
* changes: Fix issue with misaligned glowpad handle Cache the non-rounded large bitmap instead of the rounded version
2015-05-07Fix issue with misaligned glowpad handleYorke Lee
If the drawable for the handle changes, a new TargetDrawable is created (without the correct positional parameters). This causes it to be misaligned (e.g. during call waiting). To fix this, simply replace the drawable without creating the TargetDrawable from scratch. This preserves its positionX and positionY variables. Bug: 20860087 Change-Id: I696bddf2d6d92cd8f17a3818367e9c0ac71b4a63
2015-05-07Merge "Fix NPE for video card when VT not active" into mnc-devAnthony Lee
2015-05-07Fix NPE for video card when VT not activeEtan Cohen
Change-Id: I5a88be1a3d463fd2570b98144f9caa626c8dc3bb
2015-05-06Cache the non-rounded large bitmap instead of the rounded versionYorke Lee
Because a new copy of a rounded bitmap is created everytime, the check against the cached copies of information was failing to detect identical notifications, causing multiple full-screen notifications to be sent to the notification manager. This causes a delay in the time it takes for the HUN to be hidden when accepting a call. Bug: 20764430 Change-Id: I4f62d5091b7fc216312a612181a91e3ec4828661
2015-05-06Fix issue where fast 180 degree landscape rotation is not detected.Tyler Gunn
- Cleaned up imports in InCallActivity. - Added new OrientationEventListener to listen for orientation changes to the device. This listener returns the current device rotation in degrees. Use the windowManager to get the current display rotation (e.g. in coarse 90 degree, 180, etc). - This solves the problem - can now detect rotation from landscape to landscape. Bug: 20727115 Change-Id: Icfad2b26083bb8236e9f4fe5580e3828cdef11b8
2015-05-06Fix bug where outgoing calls go to full-screen before answered.Tyler Gunn
Now that VT is working for me again, I noticed this (the test connection service answers instantly). Solved my requiring a primary call which is active before auto-entering full screen mode. Bug: 19850117 Change-Id: I625838ebc1d78d6bfe594ff49822f76f7ac56ab9
2015-05-06Auto fullscreen mode when starting a video call.Tyler Gunn
- Added code to VideoCallPresenter to automatically enter fullscreen mode once a video call starts. Bug: 19850117 Change-Id: I801433243df556c3398ad82a60fc738bdfb35f79
2015-05-05DO NOT MERGE Video call upgrade/dowgrade request changes.Tyler Gunn
- fixed potential NPE in VideoCallFragment when setting preview size. - moved photo load into the postExecute for the async task -- it is already threaded and I was seeing intermittent concurrency issues. - Changed CallButtonFragment to retrieve max # of buttons from config.xml. - Added override for wider screens (e.g. N6 and wider) to show an extra button. - Reorganized call buttons so that the "Camera on/off" button is adjacent to the flip camera button. - Changed answer Glowpad to pass correct video state so that accepting a video request uses the correct state (important for accepting requests to turn camera back on). - added new Session modification state REQUEST_REJECTED for when the remote user explicitly declines the request. This is used to trigger a "video request rejected" message when the remote party rejects the request. Bug: 20257400 Change-Id: Ibe25eb045ee868748f91bf411f285629d36ebcd2
2015-05-05Merge "Merge commit 'b1c7028' into merge_try2" into mnc-devPrerepa Viswanadham
2015-05-05Merge changes from topic 'mwd-merge-050415' into mnc-devPrerepa Viswanadham
* changes: Merge commit 'b1c7028' into merge_try2 Merge commit '214726a' into merge_try2 Merge commit '5e2731c' into merge_try2
2015-05-04Merge commit 'b1c7028' into merge_try2Prerepa Viswanadham
Change-Id: I7cb5298c37e1f07f8b1b234605a211c6478963f0
2015-05-04Dynamically check for permission denialsYorke Lee
Don't crash when performing certain operations that the dialer might not have permissions to execute: * Access voicemail provider * Certain TelecomManager methods Bug: 20266292 Change-Id: I6326332943567aab0c59b4b4386d7bc434a71e4a
2015-05-04Merge commit 'b1c7028' into merge_try2Prerepa Viswanadham
2015-05-04Merge commit '5e2731c' into merge_try2Prerepa Viswanadham
Change-Id: I880eb25812adaeb9355cc9c1dcf46afa0da5f333
2015-05-01Merge "Use new Call.Details.PROPERTY_* values." into mnc-devAndrew Lee
2015-04-30Use new Call.Details.PROPERTY_* values.Andrew Lee
Bug: 20160395 Change-Id: Ibc877c3d6898770bce4bd96bdcbe673061141892
2015-04-29Make glowpad ping run at startupYorke Lee
Bug: 20494371 Change-Id: I6b6eb4e5ec3ba76e08d0b87a0a49f758f95ac31b
2015-04-29VT related cleanup.Anthony Lee
Removed some unused imports and one constant introduced by the mass QCOM CL for VT bringup. Bug: 20090311 Change-Id: Iab7a89495557c8817216ff16559778c6f59a3919
2015-04-27Fix memory leak: remove a listenerWei Huang
CallButtonPresenter doesn't remove itself from InCallPresenter.CanAddCallListener, which causes a memory leak. Change-Id: I3dcfc6aaa26eca3547e95de01b292042e46e30af
2015-04-24Merge "Upgrade / downgrade requests" into m-wireless-devTyler Gunn
2015-04-24Upgrade / downgrade requestsTyler Gunn
- Remove unnecessary "change to voice" button. - Remove "modify call option" dialog that showed up in the past when pressing the "upgrade to video button". - Cleaned up some unnecessary Toasts for call session events, data usage, and video quality - Implemented the camera on/off functionality. - Change preview to show the user's profile photo when their camera is turned off, as well as a "camera off" icon. Bug: 20257400 Change-Id: I6b7bb3d2394467f1345a798557130b2a674337c4
2015-04-24Merge commit 'a099cac' into merge2Etan Cohen
2015-04-23Rename PRE_DIAL_WAIT to SELECT_PHONE_ACCOUNTSantos Cordon
Bug: 20532435 Change-Id: Iae50b2ce15232a6010eb04895193b04c423ecc00
2015-04-22Incoming video calls - accept only 2-way calls.Tyler Gunn
- In AnswerPresenter, only show the video targets if the incoming call is a bi-directional video call. Bug: 20254835 Change-Id: I34f3fd79d126a2ae621afeb13ceb2b143bdca2ce
2015-04-21Cleanup ObjectFactory.Andrew Lee
Bug: 20300758 Change-Id: Ie9dcdd36b357368a02a7e38ede885debd6585e27
2015-04-20InCallUI: Fix build after ag/675533Andreas Gampe
Complete the changes. Bug: 20300758 Change-Id: If1063f973406847fe692c3fd34cb3fc21210973b
2015-04-21Merge "Add EmergencyCallListener."Andrew Lee
2015-04-20DO NOT MERGE Temporarily disable code that uses pluralsYorke Lee
Using plurals currently causes a ResourceNotFoundException because the translated counterparts for all languages must be submitted first. Temporarily disable this codepath. Bug: 20427882 Change-Id: I3a8c565bc704443fe1766e9311952481a25a2295
2015-04-20Merge "Temporarily disable code that uses plurals"Yorke Lee
2015-04-20Temporarily disable code that uses pluralsYorke Lee
Using plurals currently causes a ResourceNotFoundException because the translated counterparts for all languages must be submitted first. Temporarily disable this codepath. Bug: 20427882 Change-Id: I3a8c565bc704443fe1766e9311952481a25a2295
2015-04-20Add EmergencyCallListener.Andrew Lee
+ Add EmergencyCallListener, which fires when the call card is updated to indicate whether the call is an emergency call or not. Bug: 20300758 Change-Id: Ie9ad6ddecb278b56226804f5009504b4cc8b4cd5
2015-04-20Merge "DO NOT MERGE Remove use of ttsSpanAsPhoneNumber" into m-wireless-devYorke Lee
2015-04-20DO NOT MERGE Remove use of ttsSpanAsPhoneNumberYorke Lee
This API is deprecated (and hidden) Change-Id: Ie1fe6ed8c2aff4288c41b15a95da45090009df4b
2015-04-20Merge "Remove code disabling VT calls when TTY mode is on"Yorke Lee
2015-04-20DO NOT MERGE Remove code disabling VT calls when TTY mode is onYorke Lee
To be moved into Telephony instead Bug: 20090652 Change-Id: I58aeb382d7e213b4eeae997d1f4bac3e25d34e67
2015-04-20Remove code disabling VT calls when TTY mode is onYorke Lee
To be moved into Telephony instead Bug: 20090652 Change-Id: I58aeb382d7e213b4eeae997d1f4bac3e25d34e67
2015-04-20Simplify InCall notification logicYorke Lee
Always show the InCall notification iff there is a live call (incoming, outgoing, active or held). Change-Id: I2fc2a54c92cd0978dcf1bf49b0e8217bf2acc3ec Bug: 20108489
2015-04-20Merge "DO NOT MERGE Stop using internal plural resources" into m-wireless-devYorke Lee
2015-04-20Merge "DO NOT MERGE Remove use of VideoProfile.VideoState.isVideo" into ↵Yorke Lee
m-wireless-dev
2015-04-20Merge "Remove use of VideoProfile.VideoState.isVideo"Yorke Lee
2015-04-20Merge "Stop using internal plural resources"Yorke Lee
2015-04-18DO NOT MERGE Remove use of VideoProfile.VideoState.isVideoYorke Lee
Don't further increase API surface, make this a utility method in our own package instead. Change-Id: Ib7036b20980afcb5d0fdb1c03c6d943ab9d7ece7
2015-04-18DO NOT MERGE Stop using internal plural resourcesYorke Lee
Change-Id: I6ddd0555c56cdd3c5269ba435b14d4c26e015e22
2015-04-18Stop using internal plural resourcesYorke Lee
Change-Id: I6ddd0555c56cdd3c5269ba435b14d4c26e015e22
2015-04-18DO NOT MERGE Update buttons state once UI is readyYorke Lee
* updateUi was not getting called for outgoing calls between DIALING -> ACTIVE * Adhere to UI directive that buttons representing disabled functionality are hidden rather than disabled. * Also fix issue where buttons are not updated for incoming call. Bug: 20295789 Change-Id: I2606aa7b27c3dfb2de441737f1ecc2cc80ffdd7e
2015-04-18Merge "Update buttons state once UI is ready"Yorke Lee
2015-04-17Remove use of VideoProfile.VideoState.isVideoYorke Lee
Don't further increase API surface, make this a utility method in our own package instead. Change-Id: Ib7036b20980afcb5d0fdb1c03c6d943ab9d7ece7
2015-04-16Update buttons state once UI is readyYorke Lee
* updateUi was not getting called for outgoing calls between DIALING -> ACTIVE * Adhere to UI directive that buttons representing disabled functionality are hidden rather than disabled. * Also fix issue where buttons are not updated for incoming call. Bug: 20295789 Change-Id: I2606aa7b27c3dfb2de441737f1ecc2cc80ffdd7e
2015-04-16Make createPresenter() and getUi() public.Andrew Lee
... and update the visibility of their overriden instances. This allows us to create fragments with the BaseFragment/Presenter fragment which do not live in the incallui root directory. Bug: 20300758 Change-Id: I7f9b1c630538a04ca773ba155e5fb8efd6cf6af7
2015-04-16DO NOT MERGE Rename CallListener to CallCallback.Andrew Lee
To match API changes. Plus, random fixes because of master being out of sync with MW. Bug: 20160491 Change-Id: I664cb0c3db7e0affc42179d467828246887069e8
2015-04-17Merge "DO NOT MERGE Remove usage of Phone.java in InCallService APIs." into ↵Santos Cordon
m-wireless-dev
2015-04-16Merge "DO NOT MERGE Remove connection substate" into m-wireless-devJay Shrauner
2015-04-16Remove connection substateJay Shrauner
Bug:20300433 Change-Id: Iec4a56229ee30f3183c9f4cf37bed3f028eed155
2015-04-16Fix setting callback.Andrew Lee
Bug: 20160491 Change-Id: I45c16b229eb521b91a4eab1394b5d2fbb75ec478