代码修改了/frameworks/base/core/res/res/values/config.xml的参数(可见附件截图)
<!-- Remote server that can provide NTP responses. -->
<string translatable="false" name="config_ntpServer">10.2.126.57</string>
<!-- Normal polling frequency in milliseconds -->
<integer name="config_ntpPollingInterval">120000</integer>
<!-- Try-again polling interval in milliseconds, in case the network request failed -->
<integer name="config_ntpPollingIntervalShorter">1000</integer>
<!-- Number of times to try again with the shorter interval, before backing
off until the normal polling interval. A value < 0 indicates infinite. -->
<integer name="config_ntpRetry">3</integer>
<!-- Timeout to wait for NTP server response in milliseconds. -->
<integer name="config_ntpTimeout">5</integer> ntp设置时间操作如下(详细截图见附件):
ntp服务器地址(config_ntpServer)设置成功,这里本地ntp服务器
ntp请求间隔(config_ntpPollingInterval)设置成功,这里是2分钟
ntp限值(config_ntpTimeout)设置为5ms,clock offset应该不会一直在3百多ms。
想请教一下各位大神应该怎么配置才可以使ntp限值生效,可以实现画面同步
|