Home
last modified time | relevance | path

Searched refs:StringToInt (Results 1 – 25 of 146) sorted by relevance

123456

/ohos5.0/drivers/peripheral/audio/test/sample/
H A Dframework_common.c97 uint32_t audioRiffId = StringToInt("RIFF"); in CheckWavFileHeader()
98 uint32_t audioFileFmt = StringToInt("WAVE"); in CheckWavFileHeader()
143 headInfo.riffId = StringToInt("RIFF"); in AddWavFileHeader()
145 headInfo.waveType = StringToInt("WAVE"); in AddWavFileHeader()
146 headInfo.audioFileFmtId = StringToInt("fmt "); in AddWavFileHeader()
155 headInfo.dataId = StringToInt("data"); in AddWavFileHeader()
174 uint32_t StringToInt(const char *flag) in StringToInt() function
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/navigation_bar/
H A Dnavigation_bar_component.cpp108 …titleComposed_ = GenerateAccessibilityComposed(StringUtils::StringToInt(id_), "titleText", transfo… in BuildTitle()
115 …subTitleComposed_ = GenerateAccessibilityComposed(StringUtils::StringToInt(id_), "subTitleText", d… in BuildTitle()
158 … GenerateAccessibilityComposed(StringUtils::StringToInt(id_), "optionButton", optionButton)); in MoveMenuItemsToBar()
175 …container->AppendChild(GenerateAccessibilityComposed(StringUtils::StringToInt(id_), "moreButton", … in AddCollapseMenu()
204 …titleComposed_ = GenerateAccessibilityComposed(StringUtils::StringToInt(id_), "select", transform); in BuildSelectPopup()
287 …parent->AppendChild(GenerateAccessibilityComposed(StringUtils::StringToInt(id_), "endButton", endB… in BuildEndZone()
345 …parent->AppendChild(GenerateAccessibilityComposed(StringUtils::StringToInt(id_), "titleText", titl… in BuildTitle()
356 … GenerateAccessibilityComposed(StringUtils::StringToInt(id_), "subTitleText", subTitleText)); in BuildSubTitle()
364 … GenerateAccessibilityComposed(StringUtils::StringToInt(id_), "subTitleText", subTitleText)); in BuildSubTitle()
407 …titleBox->SetChild(GenerateAccessibilityComposed(StringUtils::StringToInt(id_), "titleText", title… in BuildTitle()
[all …]
H A Dnavigation_bar_component_v2.cpp57 …container->AppendChild(GenerateAccessibilityComposed(StringUtils::StringToInt(id_), "backButton", … in BuildMiniLayer()
177 …titleComposed_ = GenerateAccessibilityComposed(StringUtils::StringToInt(id_), "titleText", transfo… in BuildTitle()
185 …subTitleComposed_ = GenerateAccessibilityComposed(StringUtils::StringToInt(id_), "subTitleText", d… in BuildTitle()
226 … GenerateAccessibilityComposed(StringUtils::StringToInt(id_), "optionButton", optionButton)); in AddMenu()
237 …container->AppendChild(GenerateAccessibilityComposed(StringUtils::StringToInt(id_), "moreButton", … in AddMenu()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_image_animator.cpp45 imageAnimator_->SetIteration(StringToInt(attr.second)); in SetSpecializedAttr()
50 imageAnimator_->SetPreDecode(StringToInt(attr.second)); in SetSpecializedAttr()
56 imageAnimator_->SetDuration(StringToInt(val)); in SetSpecializedAttr()
58 imageAnimator_->SetDuration(StringToInt(val) * MS_TO_S); in SetSpecializedAttr()
60 imageAnimator_->SetDuration(StringToInt(val)); in SetSpecializedAttr()
H A Ddom_picker_base.cpp103 outDate.SetYear(StringUtils::StringToInt(strValue)); in GetPickerDate()
107 outDate.SetMonth(StringUtils::StringToInt(strValue)); in GetPickerDate()
111 outDate.SetDay(StringUtils::StringToInt(strValue)); in GetPickerDate()
122 outTime.SetHour(StringUtils::StringToInt(strValue)); in GetPickerTime()
126 outTime.SetMinute(StringUtils::StringToInt(strValue)); in GetPickerTime()
129 outTime.SetSecond(StringUtils::StringToInt(strValue)); in GetPickerTime()
142 outDate.SetDay(StringUtils::StringToInt(strValues[1])); in GetPickerDateTime()
143 outTime.SetHour(StringUtils::StringToInt(strValues[2])); in GetPickerDateTime()
146 outDate.SetYear(StringUtils::StringToInt(strValues[0])); in GetPickerDateTime()
148 outDate.SetDay(StringUtils::StringToInt(strValues[2])); in GetPickerDateTime()
[all …]
H A Ddom_list.cpp42 … [](DOMList& list, const std::string& val) { list.beginIndex_ = StringUtils::StringToInt(val); }, in SetSpecializedAttr()
46 … [](DOMList& list, const std::string& val) { list.cachedCount_ = StringUtils::StringToInt(val); }, in SetSpecializedAttr()
62 … [](DOMList& list, const std::string& val) { list.endIndex_ = StringUtils::StringToInt(val); }, in SetSpecializedAttr()
91 … [](DOMList& list, const std::string& val) { list.indexOffset_ = StringUtils::StringToInt(val); }, in SetSpecializedAttr()
95 [](DOMList& list, const std::string& val) { list.initialIndex_ = StringToInt(val); }, in SetSpecializedAttr()
115 …](DOMList& list, const std::string& val) { list.repeatedLength_ = StringUtils::StringToInt(val); }, in SetSpecializedAttr()
497 list.listColumns_ = StringUtils::StringToInt(val); in SetSpecializedStyle()
/ohos5.0/base/startup/init/ueventd/
H A Dueventd.c229 uevent->partitionNum = StringToInt(event + strlen("PARTN="), -1); in AddUevent()
231 uevent->major = StringToInt(event + strlen("MAJOR="), -1); in AddUevent()
233 uevent->minor = StringToInt(event + strlen("MINOR="), -1); in AddUevent()
235 uevent->ug.uid = (uid_t)StringToInt(event + strlen("DEVUID="), 0); in AddUevent()
237 uevent->ug.gid = (gid_t)StringToInt(event + strlen("DEVGID="), 0); in AddUevent()
241 uevent->busNum = StringToInt(event + strlen("BUSNUM="), -1); in AddUevent()
243 uevent->devNum = StringToInt(event + strlen("DEVNUM="), -1); in AddUevent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/frontend/
H A Dcj_frontend.cpp192 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleAsyncEvent()
224 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleAsyncEvent()
245 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleAsyncEvent()
256 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleAsyncEvent()
280 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleAsyncEvent()
309 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleSyncEvent()
322 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleSyncEvent()
344 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleSyncEvent()
356 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleSyncEvent()
/ohos5.0/base/notification/distributed_notification_service/services/ans/src/
H A Dnotification_preferences_database.cpp1214 data.push_back(StringToInt(str1)); in StringToVector()
1333 bundleInfo.SetBadgeTotalNum(StringToInt(value)); in ParseBundleBadgeNum()
1354 bundleInfo.SetBundleUid(StringToInt(value)); in ParseBundleUid()
1374 bool showBadge = static_cast<bool>(StringToInt(value)); in ParseSlotShowBadge()
1389 bundleInfo.SetSlotFlags(StringToInt(value)); in ParseBundleSlotFlags()
1395 bool enableLight = static_cast<bool>(StringToInt(value)); in ParseSlotEnableLight()
1446 bool enable = static_cast<bool>(StringToInt(value)); in ParseSlotEnableBypassDnd()
1454 bool enabled = static_cast<bool>(StringToInt(value)); in ParseSlotEnabled()
1462 int32_t status = static_cast<int32_t>(StringToInt(value)); in ParseSlotAuthorizedStatus()
1470 int32_t count = static_cast<int32_t>(StringToInt(value)); in ParseSlotAuthHitnCnt()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/custom_dialog/
H A Dcustom_dialog_element.cpp86 baseDialog->SetCustomDialogId(StringUtils::StringToInt(GetId())); in ShowDialog()
90 auto node = manager->GetAccessibilityNodeById(StringUtils::StringToInt(GetId())); in ShowDialog()
123 auto node = manager->GetAccessibilityNodeById(StringUtils::StringToInt(GetId())); in CloseDialog()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/declaration/div/
H A Ddiv_declaration.cpp91 divStyle.columnEnd = StringToInt(value); in SetSpecializedStyle()
98 divStyle.columnStart = StringToInt(value); in SetSpecializedStyle()
112 divStyle.rowEnd = StringToInt(value); in SetSpecializedStyle()
119 divStyle.rowStart = StringToInt(value); in SetSpecializedStyle()
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/osal/
H A Dstylus_detector_default.cpp64 auto commandId = StringUtils::StringToInt(params[1]); in ExecuteCommand()
66 isEnable = static_cast<bool>(StringUtils::StringToInt(params[PARAMS_ENABLE_INDEX])); in ExecuteCommand()
/ohos5.0/base/startup/init/test/unittest/init/
H A Dutils_unittest.cpp57 int ret = StringToInt(str, defaultValue);
60 ret = StringToInt(str, defaultValue);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/panel/
H A Dpanel_element.cpp66 auto node = manager->GetAccessibilityNodeById(StringUtils::StringToInt(panel_->GetId())); in ShowPanel()
90 auto node = manager->GetAccessibilityNodeById(StringUtils::StringToInt(panel_->GetId())); in ClosePanel()
/ohos5.0/foundation/ability/ability_runtime/js_environment/frameworks/js_environment/src/
H A Dsource_map.cpp54 int32_t StringToInt(const std::string& value) in StringToInt() function
473 mapInfo = Find(StringToInt(line) - offSet + OFFSET_PREVIEW, StringToInt(column), targetMap); in GetSourceInfo()
475 mapInfo = Find(StringToInt(line) - offSet, StringToInt(column), targetMap); in GetSourceInfo()
502 return std::make_pair(StringToInt(lineStr), StringToInt(columnStr)); in GetErrorPos()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_paint_property.cpp48 UpdateAutoPlayInterval(StringUtils::StringToInt(json->GetString("interval"))); in FromJson()
49 UpdateDuration(StringUtils::StringToInt(json->GetString("duration"))); in FromJson()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/popup/
H A Dpopup_element.cpp154 auto node = manager->GetAccessibilityNodeById(StringUtils::StringToInt(popup_->GetId())); in ShowPopup()
182 … accessibilityManager->RemoveAccessibilityNodeById(StringUtils::StringToInt(popup_->GetId())); in CancelPopup()
184 …auto node = accessibilityManager->GetAccessibilityNodeById(StringUtils::StringToInt(popup_->GetId(… in CancelPopup()
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/kvdb/
H A Dquery_helper.cpp149 dbQuery.EqualTo(StringToString(fieldName), StringToInt(fieldValue)); in HandleEqualTo()
176 dbQuery.NotEqualTo(StringToString(fieldName), StringToInt(fieldValue)); in HandleNotEqualTo()
203 dbQuery.GreaterThan(StringToString(fieldName), StringToInt(fieldValue)); in HandleGreaterThan()
228 dbQuery.LessThan(StringToString(fieldName), StringToInt(fieldValue)); in HandleLessThan()
254 dbQuery.GreaterThanOrEqualTo(StringToString(fieldName), StringToInt(fieldValue)); in HandleGreaterThanOrEqualTo()
280 dbQuery.LessThanOrEqualTo(StringToString(fieldName), StringToInt(fieldValue)); in HandleLessThanOrEqualTo()
474 const int number = StringToInt(words.at(pointer + 1)); // number in HandleLimit()
475 const int offset = StringToInt(words.at(pointer + 2)); // offset in HandleLimit()
567 int QueryHelper::StringToInt(const std::string &word) in StringToInt() function in OHOS::DistributedKv::QueryHelper
637 valueList.push_back(StringToInt(words.at(elementPointer))); in GetIntegerList()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/side_bar/
H A Dside_bar_theme.h60 theme->dividerShadowEnable_ = StringUtils::StringToInt(dividerShadowEnable); in ParsePattern()
64 … theme->sideBarUnfocusEffectEnable_ = StringUtils::StringToInt(sideBarUnfocusEffectEnable); in ParsePattern()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/
H A Djs_frontend.cpp835 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleAsyncEvent()
879 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleAsyncEvent()
903 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleSyncEvent()
926 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleAsyncEvent()
945 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleAsyncEvent()
954 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleAsyncEvent()
963 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleAsyncEvent()
973 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleAsyncEvent()
982 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleSyncEvent()
991 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleSyncEvent()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/plugin_frontend/
H A Dplugin_frontend.cpp733 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleAsyncEvent()
767 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleAsyncEvent()
801 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleSyncEvent()
810 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleAsyncEvent()
819 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleAsyncEvent()
842 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleAsyncEvent()
851 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleSyncEvent()
867 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleSyncEvent()
876 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleSyncEvent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text/
H A Dtext_theme.h66 theme->draggable_ = StringUtils::StringToInt(draggable); in ParsePattern()
75 theme->isShowHandle_ = StringUtils::StringToInt(textShowHandle); in ParsePattern()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/utils/
H A Dengine_helper.cpp120 res.first = StringUtils::StringToInt(arr[0]); in StringToPair()
121 res.second = StringUtils::StringToInt(arr[1]); in StringToPair()
/ohos5.0/foundation/bundlemanager/bundle_tool/frameworks/src/
H A Dbundle_test_tool.cpp1599 ErrCode BundleTestTool::StringToInt( in StringToInt() function in OHOS::AppExecFwk::BundleTestTool
1669 StringToInt(optarg, commandName, temp, ret); in CheckGetStringCorrectOption()
1673 StringToInt(optarg, commandName, temp, ret); in CheckGetStringCorrectOption()
1677 StringToInt(optarg, commandName, temp, ret); in CheckGetStringCorrectOption()
1681 StringToInt(optarg, commandName, temp, ret); in CheckGetStringCorrectOption()
1714 StringToInt(optarg, commandName, temp, ret); in CheckGetProxyDataCorrectOption()
1740 StringToInt(optarg, commandName, temp, ret); in CheckGetAllProxyDataCorrectOption()
2074 StringToInt(optarg, commandName, temp, ret); in CheckGetIconCorrectOption()
2078 StringToInt(optarg, commandName, temp, ret); in CheckGetIconCorrectOption()
2082 StringToInt(optarg, commandName, temp, ret); in CheckGetIconCorrectOption()
[all …]
/ohos5.0/base/startup/init/interfaces/innerkits/syspara/
H A Dparam_wrapper.cpp40 bool StringToInt(const std::string& str, T min, T max, T& out) in StringToInt() function
129 if (!value.empty() && StringToInt(value, min, max, result)) { in GetIntParameter()

123456