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

Commit 7f1c0b26 authored by Hyundo Moon's avatar Hyundo Moon
Browse files

Remove sysprop/pan.sysprop

The sysprop "bluetooth.pan.nap.enabled" was made when
"bluetooth.profile.pan.nap.enabled" has long since existed.

This CL removes the newly created one, including the file
where it is defined.

Bug: 305785609
Test: m -j;
Flag: EXEMPT, duplicate sysprop removal - it should be no-op ideally
Change-Id: I33fec7ff1c2a5fd115a0a20452c9bb33f3dd5d95
parent f4209007
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -11,7 +11,6 @@ sysprop_library {
        "ble.sysprop",
        "bta.sysprop",
        "hfp.sysprop",
        "pan.sysprop",
    ],
    property_owner: "Platform",
    api_packages: ["android.sysprop"],
+0 −1
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@
#include <ble.sysprop.h>
#include <bta.sysprop.h>
#include <hfp.sysprop.h>
#include <pan.sysprop.h>

#define GET_SYSPROP(namespace, prop, default) \
  android::sysprop::bluetooth::namespace ::prop().value_or(default)

sysprop/pan.sysprop

deleted100644 → 0
+0 −10
Original line number Diff line number Diff line
module: "android.sysprop.bluetooth.Pan"
owner: Platform

prop {
    api_name: "nap"
    type: Boolean
    scope: Internal
    access: Readonly
    prop_name: "bluetooth.pan.nap.enabled"
}
+8 −1
Original line number Diff line number Diff line
@@ -55,6 +55,10 @@
#include "stack/include/pan_api.h"
#include "types/raw_address.h"

#ifdef __ANDROID__
#include <android/sysprop/BluetoothProperties.sysprop.h>
#endif

#define FORWARD_IGNORE 1
#define FORWARD_SUCCESS 0
#define FORWARD_FAILURE (-1)
@@ -119,9 +123,12 @@ void btif_pan_init() {
    btpan_cb.enabled = 1;

    int role = BTPAN_ROLE_NONE;
    if (GET_SYSPROP(Pan, nap, true)) {
#ifdef __ANDROID__
    if (android::sysprop::BluetoothProperties::isProfilePanNapEnabled()
            .value_or(false)) {
      role |= BTPAN_ROLE_PANNAP;
    }
#endif
    role |= BTPAN_ROLE_PANU;
    btpan_enable(role);
  }