2025년 3월 27일부터 AOSP를 빌드하고 기여하려면 aosp-main
대신 android-latest-release
를 사용하는 것이 좋습니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
local_time_hw_device 구조체 참조
#include <
local_time_hal.h
>
local_time_hal.h
파일의
57
행에 정의가 있습니다.
실험실 환경에서 하위 수준 동기화 데이터를 수집하는 데 사용되는 방법입니다. 대부분의 HAL 구현은 이 멤버를 NULL로 설정하거나 -EINVAL을 반환하여 이 기능이 지원되지 않음을 나타냅니다. 프로덕션 HAL은 이 메서드를 지원해서는 안 됩니다.
local_time_hal.h
FILE의
98
행에 정의가 있습니다.
시스템 전체 로컬 시간 카운터를 구동하는 오실레이터의 HW 슬루 레잇을 설정합니다. 성공하면 플랫폼은 0을 반환해야 합니다. HW 슬루를 지원하지 않는 플랫폼은 이 메서드를 NULL로 설정해야 합니다.
유효한 비율 값의 범위는 MIN_INT16에서 MAX_INT16까지입니다. 플랫폼 구현은 이 범위를 하드웨어의 최소/최대 슬루 속도에 선형으로 매핑하려고 시도해야 합니다.
local_time_hal.h
FILE의
89
행에 정의가 있습니다.
이 구조체에 관한 문서는 다음 파일에서 생성되었습니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(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-27(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)"]]