Loading system/gd/rust/linux/stack/src/socket_manager.rs +1 −1 Original line number Diff line number Diff line Loading @@ -842,7 +842,7 @@ impl BluetoothSocketManager { SocketActions::OnIncomingSocketReady( cbid, cloned_socket_info, BtStatus::Fail, BtStatus::Timeout, ), )) .await; Loading system/gd/rust/topshim/src/btif.rs +1 −0 Original line number Diff line number Diff line Loading @@ -201,6 +201,7 @@ pub enum BtStatus { JniEnvironmentError, JniThreadAttachError, WakeLockError, Timeout, // Any statuses that couldn't be cleanly converted Unknown = 0xff, Loading system/include/hardware/bluetooth.h +4 −1 Original line number Diff line number Diff line Loading @@ -105,7 +105,8 @@ typedef enum { BT_STATUS_AUTH_REJECTED, BT_STATUS_JNI_ENVIRONMENT_ERROR, BT_STATUS_JNI_THREAD_ATTACH_ERROR, BT_STATUS_WAKELOCK_ERROR BT_STATUS_WAKELOCK_ERROR, BT_STATUS_TIMEOUT } bt_status_t; inline std::string bt_status_text(const bt_status_t& status) { Loading Loading @@ -140,6 +141,8 @@ inline std::string bt_status_text(const bt_status_t& status) { return std::string("jni_thread_error"); case BT_STATUS_WAKELOCK_ERROR: return std::string("wakelock_error"); case BT_STATUS_TIMEOUT: return std::string("timeout_error"); default: return std::string("UNKNOWN"); } Loading Loading
system/gd/rust/linux/stack/src/socket_manager.rs +1 −1 Original line number Diff line number Diff line Loading @@ -842,7 +842,7 @@ impl BluetoothSocketManager { SocketActions::OnIncomingSocketReady( cbid, cloned_socket_info, BtStatus::Fail, BtStatus::Timeout, ), )) .await; Loading
system/gd/rust/topshim/src/btif.rs +1 −0 Original line number Diff line number Diff line Loading @@ -201,6 +201,7 @@ pub enum BtStatus { JniEnvironmentError, JniThreadAttachError, WakeLockError, Timeout, // Any statuses that couldn't be cleanly converted Unknown = 0xff, Loading
system/include/hardware/bluetooth.h +4 −1 Original line number Diff line number Diff line Loading @@ -105,7 +105,8 @@ typedef enum { BT_STATUS_AUTH_REJECTED, BT_STATUS_JNI_ENVIRONMENT_ERROR, BT_STATUS_JNI_THREAD_ATTACH_ERROR, BT_STATUS_WAKELOCK_ERROR BT_STATUS_WAKELOCK_ERROR, BT_STATUS_TIMEOUT } bt_status_t; inline std::string bt_status_text(const bt_status_t& status) { Loading Loading @@ -140,6 +141,8 @@ inline std::string bt_status_text(const bt_status_t& status) { return std::string("jni_thread_error"); case BT_STATUS_WAKELOCK_ERROR: return std::string("wakelock_error"); case BT_STATUS_TIMEOUT: return std::string("timeout_error"); default: return std::string("UNKNOWN"); } Loading