Home
last modified time | relevance | path

Searched refs:permissionDef (Results 1 – 10 of 10) sorted by relevance

/base/security/access_token/frameworks/accesstoken/src/
Dpermission_def_parcel.cpp26 RETURN_IF_FALSE(out.WriteString(this->permissionDef.permissionName)); in Marshalling()
27 RETURN_IF_FALSE(out.WriteString(this->permissionDef.bundleName)); in Marshalling()
28 RETURN_IF_FALSE(out.WriteInt32(this->permissionDef.grantMode)); in Marshalling()
29 RETURN_IF_FALSE(out.WriteInt32(this->permissionDef.availableLevel)); in Marshalling()
30 RETURN_IF_FALSE(out.WriteBool(this->permissionDef.provisionEnable)); in Marshalling()
31 RETURN_IF_FALSE(out.WriteBool(this->permissionDef.distributedSceneEnable)); in Marshalling()
32 RETURN_IF_FALSE(out.WriteString(this->permissionDef.label)); in Marshalling()
33 RETURN_IF_FALSE(out.WriteInt32(this->permissionDef.labelId)); in Marshalling()
34 RETURN_IF_FALSE(out.WriteString(this->permissionDef.description)); in Marshalling()
35 RETURN_IF_FALSE(out.WriteInt32(this->permissionDef.descriptionId)); in Marshalling()
[all …]
Dhap_policy_parcel.cpp39 permDefParcel.permissionDef = permList[i]; in Marshalling()
76 hapPolicyParcel->hapPolicyParameter.permList.emplace_back(permDefParcel->permissionDef); in Unmarshalling()
/base/security/access_token/frameworks/accesstoken/include/
Dpermission_def_parcel.h34 PermissionDef permissionDef; member
/base/security/access_token/interfaces/kits/accesstoken/napi/src/
Dnapi_atmanager.cpp675 PermissionDef permissionDef; in GrantUserGrantedPermissionExecute() local
677 permissionDef.grantMode = 0; in GrantUserGrantedPermissionExecute()
678 permissionDef.availableLevel = APL_NORMAL; in GrantUserGrantedPermissionExecute()
679 permissionDef.provisionEnable = false; in GrantUserGrantedPermissionExecute()
680 permissionDef.distributedSceneEnable = false; in GrantUserGrantedPermissionExecute()
681 permissionDef.labelId = 0; in GrantUserGrantedPermissionExecute()
682 permissionDef.descriptionId = 0; in GrantUserGrantedPermissionExecute()
684 int32_t result = AccessTokenKit::GetDefPermission(asyncContext->permissionName, permissionDef); in GrantUserGrantedPermissionExecute()
691 asyncContext->permissionName.c_str(), permissionDef.grantMode); in GrantUserGrantedPermissionExecute()
694 if (permissionDef.grantMode == USER_GRANT) { in GrantUserGrantedPermissionExecute()
[all …]
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
Dpermission_policy_set.cpp505 PermissionDef permissionDef; in IsPermissionReqValid() local
507 permissionName, permissionDef); in IsPermissionReqValid()
511 if (tokenApl >= permissionDef.availableLevel) { in IsPermissionReqValid()
/base/security/access_token/services/accesstokenmanager/main/cpp/src/service/
Daccesstoken_manager_service.cpp125 …rmissionManager::GetInstance().GetDefPermission(permissionName, permissionDefResult.permissionDef); in GetDefPermission()
135 permParcel.permissionDef = perm; in GetDefPermissions()
/base/security/access_token/interfaces/innerkits/accesstoken/src/
Daccesstoken_manager_client.cpp70 permissionDefResult = permissionDefParcel.permissionDef; in GetDefPermission()
84 PermissionDef perm = permParcel.permissionDef; in GetDefPermissions()
Daccesstoken_manager_proxy.cpp148 sptr<PermissionDefParcel> permissionDef = reply.ReadParcelable<PermissionDefParcel>(); in GetDefPermissions() local
149 if (permissionDef != nullptr) { in GetDefPermissions()
150 permList.emplace_back(*permissionDef); in GetDefPermissions()
/base/security/access_token/services/privacymanager/src/record/
Dpermission_record_manager.cpp693 PermissionDef permissionDef; in PermissionListFilter() local
696 if (AccessTokenKit::GetDefPermission(permissionName, permissionDef) == Constant::SUCCESS && in PermissionListFilter()
/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/
Daccesstoken_kit_extension_test.cpp485 for (auto& permissionDef:permissionDefs) { in AllocHapToken() local
486 policy.permList.emplace_back(permissionDef); in AllocHapToken()