Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e16bca65 authored by Josh Wu's avatar Josh Wu
Browse files

A2DP: Remove BLUETOOTH_A2DP_PLAYBACK_STATE_CHANGED metrics logging

This log is moved to stack.

Tag: #refactor
Bug: 183473902
Test: atest BluetoothInstrumentationTests
Change-Id: I3c613ed612241e22f27a9679af896fc33756dbdc
parent 36b757d8
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -55,7 +55,6 @@ import android.os.Looper;
import android.os.Message;
import android.os.Message;
import android.util.Log;
import android.util.Log;


import com.android.bluetooth.BluetoothStatsLog;
import com.android.bluetooth.btservice.ProfileService;
import com.android.bluetooth.btservice.ProfileService;
import com.android.bluetooth.statemachine.State;
import com.android.bluetooth.statemachine.State;
import com.android.bluetooth.statemachine.StateMachine;
import com.android.bluetooth.statemachine.StateMachine;
@@ -688,7 +687,6 @@ final class A2dpStateMachine extends StateMachine {
    private void broadcastAudioState(int newState, int prevState) {
    private void broadcastAudioState(int newState, int prevState) {
        log("A2DP Playing state : device: " + mDevice + " State:" + audioStateToString(prevState)
        log("A2DP Playing state : device: " + mDevice + " State:" + audioStateToString(prevState)
                + "->" + audioStateToString(newState));
                + "->" + audioStateToString(newState));
        BluetoothStatsLog.write(BluetoothStatsLog.BLUETOOTH_A2DP_PLAYBACK_STATE_CHANGED, newState);
        Intent intent = new Intent(BluetoothA2dp.ACTION_PLAYING_STATE_CHANGED);
        Intent intent = new Intent(BluetoothA2dp.ACTION_PLAYING_STATE_CHANGED);
        intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice);
        intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice);
        intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
        intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);