/ohos5.0/base/security/access_token/frameworks/accesstoken/src/ |
H A D | permission_state_change_scope_parcel.cpp | 24 RETURN_IF_FALSE(out.WriteUint32((this->scope.tokenIDs.size()))); in Marshalling() 25 for (const auto& tokenID : this->scope.tokenIDs) { in Marshalling() 48 permStateChangeScopeParcel->scope.tokenIDs.emplace_back(tokenID); in Unmarshalling()
|
/ohos5.0/base/security/access_token/interfaces/kits/cj/accesstoken/src/ |
H A D | at_manager_impl.cpp | 695 scopeInfo.tokenIDs.emplace_back(res); in FillPermStateChangeInfo() 706 std::sort(scopeInfo.tokenIDs.begin(), scopeInfo.tokenIDs.end()); in FillPermStateChangeInfo() 728 changeScopeInfo.tokenIDs.emplace_back(res); in FillUnregisterPermStateChangeInfo() 740 std::sort(changeScopeInfo.tokenIDs.begin(), changeScopeInfo.tokenIDs.end()); in FillUnregisterPermStateChangeInfo() 753 std::vector<AccessTokenID> targetTokenIDs = unregisterPermStateChangeInfo->scopeInfo.tokenIDs; in FindAndGetSubscriberInVector() 768 if (scopeInfo.tokenIDs == targetTokenIDs && scopeInfo.permList == targetPermList) { in FindAndGetSubscriberInVector() 782 std::vector<AccessTokenID> targetTokenIDs = scopeInfo.tokenIDs; in DeleteRegisterFromVector() 838 std::vector<AccessTokenID> targetTokenIDs = targetScopeInfo.tokenIDs; in IsExistRegister() 865 if (scopeInfo.tokenIDs.empty() || targetTokenIDs.empty()) { in IsExistRegister() 872 auto iter = std::find(scopeInfo.tokenIDs.begin(), scopeInfo.tokenIDs.end(), tokenItem); in IsExistRegister() [all …]
|
/ohos5.0/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/ |
H A D | accesstoken_kit_extension_test.cpp | 1037 scopeInfo.tokenIDs = {}; 1108 scopeInfo.tokenIDs = {}; 1165 scopeInfo.tokenIDs = {}; 1360 scopeInfo.tokenIDs = {}; 1410 scopeInfo.tokenIDs = {}; 1437 scopeInfo.tokenIDs = {}; 1480 scopeInfo.tokenIDs = {}; 1530 scopeInfo.tokenIDs = {}; 1558 scopeInfo.tokenIDs = {}; 1691 scopeInfo.tokenIDs = {}; [all …]
|
H A D | security_component_grant_test.cpp | 451 scopeInfo9.tokenIDs = {}; 504 scopeInfo10.tokenIDs = {}; 551 scopeInfo.tokenIDs = {};
|
H A D | accesstoken_deny_test.cpp | 334 scopeInfo.tokenIDs = {}; 368 scopeInfo.tokenIDs = {};
|
/ohos5.0/base/security/access_token/frameworks/test/unittest/ |
H A D | accesstoken_parcel_test.cpp | 223 permStateChangeScopeParcel.scope.tokenIDs.emplace_back(TEST_TOKEN_ID); 232 …EXPECT_EQ(true, permStateChangeScopeParcel.scope.tokenIDs.size() == readedData->scope.tokenIDs.si… 235 for (uint32_t i = 0; i < readedData->scope.tokenIDs.size(); i++) { 236 EXPECT_EQ(permStateChangeScopeParcel.scope.tokenIDs[i], readedData->scope.tokenIDs[i]);
|
/ohos5.0/base/security/access_token/interfaces/kits/napi/accesstoken/src/ |
H A D | napi_atmanager.cpp | 1135 if (!ParseAccessTokenIDArray(env, argv[1], scopeInfo.tokenIDs)) { in FillPermStateChangeInfo() 1152 std::sort(scopeInfo.tokenIDs.begin(), scopeInfo.tokenIDs.end()); in FillPermStateChangeInfo() 1279 if (!ParseAccessTokenIDArray(env, argv[1], scopeInfo.tokenIDs)) { in ParseInputToUnregister() 1299 std::sort(scopeInfo.tokenIDs.begin(), scopeInfo.tokenIDs.end()); in ParseInputToUnregister() 1349 std::vector<AccessTokenID> targetTokenIDs = unregisterPermStateChangeInfo->scopeInfo.tokenIDs; in FindAndGetSubscriberInVector() 1365 if (scopeInfo.tokenIDs == targetTokenIDs && scopeInfo.permList == targetPermList) { in FindAndGetSubscriberInVector() 1381 std::vector<AccessTokenID> targetTokenIDs = targetScopeInfo.tokenIDs; in IsExistRegister() 1408 if (scopeInfo.tokenIDs.empty() || targetTokenIDs.empty()) { in IsExistRegister() 1415 auto iter = std::find(scopeInfo.tokenIDs.begin(), scopeInfo.tokenIDs.end(), tokenItem); in IsExistRegister() 1416 if (iter != scopeInfo.tokenIDs.end()) { in IsExistRegister() [all …]
|
/ohos5.0/base/security/access_token/interfaces/innerkits/accesstoken/include/ |
H A D | permission_state_change_info.h | 85 std::vector<AccessTokenID> tokenIDs; member
|
/ohos5.0/foundation/communication/dsoftbus/core/frame/standard/client_manager/src/ |
H A D | permission_status_change_cb.cpp | 33 scopeInfo.tokenIDs = {callingTokenId}; in RegisterDataSyncPermission()
|
/ohos5.0/base/security/access_token/test/fuzztest/innerkits/accesstoken/registerpermstatechangecallback_fuzzer/ |
H A D | registerpermstatechangecallback_fuzzer.cpp | 55 scopeInfo.tokenIDs = { fuzzData.GetData<AccessTokenID>() }; in RegisterPermStateChangeCallbackFuzzTest()
|
/ohos5.0/base/security/access_token/test/fuzztest/innerkits/accesstoken/unregisterpermstatechangecallback_fuzzer/ |
H A D | unregisterpermstatechangecallback_fuzzer.cpp | 55 scopeInfos.tokenIDs = { fuzzData.GetData<AccessTokenID>() }; in UnRegisterPermStateChangeCallbackFuzzTest()
|
/ohos5.0/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/ |
H A D | permission_manager.cpp | 698 const std::vector<AccessTokenID>& tokenIDs, const std::vector<std::string>& permList) in ScopeToString() argument 701 copy(tokenIDs.begin(), tokenIDs.end(), std::ostream_iterator<uint32_t>(str, ", ")); in ScopeToString() 714 for (const auto& tokenId : scopeSrc.tokenIDs) { in ScopeFilter() 717 scopeRes.tokenIDs.emplace_back(tokenId); in ScopeFilter() 733 if ((scopeRes.tokenIDs.empty()) && (!scopeSrc.tokenIDs.empty())) { in ScopeFilter() 741 ScopeToString(scopeRes.tokenIDs, scopeRes.permList); in ScopeFilter()
|
/ohos5.0/base/security/access_token/test/fuzztest/services/accesstoken/registerpermstatechangecallbackstub_fuzzer/ |
H A D | registerpermstatechangecallbackstub_fuzzer.cpp | 61 scopeInfo.tokenIDs = { tokenId }; in RegisterPermStateChangeCallbackStubFuzzTest()
|
/ohos5.0/base/security/access_token/services/accesstokenmanager/test/unittest/ |
H A D | permission_manager_test.cpp | 733 inScopeInfo.tokenIDs = {}; 737 inScopeInfo.tokenIDs = {123}; 740 EXPECT_EQ(true, outScopeInfo.tokenIDs.empty()); 743 inScopeInfo.tokenIDs.clear(); 744 inScopeInfo.tokenIDs = {123, tokenId, tokenId}; 746 EXPECT_EQ(1, static_cast<int32_t>(outScopeInfo.tokenIDs.size())); 749 inScopeInfo.tokenIDs.clear(); 763 inScopeInfo.tokenIDs = {123, tokenId, tokenId}; 766 EXPECT_EQ(1, static_cast<int32_t>(outScopeInfo.tokenIDs.size())); 781 inScopeInfo.tokenIDs = {123}; [all …]
|
/ohos5.0/foundation/multimedia/camera_framework/services/camera_service/src/ |
H A D | camera_privacy.cpp | 93 scopeInfo.tokenIDs = {callerToken_}; in RegisterPermissionCallback()
|
/ohos5.0/base/security/access_token/services/accesstokenmanager/main/cpp/include/permission/ |
H A D | permission_manager.h | 108 const std::vector<AccessTokenID>& tokenIDs, const std::vector<std::string>& permList);
|
/ohos5.0/base/security/access_token/services/accesstokenmanager/main/cpp/src/callback/ |
H A D | callback_manager.cpp | 186 if (!CalledAccordingToTokenIdLlist(scopePtr->tokenIDs, tokenID) || in GetCallbackObjectList()
|
/ohos5.0/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/accesstoken_mock_test/ |
H A D | accesstoken_kit_test.cpp | 433 scopeInfo.tokenIDs = {};
|
/ohos5.0/base/security/access_token/interfaces/innerkits/accesstoken/src/ |
H A D | accesstoken_manager_client.cpp | 335 scopeParcel.scope.tokenIDs.size() > TOKENIDS_LIST_SIZE_MAX) { in RegisterPermStateChangeCallback()
|
/ohos5.0/foundation/ability/form_fwk/services/src/ |
H A D | form_data_proxy_record.cpp | 169 scopeInfo.tokenIDs = {tokenId_}; in RegisterPermissionListener()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-ability-kit/ |
H A D | js-apis-abilityAccessCtrl-sys.md | 583 | 12100001 | Invalid parameter. The tokenIDs or permissionNames in the list are all invalid. |
|
/ohos5.0/base/location/test/location_common/source/ |
H A D | location_common_test.cpp | 485 scopeInfo.tokenIDs = {callingTokenId};
|
/ohos5.0/docs/en/application-dev/reference/apis-ability-kit/ |
H A D | js-apis-abilityAccessCtrl-sys.md | 583 | 12100001 | Invalid parameter. The tokenIDs or permissionNames in the list are all invalid. |
|
/ohos5.0/base/location/services/location_locator/locator/source/ |
H A D | locator_ability.cpp | 1480 scopeInfo.tokenIDs = {callingTokenId}; in RegisterPermissionCallback()
|