Home
last modified time | relevance | path

Searched refs:reqPermList (Results 1 – 14 of 14) sorted by relevance

/base/security/access_token/services/accesstokenmanager/main/cpp/src/service/
Daccesstoken_manager_service.cpp142 AccessTokenID tokenID, std::vector<PermissionStateFullParcel>& reqPermList, bool isSystemGrant) in GetReqPermissions() argument
152 reqPermList.emplace_back(permParcel); in GetReqPermissions()
158 std::vector<PermissionListStateParcel>& reqPermList) in GetSelfPermissionsState() argument
184 …if (PermissionManager::GetInstance().GetLocationPermissionIndex(reqPermList, vagueIndex, accurateI… in GetSelfPermissionsState()
185 …needRes = PermissionManager::GetInstance().LocationPermissionSpecialHandle(reqPermList, apiVersion, in GetSelfPermissionsState()
190 uint32_t size = reqPermList.size(); in GetSelfPermissionsState()
192 if (((reqPermList[i].permsState.permissionName == VAGUE_LOCATION_PERMISSION_NAME) || in GetSelfPermissionsState()
193 (reqPermList[i].permsState.permissionName == ACCURATE_LOCATION_PERMISSION_NAME)) && in GetSelfPermissionsState()
198 …PermissionManager::GetInstance().GetSelfPermissionState(permsList, reqPermList[i].permsState, apiV… in GetSelfPermissionsState()
199 if (static_cast<PermissionOper>(reqPermList[i].permsState.state) == DYNAMIC_OPER) { in GetSelfPermissionsState()
[all …]
/base/security/access_token/services/accesstokenmanager/main/cpp/include/permission/
Dpermission_manager.h58 AccessTokenID tokenID, std::vector<PermissionStateFull>& reqPermList, bool isSystemGrant);
69 …bool GetLocationPermissionIndex(std::vector<PermissionListStateParcel>& reqPermList, uint32_t& vag…
71 …bool LocationPermissionSpecialHandle(std::vector<PermissionListStateParcel>& reqPermList, int32_t …
90 void AllLocationPermissionHandle(std::vector<PermissionListStateParcel>& reqPermList,
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
Dpermission_manager.cpp250 AccessTokenID tokenID, std::vector<PermissionStateFull>& reqPermList, bool isSystemGrant) in GetReqPermissions() argument
268 reqPermList.emplace_back(perm); in GetReqPermissions()
556 … PermissionManager::GetLocationPermissionIndex(std::vector<PermissionListStateParcel>& reqPermList, in GetLocationPermissionIndex() argument
562 for (const auto& perm : reqPermList) { in GetLocationPermissionIndex()
622 …PermissionManager::AllLocationPermissionHandle(std::vector<PermissionListStateParcel>& reqPermList, in AllLocationPermissionHandle() argument
669 reqPermList[vagueIndex].permsState.state = vagueState; in AllLocationPermissionHandle()
670 reqPermList[accurateIndex].permsState.state = accurateState; in AllLocationPermissionHandle()
673 …issionManager::LocationPermissionSpecialHandle(std::vector<PermissionListStateParcel>& reqPermList, in LocationPermissionSpecialHandle() argument
678 GetSelfPermissionState(permsList, reqPermList[vagueIndex].permsState, apiVersion); in LocationPermissionSpecialHandle()
679 … return (static_cast<PermissionOper>(reqPermList[vagueIndex].permsState.state) == DYNAMIC_OPER); in LocationPermissionSpecialHandle()
[all …]
/base/security/access_token/services/accesstokenmanager/main/cpp/include/service/
Daccesstoken_manager_service.h48 …AccessTokenID tokenID, std::vector<PermissionStateFullParcel>& reqPermList, bool isSystemGrant) ov…
50 std::vector<PermissionListStateParcel>& reqPermList) override;
/base/security/access_token/frameworks/accesstoken/include/
Di_accesstoken_manager.h51 …AccessTokenID tokenID, std::vector<PermissionStateFullParcel>& reqPermList, bool isSystemGrant) = …
/base/security/access_token/interfaces/innerkits/accesstoken/include/
Daccesstoken_kit.h194 AccessTokenID tokenID, std::vector<PermissionStateFull>& reqPermList, bool isSystemGrant);
/base/security/access_token/interfaces/innerkits/accesstoken/src/
Daccesstoken_manager_proxy.h47 …AccessTokenID tokenID, std::vector<PermissionStateFullParcel>& reqPermList, bool isSystemGrant) ov…
Daccesstoken_manager_client.h50 AccessTokenID tokenID, std::vector<PermissionStateFull>& reqPermList, bool isSystemGrant);
Daccesstoken_kit.cpp255 AccessTokenID tokenID, std::vector<PermissionStateFull>& reqPermList, bool isSystemGrant) in GetReqPermissions() argument
263 …return AccessTokenManagerClient::GetInstance().GetReqPermissions(tokenID, reqPermList, isSystemGra… in GetReqPermissions()
Daccesstoken_manager_client.cpp91 AccessTokenID tokenID, std::vector<PermissionStateFull>& reqPermList, bool isSystemGrant) in GetReqPermissions() argument
102 reqPermList.emplace_back(perm); in GetReqPermissions()
Daccesstoken_manager_proxy.cpp157 AccessTokenID tokenID, std::vector<PermissionStateFullParcel>& reqPermList, bool isSystemGrant) in GetReqPermissions() argument
188 reqPermList.emplace_back(*permissionReq); in GetReqPermissions()
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/
Daccesstoken_info_manager_test.cpp1891 std::vector<PermissionListStateParcel> reqPermList; variable
1892 reqPermList.emplace_back(parcel1);
1893 reqPermList.emplace_back(parcel2);
1901 …PermissionManager::GetInstance().AllLocationPermissionHandle(reqPermList, permsList1, vagueIndex, …
1902 ASSERT_EQ(static_cast<int>(PermissionOper::DYNAMIC_OPER), reqPermList[0].permsState.state);
1903 ASSERT_EQ(static_cast<int>(PermissionOper::DYNAMIC_OPER), reqPermList[1].permsState.state);
1909 …PermissionManager::GetInstance().AllLocationPermissionHandle(reqPermList, permsList2, vagueIndex, …
1910 ASSERT_EQ(static_cast<int>(PermissionOper::PASS_OPER), reqPermList[0].permsState.state);
1911 ASSERT_EQ(static_cast<int>(PermissionOper::INVALID_OPER), reqPermList[1].permsState.state);
/base/security/access_token/
DREADME_zh.md74 | int GetReqPermissions(AccessTokenID tokenID, std::vector<PermissionStateFull>& reqPermList, bool …
DREADME.md66 | int GetReqPermissions(AccessTokenID tokenID, std::vector<PermissionStateFull>& reqPermList, bool …