Starting March 27, 2025, we recommend using android-latest-release
instead of aosp-main
to build and contribute to AOSP. For more information, see Changes to AOSP.
Stay organized with collections
Save and categorize content based on your preferences.
power_state_voter_t Struct Reference
#include <
power.h
>
Definition at line
82
of file
power.h
.
uint64_t total_number_of_times_voted_since_boot
|
uint64_t total_time_in_msec_voted_for_since_boot
|
The documentation for this struct was generated from the following file:
-
hardware/libhardware/include/hardware/
power.h
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2019-10-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2019-10-02 UTC."],[],[],null,["# Android Hardware Abstraction Layer: power_state_voter_t Struct Reference\n\npower_state_voter_t Struct Reference\n====================================\n\n[Data Fields](#pub-attribs) \npower_state_voter_t Struct Reference \n\n`\n#include \u003c\n`[power.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/power.h)`\n\u003e\n`\n\n|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| char | [name](/reference/hal/structpower__state__voter__t#a22576bcf7eda7d347debae95ceb5c3bd) \\[ [POWER_STATE_VOTER_NAME_MAX_LENGTH](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/power.h) \\] |\n| ||\n| uint64_t | [total_time_in_msec_voted_for_since_boot](/reference/hal/structpower__state__voter__t#a55ec55ce2e0ee28fe8d6c332213343e9) |\n| ||\n| uint64_t | [total_number_of_times_voted_since_boot](/reference/hal/structpower__state__voter__t#a52200f636601002fbf5607f040d84403) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nDefinition at line\n[82](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/power.h)\nof file\n[power.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/power.h)\n.\n\nField Documentation\n-------------------\n\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| char name\\[ [POWER_STATE_VOTER_NAME_MAX_LENGTH](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/power.h) \\] |\n\n\nDefinition at line\n[86](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/power.h)\nof file\n[power.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/power.h)\n.\n\n|-------------------------------------------------|\n| uint64_t total_number_of_times_voted_since_boot |\n\n\nDefinition at line\n[96](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/power.h)\nof file\n[power.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/power.h)\n.\n\n|--------------------------------------------------|\n| uint64_t total_time_in_msec_voted_for_since_boot |\n\n\nDefinition at line\n[91](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/power.h)\nof file\n[power.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/power.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [power.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/power.h)"]]