/foundation/distributeddatamgr/data_share/frameworks/native/common/include/ |
H A D | callbacks_manager.h | 27 template<class Key, class Observer> 37 std::vector<OperationResult> AddObservers(const std::vector<Key> &keys, void *subscriber, 39 std::function<void(const std::vector<Key> &, const std::shared_ptr<Observer> &observer)>, 40 std::function<void(const std::vector<Key> &, const std::shared_ptr<Observer> &observer, 43 std::vector<OperationResult> DelObservers(const std::vector<Key> &keys, void *subscriber, 44 std::function<void(const std::vector<Key> &, std::vector<OperationResult> &)> processOnLastDel = 48 std::function<void(const std::vector<Key> &, std::vector<OperationResult> &)> processOnLastDel = 51 std::vector<OperationResult> EnableObservers(const std::vector<Key> &keys, void *subscriber, 52 std::function<void(std::map<Key, std::vector<ObserverNodeOnEnabled>> &)> processOnLocalEnabled, 53 std::function<void(const std::vector<Key> [all...] |
/foundation/communication/netmanager_base/bpf/bpf_reader/ |
H A D | bpf_reader.h | 26 template <class Key, class Value> class NetsysBpfMap { 28 NetsysBpfMap<Key, Value>() = default; 29 NetsysBpfMap<Key, Value>(const std::string &pathName, uint32_t flags); 30 NetsysBpfMap<Key, Value>(bpf_map_type mapType, uint32_t maxEntries, uint32_t mapFlags); 45 Value ReadValueFromMap(const Key key) const; 55 bool WriteValue(const Key &key, const Value &value, uint64_t flags) const; 62 void Iterate(const std::function<void(const Key &key, const NetsysBpfMap<Key, Value> &map)> &counter) const; 65 * Get the Next Key From Map 68 * @return int next Key [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/subscriber_managers/ |
H A D | rdb_subscriber_manager.h | 31 struct Key {
struct 32 Key(const std::string &uri, int64_t subscriberId, const std::string &bundleName);
33 bool operator==(const Key &rhs) const;
34 bool operator!=(const Key &rhs) const;
35 bool operator<(const Key &rhs) const;
36 bool operator>(const Key &rhs) const;
37 bool operator<=(const Key &rhs) const;
38 bool operator>=(const Key &rhs) const;
46 int32_t Add(const Key &key, int32_t userId, const Template &tpl);
47 int32_t Delete(const Key [all...] |
H A D | rdb_subscriber_manager.cpp | 31 bool TemplateManager::Get(const Key &key, int32_t userId, Template &tpl)
in Get() 36 int32_t TemplateManager::Add(const Key &key, int32_t userId, const Template &tpl)
in Add() 46 int32_t TemplateManager::Delete(const Key &key, int32_t userId)
in Delete() 57 Key::Key(const std::string &uri, int64_t subscriberId, const std::string &bundleName)
in Key() function in OHOS::DataShare::Key 62 bool Key::operator==(const Key &rhs) const
in operator ==() 67 bool Key::operator!=(const Key &rhs) const
in operator !=() 71 bool Key in operator !=() [all...] |
/foundation/communication/netmanager_base/services/netmanagernative/bpf/include/ |
H A D | bpf_mapper.h | 42 template <class Key, class Value> class BpfMapperImplement { 44 BpfMapperImplement<Key, Value>() = default; 46 static int32_t GetFirstKey(const int32_t mapFd, Key &key) in GetFirstKey() 59 * Get the Next Key From Map 66 static int32_t GetNextKey(const int32_t mapFd, const Key &key, Key &nextKey) in GetNextKey() 99 static int32_t UpdateElem(const int32_t mapFd, const Key &key, const Value &value, uint64_t flags) in UpdateElem() 120 static int32_t LookUpElem(const int32_t mapFd, const Key &key, const Value &value) in LookUpElem() 139 static int32_t DeleteElem(const int32_t mapFd, const Key &key) in DeleteElem() 191 static uint64_t BpfMapKeyToU64(const Key [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/mock/ |
H A D | db_store_mock.h | 26 using Key = DistributedDB::Key; 52 DBStatus Get(const Key &key, Value &value) const override; 53 DBStatus GetEntries(const Key &keyPrefix, std::vector<Entry> &entries) const override; 54 DBStatus GetEntries(const Key &keyPrefix, KvStoreResultSet *&resultSet) const override; 59 DBStatus Put(const Key &key, const Value &value) override; 61 DBStatus DeleteBatch(const std::vector<Key> &keys) override; 62 DBStatus Delete(const Key &key) override; 63 DBStatus GetLocal(const Key &key, Value &value) const override; 64 DBStatus GetLocalEntries(const Key [all...] |
H A D | kv_store_nb_delegate_mock.h | 39 DBStatus Get(const Key &key, Value &value) const; 40 DBStatus GetEntries(const Key &keyPrefix, std::vector<Entry> &entries) const; 41 DBStatus GetEntries(const Key &keyPrefix, KvStoreResultSet *&resultSet) const; 46 DBStatus Put(const Key &key, const Value &value); 48 DBStatus DeleteBatch(const std::vector<Key> &keys); 49 DBStatus Delete(const Key &key); 50 DBStatus GetLocal(const Key &key, Value &value) const; 51 DBStatus GetLocalEntries(const Key &keyPrefix, std::vector<Entry> &entries) const; 52 DBStatus PutLocal(const Key &key, const Value &value); 53 DBStatus DeleteLocal(const Key [all...] |
/foundation/distributeddatamgr/data_share/frameworks/js/napi/common/include/ |
H A D | napi_callbacks_manager.h | 26 template<class Key, class Observer> 29 std::vector<OperationResult> AddObservers(const std::vector<Key> &keys, const std::shared_ptr<Observer> observer, 30 std::function<void(const std::vector<Key> &, const std::shared_ptr<Observer> &observer)>, 31 std::function<void(const std::vector<Key> &, const std::shared_ptr<Observer> &observer, 34 std::vector<OperationResult> DelObservers(const std::vector<Key> &keys, 36 std::function<void(const std::vector<Key> &, const std::shared_ptr<Observer> &observer, 39 std::vector<std::shared_ptr<Observer>> GetEnabledObservers(const Key &); 44 static void DefaultProcess(const std::vector<Key> &, const std::shared_ptr<Observer> &observer, in DefaultProcess() 58 std::map<Key, std::vector<ObserverNode>> callbacks_; 61 template<class Key, clas [all...] |
/foundation/window/window_manager/utils/include/ |
H A D | atomic_map.h | 24 template<class Key, class Value> 27 void insert(const std::pair<Key, Value>& kv) in insert() 34 void erase(const Key& key) in erase() 41 auto find(Key k) in find() 49 int count(Key k) in count() 57 bool isExistAndRemove(Key k, uint32_t value) in isExistAndRemove() 73 bool isExist(Key k, uint32_t value) in isExist() 101 std::map<Key, Value> data_;
|
/foundation/multimedia/media_foundation/engine/include/plugin/common/ |
H A D | plugin_caps_builder.h | 29 * CapabilityBuilder offers several setter functions for Capability::Key, including bit rate, sample format, audio 85 DECL_SET_FRL_CAP_FUNCS(Capability::Key::MEDIA_BITRATE, BitRate, uint32_t); 87 DECL_SET_FRL_CAP_FUNCS(Capability::Key::AUDIO_SAMPLE_RATE, AudioSampleRate, uint32_t); 89 DECL_SET_FRL_CAP_FUNCS(Capability::Key::AUDIO_CHANNELS, AudioChannel, uint32_t); 91 DECL_SET_FL_CAP_FUNCS(Capability::Key::AUDIO_CHANNEL_LAYOUT, AudioChannelLayout, AudioChannelLayout); 93 DECL_SET_FL_CAP_FUNCS(Capability::Key::AUDIO_SAMPLE_FORMAT, AudioSampleFormat, AudioSampleFormat); 95 DECL_SET_FRL_CAP_FUNCS(Capability::Key::AUDIO_MPEG_VERSION, AudioMpegVersion, uint32_t); 96 DECL_SET_FRL_CAP_FUNCS(Capability::Key::AUDIO_MPEG_LAYER, AudioMpegLayer, uint32_t); 98 DECL_SET_FL_CAP_FUNCS(Capability::Key::AUDIO_AAC_PROFILE, AudioAacProfile, AudioAacProfile); 100 DECL_SET_FRL_CAP_FUNCS(Capability::Key [all...] |
/foundation/multimedia/media_foundation/src/common/ |
H A D | plugin_caps_builder.h | 29 * CapabilityBuilder offers several setter functions for Capability::Key, including bit rate, sample format, audio 85 DECL_SET_FRL_CAP_FUNCS(Capability::Key::MEDIA_BITRATE, BitRate, uint32_t); 87 DECL_SET_FRL_CAP_FUNCS(Capability::Key::AUDIO_SAMPLE_RATE, AudioSampleRate, uint32_t); 89 DECL_SET_FRL_CAP_FUNCS(Capability::Key::AUDIO_CHANNELS, AudioChannel, uint32_t); 91 DECL_SET_FL_CAP_FUNCS(Capability::Key::AUDIO_CHANNEL_LAYOUT, AudioChannelLayout, AudioChannelLayout); 93 DECL_SET_FL_CAP_FUNCS(Capability::Key::AUDIO_SAMPLE_FORMAT, AudioSampleFormat, AudioSampleFormat); 95 DECL_SET_FRL_CAP_FUNCS(Capability::Key::AUDIO_MPEG_VERSION, AudioMpegVersion, uint32_t); 96 DECL_SET_FRL_CAP_FUNCS(Capability::Key::AUDIO_MPEG_LAYER, AudioMpegLayer, uint32_t); 98 DECL_SET_FL_CAP_FUNCS(Capability::Key::AUDIO_AAC_PROFILE, AudioAacProfile, AudioAacProfile); 100 DECL_SET_FRL_CAP_FUNCS(Capability::Key [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/gaussdb_rd/ |
H A D | rd_single_ver_storage_executor.h | 53 int GetKvData(SingleVerDataType type, const Key &key, Value &value, Timestamp ×tamp) const; 58 int GetKvDataByHashKey(const Key &hashKey, SingleVerRecord &result) const; 61 virtual int PutKvData(SingleVerDataType type, const Key &key, const Value &value, 64 int GetEntries(const GRD_KvScanModeE mode, const std::pair<Key, Key> &pairKey, 67 int GetCount(const Key &key, int &count, GRD_KvScanModeE kvScanMode); 69 int GetCount(const Key &beginKey, const Key &endKey, int &count, GRD_KvScanModeE kvScanMode); 72 int GetAllMetaKeys(std::vector<Key> &keys) const; 85 int DeleteLocalKvData(const Key [all...] |
H A D | rd_utils.h | 42 int RdKVPut(GRD_DB *db, const char *collectionName, const Key &key, const Value &value); 44 int RdKVGet(GRD_DB *db, const char *collectionName, const Key &key, Value &value); 51 int RdKVDel(GRD_DB *db, const char *collectionName, const Key &key); 53 int RdKVScan(GRD_DB *db, const char *collectionName, const Key &key, GRD_KvScanModeE mode, 56 int RdKVRangeScan(GRD_DB *db, const char *collectionName, const Key &beginKey, const Key &endKey, 59 int RdKvFetch(GRD_ResultSet *resultSet, Key &key, Value &value); 67 int RdKVBatchPushback(GRD_KVBatchT *batch, const Key &key, const Value &value);
|
/foundation/communication/netmanager_base/bpf/bpf_syscall_wrapper/ |
H A D | bpf_syscall_wrapper.h | 30 template <class Key, class Value> class BpfSyscallWrapper { 32 BpfSyscallWrapper<Key, Value>() = default; 65 static int WriteValueToMap(const int mapFd, const Key &key, const Value &value, uint64_t flags); 75 static int LookUpElem(const int mapFd, const Key &key, const Value &value); 84 static int DeleteElem(const int mapFd, const Key &key); 87 * Get the Next Key From Map 94 static int GetNextKey(const int mapFd, const Key &key, Key &next_key); 97 * Get the First Key From Map 103 static int GetFirstKey(const int mapFd, Key [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/ |
H A D | single_ver_natural_store_connection.h | 27 int Put(const IOption &option, const Key &key, const Value &value) override; 33 int Get(const IOption &option, const Key &key, Value &value) const override; 36 int Delete(const IOption &option, const Key &key) override; 39 int DeleteBatch(const IOption &option, const std::vector<Key> &keys) override; 47 virtual int CheckSyncKeysValid(const std::vector<Key> &keys) const = 0; 49 virtual int DeleteBatchInner(const IOption &option, const std::vector<Key> &keys) = 0; 53 bool CheckAndGetKeyLen(const std::vector<Key> &keys, const uint32_t limit, uint32_t &keyLen) const;
|
H A D | single_ver_natural_store_commit_notify_data.h | 57 void SetFilterKey(const Key &key) override; 67 void InitKeyPropRecord(const Key &key, ExistStatus status); 85 const Key &filterKey, int &errCode); 87 void DeleteEntry(const Key &key, std::list<Entry> &entries) const; 89 void DeleteEntryByKey(const Key &key, DataType type); 93 void DeleteConflictEntry(const Key &key); 95 bool IsKeyPropSet(const Key &key) const; 107 Key keyFilter_; 108 std::map<Key, ItemProp> keyPropRecord_; // hash key mapping to item property 109 std::map<Key, DataItemInf [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/src/ |
H A D | kv_store_nb_delegate_impl.h | 39 DBStatus Get(const Key &key, Value &value) const override; 41 DBStatus GetEntries(const Key &keyPrefix, std::vector<Entry> &entries) const override; 43 DBStatus GetEntries(const Key &keyPrefix, KvStoreResultSet *&resultSet) const override; 53 DBStatus Put(const Key &key, const Value &value) override; 57 DBStatus DeleteBatch(const std::vector<Key> &keys) override; 59 DBStatus Delete(const Key &key) override; 62 DBStatus GetLocal(const Key &key, Value &value) const override; 64 DBStatus GetLocalEntries(const Key &keyPrefix, std::vector<Entry> &entries) const override; 66 DBStatus PutLocal(const Key &key, const Value &value) override; 68 DBStatus DeleteLocal(const Key [all...] |
/foundation/distributeddatamgr/kv_store/kvstoremock/frameworks/innerkitsimpl/kvdb/include/ |
H A D | device_convertor.h | 22 std::vector<uint8_t> ToLocalDBKey(const Key &key) const override; 23 std::vector<uint8_t> ToWholeDBKey(const Key &key) const override; 24 Key ToKey(DBKey &&key, std::string &deviceId) const override; 25 std::vector<uint8_t> GetPrefix(const Key &prefix) const override; 33 std::vector<uint8_t> ConvertNetwork(const Key &in, bool withLen = false) const; 34 std::vector<uint8_t> ToLocal(const Key &in, bool withLen) const;
|
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/include/ |
H A D | device_convertor.h | 22 std::vector<uint8_t> ToLocalDBKey(const Key &key) const override; 23 std::vector<uint8_t> ToWholeDBKey(const Key &key) const override; 24 Key ToKey(DBKey &&key, std::string &deviceId) const override; 25 std::vector<uint8_t> GetPrefix(const Key &prefix) const override; 33 std::vector<uint8_t> ConvertNetwork(const Key &in, bool withLen = false) const; 34 std::vector<uint8_t> ToLocal(const Key &in, bool withLen) const;
|
H A D | convertor.h | 25 using DBKey = DistributedDB::Key; 27 virtual std::vector<uint8_t> ToLocalDBKey(const Key &key) const; 28 virtual std::vector<uint8_t> ToWholeDBKey(const Key &key) const; 29 virtual Key ToKey(DBKey &&key, std::string &deviceId) const; 30 virtual std::vector<uint8_t> GetPrefix(const Key &prefix) const; 36 std::vector<uint8_t> TrimKey(const Key &prefix) const;
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/ |
H A D | sqlite_multi_ver_transaction.h | 43 int Put(const Key &key, const Value &value) override; 45 int Delete(const Key &key) override; 49 int Get(const Key &key, Value &value) const override; 51 int GetEntries(const Key &keyPrefix, std::vector<Entry> &entries) const override; 97 int GetOverwrittenNonClearTypeEntries(Version version, const Key &hashKey, 100 int DeleteEntriesByHashKey(Version version, const Key &hashKey) override; 102 int GetValueForTrimSlice(const Key &hashKey, const Version version, Value &value) const override; 128 static int BindAddRecordKeysToStatement(sqlite3_stmt *statement, const Key &key, 131 int AddRecord(const Key &key, const Value &value, const MultiVerEntryAuxData &data); 140 int BindQueryEntryArgs(sqlite3_stmt *statement, const Key [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/common/distributeddb/include/ |
H A D | distributeddb_data_generator.h | 384 const DistributedDB::Key KEY_1 = { 'k', '1' }; 385 const DistributedDB::Key KEY_2 = { 'k', '2' }; 386 const DistributedDB::Key KEY_3 = { 'k', '3' }; 387 const DistributedDB::Key KEY_4 = { 'k', '4' }; 388 const DistributedDB::Key KEY_5 = { 'k', '5' }; 389 const DistributedDB::Key KEY_6 = { 'k', '6' }; 390 const DistributedDB::Key KEY_7 = { 'k', '7' }; 391 const DistributedDB::Key KEY_8 = { 'k', '8' }; 392 const DistributedDB::Key KEY_9 = { 'k', '9' }; 393 const DistributedDB::Key KEY_1 [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/ |
H A D | virtual_multi_ver_sync_db_interface.h | 39 int GetMetaData(const Key &key, Value &value) const override; 41 int PutMetaData(const Key &key, const Value &value, bool isInTransaction) override; 44 int DeleteMetaData(const std::vector<Key> &keys) override; 47 int DeleteMetaDataByPrefixKey(const Key &keyPrefix) const override; 49 int GetAllMetaKeys(std::vector<Key> &keys) const override; 83 int GetData(const Key &key, Key &value); 85 int PutData(const Key &key, const Key &value); 87 int DeleteData(const Key [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/common/ |
H A D | distributeddb_data_generate_unit_test.h | 61 const DistributedDB::Key KEY_1 = {'1'}; 63 const DistributedDB::Key KEY_2 = {'2'}; 65 const DistributedDB::Key KEY_3 = {'3'}; 67 const DistributedDB::Key KEY_4 = {'4'}; 69 const DistributedDB::Key KEY_5 = {'5'}; 71 const DistributedDB::Key KEY_6 = {'6'}; 73 const DistributedDB::Key KEY_7 = {'7'}; 76 const DistributedDB::Key NULL_KEY_1; 97 void GenerateKey(int keyCount, int startPosition, DistributedDB::Key &keyTest); 114 void GenerateRecords(int recordNum, std::vector<DistributedDB::Entry> &entries, std::vector<DistributedDB::Key> [all...] |
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/data/ |
H A D | info_container.h | 24 template<typename Key> 27 void Set(Key key, const std::any &value) in Set() 33 T Get(Key key, const T &defaultValue) const in Get() 39 using KeyTypeTable = std::map<Key, Serializable::ValueType>; 42 std::map<Key, std::any> values_;
|