/foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/libs/distributeddb/communicator/src/ |
D | frame_retainer.cpp | 69 for (auto &eachTarget : eachLabel.second) { in Finalize() 70 for (auto &eachFrame : eachTarget.second) { in Finalize() 72 eachFrame.second); in Finalize() 73 delete eachFrame.second.buffer; in Finalize() 74 eachFrame.second.buffer = nullptr; in Finalize() 108 …nfo("[Retainer][Retain] DISCARD", inFrame.commLabel, inFrame.srcTarget, iter->first, iter->second); in RetainFrame() 109 totalSizeByByte_ -= iter->second.buffer->GetSize(); in RetainFrame() 111 delete iter->second.buffer; in RetainFrame() 112 iter->second.buffer = nullptr; in RetainFrame() 136 for (auto &eachFrame : eachTarget.second) { in FetchFramesForSpecificCommunicator() [all …]
|
/foundation/communication/bluetooth/services/bluetooth_standard/service/src/gatt/ |
D | gatt_cache.cpp | 26 if (!it.second) { in AddService() 27 it.first->second.endHandle_ = service.endHandle_; in AddService() 28 it.first->second.uuid_ = service.uuid_; in AddService() 41 it->second.includeServices_.push_back(includeService); in AddIncludeService() 53 auto result = it->second.characteristics_.emplace(characteristic.handle_, characteristic); in AddCharacteristic() 54 if (result.second) { in AddCharacteristic() 57 result.first->second.properties_ = characteristic.properties_; in AddCharacteristic() 58 result.first->second.uuid_ = characteristic.uuid_; in AddCharacteristic() 68 auto cIt = sIt.second.characteristics_.find(cccHandle); in AddDescriptor() 69 if (cIt != sIt.second.characteristics_.end()) { in AddDescriptor() [all …]
|
D | gatt_database.cpp | 42 service.endHandle_ = availableHandlePair.second; in AddService() 93 ReleaseHandle(sIt->second); in DeleteService() 95 for (auto &ccc : sIt->second.characteristics_) { in DeleteService() 96 attributes_.erase(ccc.second.valueHandle_); in DeleteService() 97 valueHandleMap_.erase(ccc.second.valueHandle_); in DeleteService() 98 for (auto &descriptor : ccc.second.descriptors_) { in DeleteService() 99 attributes_.erase(descriptor.second.handle_); in DeleteService() 100 valueHandleMap_.erase(descriptor.second.handle_); in DeleteService() 136 availableHandles_.emplace(currentNode, service.handle_, currentNode->second); in ReleaseHandle() 153 if (service.handle_ == currentNode->second + 1) { in ReleaseHandle() [all …]
|
D | gatt_client_profile.cpp | 324 auto iter = pimpl->cacheMap_.find(connectHandle)->second.GetIncludeServices(startHandle); in FindIncludedServices() 350 auto iter = pimpl->cacheMap_.find(connectHandle)->second.GetCharacteristics(startHandle); in DiscoverAllCharacteristicOfService() 382 auto iter = pimpl->cacheMap_.find(connectHandle)->second.GetCharacteristics(startHandle); in DiscoverCharacteristicByUuid() 442 …_t serviceHandle = pimpl->cacheMap_.find(connectHandle)->second.GetDescriptors(startHandle).second; in DiscoverAllCharacteristicDescriptors() 447 *pimpl->cacheMap_.find(connectHandle)->second.GetDescriptors(startHandle).first); in DiscoverAllCharacteristicDescriptors() 786 return &cache->second.GetServices(); in GetServices() 796 return cache->second.GetCharacteristicEndHandle(svcHandle, handle); in GetCharacteristicEndHandle() 814 auto sIt = cache->second.GetServices().find(handle); in GetService() 815 if (sIt != cache->second.GetServices().end()) { in GetService() 816 return &sIt->second; in GetService() [all …]
|
D | gatt_client_service.cpp | 206 return maxNum.first + maxNum.second; in GetMaxConnectNum() 589 auto &device = client.value()->second.connection_.GetDevice(); in Connect() 596 … client.value()->second.connState_ = ConvertConnectionState(manager.GetDeviceState(device)); in Connect() 597 …client.value()->second.callback_.OnConnectionStateChanged(result, client.value()->second.connState… in Connect() 601 … client.value()->second.connection_.SetHandle(std::get<TUPLE_INDEX_SECOND>(deviceInfo)); in Connect() 602 client.value()->second.connection_.SetMtu(std::get<TUPLE_INDEX_THIRD>(deviceInfo)); in Connect() 606 it.first->second.emplace(appId); in Connect() 612 …client.value()->second.connState_ = ConvertConnectionState(std::get<TUPLE_INDEX_FIRST>(deviceInfo)… in Connect() 613 …client.value()->second.callback_.OnConnectionStateChanged(result, client.value()->second.connState… in Connect() 624 auto &device = client.value()->second.connection_.GetDevice(); in Disconnect() [all …]
|
/foundation/communication/bluetooth/services/bluetooth_standard/service/src/hfp_hf/ |
D | hfp_hf_call_manager.cpp | 44 if (it->second.GetState() == state) { in GetCallByState() 45 return &(it->second); in GetCallByState() 56 calls.push_back(it->second); in GetCurrentCalls() 73 iter->second.SetState(HFP_HF_CALL_STATE_FINISHED); in UpdateCallDone() 74 NotifyCallChanged(iter->second); in UpdateCallDone() 77 if ((iter->second.GetState() != updateiter->second.GetState()) || in UpdateCallDone() 78 (iter->second.GetNumber() != updateiter->second.GetNumber()) || in UpdateCallDone() 79 (iter->second.IsMultiParty() != updateiter->second.IsMultiParty())) { in UpdateCallDone() 80 iter->second.SetState(updateiter->second.GetState()); in UpdateCallDone() 81 iter->second.SetNumber(updateiter->second.GetNumber()); in UpdateCallDone() [all …]
|
/foundation/multimedia/media_standard/services/utils/ |
D | format.cpp | 30 if (it->second.type == FORMAT_TYPE_ADDR && it->second.addr != nullptr) { in CopyFormatDataMap() 31 free(it->second.addr); in CopyFormatDataMap() 32 it->second.addr = nullptr; in CopyFormatDataMap() 39 if (it->second.type != FORMAT_TYPE_ADDR || it->second.addr == nullptr) { in CopyFormatDataMap() 44 it->second.addr = reinterpret_cast<uint8_t *>(malloc(it->second.size)); in CopyFormatDataMap() 45 if (it->second.addr == nullptr) { in CopyFormatDataMap() 51 errno_t err = memcpy_s(reinterpret_cast<void *>(it->second.addr), in CopyFormatDataMap() 52 … it->second.size, reinterpret_cast<const void *>(from.at(it->first).addr), it->second.size); in CopyFormatDataMap() 55 free(it->second.addr); in CopyFormatDataMap() 66 if (it->second.type == FORMAT_TYPE_ADDR && it->second.addr != nullptr) { in ~Format() [all …]
|
/foundation/ace/ace_engine/frameworks/bridge/test/unittest/jsfrontend/animation/ |
D | animator_api_test.cpp | 139 auto easing = animationStringParams.find(DOM_ANIMATION_EASING)->second; 140 auto fill = animationStringParams.find(DOM_ANIMATION_FILL)->second; 141 auto duration = animationDoubleParams.find(DOM_ANIMATION_DURATION_API)->second; 142 auto delay = animationDoubleParams.find(DOM_ANIMATION_DELAY_API)->second; 143 auto from = animationDoubleParams.find(DOM_ANIMATION_BEGIN)->second; 144 auto to = animationDoubleParams.find(DOM_ANIMATION_END)->second; 179 auto easing = animationStringParams.find(DOM_ANIMATION_EASING)->second; 180 auto fill = animationStringParams.find(DOM_ANIMATION_FILL)->second; 181 auto duration = animationDoubleParams.find(DOM_ANIMATION_DURATION_API)->second; 182 auto delay = animationDoubleParams.find(DOM_ANIMATION_DELAY_API)->second; [all …]
|
D | dom_animation_test.cpp | 282 auto transformOriginForm = animationFrames[0].find(DOM_TRANSFORM_ORIGIN)->second; 283 auto transformOriginTo = animationFrames[1].find(DOM_TRANSFORM_ORIGIN)->second; 342 auto heightForm = animationFrames[0].find(DOM_ANIMATION_HEIGHT)->second; 343 auto widthForm = animationFrames[0].find(DOM_ANIMATION_WIDTH)->second; 344 auto heightTo = animationFrames[1].find(DOM_ANIMATION_HEIGHT)->second; 345 auto widthTo = animationFrames[1].find(DOM_ANIMATION_WIDTH)->second; 375 auto opacityForm = animationFrames[0].find(DOM_ANIMATION_OPACITY)->second; 376 auto colorForm = animationFrames[0].find(DOM_ANIMATION_COLOR)->second; 377 auto opacityTo = animationFrames[1].find(DOM_ANIMATION_OPACITY)->second; 378 auto colorTo = animationFrames[1].find(DOM_ANIMATION_COLOR)->second; [all …]
|
/foundation/aafwk/standard/services/formmgr/src/ |
D | form_refresh_limiter.cpp | 39 return retVal.second; in AddItem() 67 infoPair.second.refreshCount = 0; in ResetLimit() 68 infoPair.second.isReported = false; in ResetLimit() 69 infoPair.second.remindFlag = false; in ResetLimit() 85 if (info->second.refreshCount < Constants::LIMIT_COUNT) { in IsEnableRefresh() 89 if (info->second.refreshCount == Constants::LIMIT_COUNT && !info->second.isReported) { in IsEnableRefresh() 90 info->second.isReported = true; in IsEnableRefresh() 109 return info->second.refreshCount; in GetRefreshCount() 125 info->second.refreshCount++; in Increase() 126 …HILOG_INFO("increase,formId:%{public}" PRId64 ", count:%{public}d", formId, info->second.refreshCo… in Increase() [all …]
|
/foundation/communication/bluetooth/services/bluetooth_standard/service/src/common/ |
D | power_state_machine.cpp | 121 …} else if (powerLevel.second != PowerModeLevel::NO_ACTION && powerLevel.second != controlPowerLeve… in Entry() 122 int sniffRet = pd_.BtmEnterSniffMode(PowerSpec::GetPowerParam(powerLevel.second)); in Entry() 158 } else if (powerLevel.second != PowerModeLevel::NO_ACTION && in Dispatch() 159 powerLevel.second != controlPowerLevel.second) { in Dispatch() 160 … int sniffRet = pd_.BtmEnterSniffMode(PowerSpec::GetPowerParam(powerLevel.second)); in Dispatch() 172 …if (powerLevel.second != PowerModeLevel::NO_ACTION && powerLevel.second != controlPowerLevel.secon… in Dispatch() 173 int sniffRet = pd_.BtmEnterSniffMode(PowerSpec::GetPowerParam(powerLevel.second)); in Dispatch() 209 pd_.GetRequestPowerLevel().second, in Dispatch() 210 pd_.GetControlPowerLevel().second); in Dispatch() 261 pd_.GetRequestPowerLevel().second, in Dispatch() [all …]
|
/foundation/ace/ace_engine/frameworks/bridge/common/dom/ |
D | dom_option.cpp | 65 selectOptionComponent_->SetSelected(StringToBool(attr.second)); in SetSpecializedAttr() 70 selectOptionComponent_->SetValue(attr.second); in SetSpecializedAttr() 76 icon_ = AceType::MakeRefPtr<ImageComponent>(attr.second); in SetSpecializedAttr() 78 icon_->SetSrc(attr.second); in SetSpecializedAttr() 85 if (attr.second == MENU_OPTION_SHOW_TYPE) { in SetSpecializedAttr() 87 } else if (attr.second == MENU_OPTION_POPUP_TYPE) { in SetSpecializedAttr() 95 content_ = AceType::MakeRefPtr<TextComponent>(attr.second); in SetSpecializedAttr() 97 content_->SetData(attr.second); in SetSpecializedAttr() 104 selectOptionComponent_->SetDisabled(StringToBool(attr.second)); in SetSpecializedAttr() 109 selectOptionComponent_->SetVisible(StringToBool(attr.second)); in SetSpecializedAttr() [all …]
|
D | dom_rating.cpp | 37 ratingChild_->SetIndicator(StringToBool(attr.second)); in SetSpecializedAttr() 45 rating.starNum_.second = true; in SetSpecializedAttr() 50 rating.ratingScore_.second = true; in SetSpecializedAttr() 55 rating.stepSize_.second = true; in SetSpecializedAttr() 60 operatorIter->second(attr.second, *this); in SetSpecializedAttr() 70 ratingChild_->SetRtlFlip(StringToBool(style.second)); in SetSpecializedStyle() 78 rating.backgroundSrc_.second = true; in SetSpecializedStyle() 83 rating.foregroundSrc_.second = true; in SetSpecializedStyle() 88 rating.secondarySrc_.second = true; in SetSpecializedStyle() 93 operatorIter->second(style.second, *this); in SetSpecializedStyle() [all …]
|
/foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/adapter/dfx/src/ |
D | hiview_adapter.cpp | 94 if (kv.second.val.delegate == nullptr) { in InvokeDbSize() 98 if (!kv.second.val.storeId.empty()) { in InvokeDbSize() 99 ReportDbSize(kv.second); in InvokeDbSize() 104 kv.second.val.delegate->GetKvStoreKeys(storeInfos); in InvokeDbSize() 110 kv.second.val.delegate}, 0, kv.second.code}); in InvokeDbSize() 122 it->second.val.receivedSize += stat.receivedSize; in ReportTrafficStatistic() 123 it->second.val.sendSize += stat.sendSize; in ReportTrafficStatistic() 140 if (!vh.CalcValueHash(kv.second.val.deviceId, deviceId)) { in InvokeTraffic() 145 std::to_string(kv.second.code), in InvokeTraffic() 147 APP_ID, kv.second.val.appId, in InvokeTraffic() [all …]
|
/foundation/ace/ace_engine/frameworks/core/pipeline/base/ |
D | render_component.h | 83 positionParam_.left.second = true; in SetLeft() 89 positionParam_.left.second = true; in SetLeft() 100 positionParam_.right.second = true; in SetRight() 106 positionParam_.right.second = true; in SetRight() 111 positionParam_.anchor.second = anchorY; in SetAnchorY() 117 positionParam_.top.second = true; in SetTop() 123 positionParam_.top.second = true; in SetTop() 129 positionParam_.bottom.second = true; in SetBottom() 135 positionParam_.bottom.second = true; in SetBottom() 140 positionParam_.left.second = hasLeft; in SetHasLeft() [all …]
|
/foundation/communication/netmanager_base/services/netconnmanager/src/ |
D | net_conn_service.cpp | 193 iterSupplier->second->GetSupplierId(), iterSupplier->second->GetNetSupplierIdent().c_str(), in UnregisterNetSupplier() 197 int32_t netId = iterSupplier->second->GetNetId(); in UnregisterNetSupplier() 202 if (defaultNetSupplier_ == iterSupplier->second) { in UnregisterNetSupplier() 225 iterSupplier->second->RegisterSupplierCallback(callback); in RegisterNetSupplierCallback() 226 SendAllRequestToNetwork(iterSupplier->second); in RegisterNetSupplierCallback() 288 if (!iterActive->second) { in UnregisterNetConnCallback() 292 sptr<INetConnCallback> saveCallback = iterActive->second->GetNetCallback(); in UnregisterNetConnCallback() 302 sptr<NetActivate> netActivate = iterActive->second; in UnregisterNetConnCallback() 312 iterSupplier->second->CancelRequest(reqId); in UnregisterNetConnCallback() 324 if (!iterActive->second) { in FindSameCallback() [all …]
|
/foundation/ace/ace_engine/frameworks/core/components/common/properties/ |
D | decoration.cpp | 392 str.append(cache.second.cmds).append(" "); in ToString() 397 str.append(std::to_string(cache.second.para1)).append(","); in ToString() 398 str.append(std::to_string(cache.second.para2)).append(","); in ToString() 399 str.append(std::to_string(cache.second.para3)).append(","); in ToString() 400 str.append(std::to_string(cache.second.para4)).append(","); in ToString() 401 str.append(std::to_string(cache.second.para5)).append(","); in ToString() 402 str.append(std::to_string(cache.second.para6)).append(" "); in ToString() 407 str.append(std::to_string(cache.second.para1)).append(","); in ToString() 408 str.append(std::to_string(cache.second.para2)).append(" "); in ToString() 413 str.append(std::to_string(cache.second.para1)).append(","); in ToString() [all …]
|
/foundation/appexecfwk/standard/services/bundlemgr/src/ |
D | bundle_data_mgr.cpp | 104 … for (auto previousState = stateRange.first; previousState != stateRange.second; ++previousState) { in UpdateBundleInstallState() 105 if (item->second == previousState->second) { in UpdateBundleInstallState() 106 …_LOGD("update result:success, current:%{public}d, state:%{public}d", previousState->second, state); in UpdateBundleInstallState() 112 item->second = state; in UpdateBundleInstallState() 116 …("update result:fail, reason:incorrect current:%{public}d, state:%{public}d", item->second, state); in UpdateBundleInstallState() 140 if (statusItem->second == InstallState::INSTALL_START) { in AddInnerBundleInfo() 210 if (statusItem->second == InstallState::UPDATING_SUCCESS) { in AddNewModuleInfo() 249 …if (statusItem->second == InstallState::UNINSTALL_START || statusItem->second == InstallState::ROL… in RemoveModuleInfo() 340 if (statusItem->second == InstallState::UPDATING_SUCCESS in UpdateInnerBundleInfo() 341 || statusItem->second == InstallState::ROLL_BACK in UpdateInnerBundleInfo() [all …]
|
/foundation/multimedia/media_standard/services/services/sa_media/ipc/ |
D | media_parcel.cpp | 31 (void)parcel.WriteUint32(it->second.type); in Marshalling() 32 switch (it->second.type) { in Marshalling() 34 (void)parcel.WriteInt32(it->second.val.int32Val); in Marshalling() 37 (void)parcel.WriteInt64(it->second.val.int64Val); in Marshalling() 40 (void)parcel.WriteFloat(it->second.val.floatVal); in Marshalling() 43 (void)parcel.WriteDouble(it->second.val.doubleVal); in Marshalling() 46 (void)parcel.WriteString(it->second.stringVal); in Marshalling() 49 (void)parcel.WriteInt32(static_cast<int32_t>(it->second.size)); in Marshalling() 50 … (void)parcel.WriteBuffer(reinterpret_cast<const void *>(it->second.addr), it->second.size); in Marshalling()
|
/foundation/aafwk/standard/services/abilitymgr/src/ |
D | data_ability_manager.cpp | 94 dataAbilityRecord = it->second; in Acquire() 138 if (it->second && it->second->GetScheduler() && in Release() 139 it->second->GetScheduler()->AsObject() == scheduler->AsObject()) { in Release() 140 dataAbilityRecord = it->second; in Release() 183 if (it->second && it->second->GetScheduler() && in ContainsDataAbility() 184 it->second->GetScheduler()->AsObject() == scheduler->AsObject()) { in ContainsDataAbility() 215 if (it->second->GetToken() == token) { in AttachAbilityThread() 216 dataAbilityRecord = it->second; in AttachAbilityThread() 263 if (it->second->GetToken() == token) { in AbilityTransitionDone() 264 dataAbilityRecord = it->second; in AbilityTransitionDone() [all …]
|
/foundation/ace/ace_engine/frameworks/core/components/test/unittest/theme/ |
D | theme_mock.cpp | 79 for (auto& [attr, valueWrapper] : iter.second) { in Initialize() 92 for (const auto& [state, value] : elementItr->second) { in Initialize() 100 for (auto& [attr, valueWrapper] : iter.second) { in Initialize() 113 for (const auto& [attr, value] : styleItr->second) { in Initialize() 129 theme->SetAttributes(findIter->second); in GetTheme() 139 return findIter->second.GetValue<Color>(ERROR_VALUE_COLOR).second; in GetColor() 148 return findIter->second.GetValue<Dimension>(ERROR_VALUE_DIMENSION).second; in GetDimension() 157 return findIter->second.GetValue<std::string>("").second; in GetString() 172 return findIter->second.GetValue<double>(ERROR_VALUE_DOUBLE).second; in GetDouble() 181 return findIter->second.GetValue<int32_t>(ERROR_VALUE_INT).second; in GetInt()
|
/foundation/communication/bluetooth/services/bluetooth_standard/service/src/pbap_pse/ |
D | pbap_pse_service.cpp | 147 if (stm.second->GetConnectState() == BTConnectState::DISCONNECTED) { in DisableService() 150 if (!stm.second->IsConnected() && !stm.second->IsAccepted()) { in DisableService() 152 stm.second->ProcessMessage(msg); in DisableService() 153 } else if (!stm.second->IsConnected() && stm.second->IsAccepted()) { in DisableService() 154 ProcessWaitToDisconnect(stm.second->GetDevice()); in DisableService() 155 } else if (stm.second->IsConnected()) { in DisableService() 157 stm.second->ProcessMessage(msg); in DisableService() 186 BTConnectState state = target->second->GetConnectState(); in Disconnect() 201 if (target->second->GetConnectState() == BTConnectState::DISCONNECTED) { in DisConnectInternal() 204 if (target->second->IsConnected()) { in DisConnectInternal() [all …]
|
/foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/app/src/ |
D | kvstore_user_manager.cpp | 49 return (it->second).CloseKvStore(storeId); in CloseKvStore() 62 return (it->second).CloseAllKvStore(); in CloseAllKvStore() 74 (it.second).CloseAllKvStore(); in CloseAllKvStore() 84 auto status = (it->second).DeleteKvStore(storeId); in DeleteKvStore() 85 if ((it->second).GetTotalKvStoreNum() == 0) { in DeleteKvStore() 100 (it.second).DeleteAllKvStore(); in DeleteAllKvStore() 112 status = (it.second).MigrateAllKvStore(harmonyAccountId); in MigrateAllKvStore() 131 return (it->second).GetDbDir(options); in GetDbDir() 143 pair.second.Dump(fd); in Dump() 150 return it != appMap_.end() && it->second.IsStoreOpened(storeId); in IsStoreOpened() [all …]
|
/foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/libs/distributeddb/syncer/src/ |
D | subscribe_manager.cpp | 109 iter->second.insert(query.GetIdentify()); in PutLocalUnFiniedSubQueries() 118 if (item.second.size() == 0) { in GetAllUnFinishSubQueries() 123 for (const auto &queryId : item.second) { in GetAllUnFinishSubQueries() 129 iter->second.push_back(iterTmp->second.first); in GetAllUnFinishSubQueries() 180 auto subIter = iter->second.find(queryId); in IsRemoteContainSubscribe() 181 if (subIter == iter->second.end()) { in IsRemoteContainSubscribe() 197 for (const auto &queryInfo : iter->second) { in GetRemoteSubscribeQueryIds() 238 if (subscribedTotalMap[queryInfo.first].second > 0) { in ClearSubscribeQuery() 239 subscribedTotalMap[queryInfo.first].second--; in ClearSubscribeQuery() 241 if (subscribedTotalMap[queryInfo.first].second == 0) { in ClearSubscribeQuery() [all …]
|
/foundation/ai/engine/services/common/platform/os_wrapper/audio_loader/source/ |
D | audio_wrapper.cpp | 88 if (iter->second->Stop() != AUDIO_SUCCESS) { in Release() 91 AIE_DELETE(iter->second); in Release() 92 iter->second = nullptr; in Release() 108 int32_t retCode = iter->second->Stop(); in Deinit() 112 AIE_DELETE(iter->second); in Deinit() 113 iter->second = nullptr; in Deinit() 129 return iter->second->Initialize(config); in SetConfig() 140 if (iter->second->Start() != AUDIO_SUCCESS) { in StartCodec() 155 int32_t ret = iter->second->PushSourceStream(source); in Convert() 160 return iter->second->PullCodedStream(converted); in Convert()
|