/foundation/communication/dsoftbus/sdk/transmission/trans_channel/statistics/src/ |
H A D | client_trans_statistics.c | 77 SocketResource *newItem = (SocketResource *)SoftBusCalloc(sizeof(SocketResource)); in AddSocketResource() local 78 if (newItem == NULL) { in AddSocketResource() 83 if (ClientGetSessionIdByChannelId(channel->channelId, channel->channelType, &newItem->socketId, false) != in AddSocketResource() 87 SoftBusFree(newItem); in AddSocketResource() 93 if (item->socketId == newItem->socketId) { in AddSocketResource() 96 SoftBusFree(newItem); in AddSocketResource() 101 ListInit(&newItem->node); in AddSocketResource() 102 CreateSocketResource(newItem, sessionName, channel); in AddSocketResource() 103 ListAdd(&g_channelStatisticsList->list, &newItem->node); in AddSocketResource()
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/list/ |
H A D | render_list_item_group.cpp | 53 auto newItem = generator ? generator->RequestListItem(index) : RefPtr<RenderListItem>(); in RequestListItem() local 54 if (!newItem) { in RequestListItem() 55 return newItem; in RequestListItem() 58 if (!newItem->GetVisible()) { in RequestListItem() 59 newItem->SetVisible(true); in RequestListItem() 63 AddChild(newItem); in RequestListItem() 64 newItem->Layout(innerLayout); in RequestListItem() 67 items_.emplace_front(newItem); in RequestListItem() 69 items_.emplace_back(newItem); in RequestListItem() 71 return newItem; in RequestListItem() [all...] |
H A D | render_list.cpp | 1608 auto newItem = generator ? generator->RequestListItem(index) : RefPtr<RenderListItem>(); in RequestListItem() local 1609 if (!newItem) { in RequestListItem() 1610 return newItem; in RequestListItem() 1614 newItem->SetEditMode(true); in RequestListItem() 1615 newItem->SetOnDeleteClick([weak = AceType::WeakClaim(this)](RefPtr<RenderListItem> item) { in RequestListItem() 1623 newItem->SetOnSelect([weak = AceType::WeakClaim(this)](RefPtr<RenderListItem> item) { in RequestListItem() 1632 if (!newItem->GetVisible()) { in RequestListItem() 1633 newItem->SetVisible(true); in RequestListItem() 1636 if (newItem->GetHidden()) { in RequestListItem() 1637 newItem in RequestListItem() [all...] |
/foundation/communication/dsoftbus/core/authentication/src/ |
H A D | auth_lane.c | 163 AuthReqInfo *newItem = (AuthReqInfo *)SoftBusCalloc(sizeof(AuthReqInfo)); in AddAuthReqNode() local 164 if (newItem == NULL) { in AddAuthReqNode() 168 newItem->callback = *callback; in AddAuthReqNode() 169 if (memcpy_s(&newItem->networkId, NETWORK_ID_BUF_LEN, networkId, NETWORK_ID_BUF_LEN) != EOK) { in AddAuthReqNode() 171 SoftBusFree(newItem); in AddAuthReqNode() 174 newItem->laneHandle = laneHandle; in AddAuthReqNode() 175 newItem->authRequestId = authRequestId; in AddAuthReqNode() 176 ListInit(&newItem->node); in AddAuthReqNode() 180 SoftBusFree(newItem); in AddAuthReqNode() 183 ListTailInsert(&g_authReqList->list, &newItem in AddAuthReqNode() [all...] |
H A D | auth_session_key.c | 150 SessionKeyItem *newItem = NULL; in DupSessionKeyList() local 152 newItem = (SessionKeyItem *)DupMemBuffer((uint8_t *)item, sizeof(SessionKeyItem)); in DupSessionKeyList() 153 if (newItem == NULL) { in DupSessionKeyList() 154 AUTH_LOGE(AUTH_FSM, "malloc newItem fail"); in DupSessionKeyList() 158 ListNodeInsert(dstList, &newItem->node); in DupSessionKeyList()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/oh_adapter/src/ |
H A D | rd_json_object.cpp | 411 void JsonObject::ReplaceItemInObject(const std::string &fieldName, const JsonObject &newItem, int &errCode) in ReplaceItemInObject() argument 413 if (!newItem.IsNull() || !this->IsNull()) { in ReplaceItemInObject() 416 cJSON *copyItem = cJSON_Duplicate(newItem.cjson_, true); in ReplaceItemInObject() 419 cJSON *copyItem = cJSON_Duplicate(newItem.cjson_, true); in ReplaceItemInObject() 426 void JsonObject::ReplaceItemInArray(const int &index, const JsonObject &newItem, int &errCode) in ReplaceItemInArray() argument 428 if (!newItem.IsNull() || !this->IsNull()) { in ReplaceItemInArray() 430 cJSON *copyItem = cJSON_Duplicate(newItem.cjson_, true); in ReplaceItemInArray() 436 int JsonObject::InsertItemObject(int which, const JsonObject &newItem) in InsertItemObject() argument 441 if (newItem.IsNull()) { in InsertItemObject() 445 cJSON *cpoyItem = cJSON_Duplicate(newItem in InsertItemObject() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/native/kv_store/src/kvstore_impl_hal/ |
H A D | kv_store.c | 130 boolean newItem = NewItem(key);
in UtilsSetValue() local 131 if ((currentNum >= MAX_KV_SUM) && newItem) {
in UtilsSetValue() 139 if (newItem) {
in UtilsSetValue()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/oh_adapter/include/ |
H A D | rd_json_object.h | 85 void ReplaceItemInArray(const int &index, const JsonObject &newItem, int &errCode); 86 void ReplaceItemInObject(const std::string &fieldName, const JsonObject &newItem, int &errCode); 87 int InsertItemObject(int which, const JsonObject &newItem);
|
/foundation/filemanagement/app_file_service/utils/src/b_json/ |
H A D | b_json_service_disposal_config.cpp | 101 cJSON *newItem = cJSON_CreateObject(); in AppendIntoDisposalConfigFile() local 102 if (newItem == nullptr) { in AppendIntoDisposalConfigFile() 108 cJSON_AddStringToObject(newItem, "bundleName", bundleName.c_str()); in AppendIntoDisposalConfigFile() 109 cJSON_AddItemToArray(configArray, newItem); in AppendIntoDisposalConfigFile()
|
H A D | b_json_clear_data_config.cpp | 286 cJSON *newItem = cJSON_CreateObject(); in WriteClearBundleRecord() local 287 if (configArray == nullptr || newItem == nullptr) { in WriteClearBundleRecord() 293 cJSON_AddStringToObject(newItem, "bundleName", bundleName.c_str()); in WriteClearBundleRecord() 294 cJSON_AddItemToArray(configArray, newItem); in WriteClearBundleRecord()
|
/foundation/distributeddatamgr/kv_store/frameworks/native/dbm_kv_store/src/kv_store_impl_hal/ |
H A D | dbm_kv_store.c | 1093 static int PrePut(DBHandle db, KeyItem* item, boolean* newItem) in PrePut() argument 1095 int ret = FindDataItem(db, item, !*newItem); in PrePut() 1107 if (!*newItem) { // new item not need clean in PrePut() 1119 *newItem = TRUE; // cur item had been deleted in PrePut() 1135 boolean newItem = IsNewItem(db, key); in Put() local 1136 if ((db->kvItemSum >= DBM_MAX_KV_SUM) && newItem) { in Put() 1154 int ret = PrePut(db, item, &newItem); in Put() 1161 if (newItem) { in Put() 1184 static int ExeDelete(KVStoreHandle db, const KeyItem* item, boolean newItem) in ExeDelete() argument 1194 if (!newItem in ExeDelete() 1221 boolean newItem = IsNewItem(db, key); Delete() local [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/native/kv_store/src/kvstore_impl_posix/ |
H A D | kv_store.c | 261 boolean newItem = NewItem(dataPath, key);
in UtilsSetValue() local 262 if ((g_kvSum >= MAX_KV_SUM) && newItem) {
in UtilsSetValue() 271 if (newItem) {
in UtilsSetValue()
|
/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/hls/ |
H A D | m3u8.cpp | 376 for (auto &newItem : drmInfo) { in StoreDrmInfos() 377 auto pos = localDrmInfos_.equal_range(newItem.first); in StoreDrmInfos() 380 localDrmInfos_.insert(newItem); in StoreDrmInfos() 386 if (newItem.second == pos.first->second) { in StoreDrmInfos() 394 localDrmInfos_.insert(newItem); in StoreDrmInfos()
|
/foundation/arkui/ace_engine/frameworks/core/accessibility/ |
H A D | accessibility_node.cpp | 75 for (auto newItem = newItems.begin(); newItem != newItems.end(); newItem++) { in MergeItems() 78 if (newItem->first != item->first) { in MergeItems() 83 diffVec.emplace_back(newItem->first, newItem->second); in MergeItems()
|
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/src/ |
H A D | lnn_trans_lane.c | 443 TransReqInfo *newItem = CreateReqNodeWithQos(laneReqId, allocInfo, listener); in StartTriggerLink() local 444 if (newItem == NULL) { in StartTriggerLink() 449 SoftBusFree(newItem); in StartTriggerLink() 452 ListTailInsert(&g_requestList->list, &newItem->node); in StartTriggerLink() 539 TransReqInfo *newItem = CreateReqNodeWithQos(laneHandle, &allocInfo, listener); in BuildTargetLink() local 540 if (newItem == NULL) { in BuildTargetLink() 546 SoftBusFree(newItem); in BuildTargetLink() 550 ListTailInsert(&g_requestList->list, &newItem->node); in BuildTargetLink() 746 TransReqInfo *newItem = CreateRequestNode(laneReqId, transRequest, listener); in Alloc() local 747 if (newItem in Alloc() [all...] |
H A D | lnn_lane_link_p2p.c | 2412 WdGuideInfo *newItem = (WdGuideInfo *)SoftBusCalloc(sizeof(WdGuideInfo)); in AddGuideInfoItem() local 2413 if (newItem == NULL) { in AddGuideInfoItem() 2414 LNN_LOGE(LNN_LANE, "malloc newItem fail."); in AddGuideInfoItem() 2417 if (memcpy_s(newItem, sizeof(WdGuideInfo), guideInfo, sizeof(WdGuideInfo)) != EOK) { in AddGuideInfoItem() 2418 LNN_LOGE(LNN_LANE, "newItem memcpy fail."); in AddGuideInfoItem() 2419 SoftBusFree(newItem); in AddGuideInfoItem() 2424 SoftBusFree(newItem); in AddGuideInfoItem() 2427 ListTailInsert(g_guideInfoList, &newItem->node); in AddGuideInfoItem()
|
/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/ |
H A D | render_tab_content.cpp | 306 const auto& newItem = contentMap_[newIndex]; in HandleStartListener() local 307 if (!newItem) { in HandleStartListener() 311 newItem->SetHidden(false); in HandleStartListener()
|
/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_sync_info_manager.c | 289 SyncInfoMsg *newItem = NULL; in DumpSyncInfoMsgList() local 291 newItem = DumpMsgExcludeListNode(item); in DumpSyncInfoMsgList() 292 if (newItem == NULL) { in DumpSyncInfoMsgList() 297 ListInit(&newItem->node); in DumpSyncInfoMsgList() 298 ListNodeInsert(dstList, &newItem->node); in DumpSyncInfoMsgList()
|
/foundation/multimedia/av_codec/services/media_engine/modules/demuxer/ |
H A D | media_demuxer.cpp | 435 for (auto &newItem : newInfos) { in GetDrmInfosUpdated() 436 if (localDrmInfos_.find(newItem.first) == localDrmInfos_.end()) { in GetDrmInfosUpdated() 438 result.insert(newItem); in GetDrmInfosUpdated() 439 localDrmInfos_.insert(newItem); in GetDrmInfosUpdated() 442 auto pos = localDrmInfos_.equal_range(newItem.first); in GetDrmInfosUpdated() 445 if (newItem.second == pos.first->second) { in GetDrmInfosUpdated() 453 result.insert(newItem); in GetDrmInfosUpdated() 454 localDrmInfos_.insert(newItem); in GetDrmInfosUpdated()
|
/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/ |
H A D | trans_tcp_direct_p2p.c | 434 P2pListenerInfo *newItem = (P2pListenerInfo *)SoftBusCalloc(sizeof(P2pListenerInfo)); in CheckAndAddPeerDeviceInfo() local 435 if (newItem == NULL) { in CheckAndAddPeerDeviceInfo() 440 if (strncpy_s(newItem->peerUuid, UUID_BUF_LEN, peerUuid, UUID_BUF_LEN) != EOK) { in CheckAndAddPeerDeviceInfo() 443 SoftBusFree(newItem); in CheckAndAddPeerDeviceInfo() 446 ListAdd(&g_p2pSessionInfo.peerDeviceInfoList->list, &newItem->node); in CheckAndAddPeerDeviceInfo()
|
/foundation/multimedia/player_framework/frameworks/js/avplayer/ |
H A D | avplayer_napi.cpp | 2875 for (auto &newItem : infos) { in NotifyDrmInfoUpdated() 2876 auto pos = localDrmInfos_.equal_range(newItem.first); in NotifyDrmInfoUpdated() 2878 localDrmInfos_.insert(newItem); in NotifyDrmInfoUpdated() 2883 if (newItem.second == pos.first->second) { in NotifyDrmInfoUpdated() 2889 localDrmInfos_.insert(newItem); in NotifyDrmInfoUpdated()
|