History log of /packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3c80805def993eef821931970723e2b927fdf552 22-Jul-2015 Anthony Lee <anthonylee@google.com> Catch null Call to avoid NullPointerException.

Bug: 22646355
Change-Id: Iad8f4ed9b29f97b3c6d403b63f9fdf7f3b26f460
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
80cc82c8320fc545cd068df24ccb12e61da08fec 04-Jun-2015 Tyler Gunn <tgunn@google.com> Defer retrieval of camera ids and capabilities until in video call.

- The InCallCameraManager used to call initializeCameraList on startup.
- Delayed this until getActiveCameraId() is called,

Bug: 20993325
Change-Id: Ia8cf16c621650fd4adafa2c506a0021a0f63a6f8
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
f66b7ca229eccd343bdffa8591aaa4ab6395488e 03-Jun-2015 Tyler Gunn <tgunn@google.com> API Cleanup: Remove references to VideoState.

Replace method references from VideoState to VideoProfile equivalents.

Bug: 21573551
Change-Id: I3c5c55652e0dd12df97eac42f1791f8b67dbac5c
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
97d3f981e5715af6a7e07b79ec67841fa3ccf06a 18-May-2015 Tyler Gunn <tgunn@google.com> Remove reliance on getDefaultDisplay() to determine screen rotation.

Replaced the calls to getWindowManager().getDefaultDisplay() with code
to determine the screen rotation angle based on the angle ranges.

Bug: 21208380
Change-Id: Ie91d38f9c0b4227bb2148a193c00339b5d8f4ce6
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
0206f6201db40deaa9af1057179aaec85c809dce 14-May-2015 Yorke Lee <yorkelee@google.com> Rename AudioState to CallAudioState

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
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
b586ec8d0896edf5f22099cb64f01cc046010b91 13-May-2015 Yorke Lee <yorkelee@google.com> More video related API fixes

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
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
10e182de1100661de081f984a8728b9b60c5df16 12-May-2015 Yorke Lee <yorkelee@google.com> Fixes for APi review

Move CameraCapabilities into VideoProfile
Make PhoneAccount and PhoneAccountHandle final

Bug: 21040387
Bug: 21066505
Change-Id: I2c0eb2f3a20ada68ad5109363c4f7ff64c349776
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
14b0add249fd1cfe2bbf7df8f6c272daea6db4c2 12-May-2015 Tyler Gunn <tgunn@google.com> Handle fullscreen mode toggle when tapping contact photo.

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
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
12735fcf58efbe3f1411158d8f1878c866690d26 07-May-2015 Tyler Gunn <tgunn@google.com> Fix issues with fullscreen video call mode and incoming calls.

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
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
8245f69a14b04c60f0bc30976ea2e74db85c5683 06-May-2015 Tyler Gunn <tgunn@google.com> Fix bug where outgoing calls go to full-screen before answered.

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
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
b933a362d67bdfb2d27e96142bee6ff849c95e3f 04-May-2015 Tyler Gunn <tgunn@google.com> Auto fullscreen mode when starting a video call.

- Added code to VideoCallPresenter to automatically enter fullscreen
mode once a video call starts.

Bug: 19850117
Change-Id: I801433243df556c3398ad82a60fc738bdfb35f79
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
1a723f1586c812510bd0791a4ef8420d36f83cf9 05-May-2015 Tyler Gunn <tgunn@google.com> DO NOT MERGE Video call upgrade/dowgrade request changes.

- 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
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
4f3f583ae924009d1065fac628f0d29fcf1e7f97 04-May-2015 Prerepa Viswanadham <dham@google.com> Merge commit '5e2731c' into merge_try2

Change-Id: I880eb25812adaeb9355cc9c1dcf46afa0da5f333
44d96c276009952b67b43ed54d27d920f8dc2b4d 25-Apr-2015 Tyler Gunn <tgunn@google.com> Upgrade / downgrade requests

- 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
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
fdf4382116f09973a2331950df5990148b76083d 15-Apr-2015 Andrew Lee <anwlee@google.com> DO NOT MERGE Rename CallListener to CallCallback.

To match API changes.
Plus, random fixes because of master being out of sync with MW.

