/foundation/barrierfree/accessibility/services/aams/test/mock/src/ |
D | mock_preferences.cpp | 25 PreferencesValue MockPreferences::Get(const std::string &key, const PreferencesValue &defValue) in Get() argument 28 (void)defValue; in Get() 37 int MockPreferences::GetInt(const std::string &key, const int &defValue) in GetInt() argument 40 (void)defValue; in GetInt() 44 std::string MockPreferences::GetString(const std::string &key, const std::string &defValue) in GetString() argument 47 (void)defValue; in GetString() 51 bool MockPreferences::GetBool(const std::string &key, const bool &defValue) in GetBool() argument 54 (void)defValue; in GetBool() 58 float MockPreferences::GetFloat(const std::string &key, const float &defValue) in GetFloat() argument 61 (void)defValue; in GetFloat() [all …]
|
/foundation/distributeddatamgr/preferences/frameworks/native/include/ |
D | preferences_impl.h | 54 PreferencesValue Get(const std::string &key, const PreferencesValue &defValue) override; 58 int GetInt(const std::string &key, const int &defValue) override in GetInt() argument 60 PreferencesValue preferencesValue = Get(key, defValue); in GetInt() 62 return defValue; in GetInt() 67 std::string GetString(const std::string &key, const std::string &defValue) override in GetString() argument 69 PreferencesValue preferencesValue = Get(key, defValue); in GetString() 71 return defValue; in GetString() 76 bool GetBool(const std::string &key, const bool &defValue) override in GetBool() argument 78 PreferencesValue preferencesValue = Get(key, defValue); in GetBool() 80 return defValue; in GetBool() [all …]
|
/foundation/barrierfree/accessibility/services/aams/test/mock/include/ |
D | mock_preferences.h | 28 PreferencesValue Get(const std::string &key, const PreferencesValue &defValue) override; 32 int GetInt(const std::string &key, const int &defValue = {}) override; 34 std::string GetString(const std::string &key, const std::string &defValue = {}) override; 36 bool GetBool(const std::string &key, const bool &defValue = {}) override; 38 float GetFloat(const std::string &key, const float &defValue = {}) override; 40 double GetDouble(const std::string &key, const double &defValue = {}) override; 42 int64_t GetLong(const std::string &key, const int64_t &defValue = {}) override;
|
/foundation/filemanagement/dfs_service/test/mock/ |
D | preference_helper_mock.cpp | 25 MOCK_METHOD2(Get, PreferencesValue(const std::string &key, const PreferencesValue &defValue)); 27 MOCK_METHOD2(GetInt, int(const std::string &key, const int &defValue)); 28 MOCK_METHOD2(GetString, std::string(const std::string &key, const std::string &defValue)); 29 MOCK_METHOD2(GetBool, bool(const std::string &key, const bool &defValue)); 30 MOCK_METHOD2(GetFloat, float(const std::string &key, const float &defValue)); 31 MOCK_METHOD2(GetDouble, double(const std::string &key, const double &defValue)); 32 MOCK_METHOD2(GetLong, int64_t(const std::string &key, const int64_t &defValue));
|
/foundation/distributeddatamgr/preferences/interfaces/inner_api/include/ |
D | preferences.h | 80 virtual PreferencesValue Get(const std::string &key, const PreferencesValue &defValue) = 0; 104 virtual int GetInt(const std::string &key, const int &defValue = {}) = 0; 116 virtual std::string GetString(const std::string &key, const std::string &defValue = {}) = 0; 128 virtual bool GetBool(const std::string &key, const bool &defValue = {}) = 0; 140 virtual float GetFloat(const std::string &key, const float &defValue = {}) = 0; 152 virtual double GetDouble(const std::string &key, const double &defValue = {}) = 0; 164 virtual int64_t GetLong(const std::string &key, const int64_t &defValue = {}) = 0;
|
/foundation/arkui/ace_engine/frameworks/bridge/codec/ |
D | codec_data.h | 136 bool GetBoolValue(bool defValue = false) const 138 …e_ == BufferDataType::TYPE_TRUE) ? true : (type_ == BufferDataType::TYPE_FALSE) ? false : defValue; 140 int32_t GetIntValue(int32_t defValue = 0) const 142 return IsInt() ? std::get<int32_t>(data_) : defValue; 144 int64_t GetLongValue(int64_t defValue = 0) const 146 return IsLong() ? std::get<int64_t>(data_) : IsInt() ? std::get<int32_t>(data_) : defValue; 148 double GetDoubleValue(double defValue = 0.0) const 151 … : IsLong() ? std::get<int64_t>(data_) : IsInt() ? std::get<int32_t>(data_) : defValue; 179 int32_t GetFunctionValue(int32_t defValue = 0) const 181 return IsFunction() ? std::get<int32_t>(data_) : defValue;
|
/foundation/distributeddatamgr/preferences/frameworks/js/napi/storage/src/ |
D | napi_storage.cpp | 40 PreferencesValue defValue = PreferencesValue(static_cast<int>(0)); member 311 asyncContext->defValue = number; in ParseDefValue() 327 asyncContext->defValue = str; in ParseDefValue() 336 asyncContext->defValue = bValue; in ParseDefValue() 359 if (context->defValue.IsBool()) { in GetValue() 360 bool tmpValue = (bool)obj->value_->GetBool(context->key, context->defValue); in GetValue() 361 context->defValue = PreferencesValue(tmpValue); in GetValue() 362 } else if (context->defValue.IsString()) { in GetValue() 363 std::string tmpValue = obj->value_->GetString(context->key, context->defValue); in GetValue() 364 context->defValue = PreferencesValue(tmpValue); in GetValue() [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/common/ |
D | common_def.h | 60 …const std::unique_ptr<std::function<R(Args...)>>& (C::*getMethod)() const, R defValue, const Args&… in ResumeEventCallback() argument 63 return (funcPtr && (*funcPtr)) ? (*funcPtr)(args...) : defValue; in ResumeEventCallback()
|
/foundation/communication/netmanager_base/frameworks/js/napi/common/ |
D | napi_common.h | 75 const std::string &defValue = ""); 79 const int32_t &defValue = 0); 81 const int64_t &defValue = 0);
|
D | napi_common.cpp | 143 napi_env env, napi_value napiValue, const std::string &name, const std::string &defValue) in GetNapiStringValue() argument 149 return defValue; in GetNapiStringValue() 177 napi_env env, napi_value napiValue, const std::string &name, const int32_t &defValue) in GetNapiInt32Value() argument 187 return defValue; in GetNapiInt32Value() 191 napi_env env, napi_value napiValue, const std::string &name, const int64_t &defValue) in GetNapiInt64Value() argument 201 return defValue; in GetNapiInt64Value()
|
/foundation/arkui/ace_engine/frameworks/core/components/common/layout/ |
D | screen_system_manager.h | 115 ArrayByScreenType(const T& defValue) in ArrayByScreenType() argument 117 std::fill(values_.begin(), values_.end(), defValue); in ArrayByScreenType()
|
/foundation/distributeddatamgr/preferences/frameworks/js/napi/preferences/src/ |
D | napi_preferences.cpp | 40 PreferencesValue defValue = PreferencesValue(static_cast<int64_t>(0)); member 156 int32_t rc = JSUtils::Convert2NativeValue(env, jsVal, context->defValue.value_); in ParseDefValue() 218 context->defValue = obj->value_->Get(context->key, context->defValue); in GetValue() 222 if (context->defValue.IsLong()) { in GetValue() 226 result = JSUtils::Convert2JSValue(env, context->defValue.value_); in GetValue() 249 context->defValue = proxy->value_->Get(context->key, context->defValue); in GetValueSync() 251 if (context->defValue.IsLong()) { in GetValueSync() 255 return JSUtils::Convert2JSValue(env, context->defValue.value_); in GetValueSync() 270 return obj->value_->Put(context->key, context->defValue); in SetValue() 296 int errCode = proxy->value_->Put(context->key, context->defValue); in SetValueSync()
|
/foundation/communication/nfc/frameworks/js/napi/tag/ |
D | nfc_napi_tag_utils.h | 167 napi_env env, napi_value napiValue, const std::string &name, const std::string &defValue = ""); 170 …t32Value(napi_env env, napi_value napiValue, const std::string &name, const int32_t &defValue = 0);
|
D | nfc_napi_tag_utils.cpp | 244 napi_env env, napi_value napiValue, const std::string &name, const std::string &defValue) in GetNapiStringValue() argument 250 return defValue; in GetNapiStringValue() 277 …apiInt32Value(napi_env env, napi_value napiValue, const std::string &name, const int32_t &defValue) in GetNapiInt32Value() argument 287 return defValue; in GetNapiInt32Value()
|
/foundation/distributeddatamgr/preferences/test/native/unittest/ |
D | preferences_test.cpp | 779 PreferencesValue defValue(static_cast<int64_t>(0)); variable 780 …erencesValue stringArrayRes = pref1->Get(PreferencesTest::KEY_TEST_STRING_ARRAY_ELEMENT, defValue); 784 …PreferencesValue boolArrayRes = pref1->Get(PreferencesTest::KEY_TEST_BOOL_ARRAY_ELEMENT, defValue); 788 …erencesValue doubleArrayRes = pref1->Get(PreferencesTest::KEY_TEST_DOUBLE_ARRAY_ELEMENT, defValue);
|
/foundation/multimedia/media_library/frameworks/services/media_mtp/src/ |
D | mtp_operation_utils.cpp | 817 …tring MtpOperationUtils::GetPropertyInner(const std::string &property, const std::string &defValue) in GetPropertyInner() argument 819 return OHOS::system::GetParameter(property, defValue); in GetPropertyInner() 822 bool MtpOperationUtils::SetPropertyInner(const std::string &property, const std::string &defValue) in SetPropertyInner() argument 824 return OHOS::system::SetParameter(property, defValue); in SetPropertyInner()
|
/foundation/distributeddatamgr/preferences/frameworks/native/src/ |
D | preferences_impl.cpp | 183 PreferencesValue PreferencesImpl::Get(const std::string &key, const PreferencesValue &defValue) in Get() argument 186 return defValue; in Get() 195 return defValue; in Get()
|
/foundation/multimedia/media_library/frameworks/services/media_mtp/include/ |
D | mtp_operation_utils.h | 62 static std::string GetPropertyInner(const std::string &property, const std::string &defValue);
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
D | js_view_common_def.inl | 161 void JSViewSetProperty(void (C::*setMethod)(V), int32_t param, const T (&enumValues)[N], T defValue) argument 168 T value = defValue;
|
D | js_view_common_def.h | 156 void JSViewSetProperty(void (C::*setMethod)(V), int32_t param, const T (&enumValues)[N], T defValue…
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/mtp_native_test/src/ |
D | mtp_native_test.cpp | 2555 string defValue = "GetPropertyInner"; variable 2556 mtpOperUtils->SetPropertyInner(property, defValue); 2557 mtpOperUtils->GetPropertyInner(property, defValue);
|