/base/security/access_token/services/accesstokenmanager/main/cpp/src/service/ |
D | accesstoken_manager_service.cpp | 142 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/ |
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 … 90 void AllLocationPermissionHandle(std::vector<PermissionListStateParcel>& reqPermList,
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/ |
D | permission_manager.cpp | 250 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/ |
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/frameworks/accesstoken/include/ |
D | i_accesstoken_manager.h | 51 …AccessTokenID tokenID, std::vector<PermissionStateFullParcel>& reqPermList, bool isSystemGrant) = …
|
/base/security/access_token/interfaces/innerkits/accesstoken/include/ |
D | accesstoken_kit.h | 194 AccessTokenID tokenID, std::vector<PermissionStateFull>& reqPermList, bool isSystemGrant);
|
/base/security/access_token/interfaces/innerkits/accesstoken/src/ |
D | accesstoken_manager_proxy.h | 47 …AccessTokenID tokenID, std::vector<PermissionStateFullParcel>& reqPermList, bool isSystemGrant) ov…
|
D | accesstoken_manager_client.h | 50 AccessTokenID tokenID, std::vector<PermissionStateFull>& reqPermList, bool isSystemGrant);
|
D | accesstoken_kit.cpp | 255 AccessTokenID tokenID, std::vector<PermissionStateFull>& reqPermList, bool isSystemGrant) in GetReqPermissions() argument 263 …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/services/accesstokenmanager/test/unittest/cpp/src/ |
D | accesstoken_info_manager_test.cpp | 1891 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/ |
D | README_zh.md | 74 | int GetReqPermissions(AccessTokenID tokenID, std::vector<PermissionStateFull>& reqPermList, bool …
|
D | README.md | 66 | int GetReqPermissions(AccessTokenID tokenID, std::vector<PermissionStateFull>& reqPermList, bool …
|