/ohos5.0/base/security/security_component_manager/interfaces/inner_api/security_component/test/unittest/src/ |
H A D | sec_comp_register_callback_test.cpp | 139 int32_t scId; variable 160 int32_t scId; variable 187 int32_t scId; variable 204 int32_t scId; variable 240 int32_t scId; variable 274 int32_t scId; variable 291 int32_t scId; variable 327 int32_t scId; variable 366 int32_t scId; variable 404 int32_t scId; variable [all …]
|
H A D | sec_comp_kit_test.cpp | 38 int32_t scId = -1; in TestInCallerNotCheckList() local 42 int updateRes = SecCompKit::UpdateSecurityComponent(scId, emptyStr); in TestInCallerNotCheckList() 53 int32_t scId = -1; in TestInCallerCheckList() local 57 int updateRes = SecCompKit::UpdateSecurityComponent(scId, emptyStr); in TestInCallerCheckList() 116 int32_t scId = -1; variable 119 ASSERT_EQ(-1, scId); 130 EXPECT_NE(SC_OK, SecCompKit::UnregisterSecurityComponent(scId)); 193 int32_t scId; variable 197 ASSERT_EQ(0, scId); 201 ASSERT_NE(-1, scId); [all …]
|
/ohos5.0/base/security/security_component_manager/services/security_component_service/sa/test/unittest/src/ |
H A D | sec_comp_service_mock_test.cpp | 83 int32_t scId; variable 101 EXPECT_EQ(SC_OK, secCompService_->RegisterSecurityComponent(SAVE_COMPONENT, saveInfo, scId)); 102 EXPECT_EQ(SC_OK, secCompService_->UpdateSecurityComponent(scId, saveInfo)); 119 EXPECT_EQ(SC_OK, secCompService_->UnregisterSecurityComponent(scId)); 131 int32_t scId; variable 154 EXPECT_EQ(SC_OK, secCompService_->UnregisterSecurityComponent(scId)); 166 int32_t scId; variable 195 EXPECT_EQ(SC_OK, secCompService_->UnregisterSecurityComponent(scId)); 207 int32_t scId; variable 257 EXPECT_EQ(SC_OK, secCompService_->UnregisterSecurityComponent(scId)); [all …]
|
H A D | sec_comp_stub_mock_test.h | 31 const std::string& componentInfo, int32_t& scId) override in RegisterSecurityComponent() 36 int32_t UpdateSecurityComponent(int32_t scId, const std::string& componentInfo) override in UpdateSecurityComponent() 41 int32_t UnregisterSecurityComponent(int32_t scId) override in UnregisterSecurityComponent() 46 int32_t ReportSecurityComponentClickEvent(int32_t scId, const std::string& componentInfo, in ReportSecurityComponentClickEvent()
|
H A D | sec_comp_stub_test.h | 31 const std::string& componentInfo, int32_t& scId) override in RegisterSecurityComponent() 36 int32_t UpdateSecurityComponent(int32_t scId, const std::string& componentInfo) override in UpdateSecurityComponent() 41 int32_t UnregisterSecurityComponent(int32_t scId) override in UnregisterSecurityComponent() 46 int32_t ReportSecurityComponentClickEvent(int32_t scId, const std::string& componentInfo, in ReportSecurityComponentClickEvent()
|
H A D | sec_comp_service_test.cpp | 247 int32_t scId; variable 249 secCompService_->RegisterSecurityComponent(LOCATION_COMPONENT, "", scId)); 264 secCompService_->RegisterSecurityComponent(LOCATION_COMPONENT, locationInfo, scId)); 277 … secCompService_->ReportSecurityComponentClickEvent(scId, locationInfo, touch, nullptr, nullptr)); 278 EXPECT_EQ(SC_OK, secCompService_->UnregisterSecurityComponent(scId)); 361 int32_t scId = 0; variable 363 EXPECT_NE(secCompService_->UnregisterSecurityComponent(scId), SC_SERVICE_ERROR_VALUE_INVALID); 366 …EXPECT_EQ(secCompService_->ReportSecurityComponentClickEvent(scId, componentInfo, touchInfo, nullp…
|
/ohos5.0/base/security/security_component_manager/interfaces/inner_api/security_component/src/ |
H A D | sec_comp_kit.cpp | 34 std::string& componentInfo, int32_t& scId) in RegisterSecurityComponent() argument 59 SecCompEnhanceAdapter::RegisterScIdEnhance(scId); in RegisterSecurityComponent() 63 int32_t SecCompKit::UpdateSecurityComponent(int32_t scId, std::string& componentInfo) in UpdateSecurityComponent() argument 78 if (!SecCompEnhanceAdapter::EnhanceDataPreprocess(scId, componentInfo)) { in UpdateSecurityComponent() 83 int32_t res = SecCompClient::GetInstance().UpdateSecurityComponent(scId, componentInfo); in UpdateSecurityComponent() 90 int32_t SecCompKit::UnregisterSecurityComponent(int32_t scId) in UnregisterSecurityComponent() argument 92 int32_t res = SecCompClient::GetInstance().UnregisterSecurityComponent(scId); in UnregisterSecurityComponent() 93 SecCompEnhanceAdapter::UnregisterScIdEnhance(scId); in UnregisterSecurityComponent() 100 "CALLER_PID", IPCSkeleton::GetCallingRealPid(), "SC_ID", scId); in UnregisterSecurityComponent() 104 int32_t SecCompKit::ReportSecurityComponentClickEvent(int32_t scId, in ReportSecurityComponentClickEvent() argument [all …]
|
H A D | sec_comp_client.cpp | 52 const std::string& componentInfo, int32_t& scId) in RegisterSecurityComponent() argument 60 return proxy->RegisterSecurityComponent(type, componentInfo, scId); in RegisterSecurityComponent() 63 int32_t SecCompClient::UpdateSecurityComponent(int32_t scId, const std::string& componentInfo) in UpdateSecurityComponent() argument 71 return proxy->UpdateSecurityComponent(scId, componentInfo); in UpdateSecurityComponent() 74 int32_t SecCompClient::UnregisterSecurityComponent(int32_t scId) in UnregisterSecurityComponent() argument 82 return proxy->UnregisterSecurityComponent(scId); in UnregisterSecurityComponent() 85 int32_t SecCompClient::ReportSecurityComponentClickEvent(int32_t scId, in ReportSecurityComponentClickEvent() argument 95 …return proxy->ReportSecurityComponentClickEvent(scId, componentInfo, clickInfo, callerToken, dialo… in ReportSecurityComponentClickEvent()
|
H A D | sec_comp_proxy.cpp | 37 const std::string& componentInfo, int32_t& scId) in RegisterSecurityComponent() argument 90 if (!deserializedReply.ReadInt32(scId)) { in RegisterSecurityComponent() 97 int32_t SecCompProxy::UpdateSecurityComponent(int32_t scId, const std::string& componentInfo) in UpdateSecurityComponent() argument 107 if (!rawData.WriteInt32(scId)) { in UpdateSecurityComponent() 150 int32_t SecCompProxy::UnregisterSecurityComponent(int32_t scId) in UnregisterSecurityComponent() argument 160 if (!rawData.WriteInt32(scId)) { in UnregisterSecurityComponent() 232 int32_t SecCompProxy::ReportSecurityComponentClickEvent(int32_t scId, in ReportSecurityComponentClickEvent() argument 244 if (!rawData.WriteInt32(scId)) { in ReportSecurityComponentClickEvent()
|
/ohos5.0/base/security/security_component_manager/services/security_component_service/sa/sa_main/ |
H A D | sec_comp_stub.cpp | 77 int32_t scId = INVALID_SC_ID; in RegisterSecurityComponentInner() local 85 if (!rawReply.WriteInt32(scId)) { in RegisterSecurityComponentInner() 105 int32_t scId; in UpdateSecurityComponentInner() local 106 if (!deserializedData.ReadInt32(scId)) { in UpdateSecurityComponentInner() 111 if (scId < 0) { in UpdateSecurityComponentInner() 144 int32_t scId; in UnregisterSecurityComponentInner() local 145 if (!deserializedData.ReadInt32(scId)) { in UnregisterSecurityComponentInner() 150 if (scId < 0) { in UnregisterSecurityComponentInner() 189 int32_t scId; in ReportSecurityComponentClickEventInner() local 190 if (!deserializedData.ReadInt32(scId)) { in ReportSecurityComponentClickEventInner() [all …]
|
H A D | sec_comp_manager.h | 55 const SecCompCallerInfo& caller, int32_t& scId); 56 int32_t UpdateSecurityComponent(int32_t scId, const nlohmann::json& jsonComponent, 58 int32_t UnregisterSecurityComponent(int32_t scId, const SecCompCallerInfo& caller); 59 int32_t ReportSecurityComponentClickEvent(int32_t scId, const nlohmann::json& jsonComponent, 77 int32_t DeleteSecurityComponentFromList(int32_t pid, int32_t scId); 78 std::shared_ptr<SecCompEntity> GetSecurityComponentFromList(int32_t pid, int32_t scId); 79 int32_t CheckClickSecurityComponentInfo(std::shared_ptr<SecCompEntity> sc, int32_t scId, 81 void SendCheckInfoEnhanceSysEvent(int32_t scId,
|
H A D | sec_comp_manager.cpp | 94 int32_t SecCompManager::DeleteSecurityComponentFromList(int32_t pid, int32_t scId) in DeleteSecurityComponentFromList() argument 109 if (sc->scId_ == scId) { in DeleteSecurityComponentFromList() 164 if (sc->scId_ == scId) { in GetSecurityComponentFromList() 298 void SecCompManager::SendCheckInfoEnhanceSysEvent(int32_t scId, in SendCheckInfoEnhanceSysEvent() argument 378 scId = registerId; in RegisterSecurityComponent() 381 scId = INVALID_SC_ID; in RegisterSecurityComponent() 432 if (scId < 0) { in UnregisterSecurityComponent() 436 return DeleteSecurityComponentFromList(caller.pid, scId); in UnregisterSecurityComponent() 496 int32_t SecCompManager::ReportSecurityComponentClickEvent(int32_t scId, in ReportSecurityComponentClickEvent() argument 526 scId, sc->GetType()); in ReportSecurityComponentClickEvent() [all …]
|
H A D | sec_comp_service.cpp | 188 const std::string& componentInfo, int32_t& scId) in RegisterSecurityComponent() argument 208 …int32_t res = SecCompManager::GetInstance().RegisterSecurityComponent(type, jsonRes, caller, scId); in RegisterSecurityComponent() 223 bundleInfo.versionName, "SC_ID", scId, "SC_TYPE", type); in RegisterSecurityComponent() 227 int32_t SecCompService::UpdateSecurityComponent(int32_t scId, const std::string& componentInfo) in UpdateSecurityComponent() argument 234 return SecCompManager::GetInstance().UpdateSecurityComponent(scId, jsonRes, caller); in UpdateSecurityComponent() 237 int32_t SecCompService::UnregisterSecurityComponent(int32_t scId) in UnregisterSecurityComponent() argument 244 return SecCompManager::GetInstance().UnregisterSecurityComponent(scId, caller); in UnregisterSecurityComponent() 247 int32_t SecCompService::ReportSecurityComponentClickEvent(int32_t scId, in ReportSecurityComponentClickEvent() argument 260 … SecCompManager::GetInstance().ReportSecurityComponentClickEvent(scId, jsonRes, caller, clickInfo, in ReportSecurityComponentClickEvent()
|
H A D | first_use_dialog.cpp | 260 int32_t FirstUseDialog::GrantDialogWaitEntity(int32_t scId) in GrantDialogWaitEntity() argument 263 auto it = dialogWaitMap_.find(scId); in GrantDialogWaitEntity() 265 SC_LOG_ERROR(LABEL, "Grant dialog wait security component %{public}d is not exist", scId); in GrantDialogWaitEntity() 271 SC_LOG_ERROR(LABEL, "Grant dialog wait security component %{public}d is nullptr", scId); in GrantDialogWaitEntity() 281 "CALLER_PID", sc->pid_, "SC_ID", scId, "SC_TYPE", sc->GetType()); in GrantDialogWaitEntity() 285 "CALLER_PID", sc->pid_, "SC_ID", scId, "SC_TYPE", sc->GetType()); in GrantDialogWaitEntity() 287 dialogWaitMap_.erase(scId); in GrantDialogWaitEntity() 304 int32_t scId = entity->scId_; in StartDialogAbility() local 305 …SecCompDialogSrvCallback *call = new (std::nothrow)SecCompDialogSrvCallback(scId, entity, dialogCa… in StartDialogAbility() 311 dialogWaitMap_[scId] = entity; in StartDialogAbility() [all …]
|
H A D | sec_comp_service.h | 43 …isterSecurityComponent(SecCompType type, const std::string& componentInfo, int32_t& scId) override; 44 int32_t UpdateSecurityComponent(int32_t scId, const std::string& componentInfo) override; 45 int32_t UnregisterSecurityComponent(int32_t scId) override; 46 int32_t ReportSecurityComponentClickEvent(int32_t scId,
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/security_component/mock/ |
H A D | sec_comp_kit.h | 67 …atic int32_t RegisterSecurityComponent(SecCompType type, std::string& componentInfo, int32_t& scId) in RegisterSecurityComponent() argument 69 scId = 1; in RegisterSecurityComponent() 73 static int32_t UpdateSecurityComponent(int32_t scId, std::string& componentInfo) in UpdateSecurityComponent() argument 78 static int32_t UnregisterSecurityComponent(int32_t scId) in UnregisterSecurityComponent() argument 88 static int32_t ReportSecurityComponentClickEvent(int32_t scId, in ReportSecurityComponentClickEvent() argument
|
/ohos5.0/base/security/security_component_manager/test/fuzztest/security_component/service/updatesecuritycomponentstub_fuzzer/ |
H A D | updatesecuritycomponentstub_fuzzer.cpp | 62 int32_t scId = 0; in RegisterSecurityComponentStub() local 63 if (!deserializedReply.ReadInt32(scId)) { in RegisterSecurityComponentStub() 66 return scId; in RegisterSecurityComponentStub() 82 int32_t scId = RegisterSecurityComponentStub(type, compoInfo); in UpdateSecurityComponentStubFuzzTest() local 83 if (!rawData.WriteInt32(scId)) { in UpdateSecurityComponentStubFuzzTest()
|
/ohos5.0/base/security/security_component_manager/interfaces/inner_api/security_component/include/ |
H A D | sec_comp_kit.h | 29 …tic int32_t RegisterSecurityComponent(SecCompType type, std::string& componentInfo, int32_t& scId); 30 static int32_t UpdateSecurityComponent(int32_t scId, std::string& componentInfo); 31 static int32_t UnregisterSecurityComponent(int32_t scId); 32 static int32_t ReportSecurityComponentClickEvent(int32_t scId,
|
H A D | i_sec_comp_service.h | 34 const std::string& componentInfo, int32_t& scId) = 0; 35 virtual int32_t UpdateSecurityComponent(int32_t scId, const std::string& componentInfo) = 0; 36 virtual int32_t UnregisterSecurityComponent(int32_t scId) = 0; 37 … virtual int32_t ReportSecurityComponentClickEvent(int32_t scId, const std::string& componentInfo,
|
H A D | sec_comp_proxy.h | 29 …isterSecurityComponent(SecCompType type, const std::string& componentInfo, int32_t& scId) override; 30 int32_t UpdateSecurityComponent(int32_t scId, const std::string& componentInfo) override; 31 int32_t UnregisterSecurityComponent(int32_t scId) override; 32 int32_t ReportSecurityComponentClickEvent(int32_t scId,
|
H A D | sec_comp_client.h | 33 …t32_t RegisterSecurityComponent(SecCompType type, const std::string& componentInfo, int32_t& scId); 34 int32_t UpdateSecurityComponent(int32_t scId, const std::string& componentInfo); 35 int32_t UnregisterSecurityComponent(int32_t scId); 36 int32_t ReportSecurityComponentClickEvent(int32_t scId,
|
/ohos5.0/base/security/security_component_manager/frameworks/enhance_adapter/include/ |
H A D | sec_comp_enhance_adapter.h | 85 …virtual bool EnhanceDataPreprocess(const uintptr_t caller, int32_t scId, std::string& componentInf… 93 virtual void RegisterScIdEnhance(const uintptr_t caller, int32_t scId) = 0; 95 virtual void UnregisterScIdEnhance(const uintptr_t caller, int32_t scId) = 0; 116 static bool EnhanceDataPreprocess(int32_t scId, std::string& componentInfo); 119 static void RegisterScIdEnhance(int32_t scId); 120 static void UnregisterScIdEnhance(int32_t scId);
|
/ohos5.0/base/security/security_component_manager/ |
H A D | README_zh.md | 49 …terSecurityComponent(SecCompType type, const std::string& componentInfo, int32_t& scId); | 注册安全控件 | 50 | int32_t UpdateSecurityComponent(int32_t scId, const std::string& componentInfo); | 更新安全控件信息 | 51 | int32_t UnregisterSecurityComponent(int32_t scId); | 取消注册安全控件 | 52 | int32_t ReportSecurityComponentClickEvent(int32_t scId, const std::string& componentInfo, const S…
|
/ohos5.0/base/security/security_component_manager/test/fuzztest/security_component/service/reportsecuritycomponentclickeventstub_fuzzer/ |
H A D | reportsecuritycomponentclickeventstub_fuzzer.cpp | 89 int32_t scId = 0; in RegisterSecurityComponentStub() local 90 if (!deserializedReply.ReadInt32(scId)) { in RegisterSecurityComponentStub() 93 return scId; in RegisterSecurityComponentStub() 109 int32_t scId = RegisterSecurityComponentStub(type, compoInfo); in ReportSecurityComponentClickEventStubFuzzTest() local 110 if (!rawData.WriteInt32(scId)) { in ReportSecurityComponentClickEventStubFuzzTest()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/ |
H A D | security_component_handler.h | 30 static int32_t RegisterSecurityComponent(RefPtr<FrameNode>& node, int32_t& scId); 31 static int32_t UpdateSecurityComponent(RefPtr<FrameNode>& node, int32_t& scId); 32 static int32_t UnregisterSecurityComponent(int32_t& scId); 33 static int32_t ReportSecurityComponentClickEvent(int32_t& scId, 36 static int32_t ReportSecurityComponentClickEvent(int32_t& scId, 45 static int32_t ReportSecurityComponentClickEventInner(int32_t& scId,
|