Loading system/bta/csis/csis_client.cc +4 −0 Original line number Diff line number Diff line Loading @@ -376,6 +376,7 @@ class CsisClientImpl : public CsisClient { if (next_dev) { auto next_csis_inst = next_dev->GetCsisInstanceByGroupId(group_id); LOG_ASSERT(csis_instance) << " csis_instance does not exist!"; #if CSIP_UPPER_TESTER_FORCE_TO_SEND_LOCK == FALSE if (next_csis_inst->GetLockState() == CsisLockState::CSIS_STATE_LOCKED) { /* Somebody else managed to lock it. Loading @@ -384,6 +385,7 @@ class CsisClientImpl : public CsisClient { HandleCsisLockProcedureError(csis_group, next_dev); return; } #endif SetLock(next_dev, next_csis_inst, CsisLockState::CSIS_STATE_LOCKED); } } Loading Loading @@ -479,6 +481,7 @@ class CsisClientImpl : public CsisClient { return; } #if CSIP_UPPER_TESTER_FORCE_TO_SEND_LOCK == FALSE if (lock && !csis_group->IsAvailableForCsisLockOperation()) { DLOG(INFO) << __func__ << " Group " << group_id << " locked by other"; NotifyGroupStatus(group_id, false, Loading @@ -486,6 +489,7 @@ class CsisClientImpl : public CsisClient { std::move(cb)); return; } #endif csis_group->SetTargetLockState(new_lock_state, std::move(cb)); Loading system/internal_include/bt_target.h +12 −0 Original line number Diff line number Diff line Loading @@ -560,6 +560,18 @@ #ifndef GATT_UPPER_TESTER_MULT_VARIABLE_LENGTH_READ #define GATT_UPPER_TESTER_MULT_VARIABLE_LENGTH_READ FALSE #endif /****************************************************************************** * * CSIP * *****************************************************************************/ /* Used to trigger invalid behaviour of CSIP test case PTS */ #ifndef CSIP_UPPER_TESTER_FORCE_TO_SEND_LOCK #define CSIP_UPPER_TESTER_FORCE_TO_SEND_LOCK FALSE #endif /****************************************************************************** * * SMP Loading Loading
system/bta/csis/csis_client.cc +4 −0 Original line number Diff line number Diff line Loading @@ -376,6 +376,7 @@ class CsisClientImpl : public CsisClient { if (next_dev) { auto next_csis_inst = next_dev->GetCsisInstanceByGroupId(group_id); LOG_ASSERT(csis_instance) << " csis_instance does not exist!"; #if CSIP_UPPER_TESTER_FORCE_TO_SEND_LOCK == FALSE if (next_csis_inst->GetLockState() == CsisLockState::CSIS_STATE_LOCKED) { /* Somebody else managed to lock it. Loading @@ -384,6 +385,7 @@ class CsisClientImpl : public CsisClient { HandleCsisLockProcedureError(csis_group, next_dev); return; } #endif SetLock(next_dev, next_csis_inst, CsisLockState::CSIS_STATE_LOCKED); } } Loading Loading @@ -479,6 +481,7 @@ class CsisClientImpl : public CsisClient { return; } #if CSIP_UPPER_TESTER_FORCE_TO_SEND_LOCK == FALSE if (lock && !csis_group->IsAvailableForCsisLockOperation()) { DLOG(INFO) << __func__ << " Group " << group_id << " locked by other"; NotifyGroupStatus(group_id, false, Loading @@ -486,6 +489,7 @@ class CsisClientImpl : public CsisClient { std::move(cb)); return; } #endif csis_group->SetTargetLockState(new_lock_state, std::move(cb)); Loading
system/internal_include/bt_target.h +12 −0 Original line number Diff line number Diff line Loading @@ -560,6 +560,18 @@ #ifndef GATT_UPPER_TESTER_MULT_VARIABLE_LENGTH_READ #define GATT_UPPER_TESTER_MULT_VARIABLE_LENGTH_READ FALSE #endif /****************************************************************************** * * CSIP * *****************************************************************************/ /* Used to trigger invalid behaviour of CSIP test case PTS */ #ifndef CSIP_UPPER_TESTER_FORCE_TO_SEND_LOCK #define CSIP_UPPER_TESTER_FORCE_TO_SEND_LOCK FALSE #endif /****************************************************************************** * * SMP Loading