Lines Matching defs:std

37 std::tuple<int32_t, std::string> GetInstancePath(OHOS::AbilityRuntime::Context* context, const std::string &name,
38 const std::string &dataGroupId)
40 std::string path;
46 auto tempContext = std::make_shared<HelperAysncContext>();
49 std::string preferencesDir;
59 const std::string& name, const std::string& dataGroupId, int32_t* errCode)
86 int32_t PreferencesImpl::DeletePreferences(OHOS::AbilityRuntime::Context* context, const std::string &name,
87 const std::string &dataGroupId)
100 int32_t PreferencesImpl::RemovePreferencesFromCache(OHOS::AbilityRuntime::Context* context, const std::string &name,
101 const std::string &dataGroupId)
134 int32_t PreferencesImpl::Delete(const std::string &key)
144 bool PreferencesImpl::HasKey(const std::string &key)
166 static bool IsSameFunction(const std::function<void(std::string)> *f1, const std::function<void(std::string)> *f2)
171 RegisterMode PreferencesImpl::ConvertToRegisterMode(const std::string &mode)
189 preferencesValue = NativePreferences::PreferencesValue(std::string(value.string));
197 std::vector<bool> bools = std::vector<bool>();
205 std::vector<double> doubles = std::vector<double>();
213 std::vector<std::string> strings = std::vector<std::string>();
261 static CArrDouble VectorToDoubleArray(const std::vector<double> &doubles, int32_t &code)
278 static CArrBool VectorToBoolArray(std::vector<bool> &bools, int32_t &code)
302 static char** VectorToCharPointer(std::vector<std::string> &vec, int32_t &code)
324 static CArrStr VectorToStringArray(std::vector<std::string> &strings, int32_t &code)
339 v.integer = (int64_t)std::get<int>(pValue.value_);
342 v.integer = std::get<int64_t>(pValue.value_);
345 v.float64 = (double)std::get<float>(pValue.value_);
348 v.float64 = std::get<double>(pValue.value_);
351 auto pValueStr = std::get<std::string>(pValue.value_);
356 v.boolean = std::get<bool>(pValue.value_);
359 auto boolVector = std::get<std::vector<bool>>(pValue.value_);
363 auto doubleVector = std::get<std::vector<double>>(pValue.value_);
367 auto stringVector = std::get<std::vector<std::string>>(pValue.value_);
376 static ValueTypes NativeValuesToCValueTypes(const std::map<std::string, PreferencesValue> &objects, int32_t &code)
417 ValueType PreferencesImpl::Get(const std::string &key, const ValueType &defValue)
432 int32_t PreferencesImpl::Put(const std::string &key, const ValueType &value)
455 int32_t PreferencesImpl::RegisterObserver(const std::string &mode, std::function<void(std::string)> *callback,
456 const std::function<void(std::string)>& callbackRef)
458 std::lock_guard<std::mutex> lck(listMutex_);
459 auto observer = std::make_shared<CJPreferencesObserver>(callback, callbackRef);
474 int32_t PreferencesImpl::UnRegisterObserver(const std::string &mode, std::function<void(std::string)> *callback)
476 std::lock_guard<std::mutex> lck(listMutex_);
498 int32_t PreferencesImpl::UnRegisteredAllObservers(const std::string &mode)
500 std::lock_guard<std::mutex> lck(listMutex_);
519 CJPreferencesObserver::CJPreferencesObserver(std::function<void(std::string)> *callback,
520 const std::function<void(std::string)>& callbackRef)
529 void CJPreferencesObserver::OnChange(const std::string &key)