summaryrefslogtreecommitdiff
path: root/tests/native
AgeCommit message (Collapse)Author
2023-04-19Don't stop decoding RTCP compound packet when RTCP-XR report block is ↵Avinash Malipatil
encountered. Skip the XR report or any other unknown report block and continue to decode next report in the RTCP compound packet. Fix possible memory leaks. Bug: 276462829 Test: atest ImsMediaNativeTests and live network verified Change-Id: Ica104680d4a0260d8a28d3eef323e415d5b071b8
2023-04-17Merge "Add UT for AudioManager" into udc-devBodam Nam
2023-04-11Merge "Add unit test cases for RTCP decoder node." into udc-devAvinash Malipatil
2023-04-11Merge "Implementation of video downgrade opreration API" into udc-devBodam Nam
2023-04-06Merge "Add UT for AudioRtpPayloadEncoder/Decoder" into udc-devBodam Nam
2023-04-06Add UT for AudioRtpPayloadEncoder/Decoderbodamnam
1) Add UT for AudioRtpPayloadEncoder/Decoder 2) Define default CMR for EVS codec 3) Refactoring debug logs Bug: 272299058 Test: atest ImsMediaNativeTests, Verified voice call of AMR/AMR-WB/EVS codec using ImsMediaTestingApp Change-Id: Id34764633a45cc35bb77cbac9676966824b83fdf
2023-04-06Add unit test cases for RTCP decoder node.Avinash Malipatil
Bug: 272299057 Test: atest ImsMediaNativeTests Change-Id: I90a8da2ef9677267148fb4f9667ed1856dbe872e
2023-04-05Fix video distortion in TX encoded frames.Avinash Malipatil
Video encoder input format has stride not equal to the image width which caused distorted video encoder output. Enhanced image rotation utility and pause image source to accept output image stride and added padding in output buffers. Bug: 266388412 Test: atest ImsMediaNativeTests, tested for all standard resolutions using Media Test App. Change-Id: I1d8ed477e4cb7d4746a32b0f52e64e4660a0014a
2023-04-05Add UT for AudioManagerbodamnam
Fix the crash during the AudioManager UT by the racing codition accessing the AudioManager instance between AudioManger destruction and processEvent in ImsMediaEventHandler. Bug: 272299058 Test: atest ImsMediaNativeTests, Verified the voice call in live network. Change-Id: I9bed59f9bfe2916ccdc2fae2c671c8811bcdcdca
2023-03-29Implementation of video downgrade opreration APIbodamnam
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
2023-03-28Add unit test for ImsMediaBitWriter/Readerbodamnam
Bug: 272299058 Test: atest ImsMediaNativeTests Change-Id: I29af6ba0b4f2ca643df83a70841d63110f538f63
2023-03-23Modify to notify MediaQualityStatus checking media directionbodamnam
1) Add statement to check the direction in Rtp, Rtcp, Jitter and packet loss notification 2) Modify to reset the statistics status when the direction changed in the MediQualityAnalzyer 3) Modify to check rtcp enabled to reset the inactivity counter for rtcp Bug: 272068717 Test: atest ImsMediaNativeTests, Verified Voice Call hold/resume case in live network. Verified VZW VoWIFI 10.3 which includes hold/resume operation. Change-Id: I61b0b9cce09139e0a9599c4ca4a07e3899b62276
2023-03-17Merge "Improve the text sending performance" into udc-devBodam Nam
2023-03-16Improve the text sending performancebodamnam
1) The TextSourceNode was sending data to the UTF-8 chunk unit, which was slowing down the performance. I remove the logic splits the text string to UTF-8 unit and send the text string as same as it was received to speed up the performance. 2) Remove the own text list and use the member of data queue in base class instead in the TextSourceNode. Bug: 271626757 Test: 1 to 1 MO/MT RTT test case with device, atest ImsMediaNativeTests Change-Id: Ie4ab8e189e4fc231d6b11707f6adae4fa563d936
2023-03-15Merge "Fix not to send RTCP in NO_FLOW direction" into udc-devBodam Nam
2023-03-13Add unit test cases for RTCP encoder node.Avinash Malipatil
Bug: 272299057 Test: atest ImsMediaNativeTests Change-Id: I5324935dad859de281ca05b1b13ea46814c9f52a
2023-03-09Fix not to send RTCP in NO_FLOW directionbodamnam
The CL modifies that the RTCP packets are no longer sent in the NO_FLOW direction. The BaseStreamGraph class's Start method was overridden to ensure that each Audio/Text StreamRtcp instance does not send RTCP packets in the NO_FLOW direction Bug: 270893749 Test: atest ImsMediaNativeTests, Verified Voice Call, Video Call and RTT call direction changing cases in loopback mode using ImsMediaTestingApp Change-Id: I361155a4b06cc1fb067844583ebd72371cf7f661
2023-03-08Fix jitter/loss calculation failurebodamnam
1) Fix the incorrect lost packet count 2) Modify to run jitter/loss notification checking routine before checking the other notificaiton condition 3) Add jitter reset operation when the ssrc changed Bug: 268602328 Test: atest ImsMediaNativeTests, Verified with the test case LTE_BTR_5_7160-4. Verified voice call in live network. Change-Id: I5eb5c2a10be5722c988d05b3828eca6c08d47f58
2023-02-22Fix the incorrect CallQuality notificationbodamnam
1) Improve the delete frame logic in AudioJitterBuffer to prevent incorrect lost frame reported 2) Remove unusing logic in AudioJitterBuffer 3) Fix the timing of the MediaQualityAnalyzer starting and add thread initaliation code to prevent the zero value notification 4) Fix call duration 5) Add reporting min/max playout delay 6) Add UT of AudioJitterBuffer for verification Bug: 263846230 Test: loopback testing with ImsMediaTestingApp, atest ImsMediaNativeTests Change-Id: I7c8454051dcdb10f46d7d2d229fe612120e80b51
2023-02-21Implementation of RtpHeaderExtensionbodamnam
Add implementation of send/receive the RtpHeaderExtension in the audio session. Add UT for RtpEncoderNode and RtpDecoderNode. Add test button for testing RtpHeaderExtension in testing application. Bug: 263849365 Test: atest ImsMediaNativeTests, Verified voice call and the CVO enabled video call in loopback mode with ImsMediaTestingApp Change-Id: Idb969b0b5364966e71833d26c7bdfdd17d0e86b6
2023-02-15Merge "Modify AudioSession to delete old stream when modifySession is called ↵Bodam Nam
with new remote address."
2023-02-15Modify AudioSession to delete old stream when modifySession is called with ↵bodamnam
new remote address. 1) The current code is create a set of audiostream when modifySession called with the new AudioConfig which has new remote address. It make audioSession to keep creates stream everytime the addConfig invoked. I change the code to delete old stream when the modifySession called with AudioConfig with a new remote address. 2) Add UT for the AudioSession Bug: 264833064 Test: atest ImsMediaNativeTests, Verified Voice Call test with forking/non-forking case in live network. Verified by device testing the TC of ATT LTE_BTR_5_5573 pased Change-Id: Icbf809d17113c0afcb24f2ca7c3f093db9bbdc9d
2023-02-06Fix ImsMediaVideoSource crash in processOutputBufferbodamnam
1) Replace the mutex lock to auto lock 2) Skip before processing the uplink frame checking the session stopped 3) Remove use-after-delete memory case in ImsMediaCamera Bug: 259500454 Bug: 259500583 Bug: 265611777 Test: loopback test with ImsMediaTestingApp in hwasan debugging binary, atest ImsMediaNativeTests Change-Id: I667c3277795b734cbce90e41e060536096102288
2023-02-02Fix the rtcp counter is not increased in MediaQualityAnalyzerbodamnam
1) Fix the rtcp packet counter initalized. 2) Move rtp packet null check into the rtp type statement 3) Add checking the rtp inactivity time is not zero to prevent the notify every sec when the rtp inactivty time is set 0. 4) Add more UT to cover the case that rtp and rtcp inactivity Bug: 267543974 Test: atest ImsMediaNativeTest and verified by device test in live network Change-Id: Ie2c70079c330860811eed9e9ef34c76af7411ff4
2023-02-01Implementation of processing MediaQualityThreshold in libimsmediabodamnam
1) Implementation of procesing MediaQualityThreshold to handle the array type of RtpInctivity, PacketLoss, Jitter threshold and additional parameters 2) Implementation of send the notification of MediaQualityStatus 3) Change the name of legacy MediaQuality to CallQuality to prevent the confusion. Bug: 255862778 Test: atest ImsMediaNativeTests, verified by loopback test using ImsMediaTestingApp Change-Id: Id634272210ec3c21fc6e9a775bdad8d5a49273cb
2023-01-30Implementation of receiving dtmf in libimsmediabodamnam
Bug: 265610926 Test: atest ImsMediaNativeTests, dtmf loopback test with ImsMediaTestingApp Change-Id: If782e1941c9cef39f33cde6c1927d0309cfe1346
2023-01-27Merge "Fix the TextRendererNodeTest memory access violation"Bodam Nam
2023-01-27Merge "Fix the AudioStreamGraphRtpTxTest memory access violation"Bodam Nam
2023-01-26Fix the TextRendererNodeTest memory access violationbodamnam
Fix the access after delete Fix the heap memory overflow Bug: 266402141 Test: atest ImsMediaNativeTests Change-Id: I36f0837ae2a4fed0703c5691ab153dc1bdc11497
2023-01-26Merge "Fix heap-buffer-overflow identified by HWASan in RtcpByePacketTest"Rakesh Raghava
2023-01-25Merge "Statistics Summary Report Block corruption issue resolved"Rakesh Raghava
2023-01-25Fix the AudioStreamGraphRtpTxTest memory access violationbodamnam
Fix use-after-free issue when accesing the MockRtpEncoderNode instance after delete it in graph destructor. Bug: 266402140 Test: atest ImsMediaNativeTests Change-Id: I13377a952b970bf6d54bb441d2fdc5c5a175a9de
2023-01-23Statistics Summary Report Block corruption issue resolvedRakesh Raghava
First 2 bytes of Statistics Summary Report Block in RTCP were replaced by round trip delay, as round trip delay offset was set as zero, which caused corruption. As media core handled round trip delay bytes in VoIP Metrics Report Block, rtd handling in rtpstack is removed now including rtd offset. UT updated. Bug: 263843202 Bug: 266180395 Test: Verified RtcpXr sent in VoLte call atest ImsMediaNativeTests with/without Hwasan Change-Id: I33e9a999d2fdc523c0629a502193983e12fe6065
2023-01-20Fix Failure identified by HWASan in RtcpPacketTestRakesh Raghava
Bug: 266155180 Test: atest ImsMediaNativeTests with/without HWASan ran clang-tidy check Change-Id: Ia958532a0edd57a26649bfed15df19711ece2a7d
2023-01-19Fix heap-buffer-overflow identified by HWASan in RtcpByePacketTestRakesh Raghava
modified buffers used avoided invalid memory access added testcases for verification of decoded packets and encoded packets Bug: 259053885 Test: atest ImsMediaNativeTests with/without HWASan ran clang-tidy check Change-Id: Ifb41374840a873ba67810610203d67a03ecae073
2023-01-14Skiped some ImsMedia tests.dhavalc
-VideoStreamGraphRtcpTest -VideoStreamGraphRtpRxTest -VideoStreamGraphRtpTxTest Fix: 265235793 Test: atest -c ImsMediaNativeTests Change-Id: If54bcbe48ed8930525a2c0125bc336bd0e27c99d
2023-01-12Merge "Fix ImsMedia clang issues"Rakesh Raghava
2023-01-11Fix ImsMedia clang issuesRakesh Raghava
- issues observed with Clang-Tidy Checks such as cert-oop54-cpp, performance-unnecessary-value-param, bugprone-macro-parentheses, bugprone-integer-division, bugprone-undefined-memory-manipulation, clang-analyzer-cplusplus.NewDeleteLeaks are resolved Bug: 265030400 Test: atest ImsMediaNativeTests Verified VoLTE calls with device Change-Id: Ib277ca20c155e82dc205213957df100fb8646f22
2023-01-11Refactor integer sizes to match image size and dimension.Avinash Malipatil
Bug: 264511092 Test: atest ImsMediaNativeTests Change-Id: I93c7c99f4d1b1da83a1add6f348f151789ddedc1
2023-01-11Merge "Fix the manual code review"Bodam Nam
2023-01-11Merge "heap-buffer-overflow in RtcpAppPacket with hwasan enable"Munikrishna J
2023-01-10Fix the manual code reviewbodamnam
Use nullptr instead of NULL Bug: 260305828 Test: atest ImsMediaNativeTests Change-Id: I3a327830092f2d9310fd138e4a03abc764a3bc06
2023-01-10Merge "Fix code review issue - JitterNetworkAnalyzer"Bodam Nam
2023-01-10Merge "heap-buffer-overflow in RtcpRrPacketTest with hwasan"Munikrishna J
2023-01-10Fix code review issue - JitterNetworkAnalyzerbodamnam
Remove unused method and rename the method to make the style consistent. Use std library to calculate jitter and deviation Add UT for JitterNetworkAnalyzer Bug: 260299447 Test: testing with device using ImsMediaTestingApp, atest ImsMediaNativeTests Change-Id: Ibd4836edb4fec6cefc9349cf6936dbbb05f5e9b5
2023-01-09Fix the clang warningbodamnam
Bug: 261801535 Bug: 261801393 Test: atest ImsMediaNativeTests Change-Id: I17d10032a8242a151083a66e7c73902ccb96be9e
2023-01-09heap-buffer-overflow in RtcpAppPacket with hwasan enableMunikrishna
formAppPacketBufferOverflowTest setting invalid length to buffer in which app packet is formed from existing packet. Test: atest ImsMediaNativeTests Bug: 259049177 Change-Id: I9a6d5126ea3c1ab17443b71715e40e6f0c14b514
2023-01-09heap-buffer-overflow in RtcpRrPacketTest with hwasanMunikrishna
heap-buffer-overflow in RtcpRrPacketTest with hwasan. Buffer length is changed to proper value. Test: atest ImsMediaNativeTests Bug: 259076751 Change-Id: I892f8f3028af7508af4402a484af44b98a3e09d9
2023-01-05Fix RtpStack clang issuesRakesh Raghava
- issues observed with Clang-Tidy Checks such as bugprone-suspicious-memory-comparison, bugprone-macro-parentheses, clang-analyzer-deadcode.DeadStores, UndefinedBinaryOperatorResult, clang-analyzer-core.CallAndMessage are resolved Bug: 261801392 Bug: 264340738 Test: atest ImsMediaNativeTests Verified VoLTE calls with device Change-Id: I95a02b311ff55604d47b39cfa5bf1e0980321666
2023-01-04Merge "Fix crash in MediaQualityAnalyzer"Bodam Nam