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

Commit 778c2dd3 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "floss: metrics: add new error code and default for parsing" am:...

Merge "floss: metrics: add new error code and default for parsing" am: 4d93a6bd am: c0bec085 am: 4999f886

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2233428



Change-Id: Id1060d8f72abb87cf58b426fc718b09a13342b62
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 0b178d15 4999f886
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -173,6 +173,8 @@ static PairingState FailReasonToPairingState(int32_t fail_reason) {
      return PairingState::PAIR_FAIL_AUTH_FAILED;
    case hci::ErrorCode::ROLE_SWITCH_FAILED:
      return PairingState::PAIR_FAIL_FAILED;
    case hci::ErrorCode::HOST_BUSY:
      return PairingState::PAIR_FAIL_BUSY;
    case hci::ErrorCode::CONTROLLER_BUSY:
      return PairingState::PAIR_FAIL_BUSY;
    case hci::ErrorCode::CONNECTION_FAILED_ESTABLISHMENT:
@@ -188,6 +190,8 @@ static PairingState FailReasonToPairingState(int32_t fail_reason) {
    case hci::ErrorCode::UNKNOWN_ADVERTISING_IDENTIFIER:
    case hci::ErrorCode::STATUS_UNKNOWN:
      return PairingState::PAIR_FAIL_UNKNOWN;
    default:
      return PairingState::PAIR_FAIL_UNKNOWN;
  }
}