Bug: 20160491
Change-Id: I664cb0c3db7e0affc42179d467828246887069e8
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
66aae0a749baef8686ea8d03b18eaecfa0c4159e 16-Apr-2015 Jay Shrauner <shrauner@google.com> Remove connection substate

Bug:20300433
Change-Id: Iec4a56229ee30f3183c9f4cf37bed3f028eed155
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
2c43f64a67d714fd158e49acd5320b69ecf47024 16-Apr-2015 Jay Shrauner <shrauner@google.com> DO NOT MERGE Remove connection substate

Bug:20300433
Change-Id: Iec4a56229ee30f3183c9f4cf37bed3f028eed155
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
2fd27356f8590095cf62a33ef67d5ea053ff5c3e 15-Apr-2015 Andrew Lee <anwlee@google.com> Rename CallListener to CallCallback.

To match API changes.

Bug: 20160491
Change-Id: I664cb0c3db7e0affc42179d467828246887069e8
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
e5fbf134638016f52a0b43dcaad53e26cc6abc98 15-Apr-2015 Tyler Gunn <tgunn@google.com> Adding missing null-check.

Bug: 19850018
Change-Id: I17e1ac4c91fbf91ce53ab6a111aed854f8e4116e
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
2dfa703373c14a518ce494608156271b468d2b8a 16-Apr-2015 Yorke Lee <yorkelee@google.com> Merge "Don't use internal resources in InCallUI"
01de214e2c720ccfa5f2d13579b0eb35ab1f9b16 16-Apr-2015 Yorke Lee <yorkelee@google.com> DO NOT MERGE Don't use internal resources in InCallUI

Bug: 20090407
Change-Id: Id0e90507fe9d45545ed3774521bac68eb0bda8a7
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
d814c4326616b655f7746fd8ea960d1d3e54f15f 16-Apr-2015 Yorke Lee <yorkelee@google.com> Don't use internal resources in InCallUI

Bug: 20090407
Change-Id: Id0e90507fe9d45545ed3774521bac68eb0bda8a7
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
a3f7b82b805296703d4ea6254f4b6b84f8566aa0 15-Apr-2015 Vinit Deshpande <vinitd@google.com> am b04d61a..697f674 from mirror-m-wireless-internal-release

697f674 Fix orientation of preview surface when device rotated.
17de502 Merge "Always allow landscape mode if video call is the primary call" into m-wireless-dev
3692e77 Always allow landscape mode if video call is the primary call
a77ad8d Video calling landscape changes to match specs
cb74fc0 Merge "Simplify and rewire in-call buttons" into m-wireless-dev
ed0775d Simplify and rewire in-call buttons
80a1aad Hide incoming video until call is connected.
4f2a70b Merge "Cleanup AnswerFragment glowpad UI" into m-wireless-dev
6591f05 Merge "Initial refactoring for call buttons" into m-wireless-dev
c70a63c Initial refactoring for call buttons
4a63afd Hide end call button when video upgrade glowpad is showing
7ba13e9 Cleanup AnswerFragment glowpad UI
6b2b8df Show progress spinner when upgrading to video
c02794b Merge "Cleanup of Video Call pause functionality." into m-wireless-dev
bec5807 Standardize fragment layout names
bc65cbc Adding video call icon in secondary call info.
d1b754dc1ae74b8232145a69ab3dd929bbbcbaa0 15-Apr-2015 Tyler Gunn <tgunn@google.com> Adding missing null-check.

Bug: 19850018
Change-Id: I17e1ac4c91fbf91ce53ab6a111aed854f8e4116e
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
697f6749e8851a0d9cb9fe58051e74abffb71fe5 14-Apr-2015 Tyler Gunn <tgunn@google.com> Fix orientation of preview surface when device rotated.

- Cleaned up some unused methods in InCallActivity.
- In onDeviceOrientationChanged, handle orientatoin change by resizing
surface.
- Fixed setPreviewSize which was not rotating the surface the appropriate
way (ensured it was setting a transform on the surface, and also made sure
that the correct dimensions were being passed in).

Bug: 19850018
Change-Id: Ia9324ce6bad5a797839e69ba20244f2bcc44acb5
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
3692e775f1feaf570fec9a32269619d882941c25 14-Apr-2015 Yorke Lee <yorkelee@google.com> Always allow landscape mode if video call is the primary call

