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

Commit 9bd19f46 authored by Yiyi Shen's avatar Yiyi Shen Committed by Android (Google) Code Review
Browse files

Merge "[Audiosharing] Reset shadows after tests." into main

parents 440d0616 f570ee00
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ public class AudioSharingCompatibilityPreferenceController extends TogglePrefere
    private final AtomicBoolean mCallbacksRegistered = new AtomicBoolean(false);

    @VisibleForTesting
    protected final BluetoothLeBroadcast.Callback mBroadcastCallback =
    final BluetoothLeBroadcast.Callback mBroadcastCallback =
            new BluetoothLeBroadcast.Callback() {
                @Override
                public void onBroadcastStarted(int reason, int broadcastId) {
@@ -219,7 +219,7 @@ public class AudioSharingCompatibilityPreferenceController extends TogglePrefere

    /** Test only: set callbacks registration state for test setup. */
    @VisibleForTesting
    public void setCallbacksRegistered(boolean registered) {
    void setCallbacksRegistered(boolean registered) {
        mCallbacksRegistered.set(registered);
    }

+1 −1
Original line number Diff line number Diff line
@@ -103,7 +103,7 @@ public class AudioSharingDashboardFragment extends DashboardFragment

    /** Test only: set mock controllers for the {@link AudioSharingDashboardFragment} */
    @VisibleForTesting
    protected void setControllers(
    void setControllers(
            AudioSharingDeviceVolumeGroupController volumeGroupController,
            AudioSharingCallAudioPreferenceController callAudioController,
            AudioSharingPlaySoundPreferenceController playSoundController,
+2 −1
Original line number Diff line number Diff line
@@ -100,7 +100,8 @@ public class AudioSharingDialogFragment extends InstrumentedDialogFragment {

    /** Test only: get the event data passed to the dialog. */
    @VisibleForTesting
    protected @NonNull Pair<Integer, Object>[] getEventData() {
    @NonNull
    Pair<Integer, Object>[] getEventData() {
        return sEventData;
    }

+1 −1
Original line number Diff line number Diff line
@@ -105,7 +105,7 @@ public class AudioSharingPlaySoundPreferenceController
    }

    @VisibleForTesting
    protected void setRingtone(Ringtone ringtone) {
    void setRingtone(Ringtone ringtone) {
        mRingtone = ringtone;
    }

+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ public class AudioSharingPreferenceController extends BasePreferenceController
    private final Executor mExecutor;

    @VisibleForTesting
    protected final BluetoothLeBroadcast.Callback mBroadcastCallback =
    final BluetoothLeBroadcast.Callback mBroadcastCallback =
            new BluetoothLeBroadcast.Callback() {
                @Override
                public void onBroadcastStarted(int reason, int broadcastId) {
Loading