Home
last modified time | relevance | path

Searched refs:first (Results 1 – 25 of 2166) sorted by relevance

12345678910>>...87

/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/extension/
H A Dcloud_db_impl.cpp46 if (data.first == nullptr) { in Execute()
50 OhCloudExtHashMapFree(data.first); in Execute()
59 if (valIn.first == nullptr || exdIn.first == nullptr) { in BatchInsert()
65 table.size(), valIn.first, exdIn.first); in BatchInsert()
69 OhCloudExtVectorFree(valIn.first); in BatchInsert()
78 if (valIn.first == nullptr || exdIn.first == nullptr) { in BatchUpdate()
84 table.size(), valIn.first, exdIn.first); in BatchUpdate()
97 if (valIn.first == nullptr || exdIn.first == nullptr) { in BatchUpdate()
103 table.size(), valIn.first, exdIn.first); in BatchUpdate()
112 if (data.first == nullptr) { in BatchDelete()
[all …]
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBase/api/base/containers/
H A Dvector.h687 if (first == last) { in append()
852 for (; first < last; ++first) { in uninitialized_default_construct()
863 for (; first < last; ++first) { in uninitialized_value_construct()
875 for (; first < last; ++first, ++d_first) { in uninitialized_copy()
887 for (; first < last; ++first) { in uninitialized_fill()
899 for (; first < last; ++first, ++d_first) { in uninitialized_move()
932 for (; first < last; ++first, ++pos) { in copy()
949 for (; first < last; ++first, ++d_first) { in move()
959 for (; first >= last; first--, dst--) { in reverse_move()
969 for (; first >= last; first--, dst--) { in reverse_move()
[all …]
/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/src/utils/
H A Ddump_utils.cpp25 result.first = true; in DumpMapOne()
28 result.first = true; in DumpMapOne()
31 result.first = true; in DumpMapOne()
34 result.first = true; in DumpMapOne()
37 result.first = true; in DumpMapOne()
40 result.first = true; in DumpMapOne()
43 result.first = true; in DumpMapOne()
46 result.first = true; in DumpMapOne()
49 result.first = true; in DumpMapOne()
77 if (dumpMapOne.first) { in DumpMap()
[all …]
/ohos5.0/base/request/request/frameworks/js/napi/src/
H A Dutf8_utils.cpp79 if (first == 0xE0 && next >= 0xA0 && next <= 0xBF) { in Check3Bytes()
80 } else if (first >= 0xE1 && first <= 0xEC && next >= 0x80 && next <= 0xBF) { in Check3Bytes()
81 } else if (first == 0xED && next >= 0x80 && next <= 0x9F) { in Check3Bytes()
82 } else if (first >= 0xEE && first <= 0xEF && next >= 0x80 && next <= 0xBF) { in Check3Bytes()
100 if (first == 0xF0 && next >= 0x90 && next <= 0xBF) { in Check4Bytes()
101 } else if (first >= 0xF1 && first <= 0xF3 && next >= 0x80 && next <= 0xBF) { in Check4Bytes()
116 uint8_t first = v[index]; in RunUtf8Validation() local
119 if (first <= 0x7F) { in RunUtf8Validation()
124 size_t w = Utf8CharWidth(first); in RunUtf8Validation()
130 if (!Check3Bytes(v, first, index)) { in RunUtf8Validation()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/syntax/
H A Dlazy_for_each_builder.cpp63 node.first = -1; in OnDataReloaded()
86 if (static_cast<size_t>(node.first) >= index && node.first != -1) { in OnDataAdded()
87 node.first++; in OnDataAdded()
105 if (static_cast<size_t>(node.first) >= index && node.first != -1) { in OnDataBulkAdded()
106 node.first = node.first + static_cast<int32_t>(count); in OnDataBulkAdded()
135 child.first--; in OnDataDeleted()
139 child.first = -1; in OnDataDeleted()
168 if (child.first < 0) { in OnDataBulkDeleted()
190 child.first = -1; in OnDataBulkDeleted()
236 … if (static_cast<size_t>(node.first) >= index && static_cast<size_t>(node.first) < index + count) { in OnDataBulkChanged()
[all …]
/ohos5.0/foundation/communication/dhcp/services/dhcp_server/src/
H A Ddhcp_option.cpp54 if (pOptions->first != nullptr) { in HasInitialized()
66 if (pOptions->first != nullptr && pOptions->first == pOptions->last) { in InitOptionList()
79 pOptions->first->previous = nullptr; in InitOptionList()
95 if (pOptions->first == nullptr) { in PushBackOption()
129 pOptions->first->next = pNode; in PushFrontOption()
135 pOptions->first->next = pNode; in PushFrontOption()
169 if (pOptions->first == nullptr) { in GetOptionNode()
203 pNode = pOptions->first->next; in ClearOptions()
205 pNode = pOptions->first; in ClearOptions()
217 if (pOptions->first == nullptr) { in FreeOptionList()
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/communicator/src/
H A Dframe_retainer.cpp71 … LogRetainInfo("[Retainer][Final] DISCARD", eachLabel.first, eachTarget.first, eachFrame.first, in Finalize()
137 fetchOrder[eachFrame.first] = eachTarget.first; in FetchFramesForSpecificCommunicator()
141 RetainWork &work = perLabel[entry.second][entry.first]; in FetchFramesForSpecificCommunicator()
161 LogRetainInfo("[Retainer][Surveil] DISCARD", label, eachTarget.first, eachFrame.first, in DecreaseRemainTimeAndDiscard()
169 frameToDiscard.insert(eachFrame.first); in DecreaseRemainTimeAndDiscard()
201 discardOrder[eachFrame.first] = {eachLabel.first, eachTarget.first}; in DiscardObsoleteFramesIfNeed()
213 RetainWork &workRef = retainWorkPool_[iter->second.first][iter->second.second][iter->first]; in DiscardObsoleteFramesIfNeed()
214 …ogRetainInfo("[Retainer][Discard] DISCARD", iter->second.first, iter->second.second, iter->first, … in DiscardObsoleteFramesIfNeed()
220 retainWorkPool_[iter->second.first][iter->second.second].erase(iter->first); in DiscardObsoleteFramesIfNeed()
236 emptyTarget.insert(eachTarget.first); in ShrinkRetainWorkPool()
[all …]
/ohos5.0/base/telephony/core_service/frameworks/native/src/
H A Doperator_config_types.cpp76 if (!parcel.WriteString(valueIt->first)) { in MarshallingStringMap()
94 if (!parcel.WriteString(valueIt->first)) { in MarshallingBoolMap()
112 if (!parcel.WriteString(valueIt->first)) { in MarshallingIntMap()
259 std::string first = parcel.ReadString(); in ReadFromStringMap() local
276 std::string first = parcel.ReadString(); in ReadFromIntMap() local
278 intValue[first] = second; in ReadFromIntMap()
295 boolValue[first] = second; in ReadFromBoolMap()
311 longValue[first] = second; in ReadFromLongMap()
328 stringArrayValue[first] = vec; in ReadFromStringArrayMap()
345 intArrayValue[first] = vec; in ReadFromIntArrayMap()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_progress.cpp168 progress.radius_.first = StringToDouble(val); in SetSpecializedStyle()
237 info->SetScaleWidth(scaleWidth_.first); in PrepareSpecializedComponent()
238 info->SetScaleNumber(scaleNumber_.first); in PrepareSpecializedComponent()
295 color_.first = theme->GetProgressColor(); in InitProgressIfNeed()
322 backgroundColor_.first = in InitProgressIfNeed()
326 cachedColor_.first = theme->GetTrackCachedColor(); in InitProgressIfNeed()
330 strokeWidth_.first = theme->GetScaleLength(); in InitProgressIfNeed()
332 strokeWidth_.first = theme->GetRingThickness(); in InitProgressIfNeed()
334 strokeWidth_.first = theme->GetTrackThickness(); in InitProgressIfNeed()
338 scaleWidth_.first = theme->GetScaleWidth(); in InitProgressIfNeed()
[all …]
H A Ddom_option.cpp59 if (attr.first != DOM_OPTION_CONTENT) { in SetSpecializedAttr()
63 if (attr.first == DOM_OPTION_SELECTED) { in SetSpecializedAttr()
68 if (attr.first == DOM_OPTION_VALUE) { in SetSpecializedAttr()
73 if (attr.first == DOM_OPTION_ICON) { in SetSpecializedAttr()
83 if (attr.first == DOM_OPTION_ACTION) { in SetSpecializedAttr()
92 if (attr.first == DOM_OPTION_CONTENT) { in SetSpecializedAttr()
102 if (attr.first == DOM_DISABLED) { in SetSpecializedAttr()
107 if (attr.first == DOM_SHOW) { in SetSpecializedAttr()
112 if (attr.first == DOM_FOCUSABLE) { in SetSpecializedAttr()
125 if (style.first == DOM_TEXTAREA_COLOR) { in SetSpecializedStyle()
[all …]
H A Ddom_rating.cpp34 if (attr.first == DOM_RATING_INDICATOR) { in SetSpecializedAttr()
42 rating.starNum_.first = StringToInt(val); in SetSpecializedAttr()
52 rating.stepSize_.first = StringToDouble(val); in SetSpecializedAttr()
56 auto operatorIter = ratingAttrOperators.find(attr.first); in SetSpecializedAttr()
67 if (style.first == DOM_RTL_FLIP) { in SetSpecializedStyle()
75 rating.backgroundSrc_.first = val; in SetSpecializedStyle()
80 rating.foregroundSrc_.first = val; in SetSpecializedStyle()
85 rating.secondarySrc_.first = val; in SetSpecializedStyle()
157 ratingChild_->SetStarNum(starNum_.first); in PrepareSpecializedComponent()
160 ratingChild_->SetRatingScore(ratingScore_.first); in PrepareSpecializedComponent()
[all …]
H A Ddom_input.cpp87 if (attr.first == DOM_INPUT_TYPE) { in SetSpecializedAttr()
93 type_.first = typeName; in SetSpecializedAttr()
101 inputAttrs_[attr.first] = attr.second; in SetSpecializedAttr()
107 if (type_.first == INPUT_TYPE_CHECKBOX) { in ResetInitializedStyle()
111 } else if ((type_.first == INPUT_TYPE_BUTTON) || (type_.first == INPUT_TYPE_SUBMIT) || in ResetInitializedStyle()
178 if ((type_.first == INPUT_TYPE_CHECKBOX) || (type_.first == INPUT_TYPE_RADIO) || in OnRequestFocus()
179 …(type_.first == INPUT_TYPE_BUTTON) || (type_.first == INPUT_TYPE_SUBMIT) || (type_.first == INPUT_… in OnRequestFocus()
264 …if ((type_.first == INPUT_TYPE_BUTTON) || (type_.first == INPUT_TYPE_SUBMIT) || (type_.first == IN… in CreateSpecializedComponent()
287 …if ((type_.first == INPUT_TYPE_BUTTON) || (type_.first == INPUT_TYPE_SUBMIT) || (type_.first == IN… in UpdateSpecializedComponent()
363 auto type = type_.first; in UpdateSpecializedComponentStyle()
[all …]
/ohos5.0/foundation/multimedia/av_session/frameworks/native/ohavsession/src/
H A DOHAVSessionCallbackImpl.cpp62 it->first(avsession_, time, it->second); in OnFastForward()
102 return element.first == callback; in SetPlayCallback()
118 return element.first == callback; in SetPauseCallback()
134 return element.first == callback; in SetStopCallback()
150 return element.first == callback; in SetPlayNextCallback()
166 return element.first == callback; in SetPlayPreviousCallback()
179 return element.first == callback; in UnSetPlayCallback()
189 return element.first == callback; in UnSetPauseCallback()
199 return element.first == callback; in UnSetStopCallback()
209 return element.first == callback; in UnSetPlayNextCallback()
[all …]
/ohos5.0/base/powermgr/power_manager/services/native/src/runninglock/
H A Drunning_lock_proxy.cpp89 auto& workSourceMap = tokenWksMapIter->second.first; in UpdateWorkSource()
94 auto iter = workSourceMap.find(wks.first); in UpdateWorkSource()
96 workSourcesState.insert({ iter->first, { iter->second.first, iter->second.second } }); in UpdateWorkSource()
203 for (auto& wks : tokenWksItem.second.first) { in IncreaseProxyCnt()
217 auto& wksMap = tokenWksItem.second.first; in IncreaseProxyCnt()
242 for (auto& wks : tokenWksItem.second.first) { in DecreaseProxyCnt()
246 ProxyInner(tokenWksItem.first, MergeBundleName(tokenWksItem.second.first), in DecreaseProxyCnt()
257 auto& wksMap = tokenWksItem.second.first; in DecreaseProxyCnt()
291 for (const auto& wks : tokenWksMap.first) { in DumpProxyInfo()
313 ProxyInner(tokenWksItem.first, MergeBundleName(tokenWksItem.second.first), in ResetRunningLocks()
[all …]
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/src/
H A Dcontainer_observer.cpp56 return other.added_.first == added_.first && other.removed_.first == removed_.first && in operator ==()
57 other.moved_.first == moved_.first; in operator ==()
68 return added_.first && removed_.first && moved_.first; in Subscribe()
76 if (added_.first) { in Unsubscribe()
77 container->OnAdded()->RemoveHandler(added_.first); in Unsubscribe()
79 if (removed_.first) { in Unsubscribe()
80 container->OnRemoved()->RemoveHandler(removed_.first); in Unsubscribe()
82 if (moved_.first) { in Unsubscribe()
83 container->OnMoved()->RemoveHandler(moved_.first); in Unsubscribe()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dclip_path.cpp112 std::string::size_type first = 0; in GetBasicShapeInfo() local
115 first = tmp + std::strlen("inset("); in GetBasicShapeInfo()
116 data = value.substr(first, (value.find_first_of(')', first) - first)); in GetBasicShapeInfo()
121 first = tmp + std::strlen("circle("); in GetBasicShapeInfo()
122 data = value.substr(first, (value.find_first_of(')', first) - first)); in GetBasicShapeInfo()
128 data = value.substr(first, (value.find_first_of(')', first) - first)); in GetBasicShapeInfo()
134 data = value.substr(first, (value.find_first_of(')', first) - first)); in GetBasicShapeInfo()
139 first = tmp + std::strlen("path('"); in GetBasicShapeInfo()
140 data = value.substr(first, (value.find("')", first) - first)); in GetBasicShapeInfo()
145 first = tmp + std::strlen("path(\""); in GetBasicShapeInfo()
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/property/
H A Dtemplates_parser_test_ng.cpp194 EXPECT_EQ(rt[i], result.first[i]);
216 EXPECT_EQ(retVal.first.size(), 4);
229 EXPECT_EQ(retVal.first.size(), 4);
231 EXPECT_EQ(retVal.first[i], gt[i]);
244 EXPECT_TRUE(retVal.first.empty());
266 EXPECT_EQ(retVal.first[i], gt[i]);
277 EXPECT_TRUE(retVal.first.empty());
291 EXPECT_EQ(retVal.first[i], gt[i]);
307 EXPECT_EQ(retVal.first[i], gt[i]);
320 EXPECT_TRUE(retVal.first.empty());
[all …]
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/
H A Dwater_version_manager_test.cpp114 … staticMeta_.keys.push_back(Constant::Join(it.first, Constant::KEY_SEPARATOR, { it.second })); in SetUpTestCase()
120 … dynamicMeta_.keys.push_back(Constant::Join(it.first, Constant::KEY_SEPARATOR, { it.second })); in SetUpTestCase()
166 …EXPECT_TRUE(WvManager::GetInstance().SetWaterVersion(staticStores_[0].first, staticStores_[0].seco…
240 EXPECT_TRUE(res.first && res.second == 0)
249 EXPECT_TRUE(res.first && res.second == 2)
281 EXPECT_TRUE(res.first && res.second == 2)
311 EXPECT_TRUE(res.first && res.second == 0)
322 EXPECT_TRUE(res.first && res.second == 0)
333 EXPECT_TRUE(res.first && res.second == 4)
347 … WvManager::GetInstance().GenerateWaterVersion(staticStores_[0].first, staticStores_[0].second);
[all …]
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/common/
H A Dpower_state_machine.cpp119 … if (powerLevel.first != PowerSsrLevel::NO_ACTION && powerLevel.first != controlPowerLevel.first) { in Entry()
120 int ssrRet = pd_.BtmSetSniffSubrating(PowerSpec::GetPowerSsrParam(powerLevel.first)); in Entry()
156 … if (powerLevel.first != PowerSsrLevel::NO_ACTION && powerLevel.first != controlPowerLevel.first) { in Dispatch()
214 pd_.GetRequestPowerLevel().first, in Dispatch()
215 pd_.GetControlPowerLevel().first); in Dispatch()
266 pd_.GetRequestPowerLevel().first, in Dispatch()
267 pd_.GetControlPowerLevel().first); in Dispatch()
280 … if (powerLevel.first != PowerSsrLevel::NO_ACTION && powerLevel.first != controlPowerLevel.first) { in Entry()
281 int ssrRet = pd_.BtmSetSniffSubrating(PowerSpec::GetPowerSsrParam(powerLevel.first)); in Entry()
317 … if (powerLevel.first != PowerSsrLevel::NO_ACTION && powerLevel.first != controlPowerLevel.first) { in Dispatch()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/property/
H A Dlayout_constraint.h39 if (first.Width().has_value() ^ second.Width().has_value()) { in CompareWithInfinityCheck()
42 auto widthBothInf = GreaterOrEqualToInfinity(first.Width().value_or(0.0f)) && in CompareWithInfinityCheck()
44 if (!widthBothInf && !NearEqual(first.Width().value_or(0), second.Width().value_or(0))) { in CompareWithInfinityCheck()
47 if (first.Height().has_value() ^ second.Height().has_value()) { in CompareWithInfinityCheck()
50 auto heightBothInf = GreaterOrEqualToInfinity(first.Height().value_or(0.0f)) && in CompareWithInfinityCheck()
52 if (!heightBothInf && !NearEqual(first.Height().value_or(0), second.Height().value_or(0))) { in CompareWithInfinityCheck()
58 static bool CompareWithInfinityCheck(const SizeT<float>& first, const SizeT<float>& second) in CompareWithInfinityCheck()
65 … return NearEqual(first.Width(), second.Width()) && NearEqual(first.Height(), second.Height()); in CompareWithInfinityCheck()
68 static bool CompareWithInfinityCheck(float first, float second) in CompareWithInfinityCheck()
70 auto bothInf = GreaterOrEqualToInfinity(first) && GreaterOrEqualToInfinity(second); in CompareWithInfinityCheck()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/span/
H A Dmutable_span_string.cpp57 auto spanKey = it.first; in RemoveSpans()
117 auto startIndex = pair.first; in ReplaceSpan()
193 (*it)->interval.first = end; in HandleSpanOperation()
204 spansMap_[iter.first] = {}; in ApplyReplaceStringToSpanBase()
208 spansMap_[iter.first] = spans; in ApplyReplaceStringToSpanBase()
286 if (span->interval.first > start || (span->interval.first == start && useFrontStyle)) { in UpdateSpansAndSpanMapWithOffsetAfterInsert()
306 spansMap_[iter.first] = spans; in UpdateSpansAndSpanMapWithOffsetAfterInsert()
418 spansMap_[it.first] = spans; in KeepSpansOrder()
473 newSpanItem->interval.first = (*rit)->interval.first + start; in ApplyInsertSpanStringToSpans()
535 newSpanItem->interval.first = (*rit)->interval.first + start; in InsertSpanString()
[all …]
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/src/
H A Daudio_policy_server_handler.cpp119 if ((*it).first.first == clientId) { in RemoveAvailableDeviceChangeMap()
633 AudioDeviceUsage usage = it->first.second; in HandleAvailableDeviceChange()
661 if (clientCallbacksMap_.count(it->first) > 0 && in HandleVolumeKeyEvent()
703 if (clientCallbacksMap_.count(it->first) > 0 && in HandleRequestCateGoryEvent()
717 if (clientCallbacksMap_.count(it->first) > 0 && in HandleAbandonCateGoryEvent()
732 if (clientCallbacksMap_.count(it->first) > 0 && in HandleFocusInfoChangeEvent()
753 if (clientCallbacksMap_.count(it->first) > 0 && in HandleRingerModeUpdatedEvent()
772 if (clientCallbacksMap_.count(it->first) > 0 && in HandleMicStateUpdatedEvent()
787 if (it->first != clientId) { in HandleMicStateUpdatedEventWithClientId()
796 if (clientCallbacksMap_.count(it->first) > 0 && in HandleMicStateUpdatedEventWithClientId()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/top_down/
H A Dwater_flow_layout_info.cpp33 return crossItems.first; in GetCrossIndex()
58 … tempStartIndex = tempStartIndex != -1 ? std::min(tempStartIndex, iter.first) : iter.first; in UpdateStartIndex()
64 … tempStartIndex = tempStartIndex != -1 ? std::min(tempStartIndex, iter.first) : iter.first; in UpdateStartIndex()
135 result = item->second.first + item->second.second; in GetMainHeight()
153 result = item->second.first; in GetStartMainPos()
227 position.lastItemIndex = lastItem->first; in GetCrossIndexForNextItem()
231 position.lastItemIndex = lastItem->first; in GetCrossIndexForNextItem()
293 return crossItem.first >= start && crossItem.first <= end; in GetMainCount()
529 targetPosition = -item.first; in JumpToTargetAlign()
535 if (currentOffset_ + item.first < 0) { in JumpToTargetAlign()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/utils/
H A DCubeShape.js79 let second = first + this.widthSegments + 1;
80 this.indices.push(first, second, first + 1, second, second + 1, first + 1);
102 let second = first + this.widthSegments + 1;
103 this.indices.push(first, second, first + 1, second, second + 1, first + 1);
125 let second = first + this.depthSegments + 1;
126 this.indices.push(first, second, first + 1, second, second + 1, first + 1);
148 let second = first + this.depthSegments + 1;
149 this.indices.push(first, second, first + 1, second, second + 1, first + 1);
171 let second = first + this.widthSegments + 1;
172 this.indices.push(first, second, first + 1, second, second + 1, first + 1);
[all …]
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/object/
H A Dobject_dms_handler.cpp56 if (it->first.dSchedEventType_ != DistributedSchedule::DMS_CONTINUE) { in IsContinue()
59 …if (it->first.srcNetworkId_ == localDeviceInfo.networkId && it->first.srcBundleName_ == bundleName… in IsContinue()
64 …if (it->first.dstNetworkId_ == localDeviceInfo.networkId && it->first.destBundleName_ == bundleNam… in IsContinue()
85 if (it->first.dSchedEventType_ != DistributedSchedule::DMS_CONTINUE) { in GetDstBundleName()
88 …if (it->first.srcNetworkId_ == localDeviceInfo.networkId && it->first.srcBundleName_ == srcBundleN… in GetDstBundleName()
89 it->first.dstNetworkId_ == dstNetworkId) { in GetDstBundleName()
91 srcBundleName.c_str(), it->first.destBundleName_.c_str()); in GetDstBundleName()
92 return it->first.destBundleName_; in GetDstBundleName()

12345678910>>...87