/ohos5.0/foundation/arkui/ace_engine/test/mock/core/image_provider/ |
H A D | mock_image_cache.cpp | 20 void ImageCache::CacheImage(const std::string& key, const std::shared_ptr<CachedImage>& image) {} in CacheImage() 22 RefPtr<NG::ImageObject> ImageCache::GetCacheImgObjNG(const std::string& key) in GetCacheImgObjNG() 27 void ImageCache::CacheImgObjNG(const std::string& key, const RefPtr<NG::ImageObject>& imgObj) {} in CacheImgObjNG() 34 RefPtr<NG::ImageData> ImageCache::GetCacheImageData(const std::string& key) in GetCacheImageData() 39 void ImageCache::CacheImageData(const std::string& key, const RefPtr<NG::ImageData>& imageData) {} in CacheImageData() 43 void ImageCache::ClearCacheImage(const std::string& key) {} in ClearCacheImage()
|
/ohos5.0/foundation/filemanagement/dfs_service/utils/preference/src/ |
H A D | cloud_pref_impl.cpp | 60 void CloudPrefImpl::SetString(const std::string& key, const std::string& value) in SetString() 70 void CloudPrefImpl::GetString(const std::string& key, std::string &value) in GetString() 79 void CloudPrefImpl::SetLong(const std::string& key, const int64_t value) in SetLong() 89 void CloudPrefImpl::GetLong(const std::string& key, int64_t &value) in GetLong() 98 void CloudPrefImpl::SetInt(const std::string& key, const int value) in SetInt() 108 void CloudPrefImpl::GetInt(const std::string& key, int32_t &value) in GetInt() 117 void CloudPrefImpl::SetBool(const std::string& key, const bool& value) in SetBool() 127 void CloudPrefImpl::GetBool(const std::string& key, bool& value) in GetBool() 146 void CloudPrefImpl::Delete(const std::string& key) in Delete()
|
/ohos5.0/foundation/graphic/graphic_surface/surface/src/ |
H A D | buffer_extra_data_impl.cpp | 41 auto key = parcel.ReadString(); in ReadFromParcel() local 123 GSError BufferExtraDataImpl::ExtraGet(const std::string &key, int32_t &value) const in ExtraGet() argument 128 GSError BufferExtraDataImpl::ExtraGet(const std::string &key, int64_t &value) const in ExtraGet() argument 133 GSError BufferExtraDataImpl::ExtraGet(const std::string &key, double &value) const in ExtraGet() argument 138 GSError BufferExtraDataImpl::ExtraGet(const std::string &key, std::string &value) const in ExtraGet() argument 143 GSError BufferExtraDataImpl::ExtraSet(const std::string &key, int32_t value) in ExtraSet() 148 GSError BufferExtraDataImpl::ExtraSet(const std::string &key, int64_t value) in ExtraSet() 153 GSError BufferExtraDataImpl::ExtraSet(const std::string &key, double value) in ExtraSet() 158 GSError BufferExtraDataImpl::ExtraSet(const std::string &key, const std::string& value) in ExtraSet() 164 GSError BufferExtraDataImpl::ExtraGet(const std::string &key, ExtraDataType type, T &value) const in ExtraGet() argument [all …]
|
/ohos5.0/base/telephony/telephony_data/common/src/ |
H A D | preferences_util.cpp | 39 int PreferencesUtil::SaveString(const std::string &key, const std::string &value) in SaveString() 59 int PreferencesUtil::SaveInt(const std::string &key, int value) in SaveInt() 70 int PreferencesUtil::ObtainInt(const std::string &key, int defValue) in ObtainInt() 79 int PreferencesUtil::SaveBool(const std::string &key, bool value) in SaveBool() 90 bool PreferencesUtil::ObtainBool(const std::string &key, bool defValue) in ObtainBool() 99 int PreferencesUtil::SaveLong(const std::string &key, int64_t value) in SaveLong() 110 int64_t PreferencesUtil::ObtainLong(const std::string &key, int64_t defValue) in ObtainLong() 119 int PreferencesUtil::SaveFloat(const std::string &key, float value) in SaveFloat() 130 float PreferencesUtil::ObtainFloat(const std::string &key, float defValue) in ObtainFloat() 139 bool PreferencesUtil::IsExistKey(const std::string &key) in IsExistKey() [all …]
|
/ohos5.0/base/theme/screenlock_mgr/utils/src/ |
H A D | preferences_util.cpp | 38 int PreferencesUtil::SaveString(const std::string &key, const std::string &value) in SaveString() 58 int PreferencesUtil::SaveInt(const std::string &key, int value) in SaveInt() 69 int PreferencesUtil::ObtainInt(const std::string &key, int defValue) in ObtainInt() 78 int PreferencesUtil::SaveBool(const std::string &key, bool value) in SaveBool() 89 bool PreferencesUtil::ObtainBool(const std::string &key, bool defValue) in ObtainBool() 98 int PreferencesUtil::SaveLong(const std::string &key, int64_t value) in SaveLong() 109 int64_t PreferencesUtil::ObtainLong(const std::string &key, int64_t defValue) in ObtainLong() 118 int PreferencesUtil::SaveFloat(const std::string &key, float value) in SaveFloat() 129 float PreferencesUtil::ObtainFloat(const std::string &key, float defValue) in ObtainFloat() 138 bool PreferencesUtil::IsExistKey(const std::string &key) in IsExistKey() [all …]
|
/ohos5.0/base/telephony/core_service/utils/preferences/src/ |
H A D | tel_profile_util.cpp | 34 int TelProfileUtil::SaveString(const std::string &key, const std::string &value) in SaveString() 54 int TelProfileUtil::SaveInt(const std::string &key, int value) in SaveInt() 65 int TelProfileUtil::ObtainInt(const std::string &key, int defValue) in ObtainInt() 74 int TelProfileUtil::SaveBool(const std::string &key, bool value) in SaveBool() 85 bool TelProfileUtil::ObtainBool(const std::string &key, bool defValue) in ObtainBool() 94 int TelProfileUtil::SaveLong(const std::string &key, int64_t value) in SaveLong() 105 int64_t TelProfileUtil::ObtainLong(const std::string &key, int64_t defValue) in ObtainLong() 114 int TelProfileUtil::SaveFloat(const std::string &key, float value) in SaveFloat() 125 float TelProfileUtil::ObtainFloat(const std::string &key, float defValue) in ObtainFloat() 134 bool TelProfileUtil::IsExistKey(const std::string &key) in IsExistKey() [all …]
|
/ohos5.0/foundation/multimodalinput/input/service/key_command/test/ |
H A D | setting_datashare_test.cpp | 56 std::string key = "settingDateShare"; variable 71 std::string key = "settingDateShare"; variable 87 std::string key = "settingDateShare"; variable 103 std::string key = "settingDateShare"; variable 119 std::string key = "settingDateShare"; variable 133 std::string key = "settingDateShare"; variable 148 std::string key = "settingDateShare"; variable 163 std::string key = "settingDateShare"; variable 181 std::string key = "settingDateShare"; variable 197 std::string key = "SettingObserver"; variable
|
/aosp12/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
H A D | BridgeSharedPreferences.java | 37 public String getString(String key, String defValue) { in getString() 42 public Set<String> getStringSet(String key, Set<String> defValues) { in getStringSet() 47 public int getInt(String key, int defValue) { in getInt() 52 public long getLong(String key, long defValue) { in getLong() 57 public float getFloat(String key, float defValue) { in getFloat() 62 public boolean getBoolean(String key, boolean defValue) { in getBoolean() 67 public boolean contains(String key) { in contains()
|
/ohos5.0/base/security/crypto_framework/test/unittest/src/aes_cipher/ |
H A D | crypto_aes_cipher_test.cpp | 49 HcfSymKey *key = nullptr; variable 111 HcfSymKey *key = nullptr; variable 142 HcfSymKey *key = nullptr; variable 172 HcfSymKey *key = nullptr; variable 198 HcfSymKey *key = nullptr; variable 229 HcfSymKey *key = nullptr; variable 260 HcfSymKey *key = nullptr; variable 285 HcfSymKey *key = nullptr; variable 316 HcfSymKey *key = nullptr; variable 363 HcfSymKey *key = nullptr; variable [all …]
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/configprovider/ |
H A D | SharedPrefConfigProvider.java | 75 String key = intent.getExtras().keySet().iterator().next(); in onHandleIntent() local 80 private void put(String key, Object value) { in put() 97 public void putBoolean(String key, boolean value) { in putBoolean() 101 public void putLong(String key, long value) { in putLong() 105 public void putString(String key, String value) { in putString() 110 public String getString(String key, String defaultValue) { in getString() 117 public long getLong(String key, long defaultValue) { in getLong() 123 public boolean getBoolean(String key, boolean defaultValue) { in getBoolean()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/json/ |
H A D | uobject.cpp | 24 size_t HashItem(const std::string& key, const T& value) in HashItem() 332 void UObject::WriteKV(const std::string& key, size_t value) in WriteKV() 364 void UObject::WriteKV(const std::string& key, bool value) in WriteKV() 460 std::string key = ReadString(keyLen); in ReadKey() local 468 std::string key = ReadKey(); in ReadKV() local 473 std::string key = ReadKey(); in ReadKV() local 477 std::string key = ReadKey(); in ReadKV() local 481 std::string key = ReadKey(); in ReadKV() local 485 std::string key = ReadKey(); in ReadKV() local 489 std::string key = ReadKey(); in ReadKV() local [all …]
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/util/ |
H A D | BugleGservicesImpl.java | 35 private void assertKeyAndWaitForGservices(final String key) { in assertKeyAndWaitForGservices() 40 public long getLong(final String key, final long defaultValue) { in getLong() 46 public int getInt(final String key, final int defaultValue) { in getInt() 52 public boolean getBoolean(final String key, final boolean defaultValue) { in getBoolean() 58 public String getString(final String key, final String defaultValue) { in getString() 64 public float getFloat(final String key, final float defaultValue) { in getFloat()
|
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/utils/common/ |
H A D | json_helper.cpp | 102 EffectJsonPtr EffectJson::GetElement(const std::string &key) in GetElement() 273 bool EffectJson::Put(const std::string &key, int32_t value) in Put() 278 bool EffectJson::Put(const std::string &key, uint32_t value) in Put() 283 bool EffectJson::Put(const std::string &key, float value) in Put() 288 bool EffectJson::Put(const std::string &key, double value) in Put() 294 bool EffectJson::Put(const std::string &key, bool value) in Put() 306 bool EffectJson::Put(const std::string &key, const char *value) in Put() 406 bool EffectJson::Replace(const std::string &key, int32_t value) in Replace() 416 bool EffectJson::Replace(const std::string &key, float value) in Replace() 421 bool EffectJson::Replace(const std::string &key, double value) in Replace() [all …]
|
/ohos5.0/base/powermgr/battery_statistics/test/unittest/include/servicetest/utils/ |
H A D | hisysevent_operation.h | 73 static void AppendData(EventBase &eventBase, const std::string &key, T value) in AppendData() 87 …static void InnerCombine(EventBase &eventBase, const std::string &key, bool value, Types... keyVal… in InnerCombine() 94 …static void InnerCombine(EventBase &eventBase, const std::string &key, const char value, Types... … in InnerCombine() 101 static void InnerCombine(EventBase &eventBase, const std::string &key, in InnerCombine() 109 …static void InnerCombine(EventBase &eventBase, const std::string &key, const short value, Types...… in InnerCombine() 116 static void InnerCombine(EventBase &eventBase, const std::string &key, in InnerCombine() 124 …static void InnerCombine(EventBase &eventBase, const std::string &key, const int value, Types... k… in InnerCombine() 138 …static void InnerCombine(EventBase &eventBase, const std::string &key, const long value, Types... … in InnerCombine() 145 static void InnerCombine(EventBase &eventBase, const std::string &key, in InnerCombine() 161 const std::string &key, const unsigned long long value, Types... keyValues) in InnerCombine() [all …]
|
/ohos5.0/base/security/crypto_framework/test/unittest/src/ |
H A D | crypto_sm4_generator_test.cpp | 78 HcfSymKey *key = nullptr; variable 140 HcfSymKey *key = nullptr; variable 171 HcfSymKey *key = nullptr; variable 197 HcfSymKey *key = nullptr; variable 228 HcfSymKey *key = nullptr; variable 253 HcfSymKey *key = nullptr; variable 284 HcfSymKey *key = nullptr; variable 323 HcfSymKey *key = nullptr; variable 362 HcfSymKey *key = nullptr; variable 407 HcfSymKey *key = nullptr; variable [all …]
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/dfx/test/unittest/fake/hiview/include/ |
H A D | hievent.h | 86 HiEvent& PutBool(const std::string& key, bool value) in PutBool() 96 HiEvent& PutByte(const std::string& key, unsigned char value) in PutByte() 106 HiEvent& PutShort(const std::string& key, short value) in PutShort() 117 HiEvent& PutInt(const std::string& key, int value) in PutInt() 127 HiEvent& PutLong(const std::string& key, long value) in PutLong() 137 HiEvent& PutFloat(const std::string& key, float value) in PutFloat() 147 HiEvent& PutString(const std::string& key, const std::string& value) in PutString() 158 HiEvent& PutHiEventArray(const std::string& key, const std::vector<HiEvent>& value) in PutHiEventArray()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/state_manage/ |
H A D | cj_persistent_storage_ffi.cpp | 27 bool GetValueFromStorage(std::string key, std::string& result) in GetValueFromStorage() 42 void SetValueToStorage(std::string key, std::string value) in SetValueToStorage() 57 NativeOptionCString FfiOHOSAceFrameworkPersistentGetString(const char* key) in FfiOHOSAceFrameworkPersistentGetString() 73 void FfiOHOSAceFrameworkPersistentSetString(const char* key, const char* value, NotifyCallbackStrin… in FfiOHOSAceFrameworkPersistentSetString() 87 NativeOptionInt64 FfiOHOSAceFrameworkPersistentGetInt64(const char* key) in FfiOHOSAceFrameworkPersistentGetInt64() 103 void FfiOHOSAceFrameworkPersistentSetInt64(const char* key, int64_t value, NotifyCallbackInt64 call… in FfiOHOSAceFrameworkPersistentSetInt64() 118 NativeOptionFloat64 FfiOHOSAceFrameworkPersistentGetFloat64(const char* key) in FfiOHOSAceFrameworkPersistentGetFloat64() 134 void FfiOHOSAceFrameworkPersistentSetFloat64(const char* key, double value, NotifyCallbackFloat64 c… in FfiOHOSAceFrameworkPersistentSetFloat64() 149 NativeOptionBool FfiOHOSAceFrameworkPersistentGetBool(const char* key) in FfiOHOSAceFrameworkPersistentGetBool() 165 void FfiOHOSAceFrameworkPersistentSetBool(const char* key, bool value, NotifyCallbackBool callback) in FfiOHOSAceFrameworkPersistentSetBool() [all …]
|
/ohos5.0/base/update/updateservice/foundations/ability/utils/include/ |
H A D | json_builder.h | 31 JsonBuilder &Append(const std::string &key, const uint32_t value) in Append() 36 JsonBuilder &Append(const std::string &key, const int32_t value) in Append() 41 JsonBuilder &Append(const std::string &key, const bool value) in Append() 47 JsonBuilder &Append(const std::string &key, const int64_t value) in Append() 63 JsonBuilder &Append(const std::string &key, const JsonBuilder &jsonBuilder) in Append() 70 JsonBuilder &Append(const std::string &key, const std::vector<JsonBuilder> &valueList) in Append() 95 JsonBuilder &AppendNum(const std::string &key, const std::string &value) in AppendNum()
|
/ohos5.0/base/powermgr/battery_manager/test/unittest/src/ |
H A D | battery_config_test.cpp | 74 std::string key = "soc.warning"; variable 93 std::string key = "temperature.high"; variable 113 std::string key = "temperature.low"; variable 133 std::string key = "soc.shutdown"; variable 152 std::string key = "soc.low"; variable 224 std::string key = "light.high.soc"; variable 245 std::string key = "invalid.key"; variable
|
/aosp12/system/update_engine/common/ |
H A D | prefs.cc | 54 bool PrefsBase::GetString(const string& key, string* value) const { in GetString() argument 78 bool PrefsBase::SetInt64(const string& key, const int64_t value) { in SetInt64() 82 bool PrefsBase::GetBoolean(const string& key, bool* value) const { in GetBoolean() argument 98 bool PrefsBase::SetBoolean(const string& key, const bool value) { in SetBoolean() 106 bool PrefsBase::Delete(const string& key) { in Delete() 124 for (const auto& key : namespace_keys) { in Delete() local 214 bool Prefs::FileStorage::DeleteKey(const string& key) { in DeleteKey() 225 bool Prefs::FileStorage::GetFileNameForKey(const string& key, in GetFileNameForKey() 238 bool MemoryPrefs::MemoryStorage::GetKey(const string& key, in GetKey() 265 bool MemoryPrefs::MemoryStorage::SetKey(const string& key, in SetKey() [all …]
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/subscriber_managers/ |
H A D | published_data_subscriber_manager.cpp | 49 int PublishedDataSubscriberManager::Delete(const PublishedDataKey &key, uint32_t firstCallerTokenId) in Delete() 70 …publishedDataCache_.EraseIf([&callerTokenId, &callerPid](const auto &key, std::vector<ObserverNode… in Delete() 84 int PublishedDataSubscriberManager::Disable(const PublishedDataKey &key, uint32_t firstCallerTokenI… in Disable() 100 int PublishedDataSubscriberManager::Enable(const PublishedDataKey &key, uint32_t firstCallerTokenId) in Enable() 103 publishedDataCache_.ComputeIfPresent(key, [&firstCallerTokenId](const auto &key, in Enable() 104 std::vector<ObserverNode> &value) { in Enable() 123 const PublishedDataKey &key, std::vector<ObserverNode> &val) { in Emit() 144 for (auto &key : keys) { in Emit() local 159 const std::vector<ObserverNode> &val, const PublishedDataKey &key, in PutInto() 178 int PublishedDataSubscriberManager::GetCount(const PublishedDataKey &key) in GetCount() [all …]
|
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/ |
H A D | hks_crypto_hal_api_mbedtls.cpp | 92 HksBlob key = {}; variable 113 HksBlob key = {}; variable 128 HksBlob key = { .size = 0, .data = nullptr }; variable 198 HksBlob key = { .size = 1, .data = buff }; variable 222 HksBlob key = { .size = 1, .data = buff }; variable 291 HksBlob key; variable 339 HksBlob key = { .size = 0, .data = NULL }; variable 374 HksBlob key = { .size = 0, .data = NULL }; variable 394 HksBlob key = { .size = 0, .data = NULL }; variable 439 HksBlob key = { .size = 0, .data = NULL }; variable [all …]
|
H A D | hks_crypto_hal_api_openssl.cpp | 91 HksBlob key = {}; variable 111 HksBlob key = {}; variable 148 HksBlob key = { .size = 0, .data = nullptr }; variable 183 HksBlob key = { .size = 0, .data = nullptr }; variable 218 HksBlob key = { .size = 1, .data = buff }; variable 254 HksBlob key = { .size = 1, .data = buff }; variable 306 HksBlob key = { .size = 0, .data = nullptr }; variable 333 HksBlob key = { .size = 0, .data = nullptr }; variable 491 HksBlob key = { .size = 0, .data = nullptr }; variable 577 HksBlob key = { .size = 0, .data = nullptr }; variable [all …]
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/ |
H A D | SliceBroadcastReceiverTest.java | 84 final String key = "key"; in onReceive_toggleChanged() local 119 final String key = "key"; in toggleUpdate_synchronously_notifyChange_should_be_called() local 150 final String key = "key"; in toggleUpdate_asynchronously_notifyChange_should_not_be_called() local 152 insertSpecialCase(AsyncToggleController.class.getName(), key); in toggleUpdate_asynchronously_notifyChange_should_not_be_called() local 166 final String key = "key"; in onReceive_sliderChanged() local 173 insertSpecialCase(FakeSliderController.class.getName(), key); in onReceive_sliderChanged() local 202 final String key = "key"; in onReceive_invalidController_throwsException() local 251 final String key = "key"; in toggleUpdate_unavailableUriNotified() local 285 final String key = "key"; in sliderUpdate_unavailableUriNotified() local 311 private void insertSpecialCase(String key) { in insertSpecialCase() [all …]
|
H A D | SlicesDatabaseAccessorTest.java | 91 String key = "key"; in testGetSliceDataFromKey_validKey_validSliceReturned() local 111 String key = "key"; in testGetSliceDataFromKey_allowDynamicSummary_validSliceReturned() local 131 String key = "key"; in testGetSliceDataFromKey_invalidKey_errorThrown() local 138 final String key = "key"; in testGetSliceFromUri_validUri_validSliceReturned() local 175 final String key = "oem_key"; in getDescendantUris_platformSlice_doesNotReturnOEMSlice() local 186 final String key = "platform_key"; in getDescendantUris_oemSlice_doesNotReturnPlatformSlice() local 197 final String key = "oem_key"; in getDescendantUris_oemSlice_returnsOEMUriDescendant() local 209 final String key = "platform_key"; in getDescendantUris_platformSlice_returnsPlatformUriDescendant() local 280 String key = "key"; in testGetSliceDataFromKey_defaultUnavailableSlice_validSliceReturned() local 301 String key = "key"; in testGetSliceDataFromKey_customizeSubtitleOfUnavailableSlice_validSliceReturned() local
|