Loading floss/pandora/floss/floss_enums.py +1 −0 Original line number Diff line number Diff line Loading @@ -135,6 +135,7 @@ class BtStatus(enum.IntEnum): WAKE_LOCK_ERROR = 14 BT_STATUS_TIMEOUT = 15 DEVICE_NOT_FOUND = 16 UNEXPECTED_STATE = 17 class SocketType(enum.IntEnum): Loading system/btif/src/bluetooth.cc +1 −1 Original line number Diff line number Diff line Loading @@ -946,7 +946,7 @@ int dut_mode_configure(uint8_t enable) { int dut_mode_send(uint16_t opcode, uint8_t* buf, uint8_t len) { if (!interface_ready()) return BT_STATUS_NOT_READY; if (!btif_is_dut_mode()) return BT_STATUS_FAIL; if (!btif_is_dut_mode()) return BT_STATUS_UNEXPECTED_STATE; uint8_t* copy = (uint8_t*)osi_calloc(len); memcpy(copy, buf, len); Loading system/btif/src/btif_hh.cc +1 −1 Original line number Diff line number Diff line Loading @@ -122,7 +122,7 @@ static tHID_KB_LIST hid_kb_numlock_on_list[] = {{LOGITECH_KB_MX5500_PRODUCT_ID, do { \ if (btif_hh_cb.status == BTIF_HH_DISABLED) { \ log::error("HH status = {}", btif_hh_status_text(btif_hh_cb.status)); \ return BT_STATUS_FAIL; \ return BT_STATUS_UNEXPECTED_STATE; \ } \ } while (0) Loading system/btif/src/btif_profile_queue.cc +1 −1 Original line number Diff line number Diff line Loading @@ -191,7 +191,7 @@ bt_status_t btif_queue_connect_next(void) { if (connect_queue.empty()) return BT_STATUS_FAIL; if (!stack_manager_get_interface()->get_stack_is_running()) return BT_STATUS_FAIL; return BT_STATUS_UNEXPECTED_STATE; ConnectNode& head = connect_queue.front(); Loading system/include/hardware/bluetooth.h +4 −1 Original line number Diff line number Diff line Loading @@ -108,7 +108,8 @@ typedef enum { BT_STATUS_JNI_THREAD_ATTACH_ERROR, BT_STATUS_WAKELOCK_ERROR, BT_STATUS_TIMEOUT, BT_STATUS_DEVICE_NOT_FOUND BT_STATUS_DEVICE_NOT_FOUND, BT_STATUS_UNEXPECTED_STATE } bt_status_t; inline std::string bt_status_text(const bt_status_t& status) { Loading Loading @@ -147,6 +148,8 @@ inline std::string bt_status_text(const bt_status_t& status) { return std::string("timeout_error"); case BT_STATUS_DEVICE_NOT_FOUND: return std::string("device_not_found"); case BT_STATUS_UNEXPECTED_STATE: return std::string("unexpected_state"); default: return std::string("UNKNOWN"); } Loading Loading
floss/pandora/floss/floss_enums.py +1 −0 Original line number Diff line number Diff line Loading @@ -135,6 +135,7 @@ class BtStatus(enum.IntEnum): WAKE_LOCK_ERROR = 14 BT_STATUS_TIMEOUT = 15 DEVICE_NOT_FOUND = 16 UNEXPECTED_STATE = 17 class SocketType(enum.IntEnum): Loading
system/btif/src/bluetooth.cc +1 −1 Original line number Diff line number Diff line Loading @@ -946,7 +946,7 @@ int dut_mode_configure(uint8_t enable) { int dut_mode_send(uint16_t opcode, uint8_t* buf, uint8_t len) { if (!interface_ready()) return BT_STATUS_NOT_READY; if (!btif_is_dut_mode()) return BT_STATUS_FAIL; if (!btif_is_dut_mode()) return BT_STATUS_UNEXPECTED_STATE; uint8_t* copy = (uint8_t*)osi_calloc(len); memcpy(copy, buf, len); Loading
system/btif/src/btif_hh.cc +1 −1 Original line number Diff line number Diff line Loading @@ -122,7 +122,7 @@ static tHID_KB_LIST hid_kb_numlock_on_list[] = {{LOGITECH_KB_MX5500_PRODUCT_ID, do { \ if (btif_hh_cb.status == BTIF_HH_DISABLED) { \ log::error("HH status = {}", btif_hh_status_text(btif_hh_cb.status)); \ return BT_STATUS_FAIL; \ return BT_STATUS_UNEXPECTED_STATE; \ } \ } while (0) Loading
system/btif/src/btif_profile_queue.cc +1 −1 Original line number Diff line number Diff line Loading @@ -191,7 +191,7 @@ bt_status_t btif_queue_connect_next(void) { if (connect_queue.empty()) return BT_STATUS_FAIL; if (!stack_manager_get_interface()->get_stack_is_running()) return BT_STATUS_FAIL; return BT_STATUS_UNEXPECTED_STATE; ConnectNode& head = connect_queue.front(); Loading
system/include/hardware/bluetooth.h +4 −1 Original line number Diff line number Diff line Loading @@ -108,7 +108,8 @@ typedef enum { BT_STATUS_JNI_THREAD_ATTACH_ERROR, BT_STATUS_WAKELOCK_ERROR, BT_STATUS_TIMEOUT, BT_STATUS_DEVICE_NOT_FOUND BT_STATUS_DEVICE_NOT_FOUND, BT_STATUS_UNEXPECTED_STATE } bt_status_t; inline std::string bt_status_text(const bt_status_t& status) { Loading Loading @@ -147,6 +148,8 @@ inline std::string bt_status_text(const bt_status_t& status) { return std::string("timeout_error"); case BT_STATUS_DEVICE_NOT_FOUND: return std::string("device_not_found"); case BT_STATUS_UNEXPECTED_STATE: return std::string("unexpected_state"); default: return std::string("UNKNOWN"); } Loading