diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-08-31 16:17:04 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-08-31 16:17:04 +0000 |
commit | c39ea3c55fac807c0b98aabdf56c70dc8a49036c (patch) | |
tree | e282668a9587cf6c1ec7b604dea860400c75c6c7 /java/com/android/incallui/videotech/VideoTech.java | |
parent | 68038172793ee0e2ab3e2e56ddfbeb82879d1f58 (diff) | |
parent | 2ca4318cc1ee57dda907ba2069bd61d162b1baef (diff) |
Merge "Update Dialer source to latest internal Google revision."
Diffstat (limited to 'java/com/android/incallui/videotech/VideoTech.java')
-rw-r--r-- | java/com/android/incallui/videotech/VideoTech.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/java/com/android/incallui/videotech/VideoTech.java b/java/com/android/incallui/videotech/VideoTech.java index 7da74c057..79a8c605c 100644 --- a/java/com/android/incallui/videotech/VideoTech.java +++ b/java/com/android/incallui/videotech/VideoTech.java @@ -17,6 +17,8 @@ package com.android.incallui.videotech; import android.content.Context; +import android.support.annotation.Nullable; +import com.android.dialer.logging.DialerImpression; import com.android.incallui.video.protocol.VideoCallScreen; import com.android.incallui.video.protocol.VideoCallScreenDelegate; import com.android.incallui.videotech.utils.SessionModificationState; @@ -41,6 +43,8 @@ public interface VideoTech { void onCallStateChanged(Context context, int newState); + void onRemovedFromCallList(); + @SessionModificationState int getSessionModificationState(); @@ -62,10 +66,16 @@ public interface VideoTech { void unpause(); - void setCamera(String cameraId); + void setCamera(@Nullable String cameraId); void setDeviceOrientation(int rotation); + /** + * Called on {@code VideoTechManager.savedTech} when it's first selected and it will always be + * used. + */ + void becomePrimary(); + /** Listener for video call events. */ interface VideoTechListener { @@ -80,5 +90,7 @@ public interface VideoTech { void onVideoUpgradeRequestReceived(); void onUpgradedToVideo(boolean switchToSpeaker); + + void onImpressionLoggingNeeded(DialerImpression.Type impressionType); } } |