/foundation/arkui/ace_engine/frameworks/core/common/recorder/ |
H A D | event_config.cpp | 62 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 D | stage_app_info.cpp | 32 debug_ = root->GetBool("debug", false); in Parse() 33 distributedNotificationEnabled_ = root->GetBool("distributedNotificationEnabled", true); in Parse()
|
/foundation/multimodalinput/input/service/module_loader/src/ |
H A D | multimodal_input_preferences_manager.cpp | 98 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 D | preferences_test.cpp | 247 * @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 D | TestJsonHelper.cpp | 128 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 D | stage_card_parser.cpp | 64 isDefault_ = formConfig->GetBool("updateEnabled", true); in Parse() 69 updateEnabled_ = formConfig->GetBool("updateEnabled", true); in Parse()
|
/foundation/arkui/ace_engine/test/unittest/base/ |
H A D | node_object_test.cpp | 79 EXPECT_EQ(nodeObject->GetBool("bool", true), false); in HWTEST_F() 80 EXPECT_EQ(nodeObject->GetBool("", true), true); in HWTEST_F()
|
H A D | uobject_test.cpp | 83 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 D | cloud_pref_impl.cpp | 139 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 D | node_object.cpp | 36 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 D | json_util.h | 50 bool GetBool() const; 51 bool GetBool(const std::string& key, bool defaultValue = false) const override;
|
H A D | node_object.h | 30 bool GetBool(const std::string& key, bool defaultValue = false) const override;
|
H A D | json_util.cpp | 74 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 D | ext_napi_utils.h | 45 static bool GetBool(napi_env env, napi_value value);
|
/foundation/arkui/ace_engine/frameworks/bridge/common/manifest/ |
H A D | manifest_window.cpp | 54 windowConfig_.autoDesignWidth = window->GetBool("autoDesignWidth", false); in WindowParse()
|
H A D | manifest_parser.cpp | 57 webFeature_ = rootJson->GetBool("webFeature", false); in Parse()
|
/foundation/multimedia/image_effect/interfaces/inner_api/native/utils/ |
H A D | effect_json_helper.h | 54 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 D | thp_extra_manager_impl.cpp | 65 enable_ = hotzone->GetBool("enable", false); in Init()
|
/foundation/arkui/ace_engine/interfaces/inner_api/ace/ |
H A D | serializeable_object.h | 33 virtual bool GetBool(const std::string& key, bool defaultValue = false) const = 0;
|
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_sa/mock/ |
H A D | cloud_pref_impl_mock.cpp | 58 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 D | cloud_pref_impl.h | 38 void GetBool(const std::string& key, bool& value);
|
/foundation/filemanagement/dfs_service/test/unittests/utils/preference/ |
H A D | cloud_pref_impl_test.cpp | 37 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 D | swiper_paint_property.cpp | 44 UpdateAutoPlay(json->GetBool("autoPlay")); in FromJson()
|
/foundation/barrierfree/accessibility/services/aams/test/mock/include/ |
H A D | mock_preferences.h | 36 bool GetBool(const std::string &key, const bool &defValue = {}) override;
|
/foundation/arkui/ace_engine/component_ext/movingphoto/ |
H A D | movingphoto_napi.cpp | 105 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()
|