Loading system/test/rootcanal/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -72,6 +72,7 @@ cc_binary { "packages/modules/Bluetooth/system/stack/include", ], init_rc: ["android.hardware.bluetooth@1.1-service.sim.rc"], required: ["bt_controller_properties"], } cc_library_shared { Loading system/vendor_libs/test_vendor_lib/data/Android.bp +8 −0 Original line number Diff line number Diff line Loading @@ -12,3 +12,11 @@ prebuilt_etc_host { src: "controller_properties.json", sub_dir: "rootcanal/data", } prebuilt_etc { name: "bt_controller_properties", src: "controller_properties.json", vendor: true, filename_from_src: true, sub_dir: "bluetooth", } system/vendor_libs/test_vendor_lib/model/controller/dual_mode_controller.h +2 −1 Original line number Diff line number Diff line Loading @@ -48,7 +48,8 @@ using ::bluetooth::hci::CommandView; // "Hci" to distinguish it as a controller command. class DualModeController : public Device { // The location of the config file loaded to populate controller attributes. static constexpr char kControllerPropertiesFile[] = "/etc/bluetooth/controller_properties.json"; static constexpr char kControllerPropertiesFile[] = "/vendor/etc/bluetooth/controller_properties.json"; static constexpr uint16_t kSecurityManagerNumKeys = 15; public: Loading system/vendor_libs/test_vendor_lib/model/devices/device_properties.cc +2 −2 Original line number Diff line number Diff line Loading @@ -92,8 +92,8 @@ DeviceProperties::DeviceProperties(const std::string& file_name) std::string errs; if (!Json::parseFromStream(builder, file, &root, &errs)) { LOG_ERROR("Error reading controller properties from file: %s", errs.c_str()); LOG_ERROR("Error reading controller properties from file: %s error: %s", file_name.c_str(), errs.c_str()); return; } Loading Loading
system/test/rootcanal/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -72,6 +72,7 @@ cc_binary { "packages/modules/Bluetooth/system/stack/include", ], init_rc: ["android.hardware.bluetooth@1.1-service.sim.rc"], required: ["bt_controller_properties"], } cc_library_shared { Loading
system/vendor_libs/test_vendor_lib/data/Android.bp +8 −0 Original line number Diff line number Diff line Loading @@ -12,3 +12,11 @@ prebuilt_etc_host { src: "controller_properties.json", sub_dir: "rootcanal/data", } prebuilt_etc { name: "bt_controller_properties", src: "controller_properties.json", vendor: true, filename_from_src: true, sub_dir: "bluetooth", }
system/vendor_libs/test_vendor_lib/model/controller/dual_mode_controller.h +2 −1 Original line number Diff line number Diff line Loading @@ -48,7 +48,8 @@ using ::bluetooth::hci::CommandView; // "Hci" to distinguish it as a controller command. class DualModeController : public Device { // The location of the config file loaded to populate controller attributes. static constexpr char kControllerPropertiesFile[] = "/etc/bluetooth/controller_properties.json"; static constexpr char kControllerPropertiesFile[] = "/vendor/etc/bluetooth/controller_properties.json"; static constexpr uint16_t kSecurityManagerNumKeys = 15; public: Loading
system/vendor_libs/test_vendor_lib/model/devices/device_properties.cc +2 −2 Original line number Diff line number Diff line Loading @@ -92,8 +92,8 @@ DeviceProperties::DeviceProperties(const std::string& file_name) std::string errs; if (!Json::parseFromStream(builder, file, &root, &errs)) { LOG_ERROR("Error reading controller properties from file: %s", errs.c_str()); LOG_ERROR("Error reading controller properties from file: %s error: %s", file_name.c_str(), errs.c_str()); return; } Loading