summaryrefslogtreecommitdiffstats
path: root/src/com/android/server/telecom/InCallTonePlayer.java
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2015-06-12 14:31:25 -0700
committerTyler Gunn <tgunn@google.com>2015-06-12 14:31:25 -0700
commit86014fcf9ec86e198a1ebac7c46e0e5c630735d7 (patch)
tree5d2b14f39d536a1e596f8c2f60e0912b20c7436d /src/com/android/server/telecom/InCallTonePlayer.java
parentfb598636c5e8802f565e305b068b5e991aaeaeb1 (diff)
downloadandroid_packages_services_Telecomm-86014fcf9ec86e198a1ebac7c46e0e5c630735d7.tar.gz
android_packages_services_Telecomm-86014fcf9ec86e198a1ebac7c46e0e5c630735d7.tar.bz2
android_packages_services_Telecomm-86014fcf9ec86e198a1ebac7c46e0e5c630735d7.zip
Play tone when video upgrade request is received.
Added a VideoProviderProxy which intermediates between the VideoProvider in the ConnectionService and the InCallService. Changed CallsManager to listen for session modification requests via the VideoProviderProxy and report these to its listeners via the CallsManagerListeberBase. Changed InCallToneMonitor to listen for session modification requests and to play a tone when a request to upgrade is received. Also, added an intent in the TestInCallService which I neglected to commit in a previous CL. Bug: 20232310 Change-Id: I1b105968f519ff6b166bbd02cb57b1cf68d2cea9
Diffstat (limited to 'src/com/android/server/telecom/InCallTonePlayer.java')
-rw-r--r--src/com/android/server/telecom/InCallTonePlayer.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/server/telecom/InCallTonePlayer.java b/src/com/android/server/telecom/InCallTonePlayer.java
index f51a6396..0d2e3c4f 100644
--- a/src/com/android/server/telecom/InCallTonePlayer.java
+++ b/src/com/android/server/telecom/InCallTonePlayer.java
@@ -60,6 +60,7 @@ public final class InCallTonePlayer extends Thread {
public static final int TONE_RING_BACK = 11;
public static final int TONE_UNOBTAINABLE_NUMBER = 12;
public static final int TONE_VOICE_PRIVACY = 13;
+ public static final int TONE_VIDEO_UPGRADE = 14;
private static final int RELATIVE_VOLUME_EMERGENCY = 100;
private static final int RELATIVE_VOLUME_HIPRI = 80;
@@ -183,6 +184,12 @@ public final class InCallTonePlayer extends Thread {
case TONE_VOICE_PRIVACY:
// TODO: fill in.
throw new IllegalStateException("Voice privacy tone NYI.");
+ case TONE_VIDEO_UPGRADE:
+ // Similar to the call waiting tone, but does not repeat.
+ toneType = ToneGenerator.TONE_SUP_CALL_WAITING;
+ toneVolume = RELATIVE_VOLUME_HIPRI;
+ toneLengthMillis = 4000;
+ break;
default:
throw new IllegalStateException("Bad toneId: " + mToneId);
}