Fix issue with sending BluetoothCallQualityReport to Telecom.
The negative ack count would always be zero due to the fact that both packetsNotReceivedCount and negativeAcknowledgementCount were assigned to the packetsNotReceivedCount property of the builder. Modified isNullCall to call BluetoothCall#isCallNull so that the result can be mocked out to facilitate the unit test (otherwise we'd need to be able to return a mock android.telecom.Call which is not possible due to the fact it is a final class). Tag: #stability Test: atest BluetoothInCallServiceTest Bug: 200389658 Original change: https://android-review.googlesource.com/c/platform/packages/apps/Bluetooth/+/1831254 Merged-In: Ibd6dc8d61f3f52abed7afbeac3f027a0630ea40a Change-Id: Ibd6dc8d61f3f52abed7afbeac3f027a0630ea40a (cherry picked from commit 4ab9aeeea5b79194c78c944c631f8a21c8105cbb)
Loading
Please register or sign in to comment