Home
last modified time | relevance | path

Searched refs:options_ (Results 1 – 25 of 67) sorted by relevance

123

/foundation/arkui/ace_engine/frameworks/core/components/select_popup/
Dselect_popup_component.cpp65 if (index >= options_.size()) { in GetSelectOption()
70 return options_[index]; in GetSelectOption()
115 for (const auto& option : options_) { in InnerHideDialog()
210 for (const auto& option : options_) { in CloseContextMenu()
264 if (options_.empty()) { in SetDefaultSelecting()
269 for (const auto& option : options_) { in SetDefaultSelecting()
277 options_[0]->SetSelected(true); in SetDefaultSelecting()
283 if (options_.size() == 0 || !manager) { in Initialize()
290 for (std::size_t index = 0; index < options_.size(); index++) { in Initialize()
291 options_[index]->SetIndex(index); in Initialize()
[all …]
Dselect_popup_component.h87 return options_.size(); in GetSelectOptionCount()
94 return options_; in GetSelectOptions()
99 options_.clear(); in ClearAllOptions()
310 std::vector<RefPtr<OptionComponent>> options_; variable
/foundation/communication/netstack/frameworks/js/napi/tls/src/context/
Dtls_extra_context.cpp38options_.SetReceiveBufferSize(NapiUtils::GetUint32Property(GetEnv(), params[0], KEY_RECEIVE_BUFFER… in ParseParams()
42options_.SetSendBufferSize(NapiUtils::GetUint32Property(GetEnv(), params[0], KEY_SEND_BUFFER_SIZE)… in ParseParams()
46options_.SetReuseAddress(NapiUtils::GetBooleanProperty(GetEnv(), params[0], KEY_REUSE_ADDRESS)); in ParseParams()
50options_.SetSocketTimeout(NapiUtils::GetUint32Property(GetEnv(), params[0], KEY_SOCKET_TIMEOUT)); in ParseParams()
54 options_.SetKeepAlive(NapiUtils::GetBooleanProperty(GetEnv(), params[0], KEY_KEEP_ALIVE)); in ParseParams()
58 options_.SetOOBInline(NapiUtils::GetBooleanProperty(GetEnv(), params[0], KEY_OOB_INLINE)); in ParseParams()
62options_.SetTCPNoDelay(NapiUtils::GetBooleanProperty(GetEnv(), params[0], KEY_TCP_NO_DELAY)); in ParseParams()
69 options_.socketLinger.SetOn( in ParseParams()
73 options_.socketLinger.SetLinger( in ParseParams()
/foundation/communication/netstack/frameworks/js/napi/socket/async_context/src/
Dtcp_server_extra_context.cpp33options_.SetReceiveBufferSize(NapiUtils::GetUint32Property(GetEnv(), params[0], KEY_RECEIVE_BUFFER… in ParseContextKey()
37options_.SetSendBufferSize(NapiUtils::GetUint32Property(GetEnv(), params[0], KEY_SEND_BUFFER_SIZE)… in ParseContextKey()
41options_.SetReuseAddress(NapiUtils::GetBooleanProperty(GetEnv(), params[0], KEY_REUSE_ADDRESS)); in ParseContextKey()
45options_.SetSocketTimeout(NapiUtils::GetUint32Property(GetEnv(), params[0], KEY_SOCKET_TIMEOUT)); in ParseContextKey()
49 options_.SetKeepAlive(NapiUtils::GetBooleanProperty(GetEnv(), params[0], KEY_KEEP_ALIVE)); in ParseContextKey()
53 options_.SetOOBInline(NapiUtils::GetBooleanProperty(GetEnv(), params[0], KEY_OOB_INLINE)); in ParseContextKey()
57options_.SetTCPNoDelay(NapiUtils::GetBooleanProperty(GetEnv(), params[0], KEY_TCP_NO_DELAY)); in ParseContextKey()
64 options_.socketLinger.SetOn( in ParseContextKey()
68 options_.socketLinger.SetLinger( in ParseContextKey()
Dtcp_extra_context.cpp30options_.SetReceiveBufferSize(NapiUtils::GetUint32Property(GetEnv(), params[0], KEY_RECEIVE_BUFFER… in ParseContextKey()
34options_.SetSendBufferSize(NapiUtils::GetUint32Property(GetEnv(), params[0], KEY_SEND_BUFFER_SIZE)… in ParseContextKey()
38options_.SetReuseAddress(NapiUtils::GetBooleanProperty(GetEnv(), params[0], KEY_REUSE_ADDRESS)); in ParseContextKey()
42options_.SetSocketTimeout(NapiUtils::GetUint32Property(GetEnv(), params[0], KEY_SOCKET_TIMEOUT)); in ParseContextKey()
46 options_.SetKeepAlive(NapiUtils::GetBooleanProperty(GetEnv(), params[0], KEY_KEEP_ALIVE)); in ParseContextKey()
50 options_.SetOOBInline(NapiUtils::GetBooleanProperty(GetEnv(), params[0], KEY_OOB_INLINE)); in ParseContextKey()
54options_.SetTCPNoDelay(NapiUtils::GetBooleanProperty(GetEnv(), params[0], KEY_TCP_NO_DELAY)); in ParseContextKey()
61 options_.socketLinger.SetOn( in ParseContextKey()
65 options_.socketLinger.SetLinger( in ParseContextKey()
/foundation/ability/ability_runtime/test/unittest/runtime_test/
Djs_runtime_test.cpp53 Runtime::Options options_; member in OHOS::AbilityRuntime::JsRuntimeTest
64 options_.bundleName = TEST_BUNDLE_NAME; in SetUp()
65 options_.codePath = TEST_CODE_PATH; in SetUp()
66 options_.loadAce = false; in SetUp()
67 options_.isBundle = true; in SetUp()
68 options_.preload = false; in SetUp()
70 options_.eventRunner = eventRunner; in SetUp()
83 auto jsRuntime = AbilityRuntime::JsRuntime::Create(options_);
108 options_.preload = true;
109 std::unique_ptr<Runtime> jsRuntime = JsRuntime::Create(options_);
[all …]
/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/src/
Dability_stage_context.cpp60 return options_; in GetOptions()
65 options_ = options; in SetOptions()
67 auto pos = options_.previewPath.find(CONTEXT_FILE_SEPARATOR); in SetOptions()
74 applicationInfo_->name = options_.bundleName; in SetOptions()
79 ability.bundleName = options_.bundleName; in SetOptions()
80 ability.moduleName = options_.moduleName; in SetOptions()
87 return options_.bundleName; in GetBundleName()
93 auto pos = options_.assetPath.find(CONTEXT_ASSET); in GetBundleCodePath()
95 path = options_.assetPath.substr(0, pos); in GetBundleCodePath()
146 fileSeparator_ + options_.moduleName; in GetDatabaseDir()
[all …]
Dsimulator.cpp109 Options options_; member in OHOS::AbilityRuntime::__anonc408410f0111::SimulatorImpl
175 options_ = options; in Initialize()
222 std::ifstream stream(options_.modulePath, std::ios::ate | std::ios::binary); in StartAbility()
224 HILOG_ERROR("Failed to open: %{public}s", options_.modulePath.c_str()); in StartAbility()
238 stageContext_->SetOptions(options_); in StartAbility()
239 stageContext_->SetConfiguration(options_.configuration); in StartAbility()
247 abilityPath_ = BUNDLE_INSTALL_PATH + options_.moduleName + "/" + abilitySrcPath; in StartAbility()
270 if (options_.hapModuleInfo.srcEntrance.empty()) { in LoadAbilityStage()
279 std::string srcEntrance = options_.hapModuleInfo.srcEntrance; in LoadAbilityStage()
284 auto moduleSrcPath = BUNDLE_INSTALL_PATH + options_.moduleName + "/" + srcEntrance; in LoadAbilityStage()
[all …]
Dability_context.cpp45 return options_; in GetOptions()
50 options_ = options; in SetOptions()
53 abilityInfo_->bundleName = options_.bundleName; in SetOptions()
54 abilityInfo_->moduleName = options_.moduleName; in SetOptions()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select/
Dselect_pattern.cpp79 CHECK_NULL_VOID(!options_.empty()); in ShowSelectMenu()
229 auto newSelected = pattern->options_[index]->GetPattern<OptionPattern>(); in CreateSelectedCallback()
236 auto newSelected = pattern->options_[index]->GetPattern<OptionPattern>(); in CreateSelectedCallback()
241 for (auto&& option : options_) { in CreateSelectedCallback()
315 if (index >= options_.size() || index < 0) { in SetSelected()
328 options_.push_back(option); in AddOptionNode()
450 for (size_t i = 0; i < options_.size(); ++i) { in SetOptionBgColor()
454 auto pattern = options_[i]->GetPattern<OptionPattern>(); in SetOptionBgColor()
463 for (size_t i = 0; i < options_.size(); ++i) { in SetOptionFontSize()
467 auto pattern = options_[i]->GetPattern<OptionPattern>(); in SetOptionFontSize()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components/picker/
Dpicker_column_component.h53 options_.clear(); in ClearOption()
58 options_.emplace_back(value); in AppendOption()
63 return options_.size(); in GetOptionCount()
72 return options_[index]; in GetOption()
252 std::vector<std::string> options_; variable
Drender_picker_column.cpp85 for (const auto& option : options_) { in HandleFocus()
449 options_.emplace_back(AceType::DynamicCast<RenderPickerOption>(render)); in GetRenders()
472 options_.clear(); in GetRenders()
482 options_.clear(); in ClearRenders()
495 uint32_t showOptionCount = options_.size(); in FlushCurrentOptions()
503 options_[index]->UpdateValue(optionIndex, ""); in FlushCurrentOptions()
509 options_[index]->UpdateValue(optionIndex, optionText); in FlushCurrentOptions()
521 uint32_t showOptionCount = options_.size(); in NotLoopOptions()
544 for (const auto& option : options_) { in ScrollOption()
Drender_picker_column.h113 return options_; in GetOptions()
147 std::vector<RefPtr<RenderPickerOption>> options_; variable
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/
Dmenu_pattern.h172 options_.emplace_back(option); in AddOptionNode()
177 if (options_.empty()) { in PopOptionNode()
181 options_.pop_back(); in PopOptionNode()
186 return options_; in GetOptions()
256 std::vector<RefPtr<FrameNode>> options_; variable
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/
Dtextpicker_column_pattern.h163 return options_.size(); in GetOptionCount()
172 return options_[index].text_; in GetOption()
177 options_.clear(); in SetOptions()
179 options_.emplace_back(content); in SetOptions()
185 options_.clear(); in ClearOptions()
351 std::vector<NG::RangeContent> options_; variable
Dtextpicker_pattern.h133 options_.clear(); in ClearOption()
138 options_.emplace_back(value); in AppendOption()
143 return options_.size(); in GetOptionCount()
154 return options_[index].text_; in GetOption()
336 std::vector<NG::RangeContent> options_; variable
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/
Ddatepicker_pattern.cpp1402 options_[yearColumn].clear(); in LunarColumnsBuilding()
1407 datePickerColumnPattern->SetCurrentIndex(options_[yearColumn].size()); in LunarColumnsBuilding()
1410 options_[yearColumn].emplace_back(yearTextValue); in LunarColumnsBuilding()
1415 options_[monthColumn].clear(); in LunarColumnsBuilding()
1417 options_[monthColumn].resize(startMonth - 1, ""); in LunarColumnsBuilding()
1424 datePickerColumnPattern->SetCurrentIndex(options_[monthColumn].size()); in LunarColumnsBuilding()
1427 options_[monthColumn].emplace_back(monthTextValue); in LunarColumnsBuilding()
1433 datePickerColumnPattern->SetCurrentIndex(options_[monthColumn].size()); in LunarColumnsBuilding()
1436 options_[monthColumn].emplace_back(monthTextValue); in LunarColumnsBuilding()
1440 options_[dayColumn].clear(); in LunarColumnsBuilding()
[all …]
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
Dinput_button_component.h36 options_(options), in InputButtonComponent()
70 jerry_value_t options_; variable
Dclock_hand_component.cpp32 options_(options), in ClockHandComponent()
217 if (jerry_value_is_undefined(options_)) { in GetStringAttrByName()
224 jerry_value_t attrsPropValue = jerry_get_property(options_, attrsPropName); in GetStringAttrByName()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
Dbindings_implementation.h41 IFunctionBinding(const char* name, MethodOptions options) : name_(name), options_(options) {} in IFunctionBinding()
51 return options_; in Options()
56 MethodOptions options_; variable
/foundation/distributeddatamgr/preferences/frameworks/native/src/
Dpreferences_impl.cpp86 PreferencesImpl::PreferencesImpl(const Options &options) : loaded_(false), options_(options) in PreferencesImpl()
142 pref->ReadSettingXml(pref->options_.filePath, pref->map_); in LoadFromDisk()
162 if (pref->WriteSettingXml(pref->options_.filePath, mcr->writeToDiskMap_)) { in WriteToDiskFile()
440 if (options_.dataGroupId.empty()) { in MakeUri()
441 uriStr = STR_SCHEME + options_.bundleName + STR_SLASH + options_.filePath; in MakeUri()
443 uriStr = STR_SCHEME + options_.dataGroupId + STR_SLASH + options_.filePath; in MakeUri()
/foundation/communication/netstack/frameworks/js/napi/tls/include/context/
Dtls_extra_context.h38 Socket::TCPExtraOptions options_;
/foundation/communication/netstack/frameworks/js/napi/socket/async_context/include/
Dtcp_server_extra_context.h45 TCPExtraOptions options_; variable
Dtcp_extra_context.h45 TCPExtraOptions options_; variable
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/
Ddevice_kvstore_test.cpp43 static Options options_; member in DeviceKvStoreTest
58 Options DeviceKvStoreTest::options_; member in DeviceKvStoreTest
64 options_.area = EL1; in SetUpTestCase()
65 options_.baseDir = std::string("/data/service/el1/public/database/odmf"); in SetUpTestCase()
66 mkdir(options_.baseDir.c_str(), (S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH)); in SetUpTestCase()
70 status_ = manager.GetSingleKvStore(options_, appId, storeId, kvStore_); in SetUpTestCase()
80 manager.DeleteAllKvStore(appId, options_.baseDir); in TearDownTestCase()
273 if (options_.baseDir.empty()) {
329 if (options_.baseDir.empty()) {
723 Status target = options_.baseDir.empty() ? Status::SUCCESS : Status::INVALID_ARGUMENT;
[all …]

123