Home
last modified time | relevance | path

Searched refs:pkgName (Results 1 – 25 of 62) sorted by relevance

123

/base/notification/distributed_notification_service/services/distributed/test/unittest/mock/
Dmock_device_manager_impl.cpp27 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/authenticators/src/account_unrelated/iso_task/lite_exchange_task/
Ddas_lite_token_manager.c22 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/authenticators/inc/account_unrelated/
Ddas_task_main.h43 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/security/device_auth/services/authenticators/src/account_unrelated/
Ddas_module.c31 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()
Ddas_task_common.c169 static int32_t CombineServiceId(const Uint8Buff *pkgName, const Uint8Buff *serviceType, Uint8Buff *… in CombineServiceId() argument
173 serviceIdPlain.length = pkgName->length + serviceType->length; in CombineServiceId()
181 if (memcpy_s(serviceIdPlain.val, serviceIdPlain.length, pkgName->val, pkgName->length) != EOK) { in CombineServiceId()
186 if (memcpy_s(serviceIdPlain.val + pkgName->length, serviceIdPlain.length - pkgName->length, in CombineServiceId()
300 int32_t GenerateKeyAlias(const Uint8Buff *pkgName, const Uint8Buff *serviceType, in GenerateKeyAlias() argument
303 CHECK_PTR_RETURN_ERROR_CODE(pkgName, "pkgName"); in GenerateKeyAlias()
304 CHECK_PTR_RETURN_ERROR_CODE(pkgName->val, "pkgName->val"); in GenerateKeyAlias()
311 …if (pkgName->length == 0 || serviceType->length == 0 || authId->length == 0 || outKeyAlias->length… in GenerateKeyAlias()
315 if (pkgName->length > PACKAGE_NAME_MAX_LEN || serviceType->length > SERVICE_TYPE_MAX_LEN || in GenerateKeyAlias()
329 res = CombineServiceId(pkgName, serviceType, &serviceId); in GenerateKeyAlias()
Ddas_task_main.c396 int32_t RegisterLocalIdentityInTask(const char *pkgName, const char *serviceType, Uint8Buff *authId… in RegisterLocalIdentityInTask() argument
407 … res = temp->tokenManagerInstance->registerLocalIdentity(pkgName, serviceType, authId, userType); in RegisterLocalIdentityInTask()
416 int32_t UnregisterLocalIdentityInTask(const char *pkgName, const char *serviceType, Uint8Buff *auth… in UnregisterLocalIdentityInTask() argument
427 … res = temp->tokenManagerInstance->unregisterLocalIdentity(pkgName, serviceType, authId, userType); in UnregisterLocalIdentityInTask()
436 int32_t DeletePeerAuthInfoInTask(const char *pkgName, const char *serviceType, Uint8Buff *authIdPee… in DeletePeerAuthInfoInTask() argument
447 …res = temp->tokenManagerInstance->deletePeerAuthInfo(pkgName, serviceType, authIdPeer, userTypePee… in DeletePeerAuthInfoInTask()
456 int32_t GetPublicKeyInTask(const char *pkgName, const char *serviceType, Uint8Buff *authIdPeer, int… in GetPublicKeyInTask() argument
467 …return temp->tokenManagerInstance->getPublicKey(pkgName, serviceType, authIdPeer, userTypePeer, re… in GetPublicKeyInTask()
/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_database_branch_test/
Dmock_device_manager_impl.cpp47 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/authenticators/src/account_unrelated/pake_task/standard_exchange_task/
Ddas_standard_token_manager.c21 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/security/device_auth/services/frameworks/src/module/
Ddev_auth_module_manager.c45 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_auth/services/frameworks/inc/module/
Ddev_auth_module_manager.h37 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/security/device_security_level/baselib/msglib/src/lite/
Dmessenger_device_status_manager.c36 const char *pkgName; member
56 .pkgName = NULL, in GetDeviceManagerInstance()
131 …if (GetNodeKeyInfo(instance->pkgName, info->networkId, NODE_KEY_UDID, (uint8_t *)udid, UDID_BUF_LE… in MessengerOnNodeStateChange()
171 bool InitDeviceStatusManager(WorkQueue *queue, const char *pkgName, DeviceStatusReceiver deviceStat… in InitDeviceStatusManager() argument
178 instance->pkgName = pkgName; in InitDeviceStatusManager()
183 int32_t ret = RegNodeDeviceStateCb(pkgName, (INodeStateCb *)&instance->nodeStateCb); in InitDeviceStatusManager()
186 ret = RegNodeDeviceStateCb(pkgName, (INodeStateCb *)&instance->nodeStateCb); in InitDeviceStatusManager()
209 instance->pkgName = NULL; in DeInitDeviceStatusManager()
226 …if (GetNodeKeyInfo(instance->pkgName, node->networkId, NODE_KEY_UDID, (uint8_t *)udid, UDID_BUF_LE… in MessengerConvertNodeToIdentity()
249 int32_t ret = GetAllNodeDeviceInfo(instance->pkgName, &infoList, &infoListLen); in MessengerGetDeviceNodeBasicInfo()
[all …]
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
Dnapi_push_callback.cpp67 std::string pkgName; in OnCheckNotification() local
69 ConvertJsonStringToValue(notificationData, pkgName, notifyId, contentType); in OnCheckNotification()
71 …"pkgName=%{public}s, notifyId=%{public}d, contentType=%{public}d ", pkgName.c_str(), notifyId, con… in OnCheckNotification()
75 result->SetProperty("bundleName", AbilityRuntime::CreateJsValue(engine_, pkgName)); in OnCheckNotification()
87 …const std::string &notificationData, std::string &pkgName, int32_t &notifyId, int32_t &contentType) in ConvertJsonStringToValue() argument
101 pkgName = jsonobj.at("pkgName").get<std::string>(); in ConvertJsonStringToValue()
/base/security/access_token/services/tokensyncmanager/test/mock/src/
Dsoft_bus_center_mock.cpp35 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()
Dsoft_bus_session_mock.cpp37 int CreateSessionServer(const char *pkgName, const char *sessionName, const ISessionListener *liste… in CreateSessionServer() argument
39 ACCESSTOKEN_LOG_DEBUG(LABEL, "pkg name: %{public}s", pkgName); in CreateSessionServer()
51 int RemoveSessionServer(const char *pkgName, const char *sessionName) in RemoveSessionServer() argument
53 ACCESSTOKEN_LOG_DEBUG(LABEL, "pkg name: %{public}s", pkgName); in RemoveSessionServer()
/base/security/device_auth/services/session_manager/src/session/v1/compatible_auth_sub_session/
Dcompatible_auth_sub_session_util.c49 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/include/
Dsession.h226 int CreateSessionServer(const char *pkgName, const char *sessionName, const ISessionListener *liste…
240 int RemoveSessionServer(const char *pkgName, const char *sessionName);
335 int SetFileReceiveListener(const char *pkgName, const char *sessionName, const IFileReceiveListener…
338 int SetFileSendListener(const char *pkgName, const char *sessionName, const IFileSendListener *send…
/base/security/dataclassification/test/fuzztest/datatransmitmgr/datatransmitmgr_fuzzer/
Ddatatransmitmgr_fuzzer.cpp36 const char *pkgName = "ohos.dslm"; in GetLocalUdid() local
38 (void)GetLocalNodeDeviceInfo(pkgName, &info); in GetLocalUdid()
39 …if (GetNodeKeyInfo(pkgName, info.networkId, NODE_KEY_UDID, (uint8_t *)(queryParams->udid), UDID_BU… in GetLocalUdid()
/base/powermgr/power_manager/services/native/src/actions/default/display/
Ddefault_device_state_action.cpp33 int64_t callTimeMs, WakeupDeviceType type, const string& details, const string& pkgName) in Wakeup() argument
38 (void)pkgName; in Wakeup()
/base/security/device_security_level/baselib/msglib/src/common/
Dmessenger_device_session_manager.c43 const char *pkgName; member
274 static bool TryToCreateSessionServer(const char *pkgName, const char *sessionName, const ISessionLi… in TryToCreateSessionServer() argument
277 int ret = CreateSessionServer(pkgName, sessionName, listener); in TryToCreateSessionServer()
280 ret = CreateSessionServer(pkgName, sessionName, listener); in TryToCreateSessionServer()
297 inst->pkgName = config->pkgName; in InitDeviceSessionManager()
304 bool succ = TryToCreateSessionServer(inst->pkgName, inst->primarySessName, &inst->listener); in InitDeviceSessionManager()
311 succ = TryToCreateSessionServer(inst->pkgName, inst->secondarySessName, &inst->listener); in InitDeviceSessionManager()
319 int ret = RemoveSessionServer(instance->pkgName, instance->primarySessName); in DeInitDeviceSessionManager()
325 ret = RemoveSessionServer(instance->pkgName, instance->primarySessName); in DeInitDeviceSessionManager()
332 instance->pkgName = NULL; in DeInitDeviceSessionManager()
Dmessenger_device_status_manager.h34 bool InitDeviceStatusManager(WorkQueue *queue, const char *pkgName, DeviceStatusReceiver deviceStat…
/base/update/updateservice/services/firmware/upgrade/executor/src/
Dfirmware_download_executor.cpp162 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/security/permission_lite/services/pms/src/
Dperm_operate.c98 TNode *GetTaskWithPkgName(TList *list, const char *pkgName) in GetTaskWithPkgName() argument
102 if (strcmp(cur->pkgName, pkgName) == 0) { in GetTaskWithPkgName()
/base/security/permission_lite/services/pms/include/
Dperm_operate.h31 TNode *GetTaskWithPkgName(TList *list, const char *pkgName);
Dperm_define.h65 char pkgName[PKG_NAME_LEN]; member
/base/security/device_security_level/baselib/msglib/src/standard/
Dmessenger_device_status_manager.cpp39 void Reset(const std::string &pkgName, WorkQueue *queue, StateReceiver deviceStatusReceiver) in Reset() argument
42 pkgName_ = pkgName; in Reset()
234 bool InitDeviceStatusManager(WorkQueue *queue, const char *pkgName, DeviceStatusReceiver deviceStat… in InitDeviceStatusManager() argument
236 if (queue == nullptr || pkgName == nullptr || deviceStatusReceiver == nullptr) { in InitDeviceStatusManager()
239 const std::string name(pkgName); in InitDeviceStatusManager()

123