Начиная с 27 марта 2025 г. мы рекомендуем использовать android-latest-release
вместо aosp-main
для создания и участия в AOSP. Дополнительные сведения см. в разделе Изменения в AOSP .
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Ссылка на структуру Activity_event
#include < activity_recognition.h >
Определение в строке 106 файла Activity_recognition.h .
int32_t зарезервировано[4] |
Документация для этой структуры была создана из следующего файла:
Контент и образцы кода на этой странице предоставлены по лицензиям. Java и OpenJDK – это зарегистрированные товарные знаки корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-29 UTC.
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2025-07-29 UTC."],[],[],null,["# Android Hardware Abstraction Layer: activity_event Struct Reference\n\nactivity_event Struct Reference\n===============================\n\n[Data Fields](#pub-attribs) \nactivity_event Struct Reference \n\n`\n#include \u003c\n`[activity_recognition.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/activity_recognition.h)`\n\u003e\n`\n\n|----------|------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| uint32_t | [event_type](/reference/hal/structactivity__event#a45def65890de0da17bc0d6e2ca2b3a9f) |\n| ||\n| uint32_t | [activity](/reference/hal/structactivity__event#a5e9699b0a5fbc9fe1676678dd77ccf03) |\n| ||\n| int64_t | [timestamp](/reference/hal/structactivity__event#a8a591d341723df9496cda98e225b25b4) |\n| ||\n| int32_t | [reserved](/reference/hal/structactivity__event#afa51b146453418d71ce693f1907246c7) \\[4\\] |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nDefinition at line\n[106](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/activity_recognition.h)\nof file\n[activity_recognition.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/activity_recognition.h)\n.\n\nField Documentation\n-------------------\n\n\n|-------------------|\n| uint32_t activity |\n\n\nDefinition at line\n[114](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/activity_recognition.h)\nof file\n[activity_recognition.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/activity_recognition.h)\n.\n\n|---------------------|\n| uint32_t event_type |\n\n\nDefinition at line\n[108](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/activity_recognition.h)\nof file\n[activity_recognition.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/activity_recognition.h)\n.\n\n|-----------------------|\n| int32_t reserved\\[4\\] |\n\n\nDefinition at line\n[120](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/activity_recognition.h)\nof file\n[activity_recognition.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/activity_recognition.h)\n.\n\n|-------------------|\n| int64_t timestamp |\n\n\nDefinition at line\n[117](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/activity_recognition.h)\nof file\n[activity_recognition.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/activity_recognition.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [activity_recognition.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/activity_recognition.h)"]]