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

Commit f17af3b7 authored by Myles Watson's avatar Myles Watson Committed by android-build-merger
Browse files

Merge "test_vendor: Return success for no-ops"

am: 9894370a

Change-Id: Idab0d0c1f0eb716eb954ecc02f0a100c24c28048
parents a8537c1f 9894370a
Loading
Loading
Loading
Loading
+12 −12
Original line number Diff line number Diff line
@@ -78,14 +78,14 @@ class BtVendor {
        return 1;

      case BT_VND_OP_FW_CFG:
        LOG_INFO(LOG_TAG, "Unsupported op: BT_VND_OP_FW_CFG");
        LOG_INFO(LOG_TAG, "BT_VND_OP_FW_CFG (Does nothing)");
        vendor_callbacks_.fwcfg_cb(BT_VND_OP_RESULT_SUCCESS);
        return -1;
        return 0;

      case BT_VND_OP_SCO_CFG:
        LOG_INFO(LOG_TAG, "Unsupported op: BT_VND_OP_SCO_CFG");
        LOG_INFO(LOG_TAG, "BT_VND_OP_SCO_CFG (Does nothing)");
        vendor_callbacks_.scocfg_cb(BT_VND_OP_RESULT_SUCCESS);
        return -1;
        return 0;

      case BT_VND_OP_GET_LPM_IDLE_TIMEOUT:
        LOG_INFO(LOG_TAG, "Doing op: BT_VND_OP_SCO_CFG");
@@ -93,22 +93,22 @@ class BtVendor {
        return 0;

      case BT_VND_OP_LPM_SET_MODE:
        LOG_INFO(LOG_TAG, "Unsupported op: BT_VND_OP_LPM_SET_MODE");
        LOG_INFO(LOG_TAG, "BT_VND_OP_LPM_SET_MODE (Does nothing)");
        vendor_callbacks_.lpm_cb(BT_VND_OP_RESULT_SUCCESS);
        return -1;
        return 0;

      case BT_VND_OP_LPM_WAKE_SET_STATE:
        LOG_INFO(LOG_TAG, "Unsupported op: BT_VND_OP_LPM_WAKE_SET_STATE");
        return -1;
        LOG_INFO(LOG_TAG, "BT_VND_OP_LPM_WAKE_SET_STATE (Does nothing)");
        return 0;

      case BT_VND_OP_SET_AUDIO_STATE:
        LOG_INFO(LOG_TAG, "Unsupported op: BT_VND_OP_SET_AUDIO_STATE");
        return -1;
        LOG_INFO(LOG_TAG, "BT_VND_OP_SET_AUDIO_STATE (Does nothing)");
        return 0;

      case BT_VND_OP_EPILOG:
        LOG_INFO(LOG_TAG, "Unsupported op: BT_VND_OP_EPILOG");
        LOG_INFO(LOG_TAG, "BT_VND_OP_EPILOG (Does nothing)");
        vendor_callbacks_.epilog_cb(BT_VND_OP_RESULT_SUCCESS);
        return -1;
        return 0;

      default:
        LOG_INFO(LOG_TAG, "Op not recognized.");