Home
last modified time | relevance | path

Searched refs:GetBool (Results 1 - 25 of 95) sorted by relevance

1234

/foundation/arkui/ace_engine/frameworks/core/common/recorder/
H A Devent_config.cpp62 enable_ = jsonObj->GetBool("enable", false); in ParseSwitch()
65 switches_->emplace(EventCategory::CATEGORY_PAGE, switchVal->GetBool("page", false)); in ParseSwitch()
66 switches_->emplace(EventCategory::CATEGORY_COMPONENT, switchVal->GetBool("component", false)); in ParseSwitch()
67 switches_->emplace(EventCategory::CATEGORY_EXPOSURE, switchVal->GetBool("exposure", false)); in ParseSwitch()
68 switches_->emplace(EventCategory::CATEGORY_PAGE_PARAM, switchVal->GetBool("pageParam", false)); in ParseSwitch()
72 EventRecorder::Get().pageEnable_ = globalSwitchVal->GetBool("page", true); in ParseSwitch()
73 EventRecorder::Get().componentEnable_ = globalSwitchVal->GetBool("component", true); in ParseSwitch()
74 EventRecorder::Get().exposureEnable_ = globalSwitchVal->GetBool("exposure", true); in ParseSwitch()
75 EventRecorder::Get().pageParamEnable_ = globalSwitchVal->GetBool("pageParam", true); in ParseSwitch()
/foundation/arkui/ace_engine/adapter/preview/external/ability/stage/
H A Dstage_app_info.cpp32 debug_ = root->GetBool("debug", false); in Parse()
33 distributedNotificationEnabled_ = root->GetBool("distributedNotificationEnabled", true); in Parse()
/foundation/multimodalinput/input/service/module_loader/src/
H A Dmultimodal_input_preferences_manager.cpp98 hoverScrollState_ = mousePref->GetBool(strHoverScrollState_, BOOL_DEFAULT); in GetPreferencesSettings()
100 touchpadTapSwitch_ = touchpadPref->GetBool(strTouchpadTapSwitch_, BOOL_DEFAULT); in GetPreferencesSettings()
103 touchpadPinchSwitch_ = touchpadPref->GetBool(strTouchpadPinchSwitch_, BOOL_DEFAULT); in GetPreferencesSettings()
104 touchpadSwipeSwitch_ = touchpadPref->GetBool(strTouchpadSwipeSwitch_, BOOL_DEFAULT); in GetPreferencesSettings()
106 touchpadScrollSwitch_ = touchpadPref->GetBool(strTouchpadScrollSwitch_, BOOL_DEFAULT); in GetPreferencesSettings()
108 touchpadScrollDirection_ = touchpadPref->GetBool(strTouchpadScrollDirection_, BOOL_DEFAULT); in GetPreferencesSettings()
109 touchpadThreeFingerTapSwitch_ = touchpadPref->GetBool(strTouchpadThreeFingerTapSwitch_, BOOL_DEFAULT); in GetPreferencesSettings()
116 moveEventFilterFlag_ = mousePref->GetBool(strMoveEventFilterFlag_, BOOL_DEFAULT); in GetPreferencesSettings()
/foundation/distributeddatamgr/preferences/test/native/unittest/
H A Dpreferences_test.cpp247 * @tc.desc: normal testcase of GetBool
254 bool ret = pref->GetBool(LONG_KEY + 'x', true); in HWTEST_F()
257 ret = pref->GetBool("", true); in HWTEST_F()
264 ret = pref->GetBool(KEY_TEST_BOOL_ELEMENT, true); in HWTEST_F()
267 ret = pref->GetBool(KEY_TEST_STRING_ELEMENT, true); in HWTEST_F()
393 bool ret3 = pref->GetBool(KEY_TEST_BOOL_ELEMENT, true); in HWTEST_F()
413 bool ret = pref->GetBool(LONG_KEY + 'x', false); in HWTEST_F()
415 ret = pref->GetBool("", false); in HWTEST_F()
422 ret = pref->GetBool(LONG_KEY, false); in HWTEST_F()
424 ret = pref->GetBool(KEY_TEST_BOOL_ELEMEN in HWTEST_F()
[all...]
/foundation/multimedia/image_effect/test/unittest/
H A DTestJsonHelper.cpp128 ASSERT_EQ(values->GetBool(BOOL_TEST), true); in HWTEST_F()
264 ASSERT_DOUBLE_EQ(boolValues[0]->GetBool(), boolValue); in HWTEST_F()
305 ASSERT_EQ(values->GetBool(BOOL_TEST), boolValue); in HWTEST_F()
338 ASSERT_FALSE(stringKeyJsonPtr->GetBool()); in HWTEST_F()
339 ASSERT_EQ(stringKeyJsonPtr->GetBool(INT_TEST, true), true); in HWTEST_F()
346 ASSERT_EQ(root->GetBool(STRING_TEST, true), true); in HWTEST_F()
/foundation/arkui/ace_engine/adapter/preview/osal/
H A Dstage_card_parser.cpp64 isDefault_ = formConfig->GetBool("updateEnabled", true); in Parse()
69 updateEnabled_ = formConfig->GetBool("updateEnabled", true); in Parse()
/foundation/arkui/ace_engine/test/unittest/base/
H A Dnode_object_test.cpp79 EXPECT_EQ(nodeObject->GetBool("bool", true), false); in HWTEST_F()
80 EXPECT_EQ(nodeObject->GetBool("", true), true); in HWTEST_F()
H A Duobject_test.cpp83 EXPECT_EQ(uObject.GetBool("invalidKey"), false); in HWTEST_F()
84 EXPECT_EQ(uObject.GetBool("bool"), false); in HWTEST_F()
/foundation/filemanagement/dfs_service/utils/preference/src/
H A Dcloud_pref_impl.cpp139 void CloudPrefImpl::GetBool(const std::string& key, bool& value) in GetBool() function in OHOS::FileManagement::CloudSync::CloudPrefImpl
145 value = pref_->GetBool(key, false); in GetBool()
/foundation/arkui/ace_engine/frameworks/base/json/
H A Dnode_object.cpp36 object->AddItemToObject(item->GetKey(), item->GetBool()); in FromJsonObject()
58 bool NodeObject::GetBool(const std::string& key, bool defaultValue) const in GetBool() function in OHOS::Ace::NodeObject
62 return uobject_->GetBool(key); in GetBool()
H A Djson_util.h50 bool GetBool() const;
51 bool GetBool(const std::string& key, bool defaultValue = false) const override;
H A Dnode_object.h30 bool GetBool(const std::string& key, bool defaultValue = false) const override;
H A Djson_util.cpp74 bool JsonValue::GetBool() const in GetBool() function in OHOS::Ace::JsonValue
79 bool JsonValue::GetBool(const std::string& key, bool defaultValue) const in GetBool() function in OHOS::Ace::JsonValue
82 return GetValue(key)->GetBool(); in GetBool()
/foundation/arkui/ace_engine/component_ext/ext_common/
H A Dext_napi_utils.h45 static bool GetBool(napi_env env, napi_value value);
/foundation/arkui/ace_engine/frameworks/bridge/common/manifest/
H A Dmanifest_window.cpp54 windowConfig_.autoDesignWidth = window->GetBool("autoDesignWidth", false); in WindowParse()
H A Dmanifest_parser.cpp57 webFeature_ = rootJson->GetBool("webFeature", false); in Parse()
/foundation/multimedia/image_effect/interfaces/inner_api/native/utils/
H A Deffect_json_helper.h54 IMAGE_EFFECT_EXPORT bool GetBool(const std::string &key, bool defaultValue = false);
62 IMAGE_EFFECT_EXPORT bool GetBool();
/foundation/arkui/ace_engine/adapter/ohos/osal/
H A Dthp_extra_manager_impl.cpp65 enable_ = hotzone->GetBool("enable", false); in Init()
/foundation/arkui/ace_engine/interfaces/inner_api/ace/
H A Dserializeable_object.h33 virtual bool GetBool(const std::string& key, bool defaultValue = false) const = 0;
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_sa/mock/
H A Dcloud_pref_impl_mock.cpp58 void CloudPrefImpl::GetBool(const std::string& key, bool& value) in GetBool() function in OHOS::FileManagement::CloudSync::CloudPrefImpl
/foundation/filemanagement/dfs_service/utils/inner_api/
H A Dcloud_pref_impl.h38 void GetBool(const std::string& key, bool& value);
/foundation/filemanagement/dfs_service/test/unittests/utils/preference/
H A Dcloud_pref_impl_test.cpp37 MOCK_METHOD2(GetBool, bool(const std::string &key, const bool &defValue));
619 cloudPrefImpl.GetBool(key, value); in HWTEST_F()
640 cloudPrefImpl.GetBool(key, value); in HWTEST_F()
661 cloudPrefImpl.GetBool(key, value); in HWTEST_F()
682 cloudPrefImpl.GetBool(key, value); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_paint_property.cpp44 UpdateAutoPlay(json->GetBool("autoPlay")); in FromJson()
/foundation/barrierfree/accessibility/services/aams/test/mock/include/
H A Dmock_preferences.h36 bool GetBool(const std::string &key, const bool &defValue = {}) override;
/foundation/arkui/ace_engine/component_ext/movingphoto/
H A Dmovingphoto_napi.cpp105 muted = ExtNapiUtils::GetBool(env, argv[0]); in JsMuted()
352 isAutoPlay = ExtNapiUtils::GetBool(env, argv[PARAM_INDEX_ZERO]); in JsAutoPlay()
368 enabled = ExtNapiUtils::GetBool(env, argv[PARAM_INDEX_ZERO]); in JsEnableAnalyzer()
384 isRepeatPlay = ExtNapiUtils::GetBool(env, argv[PARAM_INDEX_ZERO]); in JsRepeatPlay()

Completed in 10 milliseconds

1234