power/stats: Add VTS test cases for power.stats HAL
Adding VTS test cases for power.stats HAL functions
getPowerEntityInfo, getPowerEntityStateInfo, and getPowerEntityStateResidencyData
Bug: 118365266
Test: run vts -m VtsHalPowerStatsV1_0Target
Change-Id: Ib60ac0b37bd30663c5e7434546cdcfbf64915538
(cherry picked from commit a630f8481430f95351a59ce8c68ac553b269e1da)
Merged-In: Ib60ac0b37bd30663c5e7434546cdcfbf64915538
diff --git a/power/stats/1.0/IPowerStats.hal b/power/stats/1.0/IPowerStats.hal
index 75c6a72..74ceb8f 100644
--- a/power/stats/1.0/IPowerStats.hal
+++ b/power/stats/1.0/IPowerStats.hal
@@ -105,9 +105,9 @@
* consumption.
*
* @return powerEntityInfos List of information on each PowerEntity
- * @return status SUCCESS on success or NOT_SUPPORTED if
- * feature is not enabled or FILESYSTEM_ERROR on filesystem nodes
- * access error.
+ * @return status SUCCESS on success, NOT_SUPPORTED if feature is not
+ * enabled, FILESYSTEM_ERROR if there was an error accessing the
+ * filesystem.
*/
getPowerEntityInfo()
generates(vec<PowerEntityInfo> powerEntityInfos, Status status);
@@ -123,12 +123,11 @@
* information for all PowerEntity(s) pass an empty vector.
*
* @return powerEntityStateSpaces PowerEntity state space information for
- * each specified PowerEntity.
- * @return status SUCCESS if powerEntityStateInfos contains state space
- * information for at least one PowerEntity, NOT_SUPPORTED if feature
- * is not enabled, INVALID_INPUT if no requested PowerEntity(s)
- * provide state space information, FILESYSTEM_ERROR if no state space
- * information is returned due to filesystem errors.
+ * each specified PowerEntity that provides state space information.
+ * @return status SUCCESS on success, NOT_SUPPORTED if feature is not
+ * enabled, FILESYSTEM_ERROR if there was an error accessing the
+ * filesystem, INVALID_INPUT if any requested PowerEntity(s) do not
+ * provide state space information and there was not a filesystem error.
*/
getPowerEntityStateInfo(vec<uint32_t> powerEntityIds)
generates(vec<PowerEntityStateSpace> powerEntityStateSpaces,
@@ -148,13 +147,12 @@
* residency data is requested. PowerEntity name to ID mapping may
* be queried from getPowerEntityInfo(). To get state residency
* data for all PowerEntity(s) pass an empty vector.
- * @return stateResidencyResults state residency data for the
- * specified powerEntity(s)
- * @return status SUCCESS if stateResidencyResults contains residency
- * data for at least one PowerEntity, NOT_SUPPORTED if
- * feature is not enabled, INVALID_INPUT if no requested
- * PowerEntity(s) provide state residency data, FILESYSTEM_ERROR
- * if no data is returned due to filesystem errors.
+ * @return stateResidencyResults state residency data for each specified
+ * PowerEntity that provides state residency data.
+ * @return status SUCCESS on success, NOT_SUPPORTED if feature is not
+ * enabled, FILESYSTEM_ERROR if there was an error accessing the
+ * filesystem, INVALID_INPUT if any requested PowerEntity(s) do not
+ * provide state residency data and there was not a filesystem error.
*/
getPowerEntityStateResidencyData(vec<uint32_t> powerEntityIds)
generates(vec<PowerEntityStateResidencyResult> stateResidencyResults,