/system/chre/chpp/ |
D | services.c | 87 uint8_t chppRegisterService(struct ChppAppState *appContext, in chppRegisterService() argument 92 if (appContext->registeredServiceCount >= CHPP_MAX_REGISTERED_SERVICES) { in chppRegisterService() 94 appContext->registeredServiceCount); in chppRegisterService() 98 appContext->registeredServices[appContext->registeredServiceCount] = in chppRegisterService() 100 appContext->registeredServiceContexts[appContext->registeredServiceCount] = in chppRegisterService() 109 appContext->registeredServiceCount, in chppRegisterService() 110 CHPP_SERVICE_HANDLE_OF_INDEX(appContext->registeredServiceCount), in chppRegisterService() 116 return CHPP_SERVICE_HANDLE_OF_INDEX(appContext->registeredServiceCount++); in chppRegisterService() 186 return chppEnqueueTxDatagramOrFail(serviceState->appContext->transportContext, in chppSendTimestampedResponseOrFail()
|
D | clients.c | 167 void chppRegisterClient(struct ChppAppState *appContext, void *clientContext, in chppRegisterClient() argument 173 if (appContext->registeredClientCount >= CHPP_MAX_REGISTERED_CLIENTS) { in chppRegisterClient() 175 appContext->registeredClientCount); in chppRegisterClient() 178 clientState->appContext = appContext; in chppRegisterClient() 180 clientState->index = appContext->registeredClientCount; in chppRegisterClient() 182 appContext->registeredClientContexts[appContext->registeredClientCount] = in chppRegisterClient() 184 appContext->registeredClientStates[appContext->registeredClientCount] = in chppRegisterClient() 186 appContext->registeredClients[appContext->registeredClientCount] = in chppRegisterClient() 193 appContext->registeredClientCount, uuidText, in chppRegisterClient() 198 appContext->registeredClientCount++; in chppRegisterClient() [all …]
|
D | app.c | 68 struct ChppAppState *appContext, uint8_t handle); 70 struct ChppAppState *appContext, uint8_t handle); 71 static inline void *chppServiceContextOfHandle(struct ChppAppState *appContext, 73 static inline void *chppClientContextOfHandle(struct ChppAppState *appContext, 75 static void *chppClientServiceContextOfHandle(struct ChppAppState *appContext, 489 static void *chppClientServiceContextOfHandle(struct ChppAppState *appContext, in chppClientServiceContextOfHandle() argument 495 return chppServiceContextOfHandle(appContext, handle); in chppClientServiceContextOfHandle() 500 return chppClientContextOfHandle(appContext, handle); in chppClientServiceContextOfHandle() 632 void chppAppInit(struct ChppAppState *appContext, in chppAppInit() argument 638 chppAppInitWithClientServiceSet(appContext, transportContext, set); in chppAppInit() [all …]
|
D | transport.c | 552 if (!context->appContext->isDiscoveryComplete) { in chppProcessResetAck() 554 chppInitiateDiscovery(context->appContext); in chppProcessResetAck() 565 chppAppProcessReset(context->appContext); in chppProcessResetAck() 635 chppAppProcessRxDatagram(context->appContext, context->rxDatagram.payload, in chppProcessRxPayload() 1057 chppAppProcessRxDatagram(context->appContext, (uint8_t *)timeoutResponse, in chppTransportDoWork() 1221 struct ChppAppState *appContext = transportContext->appContext; in chppReset() local 1258 chppAppProcessReset(appContext); in chppReset() 1280 if (context->appContext->nextRequestTimeoutNs <= chppGetCurrentTimeNs()) { in chppTransportGetClientRequestTimeoutResponse() 1285 clientIdx < context->appContext->registeredClientCount; clientIdx++) { in chppTransportGetClientRequestTimeoutResponse() 1288 context->appContext->registeredClients[clientIdx]->rRStateCount; in chppTransportGetClientRequestTimeoutResponse() [all …]
|
D | QUICKSTART.md | 39 1. Allocate the transportContext and appContext structs that hold the state for each instance of th… 54 1. Deallocate the transportContext, appContext, and the platform-specific linkParams structs
|
/system/chre/chpp/test/ |
D | clients_test.cpp | 69 ASSERT_TRUE(clientState->appContext != NULL); in getClientRRStateInputCheck() 70 ASSERT_TRUE(clientState->appContext->registeredClients != NULL); in getClientRRStateInputCheck() 71 ASSERT_TRUE(clientState->appContext->registeredClients[clientIdx] != NULL); in getClientRRStateInputCheck() 73 clientState->appContext->registeredClientStates[clientIdx]->rRStates != in getClientRRStateInputCheck() 77 clientState->appContext->registeredClients[clientIdx]->rRStateCount); in getClientRRStateInputCheck() 85 return &(clientState->appContext->registeredClientStates[clientIdx] in getClientRRState() 108 isTimeoutAsExpected(clientState->appContext->nextRequestTimeoutNs, in registerAndValidateRequestForTimeout() 118 ASSERT_FALSE(clientState->appContext == NULL); in registerAndValidateResponseForTimeout() 119 ASSERT_FALSE(clientState->appContext->registeredClients == NULL); in registerAndValidateResponseForTimeout() 120 ASSERT_FALSE(clientState->appContext->registeredClients[clientIdx] == NULL); in registerAndValidateResponseForTimeout() [all …]
|
/system/chre/chpp/include/chpp/services/ |
D | wifi.h | 39 void chppRegisterWifiService(struct ChppAppState *appContext); 46 void chppDeregisterWifiService(struct ChppAppState *appContext);
|
D | wwan.h | 39 void chppRegisterWwanService(struct ChppAppState *appContext); 46 void chppDeregisterWwanService(struct ChppAppState *appContext);
|
D | gnss.h | 39 void chppRegisterGnssService(struct ChppAppState *appContext); 46 void chppDeregisterGnssService(struct ChppAppState *appContext);
|
/system/chre/chpp/include/chpp/clients/ |
D | gnss.h | 43 void chppRegisterGnssClient(struct ChppAppState *appContext); 50 void chppDeregisterGnssClient(struct ChppAppState *appContext);
|
D | wwan.h | 43 void chppRegisterWwanClient(struct ChppAppState *appContext); 50 void chppDeregisterWwanClient(struct ChppAppState *appContext);
|
D | wifi.h | 43 void chppRegisterWifiClient(struct ChppAppState *appContext); 50 void chppDeregisterWifiClient(struct ChppAppState *appContext);
|
/system/extras/simpleperf/demo/SimpleperfExampleOfKotlin/app/src/androidTest/java/com/example/simpleperf/simpleperfexampleofkotlin/ |
D | ExampleInstrumentedTest.kt | 21 val appContext = InstrumentationRegistry.getTargetContext() in useAppContext() constant 22 assertEquals("com.example.simpleperf.simpleperfexampleofkotlin", appContext.packageName) in useAppContext()
|
/system/extras/simpleperf/demo/SimpleperfExampleWithNative/app/src/androidTest/java/com/example/simpleperf/simpleperfexamplewithnative/ |
D | ExampleInstrumentedTest.java | 23 Context appContext = InstrumentationRegistry.getTargetContext(); in useAppContext() local 25 … assertEquals("com.example.simpleperf.simpleperfexamplewithnative", appContext.getPackageName()); in useAppContext()
|
/system/extras/simpleperf/demo/SimpleperfExamplePureJava/app/src/androidTest/java/com/example/simpleperf/simpleperfexamplepurejava/ |
D | ExampleInstrumentedTest.java | 23 Context appContext = InstrumentationRegistry.getTargetContext(); in useAppContext() local 25 … assertEquals("com.example.simpleperf.simpleperfexamplepurejava", appContext.getPackageName()); in useAppContext()
|
/system/chre/chpp/services/ |
D | wwan.c | 216 wwanServiceContext->service.appContext->systemApi, in chppWwanServiceOpen() 411 void chppRegisterWwanService(struct ChppAppState *appContext) { in chppRegisterWwanService() argument 421 gWwanServiceContext.service.appContext = appContext; in chppRegisterWwanService() 423 appContext, (void *)&gWwanServiceContext, &kWwanServiceConfig); in chppRegisterWwanService() 428 void chppDeregisterWwanService(struct ChppAppState *appContext) { in chppDeregisterWwanService() argument 431 UNUSED_VAR(appContext); in chppDeregisterWwanService()
|
D | gnss.c | 252 gnssServiceContext->service.appContext->systemApi, in chppGnssServiceOpen() 513 gGnssServiceContext.service.appContext->transportContext, notification, in chppGnssServiceRequestStateResyncCallback() 583 gGnssServiceContext.service.appContext->transportContext, notification, in chppGnssServiceLocationEventCallback() 655 gGnssServiceContext.service.appContext->transportContext, notification, in chppGnssServiceMeasurementEventCallback() 666 void chppRegisterGnssService(struct ChppAppState *appContext) { in chppRegisterGnssService() argument 676 gGnssServiceContext.service.appContext = appContext; in chppRegisterGnssService() 678 appContext, (void *)&gGnssServiceContext, &kGnssServiceConfig); in chppRegisterGnssService() 683 void chppDeregisterGnssService(struct ChppAppState *appContext) { in chppDeregisterGnssService() argument 686 UNUSED_VAR(appContext); in chppDeregisterGnssService()
|
D | wifi.c | 246 wifiServiceContext->service.appContext->systemApi, in chppWifiServiceOpen() 609 gWifiServiceContext.service.appContext->transportContext, notification, in chppWifiServiceScanEventCallback() 656 gWifiServiceContext.service.appContext->transportContext, notification, in chppWifiServiceRangingEventCallback() 667 void chppRegisterWifiService(struct ChppAppState *appContext) { in chppRegisterWifiService() argument 679 gWifiServiceContext.service.appContext = appContext; in chppRegisterWifiService() 681 appContext, (void *)&gWifiServiceContext, &kWifiServiceConfig); in chppRegisterWifiService() 686 void chppDeregisterWifiService(struct ChppAppState *appContext) { in chppDeregisterWifiService() argument 689 UNUSED_VAR(appContext); in chppDeregisterWifiService()
|
/system/chre/chpp/include/chpp/ |
D | services.h | 102 struct ChppAppState *appContext; // Pointer to app layer context member 146 uint8_t chppRegisterService(struct ChppAppState *appContext,
|
D | app.h | 438 void chppAppInit(struct ChppAppState *appContext, 452 struct ChppAppState *appContext, 462 void chppAppDeinit(struct ChppAppState *appContext);
|
D | clients.h | 71 struct ChppAppState *appContext; // Pointer to app layer context member 161 void chppRegisterClient(struct ChppAppState *appContext, void *clientContext,
|
D | transport.h | 422 struct ChppAppState *appContext; // Pointer to app layer context member 476 struct ChppAppState *appContext);
|
/system/chre/chpp/clients/ |
D | wwan.c | 381 int64_t offset = chppTimesyncGetOffset(gWwanClientContext.client.appContext, in chppWwanGetCellInfoAsyncResult() 417 if (chppWaitForDiscoveryComplete(gWwanClientContext.client.appContext, in chppWwanClientOpen() 533 void chppRegisterWwanClient(struct ChppAppState *appContext) { in chppRegisterWwanClient() argument 534 chppRegisterClient(appContext, (void *)&gWwanClientContext, in chppRegisterWwanClient() 539 void chppDeregisterWwanClient(struct ChppAppState *appContext) { in chppDeregisterWwanClient() argument 542 UNUSED_VAR(appContext); in chppDeregisterWwanClient()
|
D | wifi.c | 557 (uint64_t)chppTimesyncGetOffset(gWifiClientContext.client.appContext, in chppWifiScanEventNotification() 600 (uint64_t)chppTimesyncGetOffset(gWifiClientContext.client.appContext, in chppWifiRangingEventNotification() 641 if (chppWaitForDiscoveryComplete(gWifiClientContext.client.appContext, in chppWifiClientOpen() 849 void chppRegisterWifiClient(struct ChppAppState *appContext) { in chppRegisterWifiClient() argument 850 chppRegisterClient(appContext, (void *)&gWifiClientContext, in chppRegisterWifiClient() 855 void chppDeregisterWifiClient(struct ChppAppState *appContext) { in chppDeregisterWifiClient() argument 858 UNUSED_VAR(appContext); in chppDeregisterWifiClient()
|
D | gnss.c | 613 if (chppWaitForDiscoveryComplete(gGnssClientContext.client.appContext, in chppGnssClientOpen() 822 void chppRegisterGnssClient(struct ChppAppState *appContext) { in chppRegisterGnssClient() argument 823 chppRegisterClient(appContext, (void *)&gGnssClientContext, in chppRegisterGnssClient() 828 void chppDeregisterGnssClient(struct ChppAppState *appContext) { in chppDeregisterGnssClient() argument 831 UNUSED_VAR(appContext); in chppDeregisterGnssClient()
|