Начиная с 27 марта 2025 г. мы рекомендуем использовать android-latest-release
вместо aosp-main
для создания и участия в AOSP. Дополнительные сведения см. в разделе Изменения в AOSP .
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Ссылка на структуру local_time_hw_device
#include < local_time_hal.h >
Определение в строке 57 файла local_time_hal.h .
Метод, используемый для сбора данных синхронизации низкого уровня в лабораторных средах. Большинство реализаций HAL просто устанавливают для этого члена значение NULL или возвращают -EINVAL, чтобы указать, что эта функция не поддерживается. Производственные HAL никогда не должны поддерживать этот метод.
Определение в строке 98 файла local_time_hal.h .
Возвращает номинальную частоту (в герцах) общесистемного счетчика местного времени.
Определение в строке 77 файла local_time_hal.h .
Возвращает текущее значение общесистемного счетчика местного времени.
Определение в строке 70 файла local_time_hal.h .
Устанавливает скорость нарастания аппаратного генератора, который управляет общесистемным счетчиком местного времени. В случае успеха платформы должны вернуть 0. Платформы, которые не поддерживают аппаратное наведение, должны оставить для этого метода значение NULL.
Допустимые значения скорости варьируются от MIN_INT16 до MAX_INT16. Реализации платформы должны попытаться сопоставить этот диапазон линейно с минимальной/максимальной скоростью нарастания их оборудования.
Определение в строке 89 файла local_time_hal.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: local_time_hw_device Struct Reference\n\nlocal_time_hw_device Struct Reference\n=====================================\n\n[Data Fields](#pub-attribs) \nlocal_time_hw_device Struct Reference \n\n`\n#include \u003c\n`[local_time_hal.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/local_time_hal.h)`\n\u003e\n`\n\n|----------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| struct [hw_device_t](/reference/hal/structhw__device__t) | [common](/reference/hal/structlocal__time__hw__device#a86a0ca82dd3f02023e259b8b5e155dbe) |\n| ||\n| int64_t(\\* | [get_local_time](/reference/hal/structlocal__time__hw__device#aa2fced6a37dbd2b5f72c8148a52c611a) )(struct [local_time_hw_device](/reference/hal/structlocal__time__hw__device) \\*dev) |\n| ||\n| uint64_t(\\* | [get_local_freq](/reference/hal/structlocal__time__hw__device#a761e4dab7f805e4a1810a2214aabb2f3) )(struct [local_time_hw_device](/reference/hal/structlocal__time__hw__device) \\*dev) |\n| ||\n| int(\\* | [set_local_slew](/reference/hal/structlocal__time__hw__device#af05541302faa15c0eb8a04c0765297b0) )(struct [local_time_hw_device](/reference/hal/structlocal__time__hw__device) \\*dev, int16_t rate) |\n| ||\n| int(\\* | [get_debug_log](/reference/hal/structlocal__time__hw__device#a3c571551268d4ba712c129ac665d0ff5) )(struct [local_time_hw_device](/reference/hal/structlocal__time__hw__device) \\*dev, struct [local_time_debug_event](/reference/hal/structlocal__time__debug__event) \\*records, int max_records) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nDefinition at line\n[57](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/local_time_hal.h)\nof file\n[local_time_hal.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/local_time_hal.h)\n.\n\nField Documentation\n-------------------\n\n\n|-----------------------------------------------------------------|\n| struct [hw_device_t](/reference/hal/structhw__device__t) common |\n\n\nCommon methods of the local time hardware device. This\n*must*\nbe the first member of\n[local_time_hw_device](/reference/hal/structlocal__time__hw__device)\nas users of this structure will cast a\n[hw_device_t](/reference/hal/structhw__device__t)\nto\n[local_time_hw_device](/reference/hal/structlocal__time__hw__device)\npointer in contexts where it's known the\n[hw_device_t](/reference/hal/structhw__device__t)\nreferences a\n[local_time_hw_device](/reference/hal/structlocal__time__hw__device)\n.\n\n\nDefinition at line\n[64](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/local_time_hal.h)\nof file\n[local_time_hal.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/local_time_hal.h)\n.\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| int(\\* get_debug_log)(struct [local_time_hw_device](/reference/hal/structlocal__time__hw__device) \\*dev, struct [local_time_debug_event](/reference/hal/structlocal__time__debug__event) \\*records, int max_records) |\n\n\nA method used to collect low level sync data in a lab environments. Most HAL implementations will simply set this member to NULL, or return -EINVAL to indicate that this functionality is not supported. Production HALs should never support this method.\n\n\nDefinition at line\n[98](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/local_time_hal.h)\nof file\n[local_time_hal.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/local_time_hal.h)\n.\n\n|----------------------------------------------------------------------------------------------------------------|\n| uint64_t(\\* get_local_freq)(struct [local_time_hw_device](/reference/hal/structlocal__time__hw__device) \\*dev) |\n\n\nReturns the nominal frequency (in hertz) of the system wide local time counter\n\n\nDefinition at line\n[77](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/local_time_hal.h)\nof file\n[local_time_hal.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/local_time_hal.h)\n.\n\n|---------------------------------------------------------------------------------------------------------------|\n| int64_t(\\* get_local_time)(struct [local_time_hw_device](/reference/hal/structlocal__time__hw__device) \\*dev) |\n\n\nReturns the current value of the system wide local time counter\n\n\nDefinition at line\n[70](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/local_time_hal.h)\nof file\n[local_time_hal.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/local_time_hal.h)\n.\n\n|-------------------------------------------------------------------------------------------------------------------------|\n| int(\\* set_local_slew)(struct [local_time_hw_device](/reference/hal/structlocal__time__hw__device) \\*dev, int16_t rate) |\n\n\nSets the HW slew rate of oscillator which drives the system wide local time counter. On success, platforms should return 0. Platforms which do not support HW slew should leave this method set to NULL.\n\n\nValid values for rate range from MIN_INT16 to MAX_INT16. Platform implementations should attempt map this range linearly to the min/max slew rate of their hardware.\n\n\nDefinition at line\n[89](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/local_time_hal.h)\nof file\n[local_time_hal.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/local_time_hal.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [local_time_hal.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/local_time_hal.h)"]]