/base/security/access_token/services/accesstokenmanager/main/cpp/include/permission/ |
D | permission_manager.h | 58 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/ |
D | accesstoken_manager_service.cpp | 133 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/ |
D | permission_manager.cpp | 222 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/ |
D | accesstoken_manager_service.h | 48 …AccessTokenID tokenID, std::vector<PermissionStateFullParcel>& reqPermList, bool isSystemGrant) ov… 50 std::vector<PermissionListStateParcel>& reqPermList) override;
|
/base/security/access_token/interfaces/innerkits/accesstoken/include/ |
D | accesstoken_kit.h | 55 AccessTokenID tokenID, std::vector<PermissionStateFull>& reqPermList, bool isSystemGrant);
|
/base/security/access_token/interfaces/innerkits/accesstoken/src/ |
D | accesstoken_manager_client.h | 50 AccessTokenID tokenID, std::vector<PermissionStateFull>& reqPermList, bool isSystemGrant);
|
D | accesstoken_manager_proxy.h | 47 …AccessTokenID tokenID, std::vector<PermissionStateFullParcel>& reqPermList, bool isSystemGrant) ov…
|
D | accesstoken_kit.cpp | 212 AccessTokenID tokenID, std::vector<PermissionStateFull>& reqPermList, bool isSystemGrant) in GetReqPermissions() argument 220 …return AccessTokenManagerClient::GetInstance().GetReqPermissions(tokenID, reqPermList, isSystemGra… in GetReqPermissions()
|
D | accesstoken_manager_client.cpp | 91 AccessTokenID tokenID, std::vector<PermissionStateFull>& reqPermList, bool isSystemGrant) in GetReqPermissions() argument 102 reqPermList.emplace_back(perm); in GetReqPermissions()
|
D | accesstoken_manager_proxy.cpp | 157 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/ |
D | i_accesstoken_manager.h | 50 …AccessTokenID tokenID, std::vector<PermissionStateFullParcel>& reqPermList, bool isSystemGrant) = …
|
/base/security/access_token/ |
D | README_zh.md | 70 | int GetReqPermissions(AccessTokenID tokenID, std::vector<PermissionStateFull>& reqPermList, bool …
|
D | README.md | 57 | int GetReqPermissions(AccessTokenID tokenID, std::vector<PermissionStateFull>& reqPermList, bool …
|
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/ |
D | accesstoken_info_manager_test.cpp | 2598 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);
|