Home
last modified time | relevance | path

Searched refs:permissionList (Results 1 – 22 of 22) sorted by relevance

/base/security/access_token/test/fuzztest/access_token/getpermissionusedrecords_fuzzer/
Dgetpermissionusedrecords_fuzzer.cpp37 std::vector<std::string> permissionList; in GetPermissionUsedRecordsFuzzTest() local
38 permissionList.emplace_back(testName); in GetPermissionUsedRecordsFuzzTest()
47 .permissionList = permissionList, in GetPermissionUsedRecordsFuzzTest()
/base/security/access_token/test/fuzztest/access_token_stub/getpermissionusedrecordsstub_fuzzer/
Dgetpermissionusedrecordsstub_fuzzer.cpp39 std::vector<std::string> permissionList; in GetPermissionUsedRecordsStubFuzzTest() local
40 permissionList.emplace_back(testName); in GetPermissionUsedRecordsStubFuzzTest()
49 .permissionList = permissionList, in GetPermissionUsedRecordsStubFuzzTest()
/base/security/access_token/test/fuzztest/access_token_stub/getpermissionusedrecordsasyncstub_fuzzer/
Dgetpermissionusedrecordsasyncstub_fuzzer.cpp49 std::vector<std::string> permissionList; in GetPermissionUsedRecordsAsyncStubFuzzTest() local
50 permissionList.emplace_back(testName); in GetPermissionUsedRecordsAsyncStubFuzzTest()
59 .permissionList = permissionList, in GetPermissionUsedRecordsAsyncStubFuzzTest()
/base/security/access_token/interfaces/innerkits/privacy/test/unittest/src/
Dprivacy_kit_test.cpp217 …const std::string &bundleName, const std::vector<std::string> &permissionList, PermissionUsedReque… in BuildQueryRequest() argument
223 request.permissionList = permissionList; in BuildQueryRequest()
302 std::vector<std::string> permissionList; variable
303 …BuildQueryRequest(g_tokenIdA, GetLocalDeviceUdid(), g_infoParmsA.bundleName, permissionList, reque…
325 std::vector<std::string> permissionList; variable
326 BuildQueryRequest(123, "", "", permissionList, request);
330 …BuildQueryRequest(g_tokenIdA, GetLocalDeviceUdid(), g_infoParmsA.bundleName, permissionList, reque…
375 std::vector<std::string> permissionList; variable
376 BuildQueryRequest(tokenId, "", "", permissionList, request);
396 std::vector<std::string> permissionList; variable
[all …]
Dprivacy_kit_test.h51 const std::vector<std::string>& permissionList, PermissionUsedRequest& request);
/base/security/access_token/frameworks/privacy/src/
Dpermission_used_request_parcel.cpp29 RETURN_IF_FALSE(out.WriteUint32(this->request.permissionList.size())); in Marshalling()
30 for (const auto& perm : this->request.permissionList) { in Marshalling()
57 requestParcel->request.permissionList.emplace_back(perm); in Unmarshalling()
/base/security/access_token/services/privacymanager/include/record/
Dpermission_used_record_cache.h42 void GetRecords(const std::vector<std::string>& permissionList,
50 const std::vector<std::string>& permissionList);
/base/security/access_token/interfaces/innerkits/privacy/include/
Dpermission_used_request.h66 std::vector<std::string> permissionList; member
/base/security/access_token/frameworks/test/unittest/
Dprivacy_parcel_test.cpp247 permissionUsedRequestParcel.request.permissionList.emplace_back("ohos.permission.CAMERA");
248 permissionUsedRequestParcel.request.permissionList.emplace_back("ohos.permission.LOCATION");
264 for (uint32_t i = 0; i < permissionUsedRequestParcel.request.permissionList.size(); i++) {
265 …EXPECT_EQ(permissionUsedRequestParcel.request.permissionList[i], readedData->request.permissionLis…
434 permissionUsedRequestParcel.request.permissionList.emplace_back("ohos.permission.CAMERA");
442 permissionUsedRequestParcel.request.permissionList.emplace_back("ohos.permission.CAMERA");
/base/security/access_token/services/accesstokenmanager/main/cpp/include/permission/
Dpermission_policy_set.h60 std::vector<std::string>& permissionList, std::vector<PermStateChangeType>& changeTypeList);
61 void GetDeletedPermissionListToNotify(std::vector<std::string>& permissionList);
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
Dpermission_policy_set.cpp381 std::vector<std::string>& permissionList, std::vector<PermStateChangeType>& changeTypeList) in GetResetPermissionListToNotify() argument
388 permissionList.emplace_back(perm.permissionName); in GetResetPermissionListToNotify()
393 permissionList.emplace_back(perm.permissionName); in GetResetPermissionListToNotify()
400 permissionList.emplace_back(permission); in GetResetPermissionListToNotify()
405 void PermissionPolicySet::GetDeletedPermissionListToNotify(std::vector<std::string>& permissionList) in GetDeletedPermissionListToNotify() argument
411 permissionList.emplace_back(perm.permissionName); in GetDeletedPermissionListToNotify()
416 permissionList.emplace_back(permission); in GetDeletedPermissionListToNotify()
Dpermission_manager.cpp713 std::vector<std::string> permissionList; in ClearUserGrantedPermissionState() local
715 permPolicySet->GetResetPermissionListToNotify(permissionList, changeTypeList); in ClearUserGrantedPermissionState()
719 for (uint32_t i = 0; i < permissionList.size(); i++) { in ClearUserGrantedPermissionState()
720 …CallbackManager::GetInstance().ExecuteCallbackAsync(tokenID, permissionList[i], changeTypeList[i]); in ClearUserGrantedPermissionState()
721 ParamUpdate(permissionList[i], 0, true); in ClearUserGrantedPermissionState()
/base/security/access_token/services/privacymanager/src/record/
Dpermission_used_record_cache.cpp247 void PermissionUsedRecordCache::GetRecords(const std::vector<std::string>& permissionList, in GetRecords() argument
256 TransferToOpcode(opCodeList, permissionList); in GetRecords()
357 const std::vector<std::string>& permissionList) in TransferToOpcode() argument
359 for (const auto& permission : permissionList) { in TransferToOpcode()
Dpermission_record_manager.cpp213 PermissionUsedRecordCache::GetInstance().GetRecords(request.permissionList, in GetRecordsFromLocalDB()
/base/customization/enterprise_device_management/services/edm/src/
Denterprise_device_mgr_ability.cpp343 std::vector<std::string> &permissionList, int32_t userId) in GetAllPermissionsByAdmin() argument
348 permissionList.clear(); in GetAllPermissionsByAdmin()
367 permissionList.push_back(perm.getPermissionName()); in GetAllPermissionsByAdmin()
512 std::vector<std::string> permissionList; in EnableAdmin() local
513 if (FAILED(GetAllPermissionsByAdmin(admin.GetBundleName(), permissionList, userId))) { in EnableAdmin()
518 if (FAILED(adminMgr_->GetGrantedPermission(permissionList, type))) { in EnableAdmin()
523 … if (FAILED(adminMgr_->SetAdminValue(abilityInfo.at(0), entInfo, type, permissionList, userId))) { in EnableAdmin()
1094 std::vector<std::string> permissionList; in AuthorizeAdmin() local
1095 if (FAILED(GetAllPermissionsByAdmin(bundleName, permissionList, DEFAULT_USER_ID))) { in AuthorizeAdmin()
1099 if (FAILED(adminMgr_->SaveAuthorizedAdmin(bundleName, permissionList, admin.GetBundleName()))) { in AuthorizeAdmin()
/base/security/access_token/tools/accesstoken/src/
Datm_command.cpp229 request.permissionList.emplace_back(permissionName); in DumpRecordInfo()
/base/customization/enterprise_device_management/services/edm/include/
Denterprise_device_mgr_ability.h82 …tAllPermissionsByAdmin(const std::string &bundleInfoName, std::vector<std::string> &permissionList,
/base/security/access_token/interfaces/kits/accesstoken/napi/include/
Dnapi_atmanager.h117 std::vector<std::string> permissionList; member
/base/security/access_token/interfaces/kits/accesstoken/napi/src/
Dnapi_atmanager.cpp996 if (!ParseStringArray(env, argv[1], asyncContext.permissionList) || in ParseRequestPermissionFromUser()
997 (asyncContext.permissionList.empty())) { in ParseRequestPermissionFromUser()
1003 …_INFO(LABEL, "asyncContext.permissionList size: %{public}zu.", asyncContext.permissionList.size()); in ParseRequestPermissionFromUser()
1190 if (!IsDynamicRequest(asyncContext->permissionList, asyncContext->permissionsState)) { in RequestPermissionsFromUserExecute()
1207 StartGrantExtension(remoteObject, asyncContext->permissionList, asyncContext->abilityContext, in RequestPermissionsFromUserExecute()
1225 env, asyncContext->permissionList, asyncContext->permissionsState); in RequestPermissionsFromUserComplete()
/base/security/access_token/services/accesstokenmanager/main/cpp/src/token/
Daccesstoken_info_manager.cpp1028 std::vector<std::string> permissionList; in PermissionStateNotify() local
1029 policy->GetDeletedPermissionListToNotify(permissionList); in PermissionStateNotify()
1030 for (const auto& permissionName : permissionList) { in PermissionStateNotify()
/base/security/access_token/services/privacymanager/test/unittest/
Dpermission_record_db_test.cpp328 request.permissionList.emplace_back("ohos.com.CAMERA");
/base/security/access_token/interfaces/kits/privacy/napi/src/
Dpermission_record_manager_napi.cpp362 !ParseStringArray(env, property, request.permissionList)) { in ParseRequest()