/base/customization/enterprise_device_management/test/unittest/interface/plugin_kits/ |
H A D | policy_serializer_test.cpp | 48 bool boolValue = false; in HWTEST_F() local 49 ASSERT_FALSE(serializer->Deserialize("", boolValue)); in HWTEST_F() 50 ASSERT_TRUE(serializer->Deserialize("true", boolValue)); in HWTEST_F() 51 ASSERT_EQ(boolValue, true); in HWTEST_F() 52 ASSERT_FALSE(serializer->Deserialize("truee", boolValue)); in HWTEST_F() 56 ASSERT_TRUE(serializer->GetPolicy(messageParcel1, boolValue)); in HWTEST_F() 57 ASSERT_EQ(boolValue, false); in HWTEST_F() 60 boolValue = true; in HWTEST_F() 61 ASSERT_TRUE(serializer->WritePolicy(messageParcel2, boolValue)); in HWTEST_F() 65 boolValue in HWTEST_F() [all...] |
/base/location/frameworks/js/napi/notification/src/ |
H A D | notification_napi_convert_liveview.cpp | 229 bool boolValue = false; in GetNotificationLocalLiveViewProgress() local 277 napi_get_value_bool(env, result, &boolValue); in GetNotificationLocalLiveViewProgress() 278 progress.SetIsPercentage(boolValue); in GetNotificationLocalLiveViewProgress() 279 LBSLOGD(NAPI_UTILS, "progress isPercentage = %{public}d", boolValue); in GetNotificationLocalLiveViewProgress() 295 bool boolValue = false; in GetNotificationLocalLiveViewTime() local 331 napi_get_value_bool(env, result, &boolValue); in GetNotificationLocalLiveViewTime() 332 time.SetIsCountDown(boolValue); in GetNotificationLocalLiveViewTime() 333 LBSLOGD(NAPI_UTILS, "time isCountDown = %{public}d", boolValue); in GetNotificationLocalLiveViewTime() 344 napi_get_value_bool(env, result, &boolValue); in GetNotificationLocalLiveViewTime() 345 time.SetIsPaused(boolValue); in GetNotificationLocalLiveViewTime() [all...] |
/base/telephony/core_service/frameworks/native/src/ |
H A D | operator_config_types.cpp | 89 if (!parcel.WriteInt32(boolValue.size())) { in MarshallingBoolMap() 92 auto valueIt = boolValue.begin(); in MarshallingBoolMap() 93 while (valueIt != boolValue.end()) { in MarshallingBoolMap() 286 boolValue.clear(); in ReadFromBoolMap() 295 boolValue[first] = second; in ReadFromBoolMap()
|
H A D | resource_utils.cpp | 417 bool boolValue = false; in SaveAllValue() local 434 if (GetBooleanByName(iter.first.c_str(), boolValue)) { in SaveAllValue() 435 mapResourceValues_[iter.first] = boolValue; in SaveAllValue()
|
/base/print/print_fwk/frameworks/helper/scan_helper/src/ |
H A D | scan_option_value.cpp | 87 void ScanOptionValue::SetBoolValue(const bool &boolValue) in SetBoolValue() argument 89 boolValue_ = boolValue; in SetBoolValue()
|
H A D | scan_option_value_helper.cpp | 27 static constexpr const char *PARAM_SCAN_OPTION_BOOL_VALUE = "boolValue"; 102 bool boolValue = NapiScanUtils::GetBooleanProperty(env, jsValue, PARAM_SCAN_OPTION_BOOL_VALUE); in BuildFromJs() local 103 nativeObj->SetBoolValue(boolValue); in BuildFromJs()
|
/base/inputmethod/imf/common/src/ |
H A D | itypes_util.cpp | 433 auto boolValue = std::get_if<bool>(&input); in Marshalling() local 434 if (boolValue != nullptr) { in Marshalling() 435 return data.WriteBool(*boolValue); in Marshalling() 456 bool boolValue = false; in Unmarshalling() local 457 res = data.ReadBool(boolValue); in Unmarshalling() 458 output.emplace<bool>(boolValue); in Unmarshalling()
|
/base/telephony/cellular_data/services/src/ |
H A D | data_connection_manager.cpp | 335 if (operatorConfig.boolValue.find(KEY_BANDWIDTH_SOURCE_USE_MODEM_BOOL) != operatorConfig.boolValue.end()) { in GetDefaultBandWidthsConfig() 336 bandwidthSourceModem_ = operatorConfig.boolValue[KEY_BANDWIDTH_SOURCE_USE_MODEM_BOOL]; in GetDefaultBandWidthsConfig() 338 if (operatorConfig.boolValue.find(KEY_UPLINK_BANDWIDTH_NR_NSA_USE_LTE_VALUE_BOOL) != in GetDefaultBandWidthsConfig() 339 operatorConfig.boolValue.end()) { in GetDefaultBandWidthsConfig() 340 uplinkUseLte_ = operatorConfig.boolValue[KEY_UPLINK_BANDWIDTH_NR_NSA_USE_LTE_VALUE_BOOL]; in GetDefaultBandWidthsConfig()
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | common_convert_liveview.cpp | 678 bool boolValue = false; in GetNotificationLocalLiveViewProgress() local 726 napi_get_value_bool(env, result, &boolValue); in GetNotificationLocalLiveViewProgress() 727 progress.SetIsPercentage(boolValue); in GetNotificationLocalLiveViewProgress() 728 ANS_LOGD("progress isPercentage = %{public}d", boolValue); in GetNotificationLocalLiveViewProgress() 744 bool boolValue = false; in GetNotificationLocalLiveViewTime() local 780 napi_get_value_bool(env, result, &boolValue); in GetNotificationLocalLiveViewTime() 781 time.SetIsCountDown(boolValue); in GetNotificationLocalLiveViewTime() 782 ANS_LOGD("time isCountDown = %{public}d", boolValue); in GetNotificationLocalLiveViewTime() 793 napi_get_value_bool(env, result, &boolValue); in GetNotificationLocalLiveViewTime() 794 time.SetIsPaused(boolValue); in GetNotificationLocalLiveViewTime() [all...] |
/base/print/print_fwk/frameworks/helper/scan_helper/include/ |
H A D | scan_option_value.h | 42 void SetBoolValue(const bool &boolValue);
|
/base/useriam/user_auth_framework/test/unittest/services/src/ |
H A D | attributes_test.cpp | 76 bool boolValue; in HWTEST_F() local 77 EXPECT_TRUE(attrs2.GetBoolValue(Attributes::ATTR_RESULT_CODE, boolValue)); in HWTEST_F() 78 EXPECT_EQ(boolValue, true); in HWTEST_F() 80 EXPECT_TRUE(attrs2.GetBoolValue(Attributes::ATTR_SIGNATURE, boolValue)); in HWTEST_F() 81 EXPECT_EQ(boolValue, false); in HWTEST_F()
|
/base/usb/usb_manager/interfaces/kits/js/napi/include/ |
H A D | napi_util.h | 43 static void SetValueBool(const napi_env &env, std::string fieldStr, const bool boolValue, napi_value &result);
|
/base/telephony/call_manager/frameworks/js/napi/src/ |
H A D | napi_call_manager_utils.cpp | 275 bool boolValue = false; in GetBoolProperty() local 279 napi_status getIntStatus = napi_get_value_bool(env, value, &boolValue); in GetBoolProperty() 281 return boolValue; in GetBoolProperty() 285 return boolValue; in GetBoolProperty()
|
/base/hiviewdfx/hiview/base/utility/test/unittest/common/ |
H A D | adapter_utility_ohos_test.cpp | 545 bool boolValue = false; in HWTEST_F() local 546 ASSERT_TRUE(CJsonUtil::GetBoolValue(jsonRoot, "BOOL", boolValue)); in HWTEST_F() 547 ASSERT_TRUE(boolValue); in HWTEST_F() 548 ASSERT_FALSE(CJsonUtil::GetBoolValue(nullptr, "BOOL", boolValue)); in HWTEST_F() 549 ASSERT_FALSE(CJsonUtil::GetBoolValue(jsonRoot, "BOOL_NOT_SET", boolValue)); in HWTEST_F()
|
/base/telephony/call_manager/test/unittest/call_manager_gtest/src/ |
H A D | call_manager2_gtest.cpp | 213 bool boolValue = false; in HWTEST_F() local 214 ASSERT_EQ(client->CanSetCallTransferTime(SIM1_SLOTID, boolValue), TELEPHONY_ERR_UNINIT); in HWTEST_F() 219 ASSERT_EQ(client->IsRinging(boolValue), TELEPHONY_ERR_UNINIT); in HWTEST_F() 233 bool boolValue = false; in HWTEST_F() local 235 ASSERT_EQ(client->IsNewCallAllowed(boolValue), TELEPHONY_ERR_UNINIT); in HWTEST_F() 236 ASSERT_EQ(client->IsInEmergencyCall(boolValue), TELEPHONY_ERR_UNINIT); in HWTEST_F() 237 ASSERT_EQ(client->IsEmergencyPhoneNumber(str, SIM1_SLOTID, boolValue), TELEPHONY_ERR_UNINIT); in HWTEST_F() 259 ASSERT_EQ(client->IsImsSwitchEnabled(SIM1_SLOTID, boolValue), TELEPHONY_ERR_UNINIT); in HWTEST_F()
|
/base/telephony/core_service/interfaces/innerkits/include/ |
H A D | operator_config_types.h | 141 std::map<std::string, bool> boolValue {};
|
/base/telephony/call_manager/test/unittest/distributed_communication_test/src/ |
H A D | distributed_data_test.cpp | 386 bool boolValue = false; in HWTEST_F() local 387 EXPECT_FALSE(controller->GetBoolValue(msg, name, boolValue)); in HWTEST_F() 391 EXPECT_TRUE(controller->GetBoolValue(msg, name, boolValue)); in HWTEST_F()
|
/base/telephony/core_service/services/sim/src/ |
H A D | operator_config_cache.cpp | 77 opc_.boolValue.clear(); in ClearMemoryCache() 177 for (const auto &it : from.boolValue) { in CopyOperatorConfig() 178 to.boolValue[it.first] = it.second; in CopyOperatorConfig()
|
H A D | operator_file_parser.cpp | 204 opc.boolValue[value->string] = true; in ParseOperatorConfigFromJson() 207 opc.boolValue[value->string] = false; in ParseOperatorConfigFromJson()
|
/base/usb/usb_manager/interfaces/kits/js/napi/src/ |
H A D | napi_util.cpp | 235 void NapiUtil::SetValueBool(const napi_env &env, std::string fieldStr, const bool boolValue, napi_value &result) in SetValueBool() argument 238 napi_get_boolean(env, boolValue, &value); in SetValueBool()
|
/base/inputmethod/imf/frameworks/js/napi/inputmethodclient/ |
H A D | js_utils.cpp | 423 auto boolValue = std::get_if<bool>(&iter.second); in GetJsPrivateCommand() local 424 if (boolValue != nullptr) { in GetJsPrivateCommand() 425 NAPI_CALL(env, napi_get_boolean(env, *boolValue, &value)); in GetJsPrivateCommand()
|
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/ |
H A D | napi_util.cpp | 359 napi_value boolValue = nullptr;
in CreateBoolean() local 360 if (napi_get_boolean(env, bValue, &boolValue) != napi_ok) {
in CreateBoolean() 364 return boolValue;
in CreateBoolean()
|
/base/web/webview/interfaces/kits/napi/common/ |
H A D | napi_parse_utils.cpp | 295 bool boolValue; in ParseBoolean() local 296 napi_get_value_bool(env, argv, &boolValue); in ParseBoolean() 297 outValue = boolValue; in ParseBoolean()
|
/base/telephony/core_service/services/network_search/src/ |
H A D | operator_name.cpp | 660 if (operatorConfig.boolValue.find(KEY_ENABLE_OPERATOR_NAME_CUST_BOOL) != operatorConfig.boolValue.end()) { in UpdateOperatorConfig() 661 enableCust_ = operatorConfig.boolValue[KEY_ENABLE_OPERATOR_NAME_CUST_BOOL]; in UpdateOperatorConfig()
|
/base/web/webview/interfaces/kits/napi/webdatabase/ |
H A D | napi_geolocation_permission.cpp | 119 bool boolValue; in GetBooleanPara() local 120 napi_get_value_bool(env, argv, &boolValue); in GetBooleanPara() 121 outValue = boolValue; in GetBooleanPara()
|