Bug: 19995709
Change-Id: Ie21b50bf8ed34b0c50463285104e59271c94b12e
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
80a1aad9c965ffee994b1a857b0776e605778917 13-Apr-2015 Tyler Gunn <tgunn@google.com> Hide incoming video until call is connected.

Changing the VideoCallPresenter so that the incoming video surface is
hidden until the call becomes active. This way the remote party's profile
picture is shown until the call is connected.

Bug: 19820114
Bug: 20153678
Change-Id: Ifb1eeab2dc92ccd54c070248bd4efb44a113fed3
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
a45890b8f8cd7d56e2f7f756788d9855eb5b0bc4 11-Apr-2015 Prerepa Viswanadham <dham@google.com> Fix build

Change-Id: I0c953bfa322ffe1be080af2180579e1abc770a2b
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
5468d9beac7c4e9efe3dfe25a74c87ff94a0f9ef 10-Apr-2015 Prerepa Viswanadham <dham@google.com> Merge commit '8bef461' into merge_work

Change-Id: I4cfea114e24c0b0671e99118316ad839dafbe400
6b2b8dffedf89f7fc8227f418b364e6170c56ad4 09-Apr-2015 Yorke Lee <yorkelee@google.com> Show progress spinner when upgrading to video

Show spinner when waiting for remote consent.
Also correctly propagate sessionModification state when
downgrading to audio.

Bug: 20090442
Change-Id: If733ce99683436c751a26a6511e6a41bac637c30
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
b04d61a961599c0401ad29b36a433144877684f8 08-Apr-2015 Tyler Gunn <tgunn@google.com> Cleanup of Video Call pause functionality.

Whether the paused videoState is available is dependent on the carrier's
implementation of the VT spec. The original VT implementation assumed
that this was stored in a system property accessed via InCall; these CLs
move this to a Call/Connection capability which will ultimately support
multisim video capable devices.

- Made some general cleanups in VideoPauseController (comments, some minor
logic changes, renamed a few methods).
- Removed access of system property to see if pause is supported and
instead key in on the call capability.
- Changed video call presenter to hide incoming video surface when a pause
signal is received.

Bug: 16680364
Bug: 19820114
Change-Id: I6d1a7789925c69e4022846f8d847b8bb1274c06b
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
8bef461247ec597f4fbbc604ee6e37fbdbc27d1e 18-Mar-2015 Rekha Kumar <rekhak@codeaurora.org> IMS-VT: Add support for video calls

IMS-VT: Upgrade downgrade and hold resume video calls
-Add support for upgrade downgrade video calls.
-Add support for hold resume and call waiting

IMS-VT: Fixed surface caching.
Fixed surface caching.

IMS-VT: Fixes InCallUI/Dialer crash when there is a VT call.
-Fixes InCallUI/Dialer crash when UE is rotated.
-Fixes InCallUI/Dialer crash when UE VoLTE call
is upgraded to VT.

Don't default to speaker phone for VT when speaker is disabled
- The adb property persist.radio.ims.audio.output indicates
whether speaker is disabled explicitly or not.
- If the above property is set to 1, don't enable speaker
phone by default in VT call.

IMS-VT: Fix CVO, surface and resource related issues.
- Send initial orientation to VT Service.
- Detect if Activity is being destroyed due to
confugration changes.
- Close the camera when InCallUI is pushed to background.
- Fix surface and VT service related issues when Fragment
and Presenter gets destroyed.

IMS-VT: Peer Resolution Feature Implementation
Change display video size based on peer resolution values
received from far end.

IMS-VT: Answering calls and upgrade requests as VT_TX and VT_RX
-Support for showing one way options for incoming upgrade request
-Fix issue where incoming video popup stays on screen even after
rejecting the request.
-Fix issue where incoming video popup stays on even after it has
been timed out by lower layers.
- Answer with different calltypes support.

Notify listeners of video quality changed event and display message on UI
- Add methods to notify listeners of type VideoEventListener
when video quality changes.
- Display a notification on the UI when video quality changes.

IMS-VT: Enable SIP based video multitasking.
Enable SIP based video multitasking.

IMS-VT: Call data usage feature
- Add support for call data usage callback
- Request for call data usage stats
- Log call data usage stats when IMS layers send update

Change-Id: I3f0dde0d82698085fa5d3f110720f10326eca768

