Skip to content

Commit d5f90f4

Browse files
restyled-commitserwinpan1
authored andcommitted
Restyled by clang-format
1 parent 7541d9f commit d5f90f4

File tree

5 files changed

+20
-17
lines changed

5 files changed

+20
-17
lines changed

examples/chef/common/clusters/channel/ChannelManager.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class ChannelManager : public chip::app::Clusters::Channel::Delegate
7272

7373
private:
7474
bool isChannelMatched(const ChannelInfoType & channel, const chip::CharSpan & match);
75-
static constexpr uint32_t mDynamicEndpointFeatureMap = static_cast<uint32_t>(chip::BitMask<Feature, uint32_t>(Feature::kChannelList, Feature::kLineupInfo).Raw());
76-
static constexpr uint16_t kClusterRevision = 2;
75+
static constexpr uint32_t mDynamicEndpointFeatureMap =
76+
static_cast<uint32_t>(chip::BitMask<Feature, uint32_t>(Feature::kChannelList, Feature::kLineupInfo).Raw());
77+
static constexpr uint16_t kClusterRevision = 2;
7778
};

examples/chef/common/clusters/keypad-input/KeypadInputManager.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@ class KeypadInputManager : public chip::app::Clusters::KeypadInput::Delegate
2424
{
2525
using SendKeyResponseType = chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::Type;
2626
using CecKeyCodeType = chip::app::Clusters::KeypadInput::CECKeyCodeEnum;
27-
using Feature = chip::app::Clusters::KeypadInput::Feature;
27+
using Feature = chip::app::Clusters::KeypadInput::Feature;
2828

2929
public:
3030
void HandleSendKey(chip::app::CommandResponseHelper<SendKeyResponseType> & helper, const CecKeyCodeType & keyCode) override;
3131

3232
uint32_t GetFeatureMap(chip::EndpointId endpoint) override;
3333

3434
private:
35-
static constexpr uint32_t mDynamicEndpointFeatureMap = static_cast<uint32_t>(chip::BitMask<Feature, uint32_t>(Feature::kNavigationKeyCodes, Feature::kLocationKeys, Feature::kNumberKeys).Raw());
35+
static constexpr uint32_t mDynamicEndpointFeatureMap = static_cast<uint32_t>(
36+
chip::BitMask<Feature, uint32_t>(Feature::kNavigationKeyCodes, Feature::kLocationKeys, Feature::kNumberKeys).Raw());
3637
};

examples/chef/common/clusters/media-playback/MediaPlaybackManager.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ using chip::CharSpan;
3030
using chip::app::AttributeValueEncoder;
3131
using chip::app::CommandResponseHelper;
3232

33-
3433
PlaybackStateEnum MediaPlaybackManager::HandleGetCurrentState()
3534
{
3635
return mCurrentState;

examples/chef/common/clusters/media-playback/MediaPlaybackManager.h

+11-9
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323

2424
class MediaPlaybackManager : public chip::app::Clusters::MediaPlayback::Delegate
2525
{
26-
using PlaybackResponseType = chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::Type;
27-
using PlaybackPositionType = chip::app::Clusters::MediaPlayback::Structs::PlaybackPositionStruct::Type;
28-
using TrackType = chip::app::Clusters::MediaPlayback::Structs::TrackStruct::Type;
29-
using TrackAttributesType = chip::app::Clusters::MediaPlayback::Structs::TrackAttributesStruct::Type;
30-
using Feature = chip::app::Clusters::MediaPlayback::Feature;
26+
using PlaybackResponseType = chip::app::Clusters::MediaPlayback::Commands::PlaybackResponse::Type;
27+
using PlaybackPositionType = chip::app::Clusters::MediaPlayback::Structs::PlaybackPositionStruct::Type;
28+
using TrackType = chip::app::Clusters::MediaPlayback::Structs::TrackStruct::Type;
29+
using TrackAttributesType = chip::app::Clusters::MediaPlayback::Structs::TrackAttributesStruct::Type;
30+
using Feature = chip::app::Clusters::MediaPlayback::Feature;
3131

32-
public:
32+
public:
3333
chip::app::Clusters::MediaPlayback::PlaybackStateEnum HandleGetCurrentState() override;
3434
uint64_t HandleGetStartTime() override;
3535
uint64_t HandleGetDuration() override;
@@ -54,7 +54,8 @@ using Feature = chip::app::Clusters::MediaPlayback::Feature;
5454
const uint64_t & deltaPositionMilliseconds) override;
5555
void HandleSkipForward(chip::app::CommandResponseHelper<PlaybackResponseType> & helper,
5656
const uint64_t & deltaPositionMilliseconds) override;
57-
void HandleSeek(chip::app::CommandResponseHelper<PlaybackResponseType> & helper, const uint64_t & positionMilliseconds) override;
57+
void HandleSeek(chip::app::CommandResponseHelper<PlaybackResponseType> & helper,
58+
const uint64_t & positionMilliseconds) override;
5859
void HandleNext(chip::app::CommandResponseHelper<PlaybackResponseType> & helper) override;
5960
void HandleStartOver(chip::app::CommandResponseHelper<PlaybackResponseType> & helper) override;
6061
bool HandleActivateAudioTrack(const chip::CharSpan & trackId, const uint8_t & audioOutputIndex) override;
@@ -110,6 +111,7 @@ using Feature = chip::app::Clusters::MediaPlayback::Feature;
110111
static const int kPlaybackMaxRewindSpeed = -10;
111112

112113
private:
113-
static constexpr uint32_t mDynamicEndpointFeatureMap = static_cast<uint32_t>(chip::BitMask<Feature, uint32_t>(Feature::kAdvancedSeek, Feature::kVariableSpeed).Raw());
114-
static constexpr uint16_t kClusterRevision = 2;
114+
static constexpr uint32_t mDynamicEndpointFeatureMap =
115+
static_cast<uint32_t>(chip::BitMask<Feature, uint32_t>(Feature::kAdvancedSeek, Feature::kVariableSpeed).Raw());
116+
static constexpr uint16_t kClusterRevision = 2;
115117
};

examples/chef/common/clusters/target-navigator/TargetNavigatorManager.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121

2222
class TargetNavigatorManager : public chip::app::Clusters::TargetNavigator::Delegate
2323
{
24-
using TargetInfoType = chip::app::Clusters::TargetNavigator::Structs::TargetInfoStruct::Type;
25-
using NavigateTargetResponseType = chip::app::Clusters::TargetNavigator::Commands::NavigateTargetResponse::Type;
24+
using TargetInfoType = chip::app::Clusters::TargetNavigator::Structs::TargetInfoStruct::Type;
25+
using NavigateTargetResponseType = chip::app::Clusters::TargetNavigator::Commands::NavigateTargetResponse::Type;
2626

27-
public:
27+
public:
2828
TargetNavigatorManager() : TargetNavigatorManager({ "exampleName", "exampleName" }, kNoCurrentTarget){};
2929
TargetNavigatorManager(std::list<std::string> targets, uint8_t currentTarget);
3030

0 commit comments

Comments
 (0)