Od 27 marca 2025 r. zalecamy używanie android-latest-release
zamiast aosp-main
do kompilowania i wspołtworzenia AOSP. Więcej informacji znajdziesz w artykule o zmianach w AOSP.
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Informacje o strukturze cpu_usage_t
#include <
thermal.h
>
Definicja w wierszu
110
pliku
thermal.h
.
Czas aktywnego działania od ostatniego uruchomienia w ms.
Definicja w wierszu
120
pliku
thermal.h
.
Jest ustawiona na wartość true, gdy rdzeń jest online. Jeśli rdzeń jest offline, wszystkie inne elementy z wyjątkiem |name| powinny być ignorowane.
Definicja w wierszu
131
pliku
thermal.h
.
Nazwa tego procesora. Wszystkie procesory muszą mieć inną „nazwę”.
Definicja w wierszu
115
pliku
thermal.h
.
Łączny czas od ostatniego uruchomienia w ms.
Definicja w wierszu
125
pliku
thermal.h
.
Dokumentacja tego typu danych została wygenerowana z tego pliku:
-
hardware/libhardware/include/hardware/
thermal.h
Treść strony i umieszczone na niej fragmenty kodu podlegają licencjom opisanym w Licencji na treści. Java i OpenJDK są znakami towarowymi lub zastrzeżonymi znakami towarowymi należącymi do firmy Oracle lub jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-27 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-27 UTC."],[],[],null,["# Android Hardware Abstraction Layer: cpu_usage_t Struct Reference\n\ncpu_usage_t Struct Reference\n============================\n\n[Data Fields](#pub-attribs) \ncpu_usage_t Struct Reference \n\n`\n#include \u003c\n`[thermal.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)`\n\u003e\n`\n\n|---------------|-----------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| const char \\* | [name](/reference/hal/structcpu__usage__t#a8f8f80d37794cde9472343e4487ba3eb) |\n| ||\n| uint64_t | [active](/reference/hal/structcpu__usage__t#a0556582acdb54560c38422879430a8c3) |\n| ||\n| uint64_t | [total](/reference/hal/structcpu__usage__t#a91271c136d08958b70aae29b0a0bbcad) |\n| ||\n| bool | [is_online](/reference/hal/structcpu__usage__t#a3ad9d087459e02e637cbc67bf4811e7a) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nDefinition at line\n[110](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)\nof file\n[thermal.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)\n.\n\nField Documentation\n-------------------\n\n\n|-----------------|\n| uint64_t active |\n\n\nActive time since the last boot in ms.\n\n\nDefinition at line\n[120](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)\nof file\n[thermal.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)\n.\n\n|----------------|\n| bool is_online |\n\n\nIs set to true when a core is online. If the core is offline, all other members except \\|name\\| should be ignored.\n\n\nDefinition at line\n[131](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)\nof file\n[thermal.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)\n.\n\n|-------------------|\n| const char\\* name |\n\n\nName of this CPU. All CPUs must have a different \"name\".\n\n\nDefinition at line\n[115](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)\nof file\n[thermal.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)\n.\n\n|----------------|\n| uint64_t total |\n\n\nTotal time since the last boot in ms.\n\n\nDefinition at line\n[125](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)\nof file\n[thermal.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [thermal.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)"]]