IMS-VT: When TTY is ON, do not allow upgrade to VT call
When TTY mode is ON, the user SHOULD NOT be allowed to upgrade
a call from VOLTE to VT/VT-TX/VT-RX and an UI alert message will
be displayed explaining upgrade to VT call cannot be initiated.

IMS-VT: Add null check in call upgrade fail scenario
Crash is observed if call is ended in the interval wherein
handler is started to change state from REQUEST_FAILED to NO_REQUEST
after an interval. Added null check to change state only when call
exists

Propagate call substate message and display a notification on the UI

Ims: Reject upgrade request
1. If there is waiting call that is pending user action and
2. Before offering a waiting call

IMS-VT: Provide Player State indication to user.
Change to display "player started/stopped" toast message
whenever video starts/stops flowing

IMS-VT: Cleanup video views when not required
- Hide video views when not required.

Set display size as per current TextureView size
- Using TextureView height and width to calculate the display size.
- When ever there is change in display make sure that center the display.

IMS-VT: Exit VT call full screen mode.

If the call is no longer a VT call, then exit full screen mode

Change-Id: Ibc4ad8f9a4c38e467820028cdc2c7e68d65fd93c
CRs-Fixed: 760925

IMS-VT: Upgrade button fix
-Show upgrade/downgrade button only when call is in ACTIVE or
ONHOLD state

IMS-VT: Show correct call types during video pause
-In paused state, upgrade downgrade button does not list the
calltypes dropdown box
-Remove the paused bit to calculate call type during video paused
state.

IMS-VT: Move strings for video quality changed indication to resource files

IMS-VT: Clean up the showCallSubstateChanged API
- Make the code more readable.

IMS-VT: Set audio route to Speaker if current route is not bluetooth or headset
- We always set the audio route to speaker when we enter video mode.
- That is not correct. We should check if headset or bluetooth is
connected before defaulting to speaker.

IMS-VT: Turn speaker on/off for video calls based on call state changes
- Turn speaker on only when video call is active or dialing
- Switch back to the previous audio mode when there are no
more calls
- Make the previous audio mode static so that information
persists when the class is recreated (e.g. when UE is
rotated or multitasking happens)

IMS-VT: Use back camera instead of front camera for VT-TX
Set back camera for below cases
1) VOLTE to VT-TX
2) VT to VT-TX
3) Waiting call over Vt-TX call.

IMS-VT: Fix upgrade in call waiting scenarios
-When one VoLTE call is active and another VoLTE call is on hold
and upgrade button is hit, call ends. Fix this upgrade issue.

IMS-VT: Enter video mode when the primary video call changes
- We only enter video mode when we have any video state changes
- Enter video mode should also be called when the video call
changes. e.g. When we have a second call with the same video
state, we don't enter video mode which is incorrect. This
change fixes the issue

Add null check for InCallActivity in setInCallAllowsOrientationChange
- In some cases, this API is called when InCallActivity is null.
This causes a null pointer exception. Fix is to add a null check.

IMS-VT: Fix check for VOLTE call (AND to OR) when turning speaker on

IMS-VT: Check if call is video before enabling speaker in updateAudioMode
- Moved the video call check to the correct block where we
are enabling speaker

IMS-VT: Get call substate values correctly from the bit mask
- We were getting the call substate incorrectly as an int.
- Fixed that by getting it from the bit mask and using the
possible multiple values to display the call substate message.

IMS-VT: Keep the screen on during video calls.
UI screens times out after some time. During
video calls the screen must be kept on.

Change-Id: Icaa8662210b2dd323b29f4a472869a9ed1e01d00

IMS-VT: Open front facing camera for VT calls.
Open front facing camera for VT calls.

IMS-VT: Show manage conference button for Video Call
- We show the manage conference in a separate section for
VOLTE Calls.
- In the case of Video Call, the entire screen is occupied
by the far end video. So we display manage conference in
the overflow section of the call button fragment.

IMS-VT: Fix camera preview freeze for CONF video calls.
Fix camera preview freeze for CONF video calls.

IMS-VT: Move persist.radio.ims.audio.output to frameworks
Move persist.radio.ims.audio.output and related constants to
TelephonyProperties and PhoneConstants so that these can be accessed
from multiple git projects instead of redefining.

