/foundation/communication/wifi/wifi/test/wifi_standard/ipc_framework/cRPC/unittest/ |
H A D | serial_test.h | 28 ctx = CreateContext(BUFFER_1K); in SetUpTestCase() 32 if (ctx != nullptr) { in TearDownTestCase() 33 ReleaseContext(ctx); in TearDownTestCase() 34 ctx = nullptr; in TearDownTestCase() 43 static Context *ctx; member in OHOS::Wifi::SerialTest
|
H A D | hash_table_test.cpp | 52 Context *ctx = (Context *)calloc(1, sizeof(Context)); in HWTEST_F() local 53 ctx->fd = fd; in HWTEST_F() 54 ASSERT_EQ(InsertHashTable(table, ctx), 0); in HWTEST_F() 57 Context *ctx = (Context *)calloc(1, sizeof(Context)); in HWTEST_F() local 58 ctx->fd = 1; in HWTEST_F() 59 InsertHashTable(p, ctx); in HWTEST_F() 60 EXPECT_EQ(InsertHashTable(table, ctx), -2); in HWTEST_F() 61 free(ctx); in HWTEST_F()
|
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_base/ |
H A D | serial_test.h | 28 ctx = CreateContext(BUFFER_1K); in SetUpTestCase() 32 if (ctx != nullptr) { in TearDownTestCase() 33 ReleaseContext(ctx); in TearDownTestCase() 34 ctx = nullptr; in TearDownTestCase() 43 static Context *ctx; member in OHOS::Wifi::SerialTest
|
H A D | hash_table_test.cpp | 52 Context *ctx = (Context *)calloc(1, sizeof(Context)); in HWTEST_F() local 53 ctx->fd = fd; in HWTEST_F() 54 ASSERT_EQ(InsertHashTable(table, ctx), 0); in HWTEST_F() 57 Context *ctx = (Context *)calloc(1, sizeof(Context)); in HWTEST_F() local 58 ctx->fd = 1; in HWTEST_F() 59 InsertHashTable(p, ctx); in HWTEST_F() 60 EXPECT_EQ(InsertHashTable(table, ctx), -2); in HWTEST_F() 61 free(ctx); in HWTEST_F()
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/gap/ |
H A D | gap_task_internal.h | 25 void *ctx; member 31 void *ctx; member 50 void GapInTaskProcess(void *ctx); 51 int GapRunTaskBlockProcess(void (*func)(void *), void *ctx); 52 int GapRunTaskUnBlockProcess(void (*func)(void *), void *ctx, void (*free)(void *));
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/att/ |
H A D | att_connect.h | 91 * @param5 ctx Indicates the pointer to context. 94 uint16_t lcid, uint8_t id, const L2capConnectionInfo *info, uint16_t lpsm, const void *ctx); 103 * @param5 ctx Indicates the pointer to context. 106 uint16_t lcid, const L2capConnectionInfo *info, uint16_t result, uint16_t status, const void *ctx); 114 * @param4 ctx Indicates the pointer to context. 116 void AttReceiveConfigReq(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, const void *ctx); 124 * @param4 ctx Indicates the pointer to context. 126 void AttReceiveConfigRsp(uint16_t lcid, const L2capConfigInfo *cfg, uint16_t result, const void *ctx); 133 * @param3 ctx Indicates the pointer to context. 135 void AttReceiveDisconnectionReq(uint16_t lcid, uint8_t id, const void *ctx); [all...] |
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/core/ |
H A D | nstackx_openssl.c | 63 EVP_CIPHER_CTX *ctx = NULL; in CreateCryptCtx() local 64 ctx = EVP_CIPHER_CTX_new(); in CreateCryptCtx() 65 return ctx; in CreateCryptCtx() 68 void ClearCryptCtx(EVP_CIPHER_CTX *ctx) in ClearCryptCtx() argument 70 if (ctx != NULL) { in ClearCryptCtx() 71 EVP_CIPHER_CTX_free(ctx); in ClearCryptCtx() 100 if (cipher == NULL ||cryptPara->aadLen == 0 || cryptPara->ctx == NULL) { in InitEncryptCtx() 111 if (EVP_EncryptInit_ex(cryptPara->ctx, cipher, NULL, cryptPara->key, cryptPara->iv) == 0) { in InitEncryptCtx() 115 if (EVP_EncryptUpdate(cryptPara->ctx, NULL, &length, cryptPara->aad, (int32_t)cryptPara->aadLen) == 0) { in InitEncryptCtx() 142 if (EVP_EncryptUpdate(cryptPara->ctx, outBu in AesGcmEncryptVec() 299 EVP_CIPHER_CTX *ctx = NULL; CreateCryptCtx() local 303 ClearCryptCtx(EVP_CIPHER_CTX *ctx) ClearCryptCtx() argument [all...] |
H A D | nstackx_mbedtls.c | 34 void ClearCryptCtx(MBEDTLS_CTX *ctx) in ClearCryptCtx() argument 36 (void)ctx; in ClearCryptCtx() 135 mbedtls_chachapoly_context ctx; in MbedChaChaEncrypt() local 136 mbedtls_chachapoly_init(&ctx); in MbedChaChaEncrypt() 137 int ret = mbedtls_chachapoly_setkey(&ctx, cryptPara->key); in MbedChaChaEncrypt() 140 mbedtls_chachapoly_free(&ctx); in MbedChaChaEncrypt() 143 ret = mbedtls_chachapoly_encrypt_and_tag(&ctx, inLen, cryptPara->iv, in MbedChaChaEncrypt() 147 mbedtls_chachapoly_free(&ctx); in MbedChaChaEncrypt() 152 mbedtls_chachapoly_free(&ctx); in MbedChaChaEncrypt() 157 mbedtls_chachapoly_free(&ctx); in MbedChaChaEncrypt() 218 mbedtls_chachapoly_context ctx; MbedChaChaDecrypt() local [all...] |
/foundation/graphic/graphic_3d/kits/js/src/ |
H A D | LightJS.cpp | 164 napi_value BaseLight::GetlightType(NapiApi::FunctionContext<>& ctx) in GetlightType() argument 167 if (auto node = interface_cast<SCENE_NS::ILight>(GetThisNativeObject(ctx))) { in GetlightType() 171 napi_status status = napi_create_uint32(ctx, type, &value); in GetlightType() 175 napi_value BaseLight::GetEnabled(NapiApi::FunctionContext<>& ctx) in GetEnabled() argument 178 auto node = interface_pointer_cast<SCENE_NS::INode>(GetThisNativeObject(ctx)); in GetEnabled() 186 napi_status status = napi_get_boolean(ctx, enable, &value); in GetEnabled() 190 void BaseLight::SetEnabled(NapiApi::FunctionContext<bool>& ctx) in SetEnabled() argument 192 bool enabled = ctx.Arg<0>(); in SetEnabled() 193 auto node = interface_pointer_cast<SCENE_NS::INode>(GetThisNativeObject(ctx)); in SetEnabled() 202 napi_value BaseLight::GetColor(NapiApi::FunctionContext<>& ctx) in GetColor() argument 213 SetColor(NapiApi::FunctionContext<Object>& ctx) SetColor() argument 226 GetShadowEnabled(NapiApi::FunctionContext<& ctx) GetShadowEnabled() argument 240 SetShadowEnabled(NapiApi::FunctionContext<bool>& ctx) SetShadowEnabled() argument 252 GetIntensity(NapiApi::FunctionContext<& ctx) GetIntensity() argument 266 SetIntensity(NapiApi::FunctionContext<float>& ctx) SetIntensity() argument 370 GetNear(NapiApi::FunctionContext<& ctx) GetNear() argument 388 SetNear(NapiApi::FunctionContext<float>& ctx) SetNear() argument [all...] |
H A D | CameraJS.cpp | 209 napi_value CameraJS::GetFov(NapiApi::FunctionContext<>& ctx) in GetFov() argument 223 napi_status status = napi_create_double(ctx, fov, &value); in GetFov() 227 void CameraJS::SetFov(NapiApi::FunctionContext<float>& ctx) in SetFov() argument 229 float fov = ctx.Arg<0>(); in SetFov() 238 napi_value CameraJS::GetEnabled(NapiApi::FunctionContext<>& ctx) in GetEnabled() argument 252 napi_status status = napi_get_boolean(ctx, activ, &value); in GetEnabled() 256 void CameraJS::SetEnabled(NapiApi::FunctionContext<bool>& ctx) in SetEnabled() argument 258 bool activ = ctx.Arg<0>(); in SetEnabled() 273 napi_value CameraJS::GetFar(NapiApi::FunctionContext<>& ctx) in GetFar() argument 287 napi_status status = napi_create_double(ctx, fo in GetFar() 291 SetFar(NapiApi::FunctionContext<float>& ctx) SetFar() argument 302 GetNear(NapiApi::FunctionContext<& ctx) GetNear() argument 320 SetNear(NapiApi::FunctionContext<float>& ctx) SetNear() argument 331 GetPostProcess(NapiApi::FunctionContext<& ctx) GetPostProcess() argument 354 SetPostProcess(NapiApi::FunctionContext<NapiApi::Object>& ctx) SetPostProcess() argument 435 GetColor(NapiApi::FunctionContext<& ctx) GetColor() argument 457 SetColor(NapiApi::FunctionContext<NapiApi::Object>& ctx) SetColor() argument 506 GetMSAA(NapiApi::FunctionContext<& ctx) GetMSAA() argument 522 SetMSAA(NapiApi::FunctionContext<bool>& ctx) SetMSAA() argument [all...] |
H A D | MaterialJS.cpp | 91 napi_value BaseMaterial::GetMaterialType(NapiApi::FunctionContext<>& ctx) in GetMaterialType() argument 94 if (auto node = interface_cast<SCENE_NS::IMaterial>(GetThisNativeObject(ctx))) { in GetMaterialType() 98 napi_status status = napi_create_uint32(ctx, type, &value); in GetMaterialType() 186 void ShaderMaterialJS::SetColorShader(NapiApi::FunctionContext<NapiApi::Object>& ctx) in SetColorShader() argument 188 NapiApi::Object shaderJS = ctx.Arg<0>(); in SetColorShader() 209 NapiApi::Object parms(ctx); in SetColorShader() 216 parms.Set("Material", ctx.This()); // js material object that we are bound to. in SetColorShader() 228 MakeNativeObjectParam(ctx, shaderBind_, argc, argv); in SetColorShader() 229 auto result = CreateJsObj(ctx, "Shader", shaderBind_, false, argc, argv); in SetColorShader() 230 shader_ = StoreJsObj(shaderBind_, NapiApi::Object(ctx, resul in SetColorShader() 232 GetColorShader(NapiApi::FunctionContext<& ctx) GetColorShader() argument [all...] |
/foundation/communication/dsoftbus/core/connection/ble/src/ |
H A D | softbus_conn_ble_manager.c | 229 static int32_t NewRequest(ConnBleRequest **outRequest, const ConnBleConnectRequestContext *ctx) in NewRequest() argument 237 request->requestId = ctx->requestId; in NewRequest() 238 request->challengeCode = ctx->challengeCode; in NewRequest() 239 request->result = ctx->result; in NewRequest() 240 request->protocol = ctx->protocol; in NewRequest() 241 request->statistics.startTime = ctx->statistics.startTime; in NewRequest() 247 static int32_t NewDevice(ConnBleDevice **outDevice, const ConnBleConnectRequestContext *ctx) in NewDevice() argument 255 if (strcpy_s(device->addr, BT_MAC_LEN, ctx->addr) != EOK || in NewDevice() 256 strcpy_s(device->udid, UDID_BUF_LEN, ctx->udid) != EOK) { in NewDevice() 260 device->fastestConnectEnable = ctx in NewDevice() 287 ConvertCtxToDevice(ConnBleDevice **outDevice, const ConnBleConnectRequestContext *ctx) ConvertCtxToDevice() argument 587 BleConnectRequestOnAvailableState(const ConnBleConnectRequestContext *ctx) BleConnectRequestOnAvailableState() argument 607 BleConnectRequestOnConnectingState(const ConnBleConnectRequestContext *ctx) BleConnectRequestOnConnectingState() argument 940 BleDataReceived(ConnBleDataReceivedContext *ctx) BleDataReceived() argument 1048 BleReuseConnectionRequestOnAvailableState(const ConnBleReuseConnectionContext *ctx) BleReuseConnectionRequestOnAvailableState() argument 1072 BleReuseConnectionRequestOnConnectingState(const ConnBleReuseConnectionContext *ctx) BleReuseConnectionRequestOnConnectingState() argument 1555 ConnBleConnectRequestContext *ctx = (ConnBleConnectRequestContext *)msg->obj; ConnectRequestFunc() local 1581 BleStatusContext *ctx = (BleStatusContext *)(msg->obj); ClientConnectFailedFunc() local 1596 ConnBleDataReceivedContext *ctx = (ConnBleDataReceivedContext *)msg->obj; DataReceivedFunc() local 1611 BleStatusContext *ctx = (BleStatusContext *)(msg->obj); ConnectionClosedFunc() local 1647 BleStatusContext *ctx = (BleStatusContext *)(msg->obj); ResetFunc() local 1696 SoftBusMessage *ctx = (SoftBusMessage *)args; BleCompareManagerLooperEventFunc() local 1760 ConnBleConnectRequestContext *ctx = BleConnectDevice() local 1948 BleStatusContext *ctx = (BleStatusContext *)SoftBusCalloc(sizeof(BleStatusContext)); OnConnectFailed() local 1962 ConnBleDataReceivedContext *ctx = (ConnBleDataReceivedContext *)SoftBusCalloc(sizeof(ConnBleDataReceivedContext)); OnDataReceived() local 1987 BleStatusContext *ctx = (BleStatusContext *)SoftBusCalloc(sizeof(BleStatusContext)); OnConnectionClosed() local 2038 BleStatusContext *ctx = (BleStatusContext *)SoftBusCalloc(sizeof(BleStatusContext)); OnBtStateChanged() local 2073 ConnBleReuseConnectionContext ctx = { 0 }; ConflictReuseConnection() local [all...] |
/foundation/communication/dsoftbus/core/connection/br/src/ |
H A D | softbus_conn_br_manager.c | 216 static int32_t ConvertCtxToDevice(ConnBrDevice **outDevice, const ConnBrConnectRequestContext *ctx) in ConvertCtxToDevice() argument 219 int32_t status = NewRequest(&request, ctx->requestId, ctx->statistics, &ctx->result); in ConvertCtxToDevice() 224 status = NewDevice(&device, ctx->addr); in ConvertCtxToDevice() 229 device->connectionId = ctx->connectionId; in ConvertCtxToDevice() 230 device->waitTimeoutDelay = ctx->waitTimeoutDelay; in ConvertCtxToDevice() 534 static void ConnectRequestOnAvailableState(const ConnBrConnectRequestContext *ctx) in ConnectRequestOnAvailableState() argument 537 CONN_LOGE(CONN_BR, "br state is turn off, requestId=%{public}u, error=%{public}d", ctx->requestId, in ConnectRequestOnAvailableState() 539 DfxRecordBrConnectFail(ctx in ConnectRequestOnAvailableState() 558 ConnectRequestOnConnectingState(const ConnBrConnectRequestContext *ctx) ConnectRequestOnConnectingState() argument 813 DataReceived(ConnBrDataReceivedContext *ctx) DataReceived() argument 1101 ConnBrConnectRequestContext *ctx = (ConnBrConnectRequestContext *)msg->obj; ConnectRequestFunc() local 1128 ErrorContext *ctx = (ErrorContext *)(msg->obj); ClientConnectFailedFunc() local 1143 ConnBrDataReceivedContext *ctx = (ConnBrDataReceivedContext *)msg->obj; DataReceivedFunc() local 1158 ErrorContext *ctx = (ErrorContext *)(msg->obj); ConnectionExceptionFunc() local 1193 ErrorContext *ctx = (ErrorContext *)(msg->obj); ResetFunc() local 1231 SoftBusMessage *ctx = (SoftBusMessage *)args; BrCompareManagerLooperEventFunc() local 1274 ErrorContext *ctx = (ErrorContext *)SoftBusCalloc(sizeof(ErrorContext)); OnClientConnectFailed() local 1289 ConnBrDataReceivedContext *ctx = (ConnBrDataReceivedContext *)SoftBusCalloc(sizeof(ConnBrDataReceivedContext)); OnDataReceived() local 1310 ErrorContext *ctx = (ErrorContext *)SoftBusCalloc(sizeof(ErrorContext)); OnConnectionException() local 1503 ConnBrConnectRequestContext *ctx = BrConnectDevice() local 1754 ErrorContext *ctx = (ErrorContext *)SoftBusCalloc(sizeof(ErrorContext)); OnBtStateChanged() local [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/ |
H A D | openssl_crypto.cpp | 36 auto ctx = std::unique_ptr<EVP_CIPHER_CTX, decltype(&::EVP_CIPHER_CTX_free)>( in AESDecrypt() local 38 if (!ctx) { in AESDecrypt() 42 if (EVP_DecryptInit_ex(ctx.get(), EVP_aes_256_gcm(), NULL, reinterpret_cast<const uint8_t*>(shield.data.get()), in AESDecrypt() 50 if (EVP_DecryptUpdate(ctx.get(), reinterpret_cast<uint8_t*>(plainText.data.get()), &outlen, in AESDecrypt() 60 if (EVP_CIPHER_CTX_ctrl(ctx.get(), EVP_CTRL_GCM_SET_TAG, GCM_MAC_BYTES, in AESDecrypt() 67 if (EVP_DecryptFinal_ex(ctx.get(), reinterpret_cast<uint8_t*>(plainText.data.get() + plainText.size), in AESDecrypt() 84 auto ctx = std::unique_ptr<EVP_CIPHER_CTX, decltype(&::EVP_CIPHER_CTX_free)>( in AESEncrypt() local 86 if (!ctx) { in AESEncrypt() 91 if (EVP_EncryptInit_ex(ctx.get(), EVP_aes_256_gcm(), NULL, in AESEncrypt() 99 if (EVP_EncryptUpdate(ctx in AESEncrypt() [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/crypto_test/ |
H A D | crypto_test.cpp | 102 KeyContext ctx; in HWTEST_F() local 108 bool ret = HuksMaster::GetInstance().EncryptKey(ctx, auth, key, isNeedNewNonce); in HWTEST_F() 111 ret = HuksMaster::GetInstance().EncryptKeyEx(auth, rnd, ctx); in HWTEST_F() 126 KeyContext ctx { .shield = testKeyblob }; in HWTEST_F() 132 bool ret = HuksMaster::GetInstance().EncryptKey(ctx, auth, key, isNeedNewNonce); in HWTEST_F() 135 ret = HuksMaster::GetInstance().EncryptKeyEx(auth, rnd, ctx); in HWTEST_F() 149 KeyContext ctx; in HWTEST_F() local 155 bool ret = HuksMaster::GetInstance().DecryptKey(ctx, auth, key, isNeedNewNonce); in HWTEST_F() 158 ret = HuksMaster::GetInstance().DecryptKeyEx(ctx, auth, rnd); in HWTEST_F() 173 KeyContext ctx { in HWTEST_F() [all...] |
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/coap_discover/ |
H A D | coap_client.c | 166 coap_context_t *ctx = coap_new_context(NULL); in CoapGetContextEx() local 167 if (ctx == NULL) { in CoapGetContextEx() 173 coap_free_context(ctx); in CoapGetContextEx() 190 ep = coap_new_endpoint(ctx, &addr, COAP_PROTO_UDP); in CoapGetContextEx() 201 coap_free_context(ctx); in CoapGetContextEx() 202 ctx = NULL; in CoapGetContextEx() 206 coap_free_context(ctx); in CoapGetContextEx() 207 ctx = NULL; in CoapGetContextEx() 212 return ctx; in CoapGetContextEx() 224 static coap_session_t *CoapGetSessionInner(struct addrinfo *result, coap_context_t *ctx, in CoapGetSessionInner() argument 266 CoapGetSessionEx(coap_context_t *ctx, const char *localAddr, const char *localPort, const CoapServerParameter *coapServerParameter) CoapGetSessionEx() argument 317 CoapGetSession(coap_context_t *ctx, const char *localAddr, const char *localPort, const CoapServerParameter *coapServerParameter) CoapGetSession() argument 327 IsCoapCtxEndpointSocket(const coap_context_t *ctx, int fd) IsCoapCtxEndpointSocket() argument [all...] |
/foundation/communication/dsoftbus/adapter/common/mbedtls/ |
H A D | softbus_adapter_crypto.c | 152 static int32_t HandleError(mbedtls_cipher_context_t *ctx, const char *buf) in HandleError() argument 157 if (ctx != NULL) { in HandleError() 158 mbedtls_cipher_free(ctx); in HandleError() 189 mbedtls_md_context_t ctx; in SoftBusGenerateStrHash() local 191 mbedtls_md_init(&ctx); in SoftBusGenerateStrHash() 195 mbedtls_md_free(&ctx); in SoftBusGenerateStrHash() 198 if (mbedtls_md_setup(&ctx, info, 0) != 0) { in SoftBusGenerateStrHash() 199 mbedtls_md_free(&ctx); in SoftBusGenerateStrHash() 202 if (mbedtls_md_starts(&ctx) != 0) { in SoftBusGenerateStrHash() 203 mbedtls_md_free(&ctx); in SoftBusGenerateStrHash() 369 mbedtls_cipher_context_t ctx; SoftBusEncryptDataByCtr() local [all...] |
/foundation/arkui/napi/sample/native_module_systemtest/ |
H A D | test_quickjs.cpp | 44 JSContext* ctx = JS_NewContext(rt); in main() local 45 if (ctx == nullptr) { in main() 49 js_std_add_helpers(ctx, 0, nullptr); in main() 51 g_nativeEngine = new QuickJSNativeEngine(rt, ctx, 0); // default instance id 0 in main() 64 JS_FreeContext(ctx); in main()
|
/foundation/graphic/graphic_3d/kits/js/include/ |
H A D | PostProcJS.h | 32 napi_value Dispose(NapiApi::FunctionContext<>& ctx); 37 napi_value GetToneMapping(NapiApi::FunctionContext<>& ctx); 38 void SetToneMapping(NapiApi::FunctionContext<NapiApi::Object>& ctx); 39 napi_value GetBloom(NapiApi::FunctionContext<>& ctx); 40 void SetBloom(NapiApi::FunctionContext<bool>& ctx);
|
H A D | ToneMapJS.h | 36 napi_value Dispose(NapiApi::FunctionContext<>& ctx); 40 napi_value GetType(NapiApi::FunctionContext<>& ctx); 41 void SetType(NapiApi::FunctionContext<uint32_t>& ctx); 43 napi_value GetExposure(NapiApi::FunctionContext<>& ctx); 44 void SetExposure(NapiApi::FunctionContext<float>& ctx);
|
H A D | SceneResourceImpl.h | 67 napi_value GetObjectType(NapiApi::FunctionContext<>& ctx); 68 napi_value GetName(NapiApi::FunctionContext<>& ctx); 69 void SetName(NapiApi::FunctionContext<BASE_NS::string>& ctx); 70 napi_value GetUri(NapiApi::FunctionContext<>& ctx); 71 napi_value Dispose(NapiApi::FunctionContext<>& ctx);
|
/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/test/unittest/ |
H A D | egl_wrapper_context_test.cpp | 44 EglWrapperContext ctx(disp, context); in HWTEST_F() 48 ctx.SetCurrentSurface(draw, read); in HWTEST_F() 50 auto result = ctx.GetCurrentSurface(EGL_READ); in HWTEST_F() 52 result = ctx.GetCurrentSurface(EGL_DRAW); in HWTEST_F() 54 result = ctx.GetCurrentSurface(0); in HWTEST_F()
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/ |
H A D | smp_hci_event.c | 316 HciLeRandReturnParam *ctx = MEM_MALLOC.alloc(sizeof(HciLeRandReturnParam)); in SMP_OnLERandComplete() local 317 if (ctx == NULL) { in SMP_OnLERandComplete() 321 (void)memset_s(ctx, sizeof(HciLeRandReturnParam), 0x00, sizeof(HciLeRandReturnParam)); in SMP_OnLERandComplete() 322 (void)memcpy_s(ctx, sizeof(HciLeRandReturnParam), returnParam, sizeof(HciLeRandReturnParam)); in SMP_OnLERandComplete() 323 int ret = BTM_RunTaskInProcessingQueue(PROCESSING_QUEUE_ID_SMP, SMP_OnLeRandCompTask, (void *)ctx); in SMP_OnLERandComplete() 325 MEM_MALLOC.free(ctx); in SMP_OnLERandComplete() 355 HciLeEncryptReturnParam *ctx = MEM_MALLOC.alloc(sizeof(HciLeEncryptReturnParam)); in SMP_OnLEEncryptComplete() local 356 if (ctx == NULL) { in SMP_OnLEEncryptComplete() 360 (void)memset_s(ctx, sizeof(HciLeEncryptReturnParam), 0x00, sizeof(HciLeEncryptReturnParam)); in SMP_OnLEEncryptComplete() 361 (void)memcpy_s(ctx, sizeo in SMP_OnLEEncryptComplete() 403 HciEncryptionChangeEventParam *ctx = MEM_MALLOC.alloc(sizeof(HciEncryptionChangeEventParam)); SMP_OnLEEncryptionChange() local 429 HciEncryptionKeyRefreshCompleteEventParam *ctx = SMP_OnLEEncryptionKeyRefreshComplete() local 462 HciLeLongTermKeyRequestEventParam *ctx = MEM_MALLOC.alloc(sizeof(HciLeLongTermKeyRequestEventParam)); SMP_OnLELongTermKeyRequest() local 516 HciLeLongTermKeyRequestReplyReturnParam *ctx = MEM_MALLOC.alloc(sizeof(HciLeLongTermKeyRequestReplyReturnParam)); SMP_OnLELongTermKeyRequestReplyComplete() local 572 HciLeReadLocalP256PublicKeyCompleteEventParam *ctx = SMP_OnLEReadLocalP256PublicKeyComplete() local 654 HciLeGenerateDHKeyCompleteEventParam *ctx = MEM_MALLOC.alloc(sizeof(HciLeGenerateDHKeyCompleteEventParam)); SMP_OnLEGenerateDHKeyComplete() local [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/fuzztest/rsextendedmodifier_fuzzer/ |
H A D | rsextendedmodifier_fuzzer.cpp | 70 auto ctx = RSExtendedModifierHelper::CreateDrawingContext(id);
in DoCreateDrawingContext() local 71 delete ctx.canvas;
in DoCreateDrawingContext() 72 ctx.canvas = nullptr;
in DoCreateDrawingContext() 89 auto ctx = RSExtendedModifierHelper::CreateDrawingContext(id);
in DoCreateRenderModifier() local 92 RSExtendedModifierHelper::CreateRenderModifier(ctx, propertyId, type);
in DoCreateRenderModifier() 109 auto ctx = RSExtendedModifierHelper::CreateDrawingContext(id);
in DoFinishDrawing() local 110 RSExtendedModifierHelper::FinishDrawing(ctx);
in DoFinishDrawing()
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hid_host/ |
H A D | hid_host_l2cap_connection.h | 155 * @param ctx Indicates the pointer to context. 158 uint16_t lcid, uint8_t id, const L2capConnectionInfo *info, uint16_t lpsm, void *ctx); 167 * @param ctx Indicates the pointer to context. 170 uint16_t lcid, const L2capConnectionInfo *info, uint16_t result, uint16_t status, void *ctx); 178 * @param ctx Indicates the pointer to context. 180 static void HidHostRecvConfigReqCallback(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, void *ctx); 188 * @param ctx Indicates the pointer to context. 190 static void HidHostRecvConfigRspCallback(uint16_t lcid, const L2capConfigInfo *cfg, uint16_t result, void *ctx); 198 * @param ctx Indicates the pointer to context. 200 static void HidHostRecvDisconnectionReqCallback(uint16_t lcid, uint8_t id, void *ctx); [all...] |