À partir du 27 mars 2025, nous vous recommandons d'utiliser android-latest-release
au lieu de aosp-main
pour créer et contribuer à AOSP. Pour en savoir plus, consultez la section Modifications apportées à AOSP.
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Référence de la struct physical_sensor_description_t
#include <
context_hub.h
>
La structure suivante décrit un capteur
Définition à la ligne
181
du fichier
context_hub.h
.
uint32_t fifo_reserved_count
|
La documentation de ce struct a été générée à partir du fichier suivant :
Le contenu et les exemples de code de cette page sont soumis aux licences décrites dans la Licence de contenu. Java et OpenJDK sont des marques ou des marques déposées d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/27 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/07/27 (UTC)."],[],[],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)"]]