Searched refs:permissionDef (Results 1 – 10 of 10) sorted by relevance
26 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 …]
39 permDefParcel.permissionDef = permList[i]; in Marshalling()76 hapPolicyParcel->hapPolicyParameter.permList.emplace_back(permDefParcel->permissionDef); in Unmarshalling()
34 PermissionDef permissionDef; member
675 PermissionDef permissionDef; in GrantUserGrantedPermissionExecute() local677 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 …]
505 PermissionDef permissionDef; in IsPermissionReqValid() local507 permissionName, permissionDef); in IsPermissionReqValid()511 if (tokenApl >= permissionDef.availableLevel) { in IsPermissionReqValid()
125 …rmissionManager::GetInstance().GetDefPermission(permissionName, permissionDefResult.permissionDef); in GetDefPermission()135 permParcel.permissionDef = perm; in GetDefPermissions()
70 permissionDefResult = permissionDefParcel.permissionDef; in GetDefPermission()84 PermissionDef perm = permParcel.permissionDef; in GetDefPermissions()
148 sptr<PermissionDefParcel> permissionDef = reply.ReadParcelable<PermissionDefParcel>(); in GetDefPermissions() local149 if (permissionDef != nullptr) { in GetDefPermissions()150 permList.emplace_back(*permissionDef); in GetDefPermissions()
693 PermissionDef permissionDef; in PermissionListFilter() local696 if (AccessTokenKit::GetDefPermission(permissionName, permissionDef) == Constant::SUCCESS && in PermissionListFilter()
485 for (auto& permissionDef:permissionDefs) { in AllocHapToken() local486 policy.permList.emplace_back(permissionDef); in AllocHapToken()