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

Commit 252e8804 authored by William Escande's avatar William Escande
Browse files

Bqr: Remove native call from test

Bug: 295237486
Test: atest AdapterService*Test
Change-Id: I3723641034c9246609fd87d7bc10f2993ec00f66
parent 223dd636
Loading
Loading
Loading
Loading
+16 −3
Original line number Diff line number Diff line
@@ -25,9 +25,10 @@ import android.util.Log;

import com.android.bluetooth.Utils;
import com.android.internal.annotations.GuardedBy;
import com.android.internal.annotations.VisibleForTesting;

final class BluetoothQualityReportNativeInterface {

/** Native interface to BQR */
public class BluetoothQualityReportNativeInterface {
    private static final String TAG = "BluetoothQualityReportNativeInterface";

    @GuardedBy("INSTANCE_LOCK")
@@ -36,8 +37,12 @@ final class BluetoothQualityReportNativeInterface {
    private static final Object INSTANCE_LOCK = new Object();

    static {
        if (Utils.isInstrumentationTestMode()) {
            Log.w(TAG, "App is instrumented. Skip loading the native");
        } else {
            classInitNative();
        }
    }

    private BluetoothQualityReportNativeInterface() {}

@@ -51,6 +56,14 @@ final class BluetoothQualityReportNativeInterface {
        }
    }

    /** Set singleton instance. */
    @VisibleForTesting
    static void setInstance(BluetoothQualityReportNativeInterface instance) {
        synchronized (INSTANCE_LOCK) {
            sInstance = instance;
        }
    }

    /**
     * Initializes the native interface.
     *