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

Commit 5b83a525 authored by David Duarte's avatar David Duarte Committed by Automerger Merge Worker
Browse files

Merge "ProfileService: Remove create" into main am: 8ce2af80

parents e9477e04 8ce2af80
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -147,11 +147,6 @@ public class A2dpService extends ProfileService {
        return new BluetoothA2dpBinder(this);
    }

    @Override
    protected void create() {
        Log.i(TAG, "create()");
    }

    @Override
    protected boolean start() {
        Log.i(TAG, "start()");
+0 −7
Original line number Diff line number Diff line
@@ -74,13 +74,6 @@ public class BatteryService extends ProfileService {
        return new BluetoothBatteryBinder(this);
    }

    @Override
    protected void create() {
        if (DBG) {
            Log.d(TAG, "create()");
        }
    }

    @Override
    protected boolean start() {
        if (DBG) {
+0 −8
Original line number Diff line number Diff line
@@ -80,13 +80,6 @@ public abstract class ProfileService extends Service {
     */
    protected abstract IProfileServiceBinder initBinder();

    /**
     * Called in {@link #onCreate()} to init basic stuff in this service
     */
    // Suppressed since this is called from framework
    @SuppressLint("AndroidFrameworkRequiresPermission")
    protected void create() {}

    /**
     * Called in {@link #onStartCommand(Intent, int, int)} when the service is started by intent
     *
@@ -135,7 +128,6 @@ public abstract class ProfileService extends Service {
        super.onCreate();
        mAdapter = BluetoothAdapter.getDefaultAdapter();
        mBinder = initBinder();
        create();
    }

    @Override
+0 −7
Original line number Diff line number Diff line
@@ -117,13 +117,6 @@ public class CsipSetCoordinatorService extends ProfileService {
        return new BluetoothCsisBinder(this);
    }

    @Override
    protected void create() {
        if (DBG) {
            Log.d(TAG, "create()");
        }
    }

    @Override
    protected boolean start() {
        if (DBG) {
+0 −7
Original line number Diff line number Diff line
@@ -130,13 +130,6 @@ public class HapClientService extends ProfileService {
        mFeatureFlags = new FeatureFlagsImpl();
    }

    @Override
    protected void create() {
        if (DBG) {
            Log.d(TAG, "create()");
        }
    }

    @Override
    protected void cleanup() {
        if (DBG) {
Loading