Home
last modified time | relevance | path

Searched refs:serviceState (Results 1 – 7 of 7) sorted by relevance

/system/chre/chpp/
Dservices.c91 struct ChppEndpointState *serviceState, in chppRegisterService() argument
96 CHPP_DEBUG_NOT_NULL(serviceState); in chppRegisterService()
101 serviceState->openState = CHPP_OPEN_STATE_CLOSED; in chppRegisterService()
102 serviceState->appContext = appContext; in chppRegisterService()
103 serviceState->outReqStates = outReqStates; in chppRegisterService()
104 serviceState->context = serviceContext; in chppRegisterService()
108 serviceState->handle = CHPP_HANDLE_NONE; in chppRegisterService()
112 serviceState->index = numServices; in chppRegisterService()
113 serviceState->handle = CHPP_SERVICE_HANDLE_OF_INDEX(numServices); in chppRegisterService()
116 appContext->registeredServiceStates[numServices] = serviceState; in chppRegisterService()
[all …]
DRELEASE_NOTES.md259 struct ChppServiceState *serviceState,
263 The handle which used to be returned is now populated in `serviceState`.
/system/chre/chpp/include/chpp/
Dservices.h49 #define chppAllocServiceRequestFixed(serviceState, type) \ argument
50 (type *)chppAllocServiceRequest(serviceState, sizeof(type))
62 #define chppAllocServiceRequestTypedArray(serviceState, type, count, \ argument
65 serviceState, sizeof(type) + (count)*sizeof_member(type, arrayField[0]))
138 struct ChppEndpointState *serviceState,
178 struct ChppEndpointState *serviceState, size_t len);
189 struct ChppEndpointState *serviceState, uint16_t command);
209 struct ChppEndpointState *serviceState,
227 struct ChppEndpointState *serviceState,
244 struct ChppEndpointState *serviceState,
[all …]
/system/chre/chpp/test/
Dapp_timeout_test.cpp98 void ValidateServiceStateAndReqState(struct ChppEndpointState *serviceState, in ValidateServiceStateAndReqState() argument
100 ASSERT_NE(serviceState, nullptr); in ValidateServiceStateAndReqState()
101 const uint8_t serviceIdx = serviceState->index; in ValidateServiceStateAndReqState()
103 ASSERT_NE(serviceState->appContext, nullptr); in ValidateServiceStateAndReqState()
104 ASSERT_NE(serviceState->appContext->registeredServices, nullptr); in ValidateServiceStateAndReqState()
105 ASSERT_NE(serviceState->appContext->registeredServices[serviceIdx], nullptr); in ValidateServiceStateAndReqState()
108 serviceState->appContext->registeredServices[serviceIdx]->outReqCount); in ValidateServiceStateAndReqState()
109 ASSERT_NE(serviceState->appContext->registeredServiceStates[serviceIdx], in ValidateServiceStateAndReqState()
111 ASSERT_NE(serviceState->appContext->registeredServiceStates[serviceIdx] in ValidateServiceStateAndReqState()
115 serviceState->appContext->registeredServiceStates[serviceIdx]->context, in ValidateServiceStateAndReqState()
Dapp_req_resp_test.cpp248 enum ChppAppErrorCode serviceDispatchRequest(void *serviceState, uint8_t *buf, in serviceDispatchRequest() argument
251 auto state = static_cast<struct ServiceState *>(serviceState); in serviceDispatchRequest()
258 enum ChppAppErrorCode serviceDispatchResponse(void *serviceState, uint8_t *buf, in serviceDispatchResponse() argument
260 CHPP_NOT_NULL(serviceState); in serviceDispatchResponse()
262 auto state = static_cast<struct ServiceState *>(serviceState); in serviceDispatchResponse()
Dapp_notification_test.cpp146 enum ChppAppErrorCode serviceDispatchNotification(void *serviceState, in serviceDispatchNotification() argument
148 auto state = static_cast<struct ServiceState *>(serviceState); in serviceDispatchNotification()
Dapp_discovery_test.cpp123 void serviceNotifyReset(void *serviceState) { in serviceNotifyReset() argument
124 auto state = static_cast<struct ServiceState *>(serviceState); in serviceNotifyReset()