Ab dem 27. März 2025 empfehlen wir, android-latest-release
anstelle von aosp-main
zu verwenden, um AOSP zu erstellen und Beiträge dazu zu leisten. Weitere Informationen finden Sie unter Änderungen am AOSP.
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Strukturreferenz für sensor_t
#include <
sensors.h
>
Definition in Zeile
1172
der Datei
sensors.h
.
uint32_t fifoMaxEventCount
|
uint32_t fifoReservedEventCount
|
const char* requiredPermission
|
Die Dokumentation für diese Struktur wurde aus der folgenden Datei generiert:
-
hardware/libhardware/include/hardware/
sensors.h
Alle Inhalte und Codebeispiele auf dieser Seite unterliegen den Lizenzen wie im Abschnitt Inhaltslizenz beschrieben. Java und OpenJDK sind Marken oder eingetragene Marken von Oracle und/oder seinen Tochtergesellschaften.
Zuletzt aktualisiert: 2025-07-27 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-07-27 (UTC)."],[],[],null,["# Android Hardware Abstraction Layer: sensor_t Struct Reference\n\nsensor_t Struct Reference\n=========================\n\n[Data Fields](#pub-attribs) \nsensor_t Struct Reference \n\n`\n#include \u003c\n`[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)`\n\u003e\n`\n\n|---------------|--------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| const char \\* | [name](/reference/hal/structsensor__t#a8f8f80d37794cde9472343e4487ba3eb) |\n| ||\n| const char \\* | [vendor](/reference/hal/structsensor__t#a40d4f2ef96d8ebd8802853bf7431d22f) |\n| ||\n| int | [version](/reference/hal/structsensor__t#aad880fc4455c253781e8968f2239d56f) |\n| ||\n| int | [handle](/reference/hal/structsensor__t#a3127ebf018e9da62fa464d348352037d) |\n| ||\n| int | [type](/reference/hal/structsensor__t#ac765329451135abec74c45e1897abf26) |\n| ||\n| float | [maxRange](/reference/hal/structsensor__t#a2480d51e0cbf660947250cc46cd8bcc2) |\n| ||\n| float | [resolution](/reference/hal/structsensor__t#a4333d786c60465d20826583358b2798d) |\n| ||\n| float | [power](/reference/hal/structsensor__t#af2eae6b68aca1a3174f57157c50f58f1) |\n| ||\n| int32_t | [minDelay](/reference/hal/structsensor__t#adc25c0edc33175f2e9f47167bac0eaef) |\n| ||\n| uint32_t | [fifoReservedEventCount](/reference/hal/structsensor__t#a5d6df44e392f520cff42e48bb4e44d6b) |\n| ||\n| uint32_t | [fifoMaxEventCount](/reference/hal/structsensor__t#aaba2e628a36b8915cc95b85404860e3f) |\n| ||\n| const char \\* | [stringType](/reference/hal/structsensor__t#acf1b1d182f742ebff97a570c8528288c) |\n| ||\n| const char \\* | [requiredPermission](/reference/hal/structsensor__t#a09467cc1fa991cd9c573f432d78a38cd) |\n| ||\n| int32_t | [maxDelay](/reference/hal/structsensor__t#a6c4550d23dc9300bbcd1cd439990d2ed) |\n| ||\n| uint32_t | [flags](/reference/hal/structsensor__t#a773b39d480759f67926cb18ae2219281) |\n| ||\n| void \\* | [reserved](/reference/hal/structsensor__t#a8d4c205872279d43f5aa29a4bb420dae) \\[2\\] |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nDefinition at line\n[1172](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\nField Documentation\n-------------------\n\n\n|----------------------------|\n| uint32_t fifoMaxEventCount |\n\n\nDefinition at line\n[1226](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\n|---------------------------------|\n| uint32_t fifoReservedEventCount |\n\n\nDefinition at line\n[1220](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\n|----------------|\n| uint32_t flags |\n\n\nDefinition at line\n[1273](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\n|------------|\n| int handle |\n\n\nDefinition at line\n[1192](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\n|------------------|\n| int32_t maxDelay |\n\n\nDefinition at line\n[1263](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\n|----------------|\n| float maxRange |\n\n\nDefinition at line\n[1198](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\n|------------------|\n| int32_t minDelay |\n\n\nDefinition at line\n[1213](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\n|-------------------|\n| const char\\* name |\n\n\nDefinition at line\n[1177](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\n|-------------|\n| float power |\n\n\nDefinition at line\n[1204](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\n|---------------------------------|\n| const char\\* requiredPermission |\n\n\nDefinition at line\n[1245](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\n|----------------------|\n| void\\* reserved\\[2\\] |\n\n\nDefinition at line\n[1277](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\n|------------------|\n| float resolution |\n\n\nDefinition at line\n[1201](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\n|-------------------------|\n| const char\\* stringType |\n\n\nDefinition at line\n[1236](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\n|----------|\n| int type |\n\n\nDefinition at line\n[1195](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\n|---------------------|\n| const char\\* vendor |\n\n\nDefinition at line\n[1180](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\n|-------------|\n| int version |\n\n\nDefinition at line\n[1187](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\nof file\n[sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [sensors.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h)"]]