Home
last modified time | relevance | path

Searched refs:offsetNs (Results 1 – 3 of 3) sorted by relevance

/system/chre/chpp/clients/
Dtimesync.c85 context->timesyncClientContext->timesyncResult.offsetNs = 0; in chppTimesyncClientReset()
112 int64_t offsetNs = in chppDispatchTimesyncServiceResponse() local
116 offsetNs - context->timesyncClientContext->timesyncResult.offsetNs; in chppDispatchTimesyncServiceResponse()
119 if (context->timesyncClientContext->timesyncResult.offsetNs != 0) { in chppDispatchTimesyncServiceResponse()
126 context->timesyncClientContext->timesyncResult.offsetNs += in chppDispatchTimesyncServiceResponse()
147 offsetNs / (int64_t)CHPP_NSEC_PER_MSEC, in chppDispatchTimesyncServiceResponse()
190 (context->timesyncClientContext->timesyncResult.offsetNs == 0); in chppTimesyncGetOffset()
201 context->timesyncClientContext->timesyncResult.offsetNs / in chppTimesyncGetOffset()
205 return context->timesyncClientContext->timesyncResult.offsetNs; in chppTimesyncGetOffset()
/system/chre/chpp/test/
Dapp_test.cpp156 EXPECT_LT(chppTimesyncGetResult(&mClientAppContext)->offsetNs, kMaxOffset); in TEST_F()
157 EXPECT_GT(chppTimesyncGetResult(&mClientAppContext)->offsetNs, -kMaxOffset); in TEST_F()
158 EXPECT_NE(chppTimesyncGetResult(&mClientAppContext)->offsetNs, 0); in TEST_F()
/system/chre/chpp/include/chpp/clients/
Dtimesync.h52 int64_t offsetNs; // Time offset of service (service - client) member