/base/notification/distributed_notification_service/services/distributed/test/unittest/mock/ |
D | mock_device_manager_impl.cpp | 27 int32_t DeviceManagerImpl::InitDeviceManager(const std::string &pkgName, std::shared_ptr<DmInitCall… in InitDeviceManager() argument 32 int32_t DeviceManagerImpl::UnInitDeviceManager(const std::string &pkgName) in UnInitDeviceManager() argument 37 int32_t DeviceManagerImpl::GetTrustedDeviceList(const std::string &pkgName, const std::string &extr… in GetTrustedDeviceList() argument 56 int32_t DeviceManagerImpl::GetLocalDeviceInfo(const std::string &pkgName, DmDeviceInfo &info) in GetLocalDeviceInfo() argument 65 int32_t DeviceManagerImpl::RegisterDevStateCallback(const std::string &pkgName, const std::string &… in RegisterDevStateCallback() argument 71 int32_t DeviceManagerImpl::UnRegisterDevStateCallback(const std::string &pkgName) in UnRegisterDevStateCallback() argument 76 int32_t DeviceManagerImpl::StartDeviceDiscovery(const std::string &pkgName, const DmSubscribeInfo &… in StartDeviceDiscovery() argument 82 int32_t DeviceManagerImpl::StopDeviceDiscovery(const std::string &pkgName, uint16_t subscribeId) in StopDeviceDiscovery() argument 87 int32_t DeviceManagerImpl::PublishDeviceDiscovery(const std::string &pkgName, const DmPublishInfo &… in PublishDeviceDiscovery() argument 93 int32_t DeviceManagerImpl::UnPublishDeviceDiscovery(const std::string &pkgName, int32_t publishId) in UnPublishDeviceDiscovery() argument [all …]
|
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/iso_task/lite_exchange_task/ |
D | das_lite_token_manager.c | 22 static int32_t UnregisterLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *aut… in UnregisterLocalIdentity() argument 26 Uint8Buff pkgNameBuff = { (uint8_t *)pkgName, HcStrlen(pkgName) }; in UnregisterLocalIdentity() 48 static int32_t DeletePeerAuthInfo(const char *pkgName, const char *serviceType, Uint8Buff *authIdPe… in DeletePeerAuthInfo() argument 52 Uint8Buff pkgNameBuff = { (uint8_t *)pkgName, HcStrlen(pkgName)}; in DeletePeerAuthInfo()
|
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/ |
D | das_module.c | 31 static int32_t RegisterDasLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *au… in RegisterDasLocalIdentity() argument 33 return RegisterLocalIdentityInTask(pkgName, serviceType, authId, userType); in RegisterDasLocalIdentity() 36 static int32_t UnregisterDasLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *… in UnregisterDasLocalIdentity() argument 38 return UnregisterLocalIdentityInTask(pkgName, serviceType, authId, userType); in UnregisterDasLocalIdentity() 41 static int32_t DeleteDasPeerAuthInfo(const char *pkgName, const char *serviceType, Uint8Buff *authI… in DeleteDasPeerAuthInfo() argument 43 return DeletePeerAuthInfoInTask(pkgName, serviceType, authId, userType); in DeleteDasPeerAuthInfo() 46 static int32_t GetDasPublicKey(const char *pkgName, const char *serviceType, Uint8Buff *authId, int… in GetDasPublicKey() argument 49 return GetPublicKeyInTask(pkgName, serviceType, authId, userType, returnPk); in GetDasPublicKey()
|
D | das_task_common.c | 152 static int32_t CombineServiceId(const Uint8Buff *pkgName, const Uint8Buff *serviceType, Uint8Buff *… in CombineServiceId() argument 156 serviceIdPlain.length = pkgName->length + serviceType->length; in CombineServiceId() 164 if (memcpy_s(serviceIdPlain.val, serviceIdPlain.length, pkgName->val, pkgName->length) != EOK) { in CombineServiceId() 169 if (memcpy_s(serviceIdPlain.val + pkgName->length, serviceIdPlain.length - pkgName->length, in CombineServiceId() 283 int32_t GenerateKeyAlias(const Uint8Buff *pkgName, const Uint8Buff *serviceType, in GenerateKeyAlias() argument 286 CHECK_PTR_RETURN_ERROR_CODE(pkgName, "pkgName"); in GenerateKeyAlias() 287 CHECK_PTR_RETURN_ERROR_CODE(pkgName->val, "pkgName->val"); in GenerateKeyAlias() 294 …if (pkgName->length == 0 || serviceType->length == 0 || authId->length == 0 || outKeyAlias->length… in GenerateKeyAlias() 298 if (pkgName->length > PACKAGE_NAME_MAX_LEN || serviceType->length > SERVICE_TYPE_MAX_LEN || in GenerateKeyAlias() 312 res = CombineServiceId(pkgName, serviceType, &serviceId); in GenerateKeyAlias()
|
/base/security/device_auth/services/legacy/authenticators/inc/account_unrelated/ |
D | das_task_main.h | 43 int32_t RegisterLocalIdentityInTask(const char *pkgName, const char *serviceType, Uint8Buff *authId… 44 int32_t UnregisterLocalIdentityInTask(const char *pkgName, const char *serviceType, Uint8Buff *auth… 45 int32_t DeletePeerAuthInfoInTask(const char *pkgName, const char *serviceType, Uint8Buff *authIdPee… 46 int32_t GetPublicKeyInTask(const char *pkgName, const char *serviceType, Uint8Buff *authIdPeer, int…
|
/base/msdp/device_status/intention/adapters/ddm_adapter/src/ |
D | ddm_adapter_impl.cpp | 41 std::string pkgName(FI_PKG_NAME); in Enable() local 45 int32_t ret = D_DEV_MGR.InitDeviceManager(pkgName, initCb_); in Enable() 52 ret = D_DEV_MGR.RegisterDevStateCallback(pkgName, extra, boardStateCb_); in Enable() 60 ret = D_DEV_MGR.UnInitDeviceManager(pkgName); in Enable() 75 std::string pkgName(FI_PKG_NAME); in Disable() local 79 int32_t ret = D_DEV_MGR.UnRegisterDevStateCallback(pkgName); in Disable() 86 int32_t ret = D_DEV_MGR.UnInitDeviceManager(pkgName); in Disable()
|
/base/msdp/device_status/rust/subsystem/distributed_hardware/binding/include/ |
D | dm_binding.h | 33 bool CInitDeviceManager(const char* pkgName, void (*callback)()); 34 bool CRegisterDevState(const char* pkgName, const char* extra, CRegisterDevStateCallback callbacks); 35 bool CUnRegisterDevState(const char* pkgName, const char* extra);
|
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/pake_task/standard_exchange_task/ |
D | das_standard_token_manager.c | 21 static int32_t RegisterLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *authI… in RegisterLocalIdentity() argument 24 Uint8Buff pkgNameBuff = { (uint8_t *)pkgName, strlen(pkgName)}; in RegisterLocalIdentity() 52 static int32_t UnregisterLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *aut… in UnregisterLocalIdentity() argument 55 Uint8Buff pkgNameBuff = { (uint8_t *)pkgName, strlen(pkgName)}; in UnregisterLocalIdentity() 77 static int32_t DeletePeerAuthInfo(const char *pkgName, const char *serviceType, Uint8Buff *authIdPe… in DeletePeerAuthInfo() argument 80 Uint8Buff pkgNameBuff = { (uint8_t *)pkgName, strlen(pkgName)}; in DeletePeerAuthInfo() 175 static int32_t GetPublicKey(const char *pkgName, const char *serviceType, Uint8Buff *authId, int us… in GetPublicKey() argument 179 Uint8Buff pkgNameBuff = { (uint8_t *)pkgName, strlen(pkgName) }; in GetPublicKey()
|
/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_database_branch_test/ |
D | mock_device_manager_impl.cpp | 47 int32_t DeviceManagerImpl::InitDeviceManager(const std::string &pkgName, std::shared_ptr<DmInitCall… in InitDeviceManager() argument 55 int32_t DeviceManagerImpl::RegisterDevStateCallback(const std::string &pkgName, const std::string &… in RegisterDevStateCallback() argument 64 int32_t DeviceManagerImpl::GetLocalDeviceInfo(const std::string &pkgName, DmDeviceInfo &info) in GetLocalDeviceInfo() argument 72 int32_t DeviceManagerImpl::GetTrustedDeviceList(const std::string &pkgName, const std::string &extr… in GetTrustedDeviceList() argument
|
/base/security/device_auth/services/frameworks/src/module/ |
D | dev_auth_module_manager.c | 45 static bool IsParamsForDasTokenManagerValid(const char *pkgName, const char *serviceType, Uint8Buff… in IsParamsForDasTokenManagerValid() argument 52 if (pkgName == NULL || serviceType == NULL || authId == NULL || authId->val == NULL) { in IsParamsForDasTokenManagerValid() 57 if (HcStrlen(pkgName) == 0 || HcStrlen(serviceType) == 0 || authId->length == 0) { in IsParamsForDasTokenManagerValid() 68 int32_t RegisterLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *authId, int … in RegisterLocalIdentity() argument 71 if (!IsParamsForDasTokenManagerValid(pkgName, serviceType, authId, userType, moduleType)) { in RegisterLocalIdentity() 81 int32_t res = dasModule->registerLocalIdentity(pkgName, serviceType, authId, userType); in RegisterLocalIdentity() 89 int32_t UnregisterLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *authId, in… in UnregisterLocalIdentity() argument 92 if (!IsParamsForDasTokenManagerValid(pkgName, serviceType, authId, userType, moduleType)) { in UnregisterLocalIdentity() 102 int32_t res = dasModule->unregisterLocalIdentity(pkgName, serviceType, authId, userType); in UnregisterLocalIdentity() 110 int32_t DeletePeerAuthInfo(const char *pkgName, const char *serviceType, Uint8Buff *authId, int use… in DeletePeerAuthInfo() argument [all …]
|
/base/security/device_security_level/baselib/msglib/src/lite/ |
D | messenger_device_status_manager.c | 36 const char *pkgName; member 56 .pkgName = NULL, in GetDeviceManagerInstance() 132 …if (GetNodeKeyInfo(instance->pkgName, info->networkId, NODE_KEY_UDID, (uint8_t *)udid, UDID_BUF_LE… in MessengerOnNodeStateChange() 172 bool InitDeviceStatusManager(WorkQueue *queue, const char *pkgName, DeviceStatusReceiver deviceStat… in InitDeviceStatusManager() argument 179 instance->pkgName = pkgName; in InitDeviceStatusManager() 184 int32_t ret = RegNodeDeviceStateCb(pkgName, (INodeStateCb *)&instance->nodeStateCb); in InitDeviceStatusManager() 187 ret = RegNodeDeviceStateCb(pkgName, (INodeStateCb *)&instance->nodeStateCb); in InitDeviceStatusManager() 210 instance->pkgName = NULL; in DeInitDeviceStatusManager() 227 …if (GetNodeKeyInfo(instance->pkgName, node->networkId, NODE_KEY_UDID, (uint8_t *)udid, UDID_BUF_LE… in MessengerConvertNodeToIdentity() 250 int32_t ret = GetAllNodeDeviceInfo(instance->pkgName, &infoList, &infoListLen); in MessengerGetDeviceNodeBasicInfo() [all …]
|
D | messenger_device_session_manager.c | 43 const char *pkgName; member 294 static bool TryToCreateSessionServer(const char *pkgName, const char *sessionName, const ISessionLi… in TryToCreateSessionServer() argument 297 int ret = CreateSessionServer(pkgName, sessionName, listener); in TryToCreateSessionServer() 300 ret = CreateSessionServer(pkgName, sessionName, listener); in TryToCreateSessionServer() 317 inst->pkgName = config->pkgName; in InitDeviceSessionManager() 324 bool succ = TryToCreateSessionServer(inst->pkgName, inst->primarySessName, &inst->listener); in InitDeviceSessionManager() 331 succ = TryToCreateSessionServer(inst->pkgName, inst->secondarySessName, &inst->listener); in InitDeviceSessionManager() 339 int ret = RemoveSessionServer(instance->pkgName, instance->primarySessName); in DeInitDeviceSessionManager() 345 ret = RemoveSessionServer(instance->pkgName, instance->primarySessName); in DeInitDeviceSessionManager() 352 instance->pkgName = NULL; in DeInitDeviceSessionManager()
|
/base/security/device_auth/services/frameworks/inc/module/ |
D | dev_auth_module_manager.h | 37 const char *pkgName; member 55 int32_t RegisterLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *authId, int … 57 int32_t UnregisterLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *authId, in… 59 int32_t DeletePeerAuthInfo(const char *pkgName, const char *serviceType, Uint8Buff *authId, int use…
|
/base/msdp/device_status/rust/subsystem/distributed_hardware/binding/src/ |
D | dm_binding.cpp | 124 bool CInitDeviceManager(const char* pkgName, void (*callback)()) in CInitDeviceManager() argument 129 std::string sPkgName(pkgName); in CInitDeviceManager() 138 bool CRegisterDevState(const char* pkgName, const char* extra, CRegisterDevStateCallback callbacks) in CRegisterDevState() argument 142 std::string sPkgName(pkgName); in CRegisterDevState() 152 bool CUnRegisterDevState(const char* pkgName, const char* extra) in CUnRegisterDevState() argument 155 std::string sPkgName(pkgName); in CUnRegisterDevState()
|
/base/security/device_auth/services/session_manager/src/session/v1/compatible_auth_sub_session/ |
D | compatible_auth_sub_session_util.c | 49 const char *pkgName = GetStringFromJson(params, FIELD_SERVICE_PKG_NAME); in GetDuplicatePkgName() local 50 if (pkgName == NULL) { in GetDuplicatePkgName() 54 uint32_t pkgNameLen = HcStrlen(pkgName) + 1; in GetDuplicatePkgName() 60 if (memcpy_s(returnPkgName, pkgNameLen, pkgName, pkgNameLen) != EOK) { in GetDuplicatePkgName()
|
/base/security/access_token/services/tokensyncmanager/test/mock/src/ |
D | soft_bus_center_mock.cpp | 35 int32_t GetLocalNodeDeviceInfo(const char *pkgName, NodeBasicInfo *info) in GetLocalNodeDeviceInfo() argument 44 int32_t GetNodeKeyInfo(const char *pkgName, const char *networkId, NodeDeviceInfoKey key, uint8_t *… in GetNodeKeyInfo() argument 48 ACCESSTOKEN_LOG_DEBUG(LABEL, "failure, invalid networkId, pkg name: %{public}s", pkgName); in GetNodeKeyInfo()
|
/base/security/device_security_level/baselib/msglib/src/standard/ |
D | messenger_device_socket_manager.c | 42 const char *pkgName; member 77 .pkgName = NULL, in GetDeviceSocketManagerInstance() 386 char pkgName[PKG_NAME_LEN + 1] = {0}; in ProcessCreateServer() local 392 ret = memcpy_s(pkgName, PKG_NAME_LEN, pkg, PKG_NAME_LEN); in ProcessCreateServer() 410 .pkgName = pkgName, in ProcessCreateServer() 438 if (ProcessCreateServer(inst->primarySockName, inst->pkgName, &socket) == 0) { in CreateServer() 441 if (ProcessCreateServer(inst->secondarySockName, inst->pkgName, &socket) == 0) { in CreateServer() 461 inst->pkgName = config->pkgName; in InitDeviceSocketManager() 479 instance->pkgName = NULL; in DeInitDeviceSocketManager() 662 char pkgName[PKG_NAME_LEN + 1] = {0}; in PrepareBindSocket() local [all …]
|
D | messenger_device_status_manager.cpp | 43 void Reset(const std::string &pkgName, WorkQueue *queue, StateReceiver deviceStatusReceiver) in Reset() argument 46 pkgName_ = pkgName; in Reset() 250 const char pkgName[PKG_NAME_LEN + 1] = "ohos.dslm"; in GetDeviceSecurityLevelByNetworkId() local 251 int32_t ret = DeviceManager::GetInstance().GetDeviceSecurityLevel(pkgName, networkId, level); in GetDeviceSecurityLevelByNetworkId() 255 bool InitDeviceStatusManager(WorkQueue *queue, const char *pkgName, DeviceStatusReceiver deviceStat… in InitDeviceStatusManager() argument 257 if (queue == nullptr || pkgName == nullptr || deviceStatusReceiver == nullptr) { in InitDeviceStatusManager() 260 const std::string name(pkgName); in InitDeviceStatusManager()
|
/base/update/updateservice/services/firmware/upgrade/executor/src/ |
D | firmware_download_executor.cpp | 162 bool FirmwareDownloadExecutor::VerifyDownloadPkg(const std::string &pkgName, Progress &progress) in VerifyDownloadPkg() argument 166 if (component.spath == pkgName) { in VerifyDownloadPkg() 171 …ENGINE_LOGI("Start Checking file Sha256 %{public}s, verifyInfo %{public}s", pkgName.c_str(), verif… in VerifyDownloadPkg() 172 if (!verifyInfo.empty() && !Sha256Utils::CheckFileSha256String(pkgName, verifyInfo)) { in VerifyDownloadPkg() 173 ENGINE_LOGE("file sha256 check error, fileName:%{public}s", pkgName.c_str()); in VerifyDownloadPkg()
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
D | notification_check_info.cpp | 23 NotificationCheckInfo::NotificationCheckInfo(std::string pkgName, int32_t notifyId, int32_t content… in NotificationCheckInfo() argument 25 : pkgName_(pkgName), notifyId_(notifyId), contentType_(contentType), in NotificationCheckInfo() 37 void NotificationCheckInfo::SetPkgName(std::string pkgName) in SetPkgName() argument 39 pkgName_ = pkgName; in SetPkgName()
|
/base/security/permission_lite/services/pms/src/ |
D | perm_operate.c | 98 TNode *GetTaskWithPkgName(TList *list, const char *pkgName) in GetTaskWithPkgName() argument 102 if (strcmp(cur->pkgName, pkgName) == 0) { in GetTaskWithPkgName()
|
/base/powermgr/power_manager/services/native/src/actions/default/display/ |
D | default_device_state_action.cpp | 33 int64_t callTimeMs, WakeupDeviceType type, const string& details, const string& pkgName) in Wakeup() argument 38 (void)pkgName; in Wakeup()
|
/base/notification/distributed_notification_service/interfaces/inner_api/ |
D | notification_check_info.h | 36 NotificationCheckInfo(std::string pkgName, int32_t notifyId, int32_t contentType, 40 void SetPkgName(std::string pkgName);
|
/base/security/huks/services/huks_standard/huks_service/main/systemapi_wrap/bms/src/ |
D | hks_bms_api_wrap.cpp | 149 uint8_t *pkgName = (uint8_t *)HksMalloc(size); in HksGetHapPkgName() local 150 HKS_IF_NULL_LOGE_RETURN(pkgName, HKS_ERROR_MALLOC_FAIL, "malloc for pkgName failed.") in HksGetHapPkgName() local 152 (void)memcpy_s(pkgName, size, hapTokenInfo.bundleName.c_str(), size); in HksGetHapPkgName() 155 hapPkgName->data = pkgName; in HksGetHapPkgName()
|
/base/security/device_auth/services/identity_manager/src/ |
D | credential_operator.c | 33 static int32_t CombineServiceId(const Uint8Buff *pkgName, const Uint8Buff *serviceType, Uint8Buff *… in CombineServiceId() argument 37 serviceIdPlain.length = pkgName->length + serviceType->length; in CombineServiceId() 44 if (memcpy_s(serviceIdPlain.val, serviceIdPlain.length, pkgName->val, pkgName->length) != EOK) { in CombineServiceId() 49 …if (memcpy_s(serviceIdPlain.val + pkgName->length, serviceIdPlain.length - pkgName->length, servic… in CombineServiceId() 145 …const char *pkgName, const char *serviceType, const char *authId, int keyAliasType, Uint8Buff *out… in GenerateKeyAliasInner() argument 147 CHECK_PTR_RETURN_ERROR_CODE(pkgName, "pkgName"); in GenerateKeyAliasInner() 151 if (strlen(pkgName) == 0 || strlen(serviceType) == 0 || strlen(authId) == 0) { in GenerateKeyAliasInner() 155 Uint8Buff pkgNameBuff = { (uint8_t *)pkgName, strlen(pkgName) }; in GenerateKeyAliasInner()
|