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

Commit 8cab84b2 authored by William Escande's avatar William Escande Committed by Automerger Merge Worker
Browse files

Merge changes I0769bb44,If25df66b into main am: 8b8f7b4b am: 6efa57fe am:...

Merge changes I0769bb44,If25df66b into main am: 8b8f7b4b am: 6efa57fe am: 21451879 am: 14b360ff

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2760002



Change-Id: I2a853d324b57b53030243b767b1cfba1c65af545
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 45ac74a9 14b360ff
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -18,25 +18,12 @@ package com.android.bluetooth.btservice;
import android.app.Application;
import android.util.Log;

import com.android.bluetooth.Utils;

public class AdapterApp extends Application {
    private static final String TAG = "BluetoothAdapterApp";
    private static final boolean DBG = false;
    //For Debugging only
    private static int sRefCount = 0;

    static {
        if (DBG) {
            Log.d(TAG, "Loading JNI Library");
        }
        if (Utils.isInstrumentationTestMode()) {
            Log.w(TAG, "App is instrumented. Skip loading the native");
        } else {
            System.loadLibrary("bluetooth_jni");
        }
    }

    public AdapterApp() {
        super();
        if (DBG) {
@@ -58,7 +45,6 @@ public class AdapterApp extends Application {
        } catch (Exception e) {
            Log.e(TAG, "Migration failure: ", e);
        }
        Config.init(this);
    }

    @Override
+13 −0
Original line number Diff line number Diff line
@@ -175,6 +175,18 @@ public class AdapterService extends Service {
    private static final String TAG = "BluetoothAdapterService";
    private static final boolean DBG = true;
    private static final boolean VERBOSE = false;

    static {
        if (DBG) {
            Log.d(TAG, "Loading JNI Library");
        }
        if (Utils.isInstrumentationTestMode()) {
            Log.w(TAG, "App is instrumented. Skip loading the native");
        } else {
            System.loadLibrary("bluetooth_jni");
        }
    }

    private static final int MIN_ADVT_INSTANCES_FOR_MA = 5;
    private static final int MIN_OFFLOADED_FILTERS = 10;
    private static final int MIN_OFFLOADED_SCAN_STORAGE_BYTES = 1024;
@@ -600,6 +612,7 @@ public class AdapterService extends Service {
            })
    public void onCreate() {
        super.onCreate();
        Config.init(this);
        if (mLooper == null) {
            mLooper = Looper.getMainLooper();
        }