summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Harold <nharold@google.com>2016-10-13 02:07:47 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-10-13 02:07:47 +0000
commit500e1720ebdaf8b9a6630589b41b71a2000d7f90 (patch)
treeaaa418828eeadbb5964778fa822f22da1fec54ea
parent22b41817f89890a31d5a15efef15cbb9a53b1cfb (diff)
parentc863521147c0fdf8497a10430f85c306e60f2084 (diff)
downloadplatform_hardware_ril-nougat-mr2.2-release.tar.gz
platform_hardware_ril-nougat-mr2.2-release.tar.bz2
platform_hardware_ril-nougat-mr2.2-release.zip
am: c863521147 Change-Id: I01b10273285311173766966878d8174cda8e6bf8
-rw-r--r--include/telephony/ril.h27
1 files changed, 19 insertions, 8 deletions
diff --git a/include/telephony/ril.h b/include/telephony/ril.h
index 98aa7d3d..5fcd9015 100644
--- a/include/telephony/ril.h
+++ b/include/telephony/ril.h
@@ -1712,18 +1712,29 @@ typedef struct {
/* Tx Power Levels */
#define RIL_NUM_TX_POWER_LEVELS 5
+/**
+ * Aggregate modem activity information
+ */
typedef struct {
- /* period (in ms) when modem is power collapsed */
+ /* total time (in ms) when modem is in a low power or
+ * sleep state
+ */
uint32_t sleep_mode_time_ms;
- /* period (in ms) when modem is awake and in idle mode*/
+ /* total time (in ms) when modem is awake but neither
+ * the transmitter nor receiver are active/awake */
uint32_t idle_mode_time_ms;
- /* period (in ms) for which Tx is active */
+ /* total time (in ms) during which the transmitter is active/awake,
+ * subdivided by manufacturer-defined device-specific
+ * contiguous increasing ranges of transmit power between
+ * 0 and the transmitter's maximum transmit power.
+ */
uint32_t tx_mode_time_ms[RIL_NUM_TX_POWER_LEVELS];
- /* period (in ms) for which Rx is active */
+ /* total time (in ms) for which receiver is active/awake and
+ * the transmitter is inactive */
uint32_t rx_mode_time_ms;
} RIL_ActivityStatsInfo;
@@ -5101,11 +5112,11 @@ typedef struct {
/**
* RIL_REQUEST_GET_ACTIVITY_INFO
*
- * Get modem activity statisitics info.
+ * Get modem activity information for power consumption estimation.
*
- * There can be multiple RIL_REQUEST_GET_ACTIVITY_INFO calls to modem.
- * Once the response for the request is sent modem will clear
- * current statistics information.
+ * Request clear-on-read statistics information that is used for
+ * estimating the per-millisecond power consumption of the cellular
+ * modem.
*
* "data" is null
* "response" is const RIL_ActivityStatsInfo *