Loading sysprop/Android.bp +0 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,6 @@ sysprop_library { "ble.sysprop", "bta.sysprop", "hfp.sysprop", "pan.sysprop", ], property_owner: "Platform", api_packages: ["android.sysprop"], Loading sysprop/exported_include/android_bluetooth_sysprop.h +0 −1 Original line number Diff line number Diff line Loading @@ -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) Loading sysprop/pan.syspropdeleted 100644 → 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" } system/btif/src/btif_pan.cc +8 −1 Original line number Diff line number Diff line Loading @@ -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) Loading Loading @@ -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); } Loading Loading
sysprop/Android.bp +0 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,6 @@ sysprop_library { "ble.sysprop", "bta.sysprop", "hfp.sysprop", "pan.sysprop", ], property_owner: "Platform", api_packages: ["android.sysprop"], Loading
sysprop/exported_include/android_bluetooth_sysprop.h +0 −1 Original line number Diff line number Diff line Loading @@ -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) Loading
sysprop/pan.syspropdeleted 100644 → 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" }
system/btif/src/btif_pan.cc +8 −1 Original line number Diff line number Diff line Loading @@ -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) Loading Loading @@ -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); } Loading