/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/test/unittest/ |
H A D | subscribe_profile_manager_test.cpp | 168 std::string dbKey = ""; variable 183 std::string dbKey = ""; variable 238 std::string dbKey = ""; variable 252 std::string dbKey = ""; variable 266 std::string dbKey = ""; variable 280 std::string dbKey = ""; variable 294 std::string dbKey = ""; variable 308 std::string dbKey = ""; variable 322 std::string dbKey = ""; variable 336 std::string dbKey = ""; variable [all …]
|
H A D | profile_utils_test.cpp | 912 string dbKey = ""; variable 925 string dbKey = ""; variable 927 dbKey += 'a'; 954 string dbKey = ""; variable 967 string dbKey = ""; variable 969 dbKey += 'a'; 996 string dbKey = ""; variable 1022 string dbKey = ""; variable 1024 dbKey += 'a'; 1066 dbKey += 'a'; [all …]
|
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/src/subscribeprofilemanager/ |
H A D | subscribe_profile_manager.cpp | 210 values[dbKey] = dbValue; in NotifyDeviceProfileAdd() 235 values[dbKey] = dbValue; in NotifyDeviceProfileUpdate() 262 values[dbKey] = dbValue; in NotifyDeviceProfileDelete() 287 values[dbKey] = dbValue; in NotifyServiceProfileAdd() 313 values[dbKey] = dbValue; in NotifyServiceProfileUpdate() 342 values[dbKey] = dbValue; in NotifyServiceProfileDelete() 368 values[dbKey] = dbValue; in NotifyCharProfileAdd() 395 values[dbKey] = dbValue; in NotifyCharProfileUpdate() 425 values[dbKey] = dbValue; in NotifyCharProfileDelete() 449 const std::string& dbKey) in GetSubscribeInfos() argument [all …]
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/decision_db/src/ |
H A D | lnn_decision_db.c | 126 plainData.data = dbKey; in EncryptStorageData() 229 if (GetDecisionDbKey(dbKey, sizeof(dbKey), false) != SOFTBUS_OK) { in EncryptDecisionDb() 231 (void)memset_s(dbKey, sizeof(dbKey), 0x0, sizeof(dbKey)); in EncryptDecisionDb() 234 if (EncryptedDb(ctx, dbKey, sizeof(dbKey)) != SOFTBUS_OK) { in EncryptDecisionDb() 236 (void)memset_s(dbKey, sizeof(dbKey), 0x0, sizeof(dbKey)); in EncryptDecisionDb() 239 (void)memset_s(dbKey, sizeof(dbKey), 0x0, sizeof(dbKey)); in EncryptDecisionDb() 255 if (GetDecisionDbKey(dbKey, sizeof(dbKey), true) != SOFTBUS_OK) { in UpdateDecisionDbKey() 257 (void)memset_s(dbKey, sizeof(dbKey), 0x0, sizeof(dbKey)); in UpdateDecisionDbKey() 260 if (UpdateDbPassword(ctx, dbKey, sizeof(dbKey)) != SOFTBUS_OK) { in UpdateDecisionDbKey() 262 (void)memset_s(dbKey, sizeof(dbKey), 0x0, sizeof(dbKey)); in UpdateDecisionDbKey() [all …]
|
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/include/subscribeprofilemanager/ |
H A D | subscribe_profile_manager.h | 36 …t32_t NotifyProfileChange(ProfileType profileType, ChangeType changeType, const std::string& dbKey, 47 int32_t NotifyDeviceProfileAdd(const std::string& dbKey, const std::string& dbValue); 48 int32_t NotifyDeviceProfileUpdate(const std::string& dbKey, const std::string& dbValue); 49 int32_t NotifyDeviceProfileDelete(const std::string& dbKey, const std::string& dbValue); 50 int32_t NotifyServiceProfileAdd(const std::string& dbKey, const std::string& dbValue); 51 int32_t NotifyServiceProfileUpdate(const std::string& dbKey, const std::string& dbValue); 52 int32_t NotifyServiceProfileDelete(const std::string& dbKey, const std::string& dbValue); 53 int32_t NotifyCharProfileAdd(const std::string& dbKey, const std::string& dbValue); 54 int32_t NotifyCharProfileUpdate(const std::string& dbKey, const std::string& dbValue); 55 int32_t NotifyCharProfileDelete(const std::string& dbKey, const std::string& dbValue); [all …]
|
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/src/deviceprofilemanager/listener/ |
H A D | kv_data_change_listener.cpp | 127 std::string dbKey = item.key.ToString(); in FilterEntries() local 141 entriesMap[dbKey] = item.value.ToString(); in FilterEntries() 144 ohSuffix2NonMaps[dbKey] = ProfileUtils::JoinString(res, SEPARATOR); in FilterEntries() 177 for (const auto& [dbKey, dbValue] : entries) { in HandleAddChange() 178 ProfileType profileType = ProfileUtils::GetProfileType(dbKey); in HandleAddChange() 188 for (const auto& [dbKey, dbValue] : entries) { in HandleUpdateChange() 189 ProfileType profileType = ProfileUtils::GetProfileType(dbKey); in HandleUpdateChange() 199 for (const auto& [dbKey, dbValue] : entries) { in HandleDeleteChange() 200 ProfileType profileType = ProfileUtils::GetProfileType(dbKey); in HandleDeleteChange() 251 std::string dbKey = ProfileUtils::GetDbKeyByProfile(newSwitchProfile); in GenerateSwitchNotify() local [all …]
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/session_manager/ |
H A D | upgrade_manager.cpp | 66 auto dbKey = CapMetaRow::GetKeyFor(deviceId); in GetCapability() local 67 ZLOGD("cap key:%{public}s", Anonymous::Change(std::string(dbKey.begin(), dbKey.end())).c_str()); in GetCapability() 68 …status = MetaDataManager::GetInstance().LoadMeta(std::string(dbKey.begin(), dbKey.end()), capMetaD… in GetCapability() 82 auto dbKey = CapMetaRow::GetKeyFor(localDeviceId); in InitLocalCapability() local 83 …bool status = MetaDataManager::GetInstance().SaveMeta({ dbKey.begin(), dbKey.end() }, capMetaData); in InitLocalCapability()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/kvstoremock/frameworks/innerkitsimpl/kvdb/src/ |
H A D | device_convertor.cpp | 41 std::vector<uint8_t> dbKey; in ToLocal() local 42 dbKey.insert(dbKey.end(), uuid.begin(), uuid.end()); in ToLocal() 43 dbKey.insert(dbKey.end(), original.begin(), original.end()); in ToLocal() 47 dbKey.insert(dbKey.end(), buf, buf + sizeof(length)); in ToLocal() 49 return dbKey; in ToLocal()
|
H A D | single_store_impl.cpp | 43 DBKey dbKey = convertor_.ToLocalDBKey(key); in Put() local 50 auto dbStatus = dbStore_->Put(dbKey, value); in Put() 95 DBKey dbKey = convertor_.ToLocalDBKey(key); in Delete() local 96 if (dbKey.empty()) { in Delete() 101 auto dbStatus = dbStore_->Delete(dbKey); in Delete() 119 DBKey dbKey = convertor_.ToLocalDBKey(key); in DeleteBatch() local 120 if (dbKey.empty()) { in DeleteBatch() 124 dbKeys.push_back(std::move(dbKey)); in DeleteBatch() 201 DBKey dbKey = convertor_.ToWholeDBKey(key); in Get() local 202 if (dbKey.empty()) { in Get() [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/ |
H A D | device_convertor.cpp | 42 std::vector<uint8_t> dbKey; in ToLocal() local 43 dbKey.insert(dbKey.end(), uuid.begin(), uuid.end()); in ToLocal() 44 dbKey.insert(dbKey.end(), original.begin(), original.end()); in ToLocal() 49 dbKey.insert(dbKey.end(), buf, buf + sizeof(length)); in ToLocal() 51 return dbKey; in ToLocal()
|
H A D | convertor.cpp | 34 std::vector<uint8_t> dbKey = TrimKey(prefix); in GetPrefix() local 35 if (dbKey.size() > MAX_KEY_LENGTH) { in GetPrefix() 36 dbKey.clear(); in GetPrefix() 38 return dbKey; in GetPrefix()
|
H A D | single_store_impl.cpp | 96 DBKey dbKey = convertor_.ToLocalDBKey(key); in Put() local 103 …auto status = RetryWithCheckPoint([this, &dbKey, &value]() { return dbStore_->Put(dbKey, value); }… in Put() 155 DBKey dbKey = convertor_.ToLocalDBKey(key); in Delete() local 156 if (dbKey.empty()) { in Delete() 161 auto status = RetryWithCheckPoint([this, &dbKey]() { return dbStore_->Delete(dbKey); }); in Delete() 182 DBKey dbKey = convertor_.ToLocalDBKey(key); in DeleteBatch() local 183 if (dbKey.empty()) { in DeleteBatch() 187 dbKeys.push_back(std::move(dbKey)); in DeleteBatch() 349 DBKey dbKey = convertor_.ToWholeDBKey(key); in Get() local 350 if (dbKey.empty()) { in Get() [all …]
|
/ohos5.0/foundation/deviceprofile/device_info_manager/common/src/utils/ |
H A D | profile_utils.cpp | 51 return GetAnonyString(dbKey); in GetDbKeyAnonyString() 202 if (dbKey.length() == 0 || dbKey.length() > MAX_STRING_LEN) { in GetProfileKey() 205 std::size_t pos = dbKey.find_last_of("#"); in GetProfileKey() 206 return dbKey.substr(0, pos); in GetProfileKey() 211 if (dbKey.length() == 0 || dbKey.length() > MAX_STRING_LEN) { in GetDeviceIdByDBKey() 226 if (dbKey.length() == 0 || dbKey.length() > MAX_STRING_LEN) { in GetServiceNameByDBKey() 282 if (dbKey.length() == 0 || dbKey.length() > MAX_STRING_LEN) { in GetCharKeyByDBKey() 695 if (dbKey.length() == 0 || dbKey.length() > MAX_STRING_LEN) { in GetProfileProperty() 698 std::size_t pos = dbKey.find_last_of("#"); in GetProfileProperty() 702 return dbKey.substr(pos + 1); in GetProfileProperty() [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/ |
H A D | query_sync_water_mark_helper.cpp | 90 deleteSyncCache_[dbKey] = deleteWaterMark; in LoadDeleteSyncDataToCache() 213 Key dbKey; in SaveQueryWaterMarkToDB() local 214 DBCommon::StringToVector(dbKeyString, dbKey); in SaveQueryWaterMarkToDB() 216 errCode = SetMetadataToDb(dbKey, dbValue); in SaveQueryWaterMarkToDB() 226 Key dbKey; in GetQueryWaterMarkFromDB() local 227 DBCommon::StringToVector(dbKeyString, dbKey); in GetQueryWaterMarkFromDB() 347 deleteSyncCache_[dbKey] = deleteWaterMark; in UpdateDeleteSyncCacheAndSave() 377 Key dbKey; in GetDeleteWaterMarkFromDB() local 378 DBCommon::StringToVector(hashDeviceId, dbKey); in GetDeleteWaterMarkFromDB() 398 Key dbKey; in SaveDeleteWaterMarkToDB() local [all …]
|
H A D | query_sync_water_mark_helper.h | 128 …int UpdateDeleteSyncCacheAndSave(const std::string &dbKey, const DeleteWaterMark &deleteWaterMark);
|
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/test/fuzztest/profileutils_fuzzer/ |
H A D | profileutils_fuzzer.cpp | 46 std::string dbKey(reinterpret_cast<const char*>(data), size); in GetProfileTypeFuzzTest() 47 ProfileUtils::GetProfileType(dbKey); in GetProfileTypeFuzzTest() 65 std::string dbKey = ""; in GetDeviceIdByDBKeyFuzzTest() local 66 ProfileUtils::GetDeviceIdByDBKey(dbKey); in GetDeviceIdByDBKeyFuzzTest() 74 std::string dbKey = "char#"; in GetCharKeyByDBKeyFuzzTest() local 75 ProfileUtils::GetCharKeyByDBKey(dbKey); in GetCharKeyByDBKeyFuzzTest() 96 std::string dbKey(reinterpret_cast<const char*>(data), size); in IsKeyValidFuzzTest() 97 ProfileUtils::IsKeyValid(dbKey); in IsKeyValidFuzzTest() 269 std::string dbKey = "profileKey#profileProperty"; in GetProfilePropertyFuzzTest() local 270 ProfileUtils::GetProfileProperty(dbKey); in GetProfilePropertyFuzzTest()
|
/ohos5.0/foundation/deviceprofile/device_info_manager/common/include/utils/ |
H A D | profile_utils.h | 83 static std::string GetProfileKey(const std::string& dbKey); 84 static std::string GetDeviceIdByDBKey(const std::string& dbKey); 85 static std::string GetServiceNameByDBKey(const std::string& dbKey); 86 static std::string GetNonOhSuffixServiceNameByDBKey(const std::string& dbKey); 90 static std::string GetCharKeyByDBKey(const std::string& dbKey); 94 static std::string GetProfileProperty(const std::string& dbKey);
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/decision_db/include/ |
H A D | lnn_decision_db.h | 41 int32_t EncryptStorageData(LnnEncryptDataLevel level, uint8_t *dbKey, uint32_t len); 42 int32_t DecryptStorageData(LnnEncryptDataLevel level, uint8_t *dbKey, uint32_t len);
|
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/src/utils/ |
H A D | profile_control_utils.cpp | 473 std::string dbKey = item.first; in GetAllDeviceProfile() local 475 std::string profileKey = ProfileUtils::GetProfileKey(dbKey); in GetAllDeviceProfile() 476 profileEntries[profileKey].emplace(dbKey, dbValue); in GetAllDeviceProfile() 501 std::string dbKey = item.first; in GetAllServiceProfile() local 503 std::string profileKey = ProfileUtils::GetProfileKey(dbKey); in GetAllServiceProfile() 504 profileEntries[profileKey].emplace(dbKey, dbValue); in GetAllServiceProfile() 529 std::string dbKey = item.first; in GetAllCharacteristicProfile() local 531 std::string profileKey = ProfileUtils::GetProfileKey(dbKey); in GetAllCharacteristicProfile() 532 profileEntries[profileKey].emplace(dbKey, dbValue); in GetAllCharacteristicProfile()
|
/ohos5.0/foundation/communication/dsoftbus/core/adapter/kv_store/src/ |
H A D | lnn_kv_data_change_listener.cpp | 58 std::string dbKey = item.key.ToString(); in OnChange() local 60 LnnDBDataChangeSyncToCacheInner(dbKey.c_str(), dbValue.c_str()); in OnChange()
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/backup/src/ |
H A D | backup_manager.cpp | 252 auto dbKey = meta.GetSecretKey(); in GetClearType() local 257 if (MetaDataManager::GetInstance().LoadMeta(dbKey, dbPassword, true)) { in GetClearType()
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/kvdb/ |
H A D | query_helper.cpp | 522 std::vector<uint8_t> dbKey; in HandleInKeys() local 523 dbKey.assign(inKey.begin(), inKey.end()); in HandleInKeys() 524 inDbKeys.insert(dbKey); in HandleInKeys()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/ |
H A D | distributeddb_single_ver_p2p_query_sync_test.cpp | 1685 Key dbKey; variable 1687 + DBCommon::TransferHashString(deviceId) + newQueryId, dbKey); 1689 EXPECT_EQ(storage.PutMetaData(dbKey, wrongValue, false), E_OK);
|