Skip to content

Conversation

@kkarup694
Copy link

Reason for change: fixing coding guideline errors
Test Procedure: Mentioned in ticket
Risks: Low

Reason for change: fixing coding guideline errors
Test Procedure: Mentioned in ticket
Risks: Low

Signed-off-by: kumar <[email protected]>
@kkarup694 kkarup694 requested a review from a team as a code owner October 15, 2025 10:13
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request addresses coding guideline violations in the SystemAudioPlayer interface by making two key corrections:

  • Changed the notification method from pure virtual to default implementation (line 34)
  • Updated all method return types from uint32_t to Core::hresult (lines 39-53)

virtual Core::hresult Configure(PluginHost::IShell* service) = 0;
virtual Core::hresult Register(INotification* sink) = 0;
virtual Core::hresult Unregister(INotification* sink) = 0;
virtual Core::hresult Open(const string &input, string &output /* @out */) = 0;
Copy link

Copilot AI Dec 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing required documentation tags for this method. According to the documentation guidelines, all methods must include:

  • @brief — A concise description of the purpose or behavior
  • @param — Description of each parameter (for input and output)
  • @retval — Description of each return code

Example format:

// @brief Opens an audio stream
// @param input: Input parameters for opening the stream
// @param output: Output result or status information
// @retval Core::ERROR_NONE: Success
// @retval Core::ERROR_GENERAL: Failed to open stream
virtual Core::hresult Open(const string &input, string &output /* @out */) = 0;

Refer: https://github.com/rdkcentral/entservices-apis/blob/develop/.github/instructions/api_headers_doc_tags.instructions.md#documentation-tags-guidelines

Copilot generated this review using guidance from repository custom instructions.
Comment on lines 43 to 53
virtual Core::hresult Play(const string &input, string &output /* @out */) = 0;
virtual Core::hresult PlayBuffer(const string &input, string &output /* @out */) = 0;
virtual Core::hresult Pause(const string &input, string &output /* @out */) = 0;
virtual Core::hresult Resume(const string &input, string &output /* @out */) = 0;
virtual Core::hresult Stop(const string &input, string &output /* @out */) = 0;
virtual Core::hresult Close(const string &input, string &output /* @out */) = 0;
virtual Core::hresult SetMixerLevels(const string &input, string &output /* @out */) = 0;
virtual Core::hresult SetSmartVolControl(const string &input, string &output /* @out */) = 0;
virtual Core::hresult IsPlaying(const string &input, string &output /* @out */) = 0;
virtual Core::hresult Config(const string &input, string &output /* @out */) = 0;
virtual Core::hresult GetPlayerSessionId(const string &input, string &output /* @out */) = 0;
Copy link

Copilot AI Dec 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing required documentation tags for these methods. According to the documentation guidelines, all methods must include:

  • @brief — A concise description of the purpose or behavior
  • @param — Description of each parameter (for input and output)
  • @retval — Description of each return code

These methods need proper documentation to explain their purpose, parameters, and possible return values.

Refer: https://github.com/rdkcentral/entservices-apis/blob/develop/.github/instructions/api_headers_doc_tags.instructions.md#documentation-tags-guidelines

Copilot generated this review using guidance from repository custom instructions.

virtual ~INotification() {}
virtual void OnSAPEvents(const string &data) = 0;
virtual void OnSAPEvents(const string &data) {}
Copy link

Copilot AI Dec 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing required documentation tags for the event method. According to the documentation guidelines, all events must include:

  • @brief — A concise description of the purpose or behavior
  • @param — Description of each parameter (for the data parameter in this case)

Example format:

// @text onSAPEvents
// @brief Triggered when SAP events occur
// @param data: Event data payload
virtual void OnSAPEvents(const string &data) {}

Refer: https://github.com/rdkcentral/entservices-apis/blob/develop/.github/instructions/api_headers_doc_tags.instructions.md#documentation-tags-guidelines

Copilot generated this review using guidance from repository custom instructions.
virtual uint32_t IsPlaying(const string &input, string &output /* @out */) = 0;
virtual uint32_t Config(const string &input, string &output /* @out */) = 0;
virtual uint32_t GetPlayerSessionId(const string &input, string &output /* @out */) = 0;
virtual Core::hresult Configure(PluginHost::IShell* service) = 0;
Copy link

Copilot AI Dec 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing required documentation tags for this method. According to the documentation guidelines, all methods must include:

  • @brief — A concise description of the purpose or behavior
  • @param — Description of each parameter
  • @retval — Description of each return code

Example format:

// @brief Configures the SystemAudioPlayer service
// @param service: Plugin host shell service pointer
// @retval Core::ERROR_NONE: Success
// @retval Core::ERROR_GENERAL: Configuration failed
virtual Core::hresult Configure(PluginHost::IShell* service) = 0;

Refer: https://github.com/rdkcentral/entservices-apis/blob/develop/.github/instructions/api_headers_doc_tags.instructions.md#documentation-tags-guidelines

Copilot generated this review using guidance from repository custom instructions.
virtual uint32_t Config(const string &input, string &output /* @out */) = 0;
virtual uint32_t GetPlayerSessionId(const string &input, string &output /* @out */) = 0;
virtual Core::hresult Configure(PluginHost::IShell* service) = 0;
virtual Core::hresult Register(INotification* sink) = 0;
Copy link

Copilot AI Dec 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing required documentation tags for this method. According to the documentation guidelines, all methods must include:

  • @brief — A concise description of the purpose or behavior
  • @param — Description of each parameter
  • @retval — Description of each return code

Example format:

