/system/chre/chpp/clients/ |
D | discovery.c | 40 struct ChppAppState *appState, const struct ChppServiceDescriptor *service); 42 struct ChppAppState *appState, const struct ChppDiscoveryResponse *response, 45 struct ChppAppState *appState, uint8_t index); 80 struct ChppAppState *appState, in chppFindMatchingClientIndex() argument 84 const struct ChppClient **clients = appState->registeredClients; in chppFindMatchingClientIndex() 86 for (uint8_t i = 0; i < appState->registeredClientCount; i++) { in chppFindMatchingClientIndex() 105 struct ChppAppState *appState, const struct ChppDiscoveryResponse *response, in chppProcessDiscoverAllResponse() argument 107 if (appState->isDiscoveryComplete) { in chppProcessDiscoverAllResponse() 133 uint8_t clientIndex = chppFindMatchingClientIndex(appState, service); in chppProcessDiscoverAllResponse() 134 appState->clientIndexOfServiceIndex[i] = clientIndex; in chppProcessDiscoverAllResponse() [all …]
|
D | timesync.c | 53 void chppTimesyncClientInit(struct ChppAppState *appState) { in chppTimesyncClientInit() argument 55 CHPP_DEBUG_NOT_NULL(appState); in chppTimesyncClientInit() 57 appState->timesyncClientContext = in chppTimesyncClientInit() 59 CHPP_NOT_NULL(appState->timesyncClientContext); in chppTimesyncClientInit() 60 struct ChppTimesyncClientState *state = appState->timesyncClientContext; in chppTimesyncClientInit() 63 state->client.appContext = appState; in chppTimesyncClientInit() 71 void chppTimesyncClientDeinit(struct ChppAppState *appState) { in chppTimesyncClientDeinit() argument 73 CHPP_DEBUG_NOT_NULL(appState); in chppTimesyncClientDeinit() 74 CHPP_NOT_NULL(appState->timesyncClientContext); in chppTimesyncClientDeinit() 75 chppClientDeinit(&appState->timesyncClientContext->client); in chppTimesyncClientDeinit() [all …]
|
D | loopback.c | 56 void chppLoopbackClientInit(struct ChppAppState *appState) { in chppLoopbackClientInit() argument 58 CHPP_DEBUG_NOT_NULL(appState); in chppLoopbackClientInit() 60 appState->loopbackClientContext = in chppLoopbackClientInit() 62 CHPP_NOT_NULL(appState->loopbackClientContext); in chppLoopbackClientInit() 63 struct ChppLoopbackClientState *state = appState->loopbackClientContext; in chppLoopbackClientInit() 66 state->client.appContext = appState; in chppLoopbackClientInit() 72 void chppLoopbackClientDeinit(struct ChppAppState *appState) { in chppLoopbackClientDeinit() argument 74 CHPP_NOT_NULL(appState); in chppLoopbackClientDeinit() 75 CHPP_NOT_NULL(appState->loopbackClientContext); in chppLoopbackClientDeinit() 77 chppClientDeinit(&appState->loopbackClientContext->client); in chppLoopbackClientDeinit() [all …]
|
/system/chre/chpp/include/chpp/clients/ |
D | timesync.h | 66 void chppTimesyncClientInit(struct ChppAppState *appState); 73 void chppTimesyncClientDeinit(struct ChppAppState *appState); 80 void chppTimesyncClientReset(struct ChppAppState *appState); 92 bool chppDispatchTimesyncServiceResponse(struct ChppAppState *appState, 102 bool chppTimesyncMeasureOffset(struct ChppAppState *appState); 114 int64_t chppTimesyncGetOffset(struct ChppAppState *appState, 125 struct ChppAppState *appState);
|
D | discovery.h | 40 void chppDiscoveryInit(struct ChppAppState *appState); 47 void chppDiscoveryDeinit(struct ChppAppState *appState); 59 bool chppWaitForDiscoveryComplete(struct ChppAppState *appState, 70 bool chppDispatchDiscoveryServiceResponse(struct ChppAppState *appState, 81 void chppInitiateDiscovery(struct ChppAppState *appState); 91 bool chppAreAllClientsMatched(struct ChppAppState *appState);
|
D | loopback.h | 60 void chppLoopbackClientInit(struct ChppAppState *appState); 67 void chppLoopbackClientDeinit(struct ChppAppState *appState); 77 bool chppDispatchLoopbackServiceResponse(struct ChppAppState *appState, 86 struct ChppLoopbackTestResult chppRunLoopbackTest(struct ChppAppState *appState,
|
/system/chre/chpp/ |
D | app.c | 877 void chppTimestampOutgoingRequest(struct ChppAppState *appState, in chppTimestampOutgoingRequest() argument 881 CHPP_DEBUG_NOT_NULL(appState); in chppTimestampOutgoingRequest() 894 chppMutexLock(&appState->transportContext->mutex); in chppTimestampOutgoingRequest() 903 chppRecalculateNextTimeout(appState, endpointType); in chppTimestampOutgoingRequest() 911 getNextRequestTimeoutNs(appState, endpointType); in chppTimestampOutgoingRequest() 923 chppMutexUnlock(&appState->transportContext->mutex); in chppTimestampOutgoingRequest() 934 bool chppTimestampIncomingResponse(struct ChppAppState *appState, in chppTimestampIncomingResponse() argument 937 CHPP_DEBUG_NOT_NULL(appState); in chppTimestampIncomingResponse() 1008 *getNextRequestTimeoutNs(appState, endpointType)) { in chppTimestampIncomingResponse() 1009 chppRecalculateNextTimeout(appState, endpointType); in chppTimestampIncomingResponse() [all …]
|
D | transport.c | 1315 struct ChppAppState *appState = context->appContext; in chppTransportGetRequestTimeoutResponse() local 1324 if (*getNextRequestTimeoutNs(appState, type) <= chppGetCurrentTimeNs()) { in chppTransportGetRequestTimeoutResponse() 1326 const uint8_t endpointCount = getRegisteredEndpointCount(appState, type); in chppTransportGetRequestTimeoutResponse() 1331 getRegisteredEndpointOutReqCount(appState, endpointIdx, type); in chppTransportGetRequestTimeoutResponse() 1333 getRegisteredEndpointState(appState, endpointIdx, type); in chppTransportGetRequestTimeoutResponse() 1352 *getNextRequestTimeoutNs(appState, type) / CHPP_NSEC_PER_MSEC); in chppTransportGetRequestTimeoutResponse() 1353 chppRecalculateNextTimeout(appState, CHPP_ENDPOINT_CLIENT); in chppTransportGetRequestTimeoutResponse() 1365 getRegisteredEndpointState(appState, timedOutEndpointIdx, type); in chppTransportGetRequestTimeoutResponse()
|
/system/chre/chpp/include/chpp/ |
D | app.h | 743 void chppTimestampOutgoingRequest(struct ChppAppState *appState, 764 bool chppTimestampIncomingResponse(struct ChppAppState *appState, 802 struct ChppAppState *appState, struct ChppIncomingRequestState *inReqState, 851 struct ChppAppState *appState, uint8_t index, enum ChppEndpointType type); 861 uint16_t getRegisteredEndpointOutReqCount(struct ChppAppState *appState, 872 uint8_t getRegisteredEndpointCount(struct ChppAppState *appState, 883 void chppRecalculateNextTimeout(struct ChppAppState *appState, 893 uint64_t *getNextRequestTimeoutNs(struct ChppAppState *appState,
|
/system/chre/chpp/test/ |
D | app_req_resp_test.cpp | 83 struct ChppAppState *appState, in dispatchResponse() argument 96 appState, &outReqStates[asBaseType(Commands::kOk)], response); in dispatchResponse() 105 appState, &outReqStates[asBaseType(Commands::kError)], response); in dispatchResponse() 116 appState, &outReqStates[asBaseType(Commands::kTimeout)], response); in dispatchResponse() 129 struct ChppAppState *appState, struct ChppIncomingRequestState *inReqStates, in dispatchRequest() argument 145 chppSendTimestampedResponseOrFail(appState, in dispatchRequest()
|