Mulai 27 Maret 2025, sebaiknya gunakan android-latest-release
, bukan aosp-main
, untuk mem-build dan berkontribusi pada AOSP. Untuk mengetahui informasi selengkapnya, lihat Perubahan pada AOSP.
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Referensi Struct physical_sensor_description_t
#include <
context_hub.h
>
Struktur berikut menjelaskan sensor
Definisi pada baris
181
file
context_hub.h
.
uint32_t fifo_reserved_count
|
Dokumentasi untuk struct ini dibuat dari file berikut:
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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)"]]