summaryrefslogtreecommitdiff
path: root/service/src/com/android/telephony/imsmedia/VideoSession.java
diff options
context:
space:
mode:
authorbodamnam <bodamnam@google.com>2023-02-03 09:02:51 +0000
committerbodamnam <bodamnam@google.com>2023-03-29 08:16:52 +0000
commit1b233d3498e685039b709fa89820e536b231688b (patch)
treeb1961b57aaf0f5320a9c06ef681d7401b8784375 /service/src/com/android/telephony/imsmedia/VideoSession.java
parent079ac227d80cbfe1ab72f4f03abf2a91ac283c3b (diff)
downloadImsMedia-1b233d3498e685039b709fa89820e536b231688b.tar.gz
Implementation of video downgrade opreration API
Add APIs to downgrade the video triggered by bitrate monitoring Bug: 224903790 Test: atest ImsMediaNativeTests, ImsMediaJavaUnitTests, verified with loopback mode using ImsMediaTestingApp, Video Call downgrade test with L_IR94_312601. Change-Id: I407e5b864bf8258ebb22bb47a1aba1eec871bc2c
Diffstat (limited to 'service/src/com/android/telephony/imsmedia/VideoSession.java')
-rw-r--r--service/src/com/android/telephony/imsmedia/VideoSession.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/service/src/com/android/telephony/imsmedia/VideoSession.java b/service/src/com/android/telephony/imsmedia/VideoSession.java
index a2351df9..a0e77210 100644
--- a/service/src/com/android/telephony/imsmedia/VideoSession.java
+++ b/service/src/com/android/telephony/imsmedia/VideoSession.java
@@ -59,7 +59,7 @@ public final class VideoSession extends IImsVideoSession.Stub implements IMediaS
public static final int EVENT_PEER_DIMENSION_CHANGED = 205;
public static final int EVENT_RTP_HEADER_EXTENSION_IND = 206;
public static final int EVENT_MEDIA_INACTIVITY_IND = 207;
- public static final int EVENT_PACKET_LOSS_IND = 208;
+ public static final int EVENT_NOTIFY_BITRATE_IND = 208;
public static final int EVENT_VIDEO_DATA_USAGE_IND = 209;
public static final int EVENT_SESSION_CLOSED = 210;
@@ -233,8 +233,8 @@ public final class VideoSession extends IImsVideoSession.Stub implements IMediaS
case EVENT_MEDIA_INACTIVITY_IND:
handleNotifyMediaInactivityInd(msg.arg1);
break;
- case EVENT_PACKET_LOSS_IND:
- handleNotifyPacketLossInd(msg.arg1);
+ case EVENT_NOTIFY_BITRATE_IND:
+ handleNotifyBitrateInd(msg.arg1);
break;
case EVENT_VIDEO_DATA_USAGE_IND:
handleNotifyVideoDataUsage((long) msg.obj);
@@ -344,9 +344,9 @@ public final class VideoSession extends IImsVideoSession.Stub implements IMediaS
}
}
- private void handleNotifyPacketLossInd(int percentage) {
+ private void handleNotifyBitrateInd(int percentage) {
try {
- mCallback.notifyPacketLoss(percentage);
+ mCallback.notifyBitrate(percentage);
} catch (RemoteException e) {
Log.e(TAG, "Failed to notify packet loss: " + e);
}