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/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 …
87 void AllLocationPermissionHandle(std::vector<PermissionListStateParcel>& reqPermList,
/base/security/access_token/services/accesstokenmanager/main/cpp/src/service/
Daccesstoken_manager_service.cpp133 AccessTokenID tokenID, std::vector<PermissionStateFullParcel>& reqPermList, bool isSystemGrant) in GetReqPermissions() argument
143 reqPermList.emplace_back(permPrcel); in GetReqPermissions()
149 std::vector<PermissionListStateParcel>& reqPermList) in GetSelfPermissionsState() argument
175 …if (PermissionManager::GetInstance().GetLocationPermissionIndex(reqPermList, vagueIndex, accurateI… in GetSelfPermissionsState()
176 …needRes = PermissionManager::GetInstance().LocationPermissionSpecialHandle(reqPermList, apiVersion, in GetSelfPermissionsState()
181 uint32_t size = reqPermList.size(); in GetSelfPermissionsState()
183 if (((reqPermList[i].permsState.permissionName == VAGUE_LOCATION_PERMISSION_NAME) || in GetSelfPermissionsState()
184 (reqPermList[i].permsState.permissionName == ACCURATE_LOCATION_PERMISSION_NAME)) && in GetSelfPermissionsState()
189 …PermissionManager::GetInstance().GetSelfPermissionState(permsList, reqPermList[i].permsState, apiV… in GetSelfPermissionsState()
190 if (static_cast<PermissionOper>(reqPermList[i].permsState.state) == DYNAMIC_OPER) { in GetSelfPermissionsState()
[all …]
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
Dpermission_manager.cpp222 AccessTokenID tokenID, std::vector<PermissionStateFull>& reqPermList, bool isSystemGrant) in GetReqPermissions() argument
240 reqPermList.emplace_back(perm); in GetReqPermissions()
520 … PermissionManager::GetLocationPermissionIndex(std::vector<PermissionListStateParcel>& reqPermList, in GetLocationPermissionIndex() argument
526 for (const auto& perm : reqPermList) { in GetLocationPermissionIndex()
586 …PermissionManager::AllLocationPermissionHandle(std::vector<PermissionListStateParcel>& reqPermList, in AllLocationPermissionHandle() argument
633 reqPermList[vagueIndex].permsState.state = vagueState; in AllLocationPermissionHandle()
634 reqPermList[accurateIndex].permsState.state = accurateState; in AllLocationPermissionHandle()
637 …issionManager::LocationPermissionSpecialHandle(std::vector<PermissionListStateParcel>& reqPermList, in LocationPermissionSpecialHandle() argument
642 GetSelfPermissionState(permsList, reqPermList[vagueIndex].permsState, apiVersion); in LocationPermissionSpecialHandle()
643 … 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/interfaces/innerkits/accesstoken/include/
Daccesstoken_kit.h55 AccessTokenID tokenID, std::vector<PermissionStateFull>& reqPermList, bool isSystemGrant);
/base/security/access_token/interfaces/innerkits/accesstoken/src/
Daccesstoken_manager_client.h50 AccessTokenID tokenID, std::vector<PermissionStateFull>& reqPermList, bool isSystemGrant);
Daccesstoken_manager_proxy.h47 …AccessTokenID tokenID, std::vector<PermissionStateFullParcel>& reqPermList, bool isSystemGrant) ov…
Daccesstoken_kit.cpp212 AccessTokenID tokenID, std::vector<PermissionStateFull>& reqPermList, bool isSystemGrant) in GetReqPermissions() argument
220 …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/frameworks/accesstoken/include/
Di_accesstoken_manager.h50 …AccessTokenID tokenID, std::vector<PermissionStateFullParcel>& reqPermList, bool isSystemGrant) = …
/base/security/access_token/
DREADME_zh.md70 | int GetReqPermissions(AccessTokenID tokenID, std::vector<PermissionStateFull>& reqPermList, bool …
DREADME.md57 | int GetReqPermissions(AccessTokenID tokenID, std::vector<PermissionStateFull>& reqPermList, bool …
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/
Daccesstoken_info_manager_test.cpp2598 std::vector<PermissionListStateParcel> reqPermList; variable
2599 reqPermList.emplace_back(parcel1);
2600 reqPermList.emplace_back(parcel2);
2608 …PermissionManager::GetInstance().AllLocationPermissionHandle(reqPermList, permsList1, vagueIndex, …
2609 ASSERT_EQ(static_cast<int>(PermissionOper::DYNAMIC_OPER), reqPermList[0].permsState.state);
2610 ASSERT_EQ(static_cast<int>(PermissionOper::DYNAMIC_OPER), reqPermList[1].permsState.state);
2616 …PermissionManager::GetInstance().AllLocationPermissionHandle(reqPermList, permsList2, vagueIndex, …
2617 ASSERT_EQ(static_cast<int>(PermissionOper::PASS_OPER), reqPermList[0].permsState.state);
2618 ASSERT_EQ(static_cast<int>(PermissionOper::INVALID_OPER), reqPermList[1].permsState.state);