IMS-VT: Multiple video call fixes/optimizations.
-Current implementation clears primary call cache upon exiting
video mode. This will remove video call provider interface as
well, which will prevent further communication with the backend.
Don't clear primary call cache upon exiting video mode.
-Unregister call details listener when UI transitions into
unready state
-Send surface of incoming video to video call provider before
opening camera.

IMS: Cleanup all listener objects
Clean all stale listener objects to avoid the memory leak.

IMS: Fix speaker icon display issue in Call UI.
In few devices, InCall UI can show upto five buttons
in a row. Modify code to display at most five buttons
in a row. Show overflow menu if number of buttons is
more than five.

IMS-VT: Show glowpad view with accept/reject for most video upgrade cases
- Show the glowpad view with all options only when upgrading
from Volte to VT
- For all other cases, show the glowpad with accept/reject only

Change-Id: I41ecbda40db7c3c69428fc4272f8bfbd258e2980
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
87445345ce0312abdce4114fd5c2b10f3e26ccb6 26-Mar-2015 Yorke Lee <yorkelee@google.com> merge changes from m-wireless

Change-Id: Id93b2d6e840baaa0b9b42b4595bca0dc41972994
3e1d355906746acdf26f7f909814eece3250b848 14-Mar-2015 Yorke Lee <yorkelee@google.com> Add VideoCallFragment back into InCallUI

Statically add VideoCallFragment into the view hierarchy
so that video calls can be shown in the UI.

Change-Id: I8afbaaa750371a4afe3946d268882f46f5ec7eb4
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
709236f18f3153d41303872cf22481b9be005a6c 25-Feb-2015 Matthieu Baglin <matthieu.baglin@intel.com> Video Call Upgrade/Downgrade fixes

This is fixing multiple deficiencies affecting video call upgrade or
downgrade in the L MR1 InCallUi.

Change-Id: I61bf7efa6ac23859c900dfd059faf72184987943
Signed-off-by: Matthieu Baglin <matthieu.baglin@intel.com>
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
99e2ae0cd7a30a4332c594b032f9971ddaebf150 12-Dec-2014 Matthieu Baglin <matthieu.baglin@intel.com> Set the camera to null when preview surface is destroyed

When the video call is disconnected, the camera would still
be opened without this fix.

Signed-off-by: Matthieu Baglin <matthieu.baglin@intel.com>
Change-Id: Ie69fb87412c53e4c6072d998d3e3b067c4c8ba0f
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.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/VideoCallPresenter.java
0455402172610400a220a95e3ad8a93302a80f15 02-Sep-2014 Tyler Gunn <tgunn@google.com> Fixing NPE in InCallCameraManager.

1. Changed InCallCameraManager to check for null context before getting
the CAMERA_SERVICE.
2. Added try/catch around getSystemService call to ensure failures don't
crash InCall UI.
3. Changed so that the InCallCameraManager is lazy loaded, only when it
is actually used (previously it was initialized on InCall startup).

Bug: 17355717
Change-Id: Ie5debaece1e5dca4d3c5b6a586a188f518696ab8
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
35224e8ff0e3707b92626767f048f1bf83352a2d 22-Aug-2014 Tyler Gunn <tgunn@google.com> Ensuring Video APIs are only called when video is available.

Bug: 17179079
Change-Id: I3b327250c181f821ec37d574ae804f8003d04603
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.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/VideoCallPresenter.java
fe4982c221c8ee734afedc4d005661d9c6c1ac31 11-Aug-2014 Andrew Lee <anwlee@google.com> Add UI/functions to handle a video upgrade request.

+ Move session modification listener into the video call presenter.
+ Add new video accept/reject notification and full-screen UI.
+ Added "handling" which sends session modification response.

Bug: 16657915
Change-Id: I35ff04e383d4938cbfb4e76677730f82557fd918
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
0d78ed0724c329eb44379ef281c2b1c6ba779614 12-Aug-2014 Nancy Chen <nancychen@google.com> Merge "Reduce latency for InCallUI by adding an intermediate state" into lmp-dev
f3d0654f2b6d77b7eef8bdcb4c39ee59e55017de 01-Aug-2014 Nancy Chen <nancychen@google.com> Reduce latency for InCallUI by adding an intermediate state

Add PENDING_OUTGOING as a state where the Telecomm information has not
yet returned but the UI has started. This allows the UI to immediately
begin initiating while Telecomm is waiting for the return of its
broadcast intent.

