Home
last modified time | relevance | path

Searched refs:newItem (Results 1 – 24 of 24) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/trans_channel/statistics/src/
H A Dclient_trans_statistics.c77 SocketResource *newItem = SoftBusCalloc(sizeof(SocketResource)); in AddSocketResource() local
78 if (newItem == NULL) { in AddSocketResource()
83 …if (ClientGetSessionIdByChannelId(channel->channelId, channel->channelType, &newItem->socketId) !=… in AddSocketResource()
86 SoftBusFree(newItem); in AddSocketResource()
92 if (item->socketId == newItem->socketId) { in AddSocketResource()
95 SoftBusFree(newItem); in AddSocketResource()
100 ListInit(&newItem->node); in AddSocketResource()
101 CreateSocketResource(newItem, sessionName, channel); in AddSocketResource()
102 ListAdd(&g_channelStatisticsList->list, &newItem->node); in AddSocketResource()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/oh_adapter/src/
H A Drd_json_object.cpp413 if (!newItem.IsNull() || !this->IsNull()) { in ReplaceItemInObject()
416 cJSON *copyItem = cJSON_Duplicate(newItem.cjson_, true); in ReplaceItemInObject()
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.cjson_, true); in InsertItemObject()
842 (void)newItem;
849 (void)newItem;
853 int JsonObject::InsertItemObject(int which, const JsonObject &newItem)
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_lane.c163 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->node); in AddAuthReqNode()
H A Dauth_session_key.c150 SessionKeyItem *newItem = NULL; in DupSessionKeyList() local
152 newItem = (SessionKeyItem *)DupMemBuffer((uint8_t *)item, sizeof(SessionKeyItem)); in DupSessionKeyList()
153 if (newItem == NULL) { in DupSessionKeyList()
157 ListNodeInsert(dstList, &newItem->node); in DupSessionKeyList()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/list/
H A Drender_list_item_group.cpp58 auto newItem = generator ? generator->RequestListItem(index) : RefPtr<RenderListItem>(); in RequestListItem() local
59 if (!newItem) { in RequestListItem()
60 return newItem; in RequestListItem()
63 if (!newItem->GetVisible()) { in RequestListItem()
64 newItem->SetVisible(true); in RequestListItem()
68 AddChild(newItem); in RequestListItem()
69 newItem->Layout(innerLayout); in RequestListItem()
72 items_.emplace_front(newItem); in RequestListItem()
74 items_.emplace_back(newItem); in RequestListItem()
76 return newItem; in RequestListItem()
H A Drender_list.cpp1615 auto newItem = generator ? generator->RequestListItem(index) : RefPtr<RenderListItem>(); in RequestListItem() local
1616 if (!newItem) { in RequestListItem()
1617 return newItem; in RequestListItem()
1621 newItem->SetEditMode(true); in RequestListItem()
1622 newItem->SetOnDeleteClick([weak = AceType::WeakClaim(this)](RefPtr<RenderListItem> item) { in RequestListItem()
1630 newItem->SetOnSelect([weak = AceType::WeakClaim(this)](RefPtr<RenderListItem> item) { in RequestListItem()
1639 if (!newItem->GetVisible()) { in RequestListItem()
1640 newItem->SetVisible(true); in RequestListItem()
1643 if (newItem->GetHidden()) { in RequestListItem()
1644 newItem->SetHidden(false); in RequestListItem()
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/oh_adapter/include/
H A Drd_json_object.h85 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);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/native/kv_store/src/kvstore_impl_hal/
H A Dkv_store.c130 boolean newItem = NewItem(key); in UtilsSetValue() local
131 if ((currentNum >= MAX_KV_SUM) && newItem) { in UtilsSetValue()
139 if (newItem) { in UtilsSetValue()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/native/dbm_kv_store/src/kv_store_impl_hal/
H A Ddbm_kv_store.c1095 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()
1221 boolean newItem = IsNewItem(db, key); in Delete() local
1222 if (newItem) { in Delete()
1237 int ret = FindDataItem(db, item, !newItem); in Delete()
[all …]
/ohos5.0/foundation/filemanagement/app_file_service/utils/src/b_json/
H A Db_json_service_disposal_config.cpp101 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 Db_json_clear_data_config.cpp327 cJSON *newItem = cJSON_CreateObject(); in WriteClearBundleRecord() local
328 if (configArray == nullptr || newItem == nullptr) { in WriteClearBundleRecord()
334 cJSON_AddStringToObject(newItem, "bundleName", bundleName.c_str()); in WriteClearBundleRecord()
335 cJSON_AddItemToArray(configArray, newItem); in WriteClearBundleRecord()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/accessibility/
H A Daccessibility_node.cpp74 for (auto newItem = newItems.begin(); newItem != newItems.end(); newItem++) { in MergeItems() local
77 if (newItem->first != item->first) { in MergeItems()
82 diffVec.emplace_back(newItem->first, newItem->second); in MergeItems()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/lib/v2/
H A Dv2_json_coder.ts168 JSONCoder.parseInto(JSONCoder.newItem(json, options), json);
282 target[targetKey] = JSONCoder.newItem(value, options);
310 private static newItem(json: any, options: any): any {
364 JSONCoder.parseInto(target[i] || JSONCoder.newItem(item, options), item);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/native/kv_store/src/kvstore_impl_posix/
H A Dkv_store.c261 boolean newItem = NewItem(dataPath, key); in UtilsSetValue() local
262 if ((g_kvSum >= MAX_KV_SUM) && newItem) { in UtilsSetValue()
271 if (newItem) { in UtilsSetValue()
/ohos5.0/base/startup/init/interfaces/innerkits/hookmgr/
H A Dhookmgr.c114 const HOOK_ITEM *newItem; in hookItemCompare() local
117 newItem = (const HOOK_ITEM *)newNode; in hookItemCompare()
118 return (hookItem->info.prio - newItem->info.prio); in hookItemCompare()
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/hls/
H A Dm3u8.cpp380 for (auto &newItem : drmInfo) { in StoreDrmInfos() local
381 auto pos = localDrmInfos_.equal_range(newItem.first); in StoreDrmInfos()
384 localDrmInfos_.insert(newItem); in StoreDrmInfos()
390 if (newItem.second == pos.first->second) { in StoreDrmInfos()
398 localDrmInfos_.insert(newItem); in StoreDrmInfos()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/src/
H A Dlnn_trans_lane.c444 TransReqInfo *newItem = CreateReqNodeWithQos(laneReqId, allocInfo, listener); in StartTriggerLink() local
445 if (newItem == NULL) { in StartTriggerLink()
450 SoftBusFree(newItem); in StartTriggerLink()
453 ListTailInsert(&g_requestList->list, &newItem->node); in StartTriggerLink()
539 if (newItem == NULL) { in BuildTargetLink()
545 SoftBusFree(newItem); in BuildTargetLink()
549 ListTailInsert(&g_requestList->list, &newItem->node); in BuildTargetLink()
743 TransReqInfo *newItem = CreateRequestNode(laneReqId, transRequest, listener); in Alloc() local
744 if (newItem == NULL) { in Alloc()
749 SoftBusFree(newItem); in Alloc()
[all …]
H A Dlnn_lane_link_p2p.c2410 WdGuideInfo *newItem = (WdGuideInfo *)SoftBusCalloc(sizeof(WdGuideInfo)); in AddGuideInfoItem() local
2411 if (newItem == NULL) { in AddGuideInfoItem()
2415 if (memcpy_s(newItem, sizeof(WdGuideInfo), guideInfo, sizeof(WdGuideInfo)) != EOK) { in AddGuideInfoItem()
2417 SoftBusFree(newItem); in AddGuideInfoItem()
2422 SoftBusFree(newItem); in AddGuideInfoItem()
2425 ListTailInsert(g_guideInfoList, &newItem->node); in AddGuideInfoItem()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/
H A Drender_tab_content.cpp306 const auto& newItem = contentMap_[newIndex]; in HandleStartListener() local
307 if (!newItem) { in HandleStartListener()
311 newItem->SetHidden(false); in HandleStartListener()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/lib/partial_update/
H A Dpu_repeat_virtual_scroll_impl.ts280 const newItem = this.arr_[+i];
283 if (oldItem !== newItem) {
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_sync_info_manager.c289 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()
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/modules/demuxer/
H A Dmedia_demuxer.cpp475 for (auto &newItem : newInfos) { in GetDrmInfosUpdated() local
476 if (localDrmInfos_.find(newItem.first) == localDrmInfos_.end()) { in GetDrmInfosUpdated()
478 result.insert(newItem); in GetDrmInfosUpdated()
479 localDrmInfos_.insert(newItem); in GetDrmInfosUpdated()
482 auto pos = localDrmInfos_.equal_range(newItem.first); in GetDrmInfosUpdated()
485 if (newItem.second == pos.first->second) { in GetDrmInfosUpdated()
493 result.insert(newItem); in GetDrmInfosUpdated()
494 localDrmInfos_.insert(newItem); in GetDrmInfosUpdated()
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/avplayer/
H A Davplayer_napi.cpp2877 for (auto &newItem : infos) { in NotifyDrmInfoUpdated() local
2878 auto pos = localDrmInfos_.equal_range(newItem.first); in NotifyDrmInfoUpdated()
2880 localDrmInfos_.insert(newItem); in NotifyDrmInfoUpdated()
2885 if (newItem.second == pos.first->second) { in NotifyDrmInfoUpdated()
2891 localDrmInfos_.insert(newItem); in NotifyDrmInfoUpdated()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DstateMgmt.js9845 JSONCoder.parseInto(JSONCoder.newItem(json, options), json);
9952 target[targetKey] = JSONCoder.newItem(value, options);
9981 static newItem(json, options) { method in JSONCoder
10029 JSONCoder.parseInto(target[i] || JSONCoder.newItem(item, options), item);
10677 const newItem = this.arr_[+i];
10679 if (oldItem !== newItem) {