/foundation/communication/netmanager_base/utils/napi_utils/include/ |
D | base_async_work.h | 62 auto deleter = [](Context *context) { delete context; }; in AsyncWorkCallback() 63 std::unique_ptr<Context, decltype(deleter)> context(static_cast<Context *>(data), deleter); in AsyncWorkCallback() 111 auto deleter = [](Context *context) { delete context; }; in AsyncWorkCallbackForSystem() 112 std::unique_ptr<Context, decltype(deleter)> context(static_cast<Context *>(data), deleter); in AsyncWorkCallbackForSystem()
|
D | module_template.h | 120 auto deleter = [](Context *context) { delete context; }; in InterfaceSync() 122 std::unique_ptr<Context, decltype(deleter)> context(text, deleter); in InterfaceSync()
|
/foundation/communication/netstack/utils/napi_utils/include/ |
D | base_async_work.h | 70 auto deleter = [](Context *context) { in AsyncWorkCallback() 74 std::unique_ptr<Context, decltype(deleter)> context(static_cast<Context *>(data), deleter); in AsyncWorkCallback() 122 auto deleter = [](Context *context) { delete context; }; in AsyncWorkCallbackForSystem() 123 std::unique_ptr<Context, decltype(deleter)> context(static_cast<Context *>(data), deleter); in AsyncWorkCallbackForSystem()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/quick_fix/state/src/ |
D | quick_fix_delete_state.cpp | 32 std::unique_ptr<QuickFixDeleter> deleter = std::make_unique<QuickFixDeleter>(bundleName_); in Process() local 33 auto ret = deleter->Execute(); in Process()
|
/foundation/graphic/graphic_2d/rosen/modules/texgine/src/ |
D | bidi_processer.cpp | 58 auto deleter = [](UBiDi *p) {ubidi_close(p);}; in DoBidiProcess() local 59 std::unique_ptr<UBiDi, decltype(deleter)> bidi(ubidi_open(), deleter); in DoBidiProcess()
|
/foundation/communication/netstack/frameworks/js/napi/socket/task_queue/src/ |
D | task_queue.cpp | 85 auto deleter = [](BaseContext *context) { delete context; }; in Callback() local 86 …std::unique_ptr<BaseContext, decltype(deleter)> context(static_cast<BaseContext *>(data), deleter); in Callback()
|
/foundation/communication/netstack/frameworks/js/napi/websocket/websocket_exec/src/ |
D | websocket_exec.cpp | 358 auto deleter = [](const int32_t *p) { delete p; }; in CreateConnectError() local 359 std::unique_ptr<int32_t, decltype(deleter)> handler(code, deleter); in CreateConnectError() 650 auto deleter = [](const int32_t *p) { delete p; }; in CreateError() local 651 std::unique_ptr<int32_t, decltype(deleter)> handler(code, deleter); in CreateError() 663 auto deleter = [](const OnOpenClosePara *p) { delete p; }; in CreateOpenPara() local 664 std::unique_ptr<OnOpenClosePara, decltype(deleter)> handler(para, deleter); in CreateOpenPara() 677 auto deleter = [](const OnOpenClosePara *p) { delete p; }; in CreateClosePara() local 678 std::unique_ptr<OnOpenClosePara, decltype(deleter)> handler(para, deleter); in CreateClosePara() 691 auto deleter = [](const OnMessagePara *p) { delete p; }; in CreateMessagePara() local 692 std::unique_ptr<OnMessagePara, decltype(deleter)> handler(para, deleter); in CreateMessagePara()
|
/foundation/communication/netmanager_base/frameworks/js/napi/network/observer/src/ |
D | network_observer.cpp | 56 auto deleter = [](NetworkType *t) { delete t; }; in MakeNetworkResponse() local 57 std::unique_ptr<NetworkType, decltype(deleter)> netType(data, deleter); in MakeNetworkResponse()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/quick_fix/ |
D | quick_fixer.cpp | 78 std::unique_ptr<IQuickFix> deleter = std::make_unique<QuickFixDeleter>(bundleName); in DeleteQuickFix() local 79 auto ret = deleter->Execute(); in DeleteQuickFix()
|
D | quick_fix_boot_scanner.cpp | 218 std::unique_ptr<IQuickFix> deleter = std::make_unique<QuickFixDeleter>(bundleName); in ReprocessQuickFix() local 219 ret = deleter->Execute(); in ReprocessQuickFix()
|
/foundation/multimedia/histreamer/engine/plugin/plugins/source/stream_source/ |
D | stream_source_plugin.cpp | 120 auto deleter = [this](uint8_t* ptr) { FALSE_LOG(stream_->QueueEmptyBuffer(ptr)); }; in WrapDataBuffer() local 121 std::shared_ptr<uint8_t> address = std::shared_ptr<uint8_t>(dataBuffer->GetAddress(), deleter); in WrapDataBuffer()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_quick_fix_test/ |
D | bms_bundle_quick_fix_test.cpp | 1404 auto deleter = GetQuickFixDeleter(); variable 1405 EXPECT_FALSE(deleter == nullptr); 1406 if (deleter != nullptr) { 1407 ErrCode ret = deleter->RemoveDeployingInfo(BUNDLE_NAME); 1422 auto deleter = GetQuickFixDeleter(); variable 1423 EXPECT_FALSE(deleter == nullptr); 1424 if (deleter != nullptr) { 1425 ErrCode ret = deleter->RemoveDeployingInfo(BUNDLE_NAME); 1442 auto deleter = GetQuickFixDeleter(); variable 1443 EXPECT_FALSE(deleter == nullptr); [all …]
|
/foundation/communication/netstack/frameworks/js/napi/socket/socket_exec/src/ |
D | socket_exec.cpp | 140 auto deleter = [](const int32_t *p) { delete p; }; in MakeError() local 141 std::unique_ptr<int32_t, decltype(deleter)> handler(code, deleter); in MakeError() 249 auto deleter = [](const TcpConnection *p) { delete p; }; in MakeTcpConnectionMessage() local 250 std::unique_ptr<TcpConnection, decltype(deleter)> handler(netConnection, deleter); in MakeTcpConnectionMessage() 303 auto deleter = [](const MessageData *p) { delete p; }; in MakeMessage() local 304 std::unique_ptr<MessageData, decltype(deleter)> handler(messageData, deleter); in MakeMessage() 702 auto deleter = [](char *s) { free(reinterpret_cast<void *>(s)); }; in PollRecvData() local 703 …std::unique_ptr<char, decltype(deleter)> buf(reinterpret_cast<char *>(malloc(bufferSize)), deleter… in PollRecvData()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/common_napi_utils/ |
D | common_napi_utils.cpp | 171 auto deleter = [](char* s) { free(reinterpret_cast<void*>(s)); }; in GetStringFromValueUtf8() local 176 std::unique_ptr<char, decltype(deleter)> str(strTmp, deleter); in GetStringFromValueUtf8()
|
/foundation/communication/netstack/utils/napi_utils/src/ |
D | napi_utils.cpp | 235 auto deleter = [](char *s) { free(reinterpret_cast<void *>(s)); }; in GetStringFromValueUtf8() local 236 …std::unique_ptr<char, decltype(deleter)> str(static_cast<char *>(malloc(stringLength + 1)), delete… in GetStringFromValueUtf8()
|