/base/notification/common_event_service/test/systemtest/common/acts/actsCESMatchingSkillsTest/ |
H A D | actsCESMatchingSkillsTest.cpp | 62 * @tc.desc: Verify the function of MatchingSkills entity: AddEntity、GetEntity、 69 std::string entity = "entity"; in HWTEST_F() local 74 matchingSkills.AddEntity(entity); in HWTEST_F() 77 EXPECT_EQ(entity, matchingSkills.GetEntity(0)); in HWTEST_F() 79 EXPECT_EQ(false, entity == matchingSkills.GetEntity(1000)); in HWTEST_F() 80 if (matchingSkills.HasEntity(entity)) { in HWTEST_F() 81 matchingSkills.RemoveEntity(entity); in HWTEST_F() 85 EXPECT_FALSE(matchingSkills.HasEntity(entity)); in HWTEST_F() 105 * @tc.desc: Verify the function of MatchingSkills entity wit 112 std::string entity = "EventEntityTest"; HWTEST_F() local 155 std::string entity = "EventEntityTes2t"; HWTEST_F() local 203 std::string entity = "EventEntityTest3"; HWTEST_F() local 268 std::string entity = "EventEntityTest3"; HWTEST_F() local 679 std::string entity = "matchEntity"; HWTEST_F() local 712 std::string entity = "matchEntity2"; HWTEST_F() local 746 std::string entity = "matchEntity3"; HWTEST_F() local 780 std::string entity = "matchEntity4"; HWTEST_F() local 814 std::string entity = "matchEntity5"; HWTEST_F() local 998 std::string entity = "entity"; HWTEST_F() local 1033 std::string entity = "entity2"; HWTEST_F() local 1068 std::string entity = "entity3"; HWTEST_F() local 1102 std::string entity = "entity4"; HWTEST_F() local 1136 std::string entity = "entity5"; HWTEST_F() local [all...] |
/base/security/security_component_manager/services/security_component_service/sa/test/unittest/src/ |
H A D | first_use_dialog_test.cpp | 365 std::shared_ptr<SecCompEntity> entity = std::make_shared<SecCompEntity>(nullptr, 0, 0, 0, 0); in HWTEST_F() local 372 // no entity in HWTEST_F() 376 EXPECT_EQ(diag.SetFirstUseMap(entity), false); in HWTEST_F() 379 entity->componentInfo_ = std::make_shared<LocationButton>(); in HWTEST_F() 380 entity->componentInfo_->type_ = LOCATION_COMPONENT; in HWTEST_F() 381 entity->tokenId_ = 0; in HWTEST_F() 382 EXPECT_EQ(diag.SetFirstUseMap(entity), true); in HWTEST_F() 386 entity->componentInfo_->type_ = SAVE_COMPONENT; in HWTEST_F() 387 EXPECT_EQ(diag.SetFirstUseMap(entity), true); in HWTEST_F() 391 EXPECT_EQ(diag.SetFirstUseMap(entity), tru in HWTEST_F() 412 std::shared_ptr<SecCompEntity> entity = std::make_shared<SecCompEntity>(nullptr, 0, 0, 0, 0); HWTEST_F() local 469 std::shared_ptr<SecCompEntity> entity = std::make_shared<SecCompEntity>(nullptr, 1, 0, 0, 0); HWTEST_F() local 493 std::shared_ptr<SecCompEntity> entity = std::make_shared<SecCompEntity>(nullptr, 0, 0, 0, 0); HWTEST_F() local [all...] |
H A D | sec_comp_manager_test.cpp | 156 std::shared_ptr<SecCompEntity> entity = in HWTEST_F() local 160 ASSERT_EQ(SC_OK, SecCompManager::GetInstance().AddSecurityComponentToList(1, 0, entity)); in HWTEST_F() 185 std::shared_ptr<SecCompEntity> entity = in HWTEST_F() local 190 SecCompManager::GetInstance().AddSecurityComponentToList(ServiceTestCommon::TEST_PID_1, 0, entity)); in HWTEST_F() 211 std::shared_ptr<SecCompEntity> entity = in HWTEST_F() local 215 SecCompManager::GetInstance().AddSecurityComponentToList(ServiceTestCommon::TEST_PID_1, 0, entity)); in HWTEST_F() 241 std::shared_ptr<SecCompEntity> entity = in HWTEST_F() local 245 SecCompManager::GetInstance().AddSecurityComponentToList(ServiceTestCommon::TEST_PID_1, 0, entity)); in HWTEST_F() 268 std::shared_ptr<SecCompEntity> entity = in HWTEST_F() local 272 SecCompManager::GetInstance().AddSecurityComponentToList(ServiceTestCommon::TEST_PID_1, 0, entity)); in HWTEST_F() 298 std::shared_ptr<SecCompEntity> entity = HWTEST_F() local 382 std::shared_ptr<SecCompEntity> entity = HWTEST_F() local 451 std::shared_ptr<SecCompEntity> entity = HWTEST_F() local 477 std::shared_ptr<SecCompEntity> entity = HWTEST_F() local 512 std::shared_ptr<SecCompEntity> entity = HWTEST_F() local 534 std::shared_ptr<SecCompEntity> entity = HWTEST_F() local 582 std::shared_ptr<SecCompEntity> entity = HWTEST_F() local 625 std::shared_ptr<SecCompEntity> entity = HWTEST_F() local 684 std::shared_ptr<SecCompEntity> entity = HWTEST_F() local [all...] |
/base/hiviewdfx/hilog/interfaces/js/kits/napi/src/common/napi/ |
H A D | n_class.h | 59 template<class T> static bool SetEntityFor(napi_env env, napi_value obj, std::unique_ptr<T> entity)
in SetEntityFor() argument 64 entity.get(),
in SetEntityFor() 66 auto entity = static_cast<T *>(data);
in SetEntityFor() 67 delete entity;
in SetEntityFor() 71 entity.release();
in SetEntityFor()
|
/base/powermgr/power_manager/frameworks/napi/runninglock/ |
H A D | runninglock_interface.cpp | 147 RunningLockEntity* entity = nullptr; in Lock() local 148 status = napi_unwrap(env, thisArg, (void**)&entity); in Lock() 153 if (entity == nullptr || entity->runningLock == nullptr) { in Lock() 157 entity->runningLock->Lock(timeOut); in Lock() 171 RunningLockEntity* entity = nullptr; in IsUsed() local 172 status = napi_unwrap(env, thisArg, (void**)&entity); in IsUsed() 177 if (entity == nullptr || entity->runningLock == nullptr) { in IsUsed() 181 bool isUsed = entity in IsUsed() 194 RunningLockEntity* entity = nullptr; Unlock() local 213 RunningLockEntity* entity = nullptr; CreateInstanceForRunningLock() local [all...] |
H A D | runninglock_napi.cpp | 222 RunningLockEntity* entity = nullptr; in UnwrapRunningLock() local 223 if (napi_ok != napi_unwrap(env, thisArg, (void**)&entity)) { in UnwrapRunningLock() 227 if (entity == nullptr || entity->runningLock == nullptr) { in UnwrapRunningLock() 231 return entity->runningLock; in UnwrapRunningLock()
|
H A D | runninglock_module.cpp | 45 auto entity = reinterpret_cast<RunningLockEntity*>(data); in RunningLockConstructor() 46 delete entity; in RunningLockConstructor()
|
/base/security/security_component_manager/services/security_component_service/sa/sa_main/ |
H A D | first_use_dialog.cpp | 256 std::shared_ptr<SecCompEntity> entity = iter->second; in RemoveDialogWaitEntitys() local 257 if ((entity != nullptr) && (entity->pid_ == pid)) { in RemoveDialogWaitEntitys() 296 void FirstUseDialog::StartDialogAbility(std::shared_ptr<SecCompEntity> entity, in StartDialogAbility() argument 300 SecCompType type = entity->GetType(); in StartDialogAbility() 309 int32_t scId = entity->scId_; in StartDialogAbility() 310 SecCompDialogSrvCallback *call = new (std::nothrow)SecCompDialogSrvCallback(scId, entity, dialogCallback); in StartDialogAbility() 316 dialogWaitMap_[scId] = entity; in StartDialogAbility() 339 bool FirstUseDialog::SetFirstUseMap(std::shared_ptr<SecCompEntity> entity) in SetFirstUseMap() argument 342 if (entity in SetFirstUseMap() 371 NotifyFirstUseDialog(std::shared_ptr<SecCompEntity> entity, sptr<IRemoteObject> callerToken, sptr<IRemoteObject> dialogCallback) NotifyFirstUseDialog() argument [all...] |
H A D | first_use_dialog.h | 56 int32_t NotifyFirstUseDialog(std::shared_ptr<SecCompEntity> entity, 61 bool SetFirstUseMap(std::shared_ptr<SecCompEntity> entity); 75 void StartDialogAbility(std::shared_ptr<SecCompEntity> entity,
|
/base/security/security_component_manager/test/fuzztest/security_component/mock/ |
H A D | first_use_dialog.cpp | 88 void FirstUseDialog::StartDialogAbility(std::shared_ptr<SecCompEntity> entity, in StartDialogAbility() argument 99 bool FirstUseDialog::SetFirstUseMap(std::shared_ptr<SecCompEntity> entity) in SetFirstUseMap() argument 104 int32_t FirstUseDialog::NotifyFirstUseDialog(std::shared_ptr<SecCompEntity> entity, in NotifyFirstUseDialog() argument
|
/base/notification/common_event_service/frameworks/native/src/ |
H A D | matching_skills.cpp | 37 std::string entity; in GetEntity() local 39 entity = entities_[index]; in GetEntity() 41 return entity; in GetEntity() 44 void MatchingSkills::AddEntity(const std::string &entity) in AddEntity() argument 46 auto it = std::find(entities_.begin(), entities_.end(), entity); in AddEntity() 48 entities_.emplace_back(entity); in AddEntity() 52 bool MatchingSkills::HasEntity(const std::string &entity) const in HasEntity() 54 return std::find(entities_.cbegin(), entities_.cend(), entity) != entities_.cend(); in HasEntity() 57 void MatchingSkills::RemoveEntity(const std::string &entity) in RemoveEntity() argument 59 auto it = std::find(entities_.cbegin(), entities_.cend(), entity); in RemoveEntity() [all...] |
/base/notification/common_event_service/frameworks/native/test/unittest/ |
H A D | matching_skills_test.cpp | 59 * CaseDescription: Verify the function when after add entity can get entity 60 * and count entity is right,has entity and can success remove entity 66 std::string entity = "event.unit.test"; in HWTEST_F() local 67 matchSkills.AddEntity(entity); in HWTEST_F() 68 matchSkills.AddEntity(entity); in HWTEST_F() 71 EXPECT_EQ(true, matchSkills.HasEntity(entity)); in HWTEST_F() 73 EXPECT_EQ(entity, matchSkill in HWTEST_F() 176 std::string entity = "event.unit.test"; HWTEST_F() local 217 std::string entity; HWTEST_F() local [all...] |
H A D | common_event_unsubscribe_test.cpp | 53 void SetMatchingSkillsWithEntity(const std::string &entity); 136 void CommonEventUnSubscribeTest::SetMatchingSkillsWithEntity(const std::string &entity) in SetMatchingSkillsWithEntity() argument 138 matchingSkills_.AddEntity(entity); in SetMatchingSkillsWithEntity()
|
/base/notification/common_event_service/interfaces/inner_api/ |
H A D | matching_skills.h | 39 * Obtains an entity. 41 * @param index Indicates the entity index. 42 * @return Returns entity. 47 * Adds an entity to this MatchingSkills object. 49 * @param entity Indicates the entity. 51 void AddEntity(const std::string &entity); 54 * Checks whether the entity is in this MatchingSkills object. 56 * @param event Indicates specified entity in MatchingSkills object. 57 * @return Returns whether the entity i [all...] |
/base/powermgr/power_manager/frameworks/napi/utils/ |
H A D | async_callback_info.cpp | 105 RunningLockEntity* entity = nullptr; in CreateInstanceForRunningLock() local 106 status = napi_unwrap(env, instance, (void**)&entity); in CreateInstanceForRunningLock() 107 if (status != napi_ok || entity == nullptr) { in CreateInstanceForRunningLock() 108 POWER_HILOGW(FEATURE_RUNNING_LOCK, "Cannot unwrap entity from instance"); in CreateInstanceForRunningLock() 111 entity->runningLock = runningLock_; in CreateInstanceForRunningLock()
|
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/ |
H A D | fold_app_usage_db_helper.cpp | 274 NativeRdb::RowEntity entity;
in QueryAppEventRecords() local 275 if (resultSet->GetRow(entity) != NativeRdb::E_OK) {
in QueryAppEventRecords() 276 HIVIEW_LOGI("failed to read row entity from result set");
in QueryAppEventRecords() 281 ParseEntity(entity, record);
in QueryAppEventRecords() 291 void FoldAppUsageDbHelper::ParseEntity(NativeRdb::RowEntity& entity, AppEventRecord& record)
in ParseEntity() argument 293 entity.Get(FoldEventTable::FIELD_EVENT_ID).GetInt(record.rawid);
in ParseEntity() 294 entity.Get(FoldEventTable::FIELD_TS).GetLong(record.ts);
in ParseEntity() 295 entity.Get(FoldEventTable::FIELD_FOLD_STATUS).GetInt(record.foldStatus);
in ParseEntity() 296 entity.Get(FoldEventTable::FIELD_PRE_FOLD_STATUS).GetInt(record.preFoldStatus);
in ParseEntity() 297 entity in ParseEntity() [all...] |
/base/hiviewdfx/hiview/plugins/event_store/event_export/database/adapter/ |
H A D | export_db_storage.cpp | 133 NativeRdb::RowEntity entity; in QueryExportDetailRecord() local 134 if (records->GetRow(entity) != NativeRdb::E_OK) { in QueryExportDetailRecord() 135 HIVIEW_LOGE("failed to read row entity from result set."); in QueryExportDetailRecord() 139 if (entity.Get(COLUMN_MODULE_NAME).GetString(record.moduleName) != NativeRdb::E_OK || in QueryExportDetailRecord() 140 entity.Get(COLUMN_EXPORT_ENABLED_SEQ).GetLong(record.exportEnabledSeq) != NativeRdb::E_OK || in QueryExportDetailRecord() 141 entity.Get(COLUMN_EXPORTED_MAX_SEQ).GetLong(record.exportedMaxSeq) != NativeRdb::E_OK) { in QueryExportDetailRecord() 142 HIVIEW_LOGE("failed to read module_name/export_enabled_seq/exported_max_seq from entity."); in QueryExportDetailRecord()
|
/base/notification/common_event_service/test/benchmarktest/common_event_publish_test/ |
H A D | common_event_publish_test.cpp | 107 std::string entity = "ADDENTITY";
in BENCHMARK_F() local 111 testWant.AddEntity(entity);
in BENCHMARK_F()
|
/base/notification/common_event_service/test/systemtest/common/ces/common_event_services_system_test/ |
H A D | common_event_services_system_test.cpp | 716 * @tc.desc: Verify the function when add entity 722 std::string entity = "ADDENTITY"; in HWTEST_F() local 726 wantTest.AddEntity(entity); in HWTEST_F() 793 * @tc.desc: Verify the function when set scheme and add entity 800 std::string entity = "ADDENTITY"; in HWTEST_F() local 804 wantTest.AddEntity(entity); in HWTEST_F() 873 * @tc.desc: Verify add entity with sticky is true 878 std::string entity = "ADDENTITY"; in HWTEST_F() local 882 wantTest.AddEntity(entity); in HWTEST_F() 901 * @tc.desc: Verify add entity wit 907 std::string entity = "ADDENTITY"; HWTEST_F() local 1042 std::string entity = "ADDENTITY"; HWTEST_F() local 1072 std::string entity = "ADDENTITY"; HWTEST_F() local 1154 std::string entity = "ADDENTITY"; HWTEST_F() local 1183 std::string entity = "ADDENTITY"; HWTEST_F() local 1318 std::string entity = "ADDENTITY"; HWTEST_F() local 1348 std::string entity = "ADDENTITY"; HWTEST_F() local 1492 std::string entity = "ADDENTITY"; HWTEST_F() local 1624 std::string entity = "ADDENTITY"; HWTEST_F() local 1671 std::string entity = "addEntity"; HWTEST_F() local 2435 std::string entity = "entity"; HWTEST_F() local 2452 std::string entity = "entity"; HWTEST_F() local 2469 std::string entity = "entity"; HWTEST_F() local 2487 std::string entity = "entity"; HWTEST_F() local [all...] |
/base/security/device_auth/services/identity_manager/src/ |
H A D | identity_common.c | 181 ProtocolEntity **entity; in ClearProtocolEntityVec() local 182 FOR_EACH_HC_VECTOR(*vec, index, entity) in ClearProtocolEntityVec() 184 HcFree(*entity); in ClearProtocolEntityVec()
|
H A D | cert_operation.c | 36 ProtocolEntity *entity = (ProtocolEntity *)HcMalloc(sizeof(ProtocolEntity), 0); in SetProtocolsForUidType() local 37 if (entity == NULL) { in SetProtocolsForUidType() 38 LOGE("Failed to alloc memory for entity!"); in SetProtocolsForUidType() 41 entity->protocolType = ALG_ISO; in SetProtocolsForUidType() 42 entity->expandProcessCmds = CMD_ADD_TRUST_DEVICE; in SetProtocolsForUidType() 43 if (info->protocolVec.pushBack(&info->protocolVec, (const ProtocolEntity **)&entity) == NULL) { in SetProtocolsForUidType() 44 LOGE("Failed to push entity to vec"); in SetProtocolsForUidType() 45 HcFree(entity); in SetProtocolsForUidType() 421 LOGE("Failed to alloc memory for ec speke entity!"); in GetAccountAsymIdentityInfo()
|
H A D | identity_group.c | 109 ProtocolEntity *entity = (ProtocolEntity *)HcMalloc(sizeof(ProtocolEntity), 0); in SetProtocolsToIdentityInfo() local 110 if (entity == NULL) { in SetProtocolsToIdentityInfo() 111 LOGE("Failed to alloc memory for entity!"); in SetProtocolsToIdentityInfo() 114 entity->protocolType = ALG_EC_SPEKE; in SetProtocolsToIdentityInfo() 115 info->protocolVec.pushBack(&info->protocolVec, (const ProtocolEntity **)&entity); in SetProtocolsToIdentityInfo() 121 ProtocolEntity *entity = (ProtocolEntity *)HcMalloc(sizeof(ProtocolEntity), 0); in SetProtocolsToIdentityInfo() local 122 if (entity == NULL) { in SetProtocolsToIdentityInfo() 123 LOGE("Failed to alloc memory for entity!"); in SetProtocolsToIdentityInfo() 126 entity->protocolType = ALG_ISO; in SetProtocolsToIdentityInfo() 127 info->protocolVec.pushBack(&info->protocolVec, (const ProtocolEntity **)&entity); in SetProtocolsToIdentityInfo() [all...] |
/base/powermgr/battery_statistics/services/native/include/ |
H A D | battery_stats_core.h | 85 void UpdateTimer(std::shared_ptr<BatteryStatsEntity> entity, StatsUtils::StatsType statsType, 87 void UpdateTimer(std::shared_ptr<BatteryStatsEntity> entity, StatsUtils::StatsType statsType, 92 void UpdateCounter(std::shared_ptr<BatteryStatsEntity> entity, StatsUtils::StatsType statsType,
|
/base/notification/common_event_service/test/systemtest/common/acts/actsCESManagertest/ |
H A D | actsCESManagertest.cpp | 1042 * @tc.desc: Verify the function when add entity 1049 std::string entity = "ADDENTITY"; in HWTEST_F() local 1055 wantTest.AddEntity(entity); in HWTEST_F() 1117 * @tc.desc: Verify the function when set scheme and add entity 1125 std::string entity = "ADDENTITY"; in HWTEST_F() local 1131 wantTest.AddEntity(entity); in HWTEST_F() 1195 * @tc.desc: Verify add entity with sticky is true 1204 std::string entity = "ADDENTITY"; in HWTEST_F() local 1209 wantTest.AddEntity(entity); in HWTEST_F() 1236 * @tc.desc: Verify add entity wit 1243 std::string entity = "ADDENTITY"; HWTEST_F() local 1403 std::string entity = "ADDENTITY"; HWTEST_F() local 1445 std::string entity = "ADDENTITY"; HWTEST_F() local 1526 std::string entity = "ADDENTITY"; HWTEST_F() local 1567 std::string entity = "ADDENTITY"; HWTEST_F() local 1727 std::string entity = "ADDENTITY"; HWTEST_F() local 1769 std::string entity = "ADDENTITY"; HWTEST_F() local 1941 std::string entity = "ADDENTITY"; HWTEST_F() local 2067 std::string entity = "ADDENTITY"; HWTEST_F() local 2112 std::string entity = "addEntity"; HWTEST_F() local 3009 std::string entity = "entity"; HWTEST_F() local 3042 std::string entity = "entity"; HWTEST_F() local 3075 std::string entity = "entity"; HWTEST_F() local 3109 std::string entity = "entity"; HWTEST_F() local [all...] |
/base/powermgr/battery_statistics/services/native/src/ |
H A D | battery_stats_core.cpp | 60 STATS_HILOGD(COMP_SVC, "Create bluetooth entity"); in CreatePartEntity() 64 STATS_HILOGD(COMP_SVC, "Create idle entity"); in CreatePartEntity() 68 STATS_HILOGD(COMP_SVC, "Create phone entity"); in CreatePartEntity() 72 STATS_HILOGD(COMP_SVC, "Create screen entity"); in CreatePartEntity() 76 STATS_HILOGD(COMP_SVC, "Create wifi entity"); in CreatePartEntity() 84 STATS_HILOGD(COMP_SVC, "Create audio entity"); in CreateAppEntity() 88 STATS_HILOGD(COMP_SVC, "Create camera entity"); in CreateAppEntity() 92 STATS_HILOGD(COMP_SVC, "Create flashlight entity"); in CreateAppEntity() 96 STATS_HILOGD(COMP_SVC, "Create gnss entity"); in CreateAppEntity() 100 STATS_HILOGD(COMP_SVC, "Create sensor entity"); in CreateAppEntity() 388 UpdateTimer(std::shared_ptr<BatteryStatsEntity> entity, StatsUtils::StatsType statsType, StatsUtils::StatsState state, int32_t uid) UpdateTimer() argument 421 UpdateTimer(std::shared_ptr<BatteryStatsEntity> entity, StatsUtils::StatsType statsType, int64_t time, int32_t uid) UpdateTimer() argument 543 UpdateCounter(std::shared_ptr<BatteryStatsEntity> entity, StatsUtils::StatsType statsType, int64_t data, int32_t uid) UpdateCounter() argument [all...] |