diff options
author | Andrew Lee <anwlee@google.com> | 2014-08-11 14:44:18 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2014-08-12 10:19:05 -0700 |
commit | 9c98346835b8e902e0c2c11f14a35f4e91578e9f (patch) | |
tree | 83aefdcecd5d19d378f24b8dbd10c6896fdd2b27 /InCallUI/src/com/android/incallui/CallList.java | |
parent | c4abc8aee5ff3d92f1ca255ba271f6f46ecd6cc8 (diff) |
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
Diffstat (limited to 'InCallUI/src/com/android/incallui/CallList.java')
-rw-r--r-- | InCallUI/src/com/android/incallui/CallList.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/CallList.java b/InCallUI/src/com/android/incallui/CallList.java index becb411ca..66103e6ff 100644 --- a/InCallUI/src/com/android/incallui/CallList.java +++ b/InCallUI/src/com/android/incallui/CallList.java @@ -273,6 +273,21 @@ public class CallList implements InCallPhoneListener { return result; } + /** + * Returns the first call found in the call map with the specified call modification state. + * @param state The session modification state to search for. + * @return The first call with the specified state. + */ + public Call getVideoUpgradeRequestCall() { + for(Call call : mCallById.values()) { + if (call.getSessionModificationState() == + Call.SessionModificationState.RECEIVED_UPGRADE_TO_VIDEO_REQUEST) { + return call; + } + } + return null; + } + public Call getCallById(String callId) { return mCallById.get(callId); } |