Bug: 16396523

Change-Id: Ia4b39689b89f9dea3aafae9e63ca0bfebb730501
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
181c11e0668ac892df10a897cd05505b342dcdc3 08-Aug-2014 Tyler Gunn <tgunn@google.com> VT preview camera setup. (2/2)

Changing the means by which the preview camera is set for video calls.
Previously, an assumption was made that as soon as the camera is set
on the provider, the camera capabilities would be returned.
Changed so that instead the InCall-UI will explicitly request the
camera capabilities after the camera is set to match the original
intended camera setup flow.

Change-Id: I6992e68e1efc0d8abf017fdc62f932bd0b9fce03
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.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/VideoCallPresenter.java
4b0d86229cf80a4d85652ca097b0f3bcf902b4ac 31-Jul-2014 Andrew Lee <anwlee@google.com> Change audio to speakerphone for video call.

+ some minor cleanups with naming and listeners.

Bug: 16679238
Change-Id: Ic89b862b035ce6c99d8d7ec0fe5842b6a4b20ac4
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
aed98fccfc2af12f8c24f93242fecdab23758c8d 25-Jul-2014 Andrew Lee <anwlee@google.com> Status labels for video calls.

- Display the appropriate status labels for video calls, mostly
depending on whether one is in a video call, and whether one
has requested video and is waiting for a response, or a video
request has failed.
- Add a handler to the CallCardPresenter, so we can show an error
message in the fail case, but only show the message for a time.
- Add video icon in layout.
- Renamed CallVideoClientNotifier to reflect newer nomenclature.
- Add session modification state information on InCallUI call. This
helps us track state to know what strings to display on the card.

Bug: 16013340
Change-Id: Ib2bf84d93a05664adbf7fe838848b7d7b54a8254
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
15a8e3cb2c01b59b5328a74e6c46144843103205 29-Jul-2014 Tyler Gunn <tgunn@google.com> Various changes.

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
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
c014cd6f8e5b41bc253d0dee4da6e595cae0d0c0 26-Jul-2014 Yorke Lee <yorkelee@google.com> Merge "Stop using private APIs in InCallUI" into lmp-dev
8e98c93f1806e1a23da1b1b3e67b996b233b0ed3 25-Jul-2014 Yorke Lee <yorkelee@google.com> Stop using private APIs in InCallUI

The following APIs/packages are private and should not be used

TelephonyManager.from(context) (use getSystemService(Context.TELEPHONY_SERVICE instead)
TelecommManager.from(context) (use getSystemService(Context.TELECOMM_SERVICE instead)
com.google.android.collect (use com.google.common.collect instead)
com.android.internal.util.Preconditions (use com.google.common.base.Preconditions instead)

Bug: 6948882
Change-Id: Ib939fdf704a340a51294eca8eabfda82022f6d9f
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
230f77ec8e790f70b0c4a475e69566c049c97a06 23-Jul-2014 Andrew Lee <anwlee@google.com> Use VideoCall instead of RemoteCallVideoProvider in InCallUi.

Bug: 16494880
Bug: 16495203
Change-Id: I61d981d835a5a4b452c20c736af1eabd64da198c
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
2c702f7e3c774471c3ba5d557effa056a3b93b8f 22-Jul-2014 Tyler Gunn <tgunn@google.com> InCall UI VT changes

1. Adding CallVideoClientNotifier - used by InCallVideoClient to notify
interested listeners of events related to call video clients.
2. Change InCallVideoClient to use CallVideoClientNotifier to notify
listeners of incoming events.
3. Modify call details listener signature in InCallPresenter to include
the call for which the details changed.
4. Changing VideoCallPresenter to subscribe to call details changes,
so it will keep informed of changes to the video state of the call.

Bug: 16012946
Change-Id: I47aa2a8e8c852bb7e4ea2e83fa4a30b2697266e6
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java
e59cd0f067d5630742ffe4724f18720c94053194 20-Jul-2014 Tyler Gunn <tgunn@google.com> Video call surfaces and changing to video UI on videoState change.

Bug: 16012946
Change-Id: I1e86b172d46d3e67eff210d9f56e03a2e6c93853
/packages/apps/InCallUI/src/com/android/incallui/VideoCallPresenter.java