Skip to content

not for merge, test#730

Open
sajilal711 wants to merge 8 commits intodevelopfrom
topic/12410test
Open

not for merge, test#730
sajilal711 wants to merge 8 commits intodevelopfrom
topic/12410test

Conversation

@sajilal711
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings February 12, 2026 05:09
@sajilal711 sajilal711 requested a review from a team as a code owner February 12, 2026 05:09
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 PR updates the RDKWindowManager API surface (and its generated markdown) to document and expose z-order control plus VNC server start/stop, and adjusts PackageManager generated documentation/annotations.

Changes:

  • Add SetZOrder/GetZOrder and VNC server control methods to IRDKWindowManager.
  • Update docs/apis/RDKWindowManager.md to include the new methods and re-number example request IDs.
  • Adjust PackageManager docs ordering and remove the JSON-RPC tagging line for IPackageHandler.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 11 comments.

File Description
docs/apis/RDKWindowManager.md Adds documentation entries for z-order and VNC server APIs and shifts example IDs.
docs/apis/PackageManager.md Reorders method list/sections and removes getLockedInfo documentation section.
apis/RDKWindowManager/IRDKWindowManager.h Adds new z-order + VNC server API methods.
apis/PackageManager/IAppPackageManager.h Removes the @json ... @text:keep marker above IPackageHandler.

Comment on lines +74 to +75
| [startVncServer](#startVncServer) | Starts the VNC server @retval Core::ERROR_NONE on success |
| [stopVncServer](#stopVncServer) | Stops the VNC server @retval Core::ERROR_NONE on success |
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

The methods table includes @retval ... text in the short descriptions for startVncServer/stopVncServer, which reads like a Doxygen tag leaking into the generated markdown. Keep the table description user-focused (what it does) and put return-code details in the appropriate results/error section instead.

Suggested change
| [startVncServer](#startVncServer) | Starts the VNC server @retval Core::ERROR_NONE on success |
| [stopVncServer](#stopVncServer) | Stops the VNC server @retval Core::ERROR_NONE on success |
| [startVncServer](#startVncServer) | Starts the VNC server |
| [stopVncServer](#stopVncServer) | Stops the VNC server |

Copilot uses AI. Check for mistakes.
| Name | Type | Description |
| :-------- | :-------- | :-------- |
| result | object | |
| result.zOrder | integer | integer value indicating the zOrder @retval Core::ERROR_NONE on success |
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

In this markdown, the @retval Core::ERROR_NONE on success fragment appears inside the field description (result.zOrder). That looks like a documentation tag leaking into the generated output; it should be expressed as a return code description rather than part of a data field description.

Suggested change
| result.zOrder | integer | integer value indicating the zOrder @retval Core::ERROR_NONE on success |
| result.zOrder | integer | integer value indicating the zOrder |

Copilot uses AI. Check for mistakes.
| :-------- | :-------- | :-------- |
| params | object | |
| params.appInstanceId | string | the identifier of the connected application |
| params.zOrder | integer | integer value indicating the zOrder @retval Core::ERROR_NONE on success |
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

The parameter description for params.zOrder includes @retval Core::ERROR_NONE on success, which is a return-code detail and doesn't belong in a parameter description. Move/express return codes separately so the parameter docs stay purely about inputs.

Suggested change
| params.zOrder | integer | integer value indicating the zOrder @retval Core::ERROR_NONE on success |
| params.zOrder | integer | integer value indicating the zOrder |

Copilot uses AI. Check for mistakes.
Comment on lines +238 to +241
// @param appInstanceId: client name or application instance ID
// @param zOrder: integer value indicating the zOrder of the client
// @retval Core::ERROR_NONE on success
virtual Core::hresult GetZOrder(const string& appInstanceId, int32_t &zOrder /* @out */) = 0;
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

The @retval line for GetZOrder is missing the required : <Description> portion (e.g., @retval Core::ERROR_NONE: Successfully retrieved z-order).

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

Copilot uses AI. Check for mistakes.
<a id="startVncServer"></a>
## *startVncServer*

Starts the VNC server @retval Core::ERROR_NONE on success
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

The short description line includes an @retval ... fragment (Starts the VNC server @retval ...), which looks like a Doxygen tag leaking into the generated markdown. Keep the description as plain text and document return codes separately.

Suggested change
Starts the VNC server @retval Core::ERROR_NONE on success
Starts the VNC server.

Copilot uses AI. Check for mistakes.
Comment on lines +243 to +253
/** Starts the VNC server */
// @text startVncServer
// @brief Starts the VNC server
// @retval Core::ERROR_NONE on success
virtual Core::hresult StartVncServer() = 0;

/** Stops the VNC server */
// @text stopVncServer
// @brief Stops the VNC server
// @retval Core::ERROR_NONE on success
virtual Core::hresult StopVncServer() = 0;
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

StartVncServer/StopVncServer use mixed-case for the acronym ("Vnc"). Per the repo guideline, acronyms should be fully capitalized; consider renaming to StartVNCServer/StopVNCServer (and updating the corresponding @text JSON-RPC names/docs accordingly) while the API is still new.

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

Copilot generated this review using guidance from repository custom instructions.
Comment on lines +229 to +233
// @brief Sets the zOrder of the given client or appInstanceId
// @param appInstanceId: client name or application instance ID
// @param zOrder: integer value indicating the zOrder
// @retval Core::ERROR_NONE on success
virtual Core::hresult SetZOrder(const string& appInstanceId, const int32_t zOrder) = 0;
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

The new @retval tag format is inconsistent with the documented requirement (@retval <ErrorCode>: <Description>). Here it is missing the colon + description (e.g., Core::ERROR_NONE: ...), which can also leak into generated markdown.

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

Copilot uses AI. Check for mistakes.
// @param appInstanceId: client name or application instance ID
// @param zOrder: integer value indicating the zOrder of the client
// @retval Core::ERROR_NONE on success
virtual Core::hresult GetZOrder(const string& appInstanceId, int32_t &zOrder /* @out */) = 0;
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

GetZOrder is a getter but is not marked const, unlike other getters in this interface (e.g., GetApps, GetKeyRepeatsEnabled, GetLastKeyInfo). If it doesn't mutate state, make it const for API consistency and usability on const instances.

Suggested change
virtual Core::hresult GetZOrder(const string& appInstanceId, int32_t &zOrder /* @out */) = 0;
virtual Core::hresult GetZOrder(const string& appInstanceId, int32_t &zOrder /* @out */) const = 0;

Copilot uses AI. Check for mistakes.
Comment on lines +244 to +247
// @text startVncServer
// @brief Starts the VNC server
// @retval Core::ERROR_NONE on success
virtual Core::hresult StartVncServer() = 0;
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

The new @retval tag format is missing the required : <Description> portion (e.g., @retval Core::ERROR_NONE: <...>).

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

Copilot uses AI. Check for mistakes.
Comment on lines +250 to +253
// @text stopVncServer
// @brief Stops the VNC server
// @retval Core::ERROR_NONE on success
virtual Core::hresult StopVncServer() = 0;
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

The new @retval tag format is missing the required : <Description> portion (e.g., @retval Core::ERROR_NONE: <...>).

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

Copilot uses AI. Check for mistakes.
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.

6 participants