2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
activity_event 構造体リファレンス
#include <
activity_recognition.h
>
この構造体のドキュメントは、次のファイルから生成されました。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 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-27 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)"]]