自 2025 年 3 月 27 日起,我们建议您使用 android-latest-release
而非 aosp-main
构建 AOSP 并为其做出贡献。如需了解详情,请参阅 AOSP 的变更。
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
physical_sensor_description_t 结构体参考文档
#include <
context_hub.h
>
以下结构描述了传感器
定义位于文件
context_hub.h
的
181 行
。
uint32_t fifo_reserved_count
|
此结构体的文档是根据以下文件生成的:
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[[["易于理解","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"]],["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Android Hardware Abstraction Layer: physical_sensor_description_t Struct Reference\n\nphysical_sensor_description_t Struct Reference\n==============================================\n\n[Data Fields](#pub-attribs) \nphysical_sensor_description_t Struct Reference \n\n`\n#include \u003c\n`[context_hub.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/context_hub.h)`\n\u003e\n`\n\n|---------------|----------------------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| uint32_t | [sensor_type](/reference/hal/structphysical__sensor__description__t#ab2a32e927c29b8a3338f26134c64218d) |\n| ||\n| const char \\* | [type_string](/reference/hal/structphysical__sensor__description__t#aca144abd9a25e57b97225156438e78f2) |\n| ||\n| const char \\* | [name](/reference/hal/structphysical__sensor__description__t#a8f8f80d37794cde9472343e4487ba3eb) |\n| ||\n| const char \\* | [vendor](/reference/hal/structphysical__sensor__description__t#a40d4f2ef96d8ebd8802853bf7431d22f) |\n| ||\n| uint32_t | [version](/reference/hal/structphysical__sensor__description__t#acd99bb05ca015e7d74448acb1deba7ca) |\n| ||\n| uint32_t | [fifo_reserved_count](/reference/hal/structphysical__sensor__description__t#a5597f31723aa32509d8add5a3f737c2e) |\n| ||\n| uint32_t | [fifo_max_count](/reference/hal/structphysical__sensor__description__t#a096a8a40ed40499b6f8e14d87618ec2a) |\n| ||\n| uint64_t | [min_delay_ms](/reference/hal/structphysical__sensor__description__t#a140a0835aa2b96bcacbfa4357e017894) |\n| ||\n| uint64_t | [max_delay_ms](/reference/hal/structphysical__sensor__description__t#aff65d6ce84cc4e420b42ce2d8078a0f0) |\n| ||\n| float | [peak_power_mw](/reference/hal/structphysical__sensor__description__t#a01c14b6a35c4c32ee1783df546ed10c9) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nThe following structure describes a sensor\n\n\nDefinition at line\n[181](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/context_hub.h)\nof file\n[context_hub.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/context_hub.h)\n.\n\nField Documentation\n-------------------\n\n\n|-------------------------|\n| uint32_t fifo_max_count |\n\n\nDefinition at line\n[193](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/context_hub.h)\nof file\n[context_hub.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/context_hub.h)\n.\n\n|------------------------------|\n| uint32_t fifo_reserved_count |\n\n\nDefinition at line\n[187](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/context_hub.h)\nof file\n[context_hub.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/context_hub.h)\n.\n\n|-----------------------|\n| uint64_t max_delay_ms |\n\n\nDefinition at line\n[196](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/context_hub.h)\nof file\n[context_hub.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/context_hub.h)\n.\n\n|-----------------------|\n| uint64_t min_delay_ms |\n\n\nDefinition at line\n[194](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/context_hub.h)\nof file\n[context_hub.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/context_hub.h)\n.\n\n|-------------------|\n| const char\\* name |\n\n\nDefinition at line\n[184](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/context_hub.h)\nof file\n[context_hub.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/context_hub.h)\n.\n\n|---------------------|\n| float peak_power_mw |\n\n\nDefinition at line\n[198](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/context_hub.h)\nof file\n[context_hub.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/context_hub.h)\n.\n\n|----------------------|\n| uint32_t sensor_type |\n\n\nDefinition at line\n[182](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/context_hub.h)\nof file\n[context_hub.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/context_hub.h)\n.\n\n|--------------------------|\n| const char\\* type_string |\n\n\nDefinition at line\n[183](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/context_hub.h)\nof file\n[context_hub.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/context_hub.h)\n.\n\n|---------------------|\n| const char\\* vendor |\n\n\nDefinition at line\n[185](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/context_hub.h)\nof file\n[context_hub.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/context_hub.h)\n.\n\n|------------------|\n| uint32_t version |\n\n\nDefinition at line\n[186](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/context_hub.h)\nof file\n[context_hub.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/context_hub.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [context_hub.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/context_hub.h)"]]