TimekeeperConfig

输入区域的平台配置选项。

字段类型说明默认
utc_start_at_startup_when_invalid_rtc bool 如果设置此选项,当我们尝试读取 RTC 但已知 RTC 读取无效时,系统将启动 UTC 时钟。
utc_max_allowed_delta_past_sec uint64 当建议的 UTC 参考时间相对于实际 UTC 参考时间处于“过去”时,建议的 UTC 参考时间与实际 UTC 参考时间之间的最大绝对差值(以秒为单位)。 此值始终表示为非负值。
utc_max_allowed_delta_future_sec uint64 当建议的 UTC 参考时间相对于实际 UTC 参考时间处于“未来”时,建议的 UTC 参考时间与实际 UTC 参考时间之间的最大绝对差值(以秒为单位)。 此值始终表示为非负值。
use_persistent_storage bool 如果设置此选项,程序集应配置永久性存储空间并将其路由到 Timekeeper。
use_connectivity bool 如果设置此选项,Timekeeper 将使用连接信息来衡量是否对外部时间源进行采样。
time_source_endpoint_url string 如果设置此选项,则只能读取设备的实时时钟,而不能写入。 https://clients3.google.com/generate_204
serve_test_protocols bool 如果设置此选项,Timekeeper 将提供来自库 `fuchsia.time.test` 的仅用于测试的协议。
serve_fuchsia_time_external_adjust bool 如果设置此选项,Timekeeper 应提供允许外部时间调整的 FIDL 协议 `fuchsia.time.external/Adjust`。
serve_fuchsia_time_alarms bool 如果设置此选项,Timekeeper 将提供 `fuchsia.time.alarms`,并连接到相应的硬件设备以执行此操作。
rtc_allow_setting_past_utc RtcInitializationPolicy 用于处理相对于当前启动时钟处于过去状态的 RTC 读数的政策。
power_topology_integration_enabled bool 如果设置此选项,Timekeeper 将使用与电源管理相关的功能。
periodic_rtc_update PeriodicRtcUpdate 从 UTC 时钟更新 RTC 的时间间隔,
min_utc_reference_to_backstop_diff_minutes uint64 如果我们收到的 UTC 参考时间戳与后备时间戳之间的时间差小于此值,则会拒绝该时间戳。 20
first_sampling_delay_sec int64 首次对时间源进行采样之前等待的时间(以秒为单位)。
back_off_time_between_pull_samples_sec int64 等待重试对拉取时间源进行采样的时间(以秒为单位)。 300
always_on_counter bool 如果设置此选项,则硬件具有始终开启的计数器,即使硬件系统的其余部分处于低功耗状态,该计数器也会运行。