/ohos5.0/base/msdp/device_status/tools/vdev/json/ |
H A D | simulate_keyboard_clicks.json | 6 { "action": "down", "key": 42 }, number 7 { "action": "down", "key": 35 }, number 8 { "action": "up", "key": 35 }, number 9 { "action": "up", "key": 42 }, number 10 { "action": "down", "key": 23 }, number 11 { "action": "up", "key": 23 }, number 12 { "action": "down", "key": 51 }, number 13 { "action": "up", "key": 51 }, number 15 { "action": "up", "key": 57 }, number 18 { "action": "up", "key": 20 }, number [all …]
|
/aosp14/frameworks/base/core/java/android/os/ |
H A D | Bundle.java | 289 public void remove(String key) { in remove() 709 public byte getByte(String key) { in getByte() 734 public char getChar(String key) { in getChar() 759 public short getShort(String key) { in getShort() 784 public float getFloat(String key) { in getFloat() 840 public Size getSize(@Nullable String key) { in getSize() 860 public SizeF getSizeF(@Nullable String key) { in getSizeF() 880 public Bundle getBundle(@Nullable String key) { in getBundle() 1244 public byte[] getByteArray(@Nullable String key) { in getByteArray() 1313 public IBinder getBinder(@Nullable String key) { in getBinder() [all …]
|
H A D | BaseBundle.java | 356 final Object getValue(String key) { in getValue() 713 public Object get(String key) { in get() 749 public void remove(String key) { in remove() 1109 public boolean getBoolean(String key) { in getBoolean() 1174 byte getByte(String key) { in getByte() 1208 char getChar(String key) { in getChar() 1242 short getShort(String key) { in getShort() 1276 public int getInt(String key) { in getInt() 1310 public long getLong(String key) { in getLong() 1344 float getFloat(String key) { in getFloat() [all …]
|
/ohos5.0/base/update/updateservice/services/core/ability/preference/src/ |
H A D | preference_utils_empty.cpp | 32 bool PreferencesUtil::SaveInt(const std::string &key, int value) in SaveInt() 37 bool PreferencesUtil::SaveBool(const std::string &key, bool value) in SaveBool() 42 bool PreferencesUtil::SaveLong(const std::string &key, int64_t value) in SaveLong() 47 bool PreferencesUtil::SaveFloat(const std::string &key, float value) in SaveFloat() 53 bool PreferencesUtil::Save(const std::string &key, const T &value) in Save() 63 int PreferencesUtil::ObtainInt(const std::string &key, int defValue) in ObtainInt() 68 bool PreferencesUtil::ObtainBool(const std::string &key, bool defValue) in ObtainBool() 78 float PreferencesUtil::ObtainFloat(const std::string &key, float defValue) in ObtainFloat() 84 T PreferencesUtil::Obtain(const std::string &key, const T &defValue) in Obtain() 89 bool PreferencesUtil::IsExist(const std::string &key) in IsExist() [all …]
|
H A D | preference_utils.cpp | 53 bool PreferencesUtil::SaveInt(const std::string &key, int value) in SaveInt() 58 bool PreferencesUtil::SaveBool(const std::string &key, bool value) in SaveBool() 63 bool PreferencesUtil::SaveLong(const std::string &key, int64_t value) in SaveLong() 68 bool PreferencesUtil::SaveFloat(const std::string &key, float value) in SaveFloat() 74 bool PreferencesUtil::Save(const std::string &key, const T &value) in Save() 142 int PreferencesUtil::ObtainInt(const std::string &key, int defValue) in ObtainInt() 147 bool PreferencesUtil::ObtainBool(const std::string &key, bool defValue) in ObtainBool() 157 float PreferencesUtil::ObtainFloat(const std::string &key, float defValue) in ObtainFloat() 163 T PreferencesUtil::Obtain(const std::string &key, const T &defValue) in Obtain() 223 bool PreferencesUtil::IsExist(const std::string &key) in IsExist() [all …]
|
/aosp14/frameworks/base/core/java/android/preference/ |
H A D | PreferenceDataStore.java | 61 default void putString(String key, @Nullable String value) { in putString() 74 default void putStringSet(String key, @Nullable Set<String> values) { in putStringSet() 87 default void putInt(String key, int value) { in putInt() 100 default void putLong(String key, long value) { in putLong() 113 default void putFloat(String key, float value) { in putFloat() 126 default void putBoolean(String key, boolean value) { in putBoolean() 138 default String getString(String key, @Nullable String defValue) { in getString() 161 default int getInt(String key, int defValue) { in getInt() 172 default long getLong(String key, long defValue) { in getLong() 183 default float getFloat(String key, float defValue) { in getFloat() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/common/storage/ |
H A D | mock_storage.h | 37 std::string GetString(const std::string& key) override in GetString() 41 void SetDouble(const std::string& key, const double value) override {}; in SetDouble() 42 bool GetDouble(const std::string& key, double& value) override in GetDouble() 46 void SetBoolean(const std::string& key, const bool value) override {}; in SetBoolean() 47 bool GetBoolean(const std::string& key, bool& value) override in GetBoolean() 52 DataType GetDataType(const std::string& key) override in GetDataType() 58 void Delete(const std::string& key) override {}; in Delete() 68 std::string GetString(const std::string& key) override in GetString() 73 bool GetDouble(const std::string& key, double& value) override in GetDouble() 78 bool GetBoolean(const std::string& key, bool& value) override in GetBoolean() [all …]
|
/aosp14/frameworks/base/core/java/android/content/ |
H A D | ContentValues.java | 138 public void put(String key, Byte value) { in put() 168 public void put(String key, Long value) { in put() 217 public void putNull(String key) { in putNull() 271 public void remove(String key) { in remove() 300 public Object get(String key) { in get() 310 public String getAsString(String key) { in getAsString() 321 public Long getAsLong(String key) { in getAsLong() 371 public Short getAsShort(String key) { in getAsShort() 396 public Byte getAsByte(String key) { in getAsByte() 421 public Double getAsDouble(String key) { in getAsDouble() [all …]
|
H A D | SharedPreferences.java | 93 Editor putString(String key, @Nullable String value); in putString() 118 Editor putInt(String key, int value); in putInt() 130 Editor putLong(String key, long value); in putLong() 142 Editor putFloat(String key, float value); in putFloat() 154 Editor putBoolean(String key, boolean value); in putBoolean() 170 Editor remove(String key); in remove() 303 int getInt(String key, int defValue); in getInt() 317 long getLong(String key, long defValue); in getLong() 331 float getFloat(String key, float defValue); in getFloat() 345 boolean getBoolean(String key, boolean defValue); in getBoolean() [all …]
|
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/ |
H A D | SharedPreferencesLogger.java | 73 public int getInt(String key, int defValue) { in getInt() 78 public long getLong(String key, long defValue) { in getLong() 83 public float getFloat(String key, float defValue) { in getFloat() 93 public boolean contains(String key) { in contains() 113 protected void logValue(String key, Object value) { in logValue() 165 void logPackageName(String key, String value) { in logPackageName() 173 private void safeLogValue(String key, String value) { in safeLogValue() 184 String key = params[0]; in doInBackground() local 221 public Editor putInt(String key, int value) { in putInt() 227 public Editor putLong(String key, long value) { in putLong() [all …]
|
/ohos5.0/foundation/bundlemanager/app_domain_verify/test/unittest/mock/include/ |
H A D | mock_preferences.h | 36 PreferencesValue Get(const std::string& key, const PreferencesValue& defValue) override in Get() 40 int Put(const std::string& key, const PreferencesValue& value) override in Put() 69 bool HasKey(const std::string& key) override in HasKey() 73 int PutInt(const std::string& key, int value) override in PutInt() 78 int PutBool(const std::string& key, bool value) override in PutBool() 82 int PutLong(const std::string& key, int64_t value) override in PutLong() 86 int PutFloat(const std::string& key, float value) override in PutFloat() 90 int PutDouble(const std::string& key, double value) override in PutDouble() 94 int Delete(const std::string& key) override in Delete()
|
/ohos5.0/foundation/systemabilitymgr/samgr/services/samgr/native/source/collect/ |
H A D | device_timed_collect_tool.cpp | 50 bool PreferencesUtil::SaveLong(const std::string& key, int64_t value) in SaveLong() 55 bool PreferencesUtil::SaveString(const std::string& key, std::string value) in SaveString() 61 bool PreferencesUtil::Save(const std::string& key, const T& value) in Save() 74 … std::shared_ptr<NativePreferences::Preferences> ptr, const std::string& key, const int64_t& value) in SaveInner() 84 … std::shared_ptr<NativePreferences::Preferences> ptr, const std::string& key, const string& value) in SaveInner() 105 int64_t PreferencesUtil::ObtainLong(const std::string& key, int64_t defValue) in ObtainLong() 110 string PreferencesUtil::ObtainString(const std::string& key, std::string defValue) in ObtainString() 116 T PreferencesUtil::Obtain(const std::string& key, const T& defValue) in Obtain() 126 …std::shared_ptr<NativePreferences::Preferences> ptr, const std::string& key, const int64_t& defVal… in ObtainInner() 154 bool PreferencesUtil::IsExist(const std::string& key) in IsExist() [all …]
|
/ohos5.0/foundation/barrierfree/accessibility/services/aams/test/mock/src/ |
H A D | mock_accessibility_setting_provider.cpp | 52 RetError AccessibilitySettingProvider::GetIntValue(const std::string& key, int32_t& value) in GetIntValue() 60 RetError AccessibilitySettingProvider::GetLongValue(const std::string& key, int64_t& value) in GetLongValue() 68 RetError AccessibilitySettingProvider::GetBoolValue(const std::string& key, bool& value) in GetBoolValue() 76 RetError AccessibilitySettingProvider::GetFloatValue(const std::string& key, float& value) in GetFloatValue() 84 RetError AccessibilitySettingProvider::PutIntValue(const std::string& key, int32_t value, bool need… in PutIntValue() 102 RetError AccessibilitySettingProvider::PutBoolValue(const std::string& key, bool value, bool needNo… in PutBoolValue() 111 …<AccessibilitySettingObserver> AccessibilitySettingProvider::CreateObserver(const std::string& key, in CreateObserver() 120 RetError AccessibilitySettingProvider::RegisterObserver(const std::string& key, in RegisterObserver() 128 RetError AccessibilitySettingProvider::UnregisterObserver(const std::string& key) in UnregisterObserver() 134 RetError AccessibilitySettingProvider::GetStringValue(const std::string& key, std::string& value) in GetStringValue() [all …]
|
/ohos5.0/foundation/barrierfree/accessibility/services/test/mock/ |
H A D | mock_accessibility_setting_provider.cpp | 50 RetError AccessibilitySettingProvider::GetIntValue(const std::string& key, int32_t& value) in GetIntValue() 57 RetError AccessibilitySettingProvider::GetLongValue(const std::string& key, int64_t& value) in GetLongValue() 64 RetError AccessibilitySettingProvider::GetBoolValue(const std::string& key, bool& value) in GetBoolValue() 71 RetError AccessibilitySettingProvider::GetFloatValue(const std::string& key, float& value) in GetFloatValue() 78 RetError AccessibilitySettingProvider::PutIntValue(const std::string& key, int32_t value, bool need… in PutIntValue() 94 RetError AccessibilitySettingProvider::PutBoolValue(const std::string& key, bool value, bool needNo… in PutBoolValue() 102 …<AccessibilitySettingObserver> AccessibilitySettingProvider::CreateObserver(const std::string& key, in CreateObserver() 110 RetError AccessibilitySettingProvider::RegisterObserver(const std::string& key, in RegisterObserver() 118 RetError AccessibilitySettingProvider::UnregisterObserver(const std::string& key) in UnregisterObserver() 124 RetError AccessibilitySettingProvider::GetStringValue(const std::string& key, std::string& value) in GetStringValue() [all …]
|
/ohos5.0/foundation/multimedia/av_codec/test/unittest/common/common_mock/avformat/inner/ |
H A D | avformat_inner_mock.cpp | 22 bool AVFormatInnerMock::PutIntValue(const std::string_view &key, int32_t value) in PutIntValue() 27 bool AVFormatInnerMock::GetIntValue(const std::string_view &key, int32_t &value) in GetIntValue() 37 bool AVFormatInnerMock::GetStringValue(const std::string_view &key, std::string &value) in GetStringValue() 56 bool AVFormatInnerMock::PutLongValue(const std::string_view &key, int64_t value) in PutLongValue() 61 bool AVFormatInnerMock::GetLongValue(const std::string_view &key, int64_t &value) in GetLongValue() 66 bool AVFormatInnerMock::PutFloatValue(const std::string_view &key, float value) in PutFloatValue() 71 bool AVFormatInnerMock::GetFloatValue(const std::string_view &key, float &value) in GetFloatValue() 76 bool AVFormatInnerMock::PutDoubleValue(const std::string_view &key, double value) in PutDoubleValue() 81 bool AVFormatInnerMock::GetDoubleValue(const std::string_view &key, double &value) in GetDoubleValue() 86 bool AVFormatInnerMock::GetBuffer(const std::string_view &key, uint8_t **addr, size_t &size) in GetBuffer() [all …]
|
/ohos5.0/foundation/barrierfree/accessibility/services/aams/src/ |
H A D | accessibility_setting_provider.cpp | 65 RetError AccessibilitySettingProvider::GetIntValue(const std::string& key, int32_t& value) in GetIntValue() 71 RetError AccessibilitySettingProvider::GetLongValue(const std::string& key, int64_t& value) in GetLongValue() 77 RetError AccessibilitySettingProvider::GetFloatValue(const std::string& key, float& value) in GetFloatValue() 83 RetError AccessibilitySettingProvider::GetBoolValue(const std::string& key, bool& value) in GetBoolValue() 89 RetError AccessibilitySettingProvider::GetStringValue(const std::string& key, std::string& value) in GetStringValue() 95 RetError AccessibilitySettingProvider::PutIntValue(const std::string& key, int32_t value, bool need… in PutIntValue() 100 RetError AccessibilitySettingProvider::PutLongValue(const std::string& key, int64_t value, bool nee… in PutLongValue() 105 RetError AccessibilitySettingProvider::PutBoolValue(const std::string& key, bool value, bool needNo… in PutBoolValue() 115 …<AccessibilitySettingObserver> AccessibilitySettingProvider::CreateObserver(const std::string& key, in CreateObserver() 121 RetError AccessibilitySettingProvider::RegisterObserver(const std::string& key, in RegisterObserver() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/json/ |
H A D | json_util.cpp | 164 bool JsonValue::Put(const char* key, const char* value) in Put() 247 bool JsonValue::Put(const char* key, size_t value) in Put() 278 bool JsonValue::Put(const char* key, int32_t value) in Put() 309 bool JsonValue::Put(const char* key, int64_t value) in Put() 331 bool JsonValue::Put(const char* key, double value) in Put() 408 bool JsonValue::Replace(const char* key, double value) in Replace() 425 bool JsonValue::Put(const char* key, bool value) in Put() 439 bool JsonValue::PutFixedAttr(const char* key, bool value, in PutFixedAttr() 456 bool JsonValue::Replace(const char* key, bool value) in Replace() 490 bool JsonValue::Replace(const char* key, int32_t value) in Replace() [all …]
|
H A D | node_object.cpp | 58 bool NodeObject::GetBool(const std::string& key, bool defaultValue) const in GetBool() argument 67 int32_t NodeObject::GetInt(const std::string& key, int32_t defaultVal) const in GetInt() argument 76 uint32_t NodeObject::GetUInt(const std::string& key, uint32_t defaultVal) const in GetUInt() argument 85 int64_t NodeObject::GetInt64(const std::string& key, int64_t defaultVal) const in GetInt64() argument 94 double NodeObject::GetDouble(const std::string& key, double defaultVal) const in GetDouble() argument 128 bool NodeObject::Put(const char* key, const char* value) in Put() 139 bool NodeObject::Put(const char* key, size_t value) in Put() 150 bool NodeObject::Put(const char* key, int32_t value) in Put() 161 bool NodeObject::Put(const char* key, int64_t value) in Put() 172 bool NodeObject::Put(const char* key, double value) in Put() [all …]
|
/ohos5.0/foundation/filemanagement/dfs_service/test/unittests/cloudsync_sa/mock/ |
H A D | cloud_pref_impl_mock.cpp | 30 void CloudPrefImpl::SetString(const std::string& key, const std::string& value) in SetString() 34 void CloudPrefImpl::GetString(const std::string& key, std::string &value) in GetString() 38 void CloudPrefImpl::SetLong(const std::string& key, const int64_t value) in SetLong() 42 void CloudPrefImpl::GetLong(const std::string& key, int64_t &value) in GetLong() 46 void CloudPrefImpl::SetInt(const std::string& key, const int value) in SetInt() 50 void CloudPrefImpl::GetInt(const std::string& key, int32_t &value) in GetInt() 54 void CloudPrefImpl::SetBool(const std::string& key, const bool& value) in SetBool() 58 void CloudPrefImpl::GetBool(const std::string& key, bool& value) in GetBool() 66 void CloudPrefImpl::Delete(const std::string& key) in Delete()
|
/ohos5.0/foundation/multimedia/media_foundation/tests/unittest/format/inner/ |
H A D | avformat_inner_mock.cpp | 21 bool AVFormatInnerMock::PutIntValue(const std::string_view &key, int32_t value) in PutIntValue() 26 bool AVFormatInnerMock::GetIntValue(const std::string_view &key, int32_t &value) in GetIntValue() 31 bool AVFormatInnerMock::PutStringValue(const std::string_view &key, const std::string_view &value) in PutStringValue() 36 bool AVFormatInnerMock::GetStringValue(const std::string_view &key, std::string &value) in GetStringValue() 55 bool AVFormatInnerMock::PutLongValue(const std::string_view &key, int64_t value) in PutLongValue() 60 bool AVFormatInnerMock::GetLongValue(const std::string_view &key, int64_t &value) in GetLongValue() 65 bool AVFormatInnerMock::PutFloatValue(const std::string_view &key, float value) in PutFloatValue() 70 bool AVFormatInnerMock::GetFloatValue(const std::string_view &key, float &value) in GetFloatValue() 75 bool AVFormatInnerMock::PutDoubleValue(const std::string_view &key, double value) in PutDoubleValue() 80 bool AVFormatInnerMock::GetDoubleValue(const std::string_view &key, double &value) in GetDoubleValue() [all …]
|
/ohos5.0/foundation/multimedia/av_codec/test/unittest/common/common_mock/avformat/capi/ |
H A D | avformat_capi_mock.cpp | 28 bool AVFormatCapiMock::PutIntValue(const std::string_view &key, int32_t value) in PutIntValue() 36 bool AVFormatCapiMock::GetIntValue(const std::string_view &key, int32_t &value) in GetIntValue() 52 bool AVFormatCapiMock::GetStringValue(const std::string_view &key, std::string &value) in GetStringValue() 96 const std::string_view &mimeType, const std::string_view &key, int32_t srcTrackID) in InitMetadataTrackFormat() 109 bool AVFormatCapiMock::PutLongValue(const std::string_view &key, int64_t value) in PutLongValue() 117 bool AVFormatCapiMock::GetLongValue(const std::string_view &key, int64_t &value) in GetLongValue() 125 bool AVFormatCapiMock::PutFloatValue(const std::string_view &key, float value) in PutFloatValue() 133 bool AVFormatCapiMock::GetFloatValue(const std::string_view &key, float &value) in GetFloatValue() 141 bool AVFormatCapiMock::PutDoubleValue(const std::string_view &key, double value) in PutDoubleValue() 149 bool AVFormatCapiMock::GetDoubleValue(const std::string_view &key, double &value) in GetDoubleValue() [all …]
|
/ohos5.0/base/security/crypto_framework/test/unittest/src/aes_cipher/ |
H A D | crypto_aes_ecb_cipher_test.cpp | 59 HcfSymKey *key = nullptr; variable 111 HcfSymKey *key = nullptr; variable 156 HcfSymKey *key = nullptr; variable 201 HcfSymKey *key = nullptr; variable 251 HcfSymKey *key = nullptr; variable 297 HcfSymKey *key = nullptr; variable 342 HcfSymKey *key = nullptr; variable 387 HcfSymKey *key = nullptr; variable 433 HcfSymKey *key = nullptr; variable 481 HcfSymKey *key = nullptr; variable [all …]
|
/ohos5.0/foundation/multimedia/media_foundation/services/media_monitor/common/src/ |
H A D | event_bean.cpp | 86 std::string key = parcel.ReadString(); in ReadFromParcel() local 95 std::string key = parcel.ReadString(); in ReadFromParcel() local 104 std::string key = parcel.ReadString(); in ReadFromParcel() local 113 std::string key = parcel.ReadString(); in ReadFromParcel() local 119 void EventBean::Add(const std::string &key, int32_t value) in Add() 129 void EventBean::Add(const std::string &key, uint64_t value) in Add() 134 void EventBean::Add(const std::string &key, float value) in Add() 188 int32_t EventBean::GetIntValue(const std::string &key) in GetIntValue() 197 std::string EventBean::GetStringValue(const std::string &key) in GetStringValue() 206 uint64_t EventBean::GetUint64Value(const std::string &key) in GetUint64Value() [all …]
|
/ohos5.0/foundation/multimedia/media_foundation/tests/unittest/format/capi/ |
H A D | avformat_capi_mock.cpp | 25 bool AVFormatCapiMock::PutIntValue(const std::string_view &key, int32_t value) in PutIntValue() 33 bool AVFormatCapiMock::GetIntValue(const std::string_view &key, int32_t &value) in GetIntValue() 41 bool AVFormatCapiMock::PutStringValue(const std::string_view &key, const std::string_view &value) in PutStringValue() 49 bool AVFormatCapiMock::GetStringValue(const std::string_view &key, std::string &value) in GetStringValue() 97 bool AVFormatCapiMock::PutLongValue(const std::string_view &key, int64_t value) in PutLongValue() 105 bool AVFormatCapiMock::GetLongValue(const std::string_view &key, int64_t &value) in GetLongValue() 113 bool AVFormatCapiMock::PutFloatValue(const std::string_view &key, float value) in PutFloatValue() 121 bool AVFormatCapiMock::GetFloatValue(const std::string_view &key, float &value) in GetFloatValue() 129 bool AVFormatCapiMock::PutDoubleValue(const std::string_view &key, double value) in PutDoubleValue() 137 bool AVFormatCapiMock::GetDoubleValue(const std::string_view &key, double &value) in GetDoubleValue() [all …]
|
/ohos5.0/base/hiviewdfx/hiappevent/interfaces/native/inner_api/src/ |
H A D | app_event.cpp | 30 void Event::AddParam(const std::string& key, bool value) in AddParam() 35 void Event::AddParam(const std::string& key, int32_t value) in AddParam() 40 void Event::AddParam(const std::string& key, int64_t value) in AddParam() 45 void Event::AddParam(const std::string& key, double value) in AddParam() 50 void Event::AddParam(const std::string& key, const std::string& value) in AddParam() 55 void Event::AddParam(const std::string& key, const std::vector<bool>& value) in AddParam() 60 void Event::AddParam(const std::string& key, const std::vector<int32_t>& value) in AddParam() 65 void Event::AddParam(const std::string& key, const std::vector<int64_t>& value) in AddParam() 70 void Event::AddParam(const std::string& key, const std::vector<double>& value) in AddParam() 75 void Event::AddParam(const std::string& key, const std::vector<std::string>& value) in AddParam()
|