// @brief Registers a notification callback
// @param sink: Notification interface pointer
// @retval Core::ERROR_NONE: Success
// @retval Core::ERROR_GENERAL: Registration failed
virtual Core::hresult Register(INotification* sink) = 0;

Refer: https://github.com/rdkcentral/entservices-apis/blob/develop/.github/instructions/api_headers_doc_tags.instructions.md#documentation-tags-guidelines

Copilot generated this review using guidance from repository custom instructions.
virtual uint32_t GetPlayerSessionId(const string &input, string &output /* @out */) = 0;
virtual Core::hresult Configure(PluginHost::IShell* service) = 0;
virtual Core::hresult Register(INotification* sink) = 0;
virtual Core::hresult Unregister(INotification* sink) = 0;
Copy link

Copilot AI Dec 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing required documentation tags for this method. According to the documentation guidelines, all methods must include:

  • @brief — A concise description of the purpose or behavior
  • @param — Description of each parameter
  • @retval — Description of each return code

Example format:

// @brief Unregisters a notification callback
// @param sink: Notification interface pointer
// @retval Core::ERROR_NONE: Success
// @retval Core::ERROR_GENERAL: Unregistration failed
virtual Core::hresult Unregister(INotification* sink) = 0;

Refer: https://github.com/rdkcentral/entservices-apis/blob/develop/.github/instructions/api_headers_doc_tags.instructions.md#documentation-tags-guidelines

Copilot generated this review using guidance from repository custom instructions.
Reason for change: resolving guidelines errors
Test Procedure: Mentioned in ticket
Risks: Low

Signed-off-by: kumar <[email protected]>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 16 comments.

virtual Core::hresult Stop(const string &input, string &output /* @out */) = 0;

// @text close
// @brief closing audio playback
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @brief description should start with a capital letter for consistency with documentation standards. Change "closing audio playback" to "Closing audio playback".

Suggested change
// @brief closing audio playback
// @brief Closing audio playback

Copilot uses AI. Check for mistakes.
virtual Core::hresult SetSmartVolControl(const string &input, string &output /* @out */) = 0;

// @text isPlaying
// @brief get state of audio player
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @brief description should start with a capital letter for consistency with documentation standards. Change "get state of audio player" to "Get state of audio player".

Suggested change
// @brief get state of audio player
// @brief Get state of audio player

Copilot uses AI. Check for mistakes.
// @brief start playback of audio.
// @param input: parameters needed for audio playback
// @param output: response params
// @retval Core::NONE: Indicates successful opening of audio player
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @RetVal description is incorrect. This method is for the Play operation, not for opening the audio player. Change "Indicates successful opening of audio player" to "Indicates successful start of audio playback".

Suggested change
// @retval Core::NONE: Indicates successful opening of audio player
// @retval Core::NONE: Indicates successful start of audio playback

Copilot uses AI. Check for mistakes.
virtual Core::hresult Unregister(INotification* sink) = 0;

// @text open
// @brief open player instance
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @brief description should start with a capital letter for consistency with documentation standards. Change "open player instance" to "Open player instance".

Suggested change
// @brief open player instance
// @brief Open player instance

Copilot uses AI. Check for mistakes.
virtual Core::hresult IsPlaying(const string &input, string &output /* @out */) = 0;

// @text config
// @brief setting audio player configuration
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @brief description should start with a capital letter for consistency with documentation standards. Change "setting audio player configuration" to "Setting audio player configuration".

Suggested change
// @brief setting audio player configuration
// @brief Setting audio player configuration

Copilot uses AI. Check for mistakes.
virtual Core::hresult SetMixerLevels(const string &input, string &output /* @out */) = 0;

// @text setSmartVolControl
// @brief setting smart volume level
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @brief description should start with a capital letter for consistency with documentation standards. Change "setting smart volume level" to "Setting smart volume level".

Suggested change
// @brief setting smart volume level
// @brief Setting smart volume level

Copilot uses AI. Check for mistakes.
Comment on lines 124 to 129
// @text isPlaying
// @brief get state of audio player
// @param input: audio player details
// @param output: response params
// @retval Core::NONE: Indicates audio player state retrieved successfuly
virtual Core::hresult IsPlaying(const string &input, string &output /* @out */) = 0;
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the getter/setter naming conventions, getter methods should start with "Get". The method name IsPlaying does not follow this convention. Consider renaming to GetPlayingState or similar, with the @text annotation as getPlayingState.

Refer: https://github.com/rdkcentral/entservices-apis/blob/develop/.github/instructions/api_headers.instructions.md#gettersetter-naming

Copilot generated this review using guidance from repository custom instructions.
virtual Core::hresult Resume(const string &input, string &output /* @out */) = 0;

// @text stop
// @brief stopping audio playback
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @brief description should start with a capital letter for consistency with documentation standards. Change "stopping audio playback" to "Stopping audio playback".

Suggested change
// @brief stopping audio playback
// @brief Stopping audio playback

Copilot uses AI. Check for mistakes.
// @brief get state of audio player
// @param input: audio player details
// @param output: response params
// @retval Core::NONE: Indicates audio player state retrieved successfuly
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spelling error: "successfuly" should be "successfully".

Copilot uses AI. Check for mistakes.
virtual Core::hresult Pause(const string &input, string &output /* @out */) = 0;

// @text resume
// @brief resuming audio playback
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @brief description should start with a capital letter for consistency with documentation standards. Change "resuming audio playback" to "Resuming audio playback".

Suggested change
// @brief resuming audio playback
// @brief Resuming audio playback

Copilot uses AI. Check for mistakes.
Reason for change: resolving guidelines errors
Test Procedure: Mentioned in ticket
Risks: Low

Signed-off-by: kumar <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants