Начиная с 27 марта 2025 г. мы рекомендуем использовать android-latest-release
вместо aosp-main
для создания и участия в AOSP. Дополнительные сведения см. в разделе Изменения в AOSP .
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Sensor_t Справочник по структуре
#include < sensors.h >
Определение в строке 1172 файла Sensors.h .
uint32_t fifoMaxEventCount |
uint32_t fifoReservedEventCount |
плавающий максимальный диапазон |
const char* требуется разрешение |
недействительно* зарезервировано[2] |
Документация для этой структуры была создана из следующего файла:
- Аппаратное обеспечение/libhardware/include/hardware/ sensor.h
Контент и образцы кода на этой странице предоставлены по лицензиям. Java и OpenJDK – это зарегистрированные товарные знаки корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-29 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-29 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)"]]