Home
last modified time | relevance | path

Searched refs:tokenIDs (Results 1 – 24 of 24) sorted by relevance

/ohos5.0/base/security/access_token/frameworks/accesstoken/src/
H A Dpermission_state_change_scope_parcel.cpp24 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 Dat_manager_impl.cpp695 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 Daccesstoken_kit_extension_test.cpp1037 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 Dsecurity_component_grant_test.cpp451 scopeInfo9.tokenIDs = {};
504 scopeInfo10.tokenIDs = {};
551 scopeInfo.tokenIDs = {};
H A Daccesstoken_deny_test.cpp334 scopeInfo.tokenIDs = {};
368 scopeInfo.tokenIDs = {};
/ohos5.0/base/security/access_token/frameworks/test/unittest/
H A Daccesstoken_parcel_test.cpp223 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 Dnapi_atmanager.cpp1135 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 Dpermission_state_change_info.h85 std::vector<AccessTokenID> tokenIDs; member
/ohos5.0/foundation/communication/dsoftbus/core/frame/standard/client_manager/src/
H A Dpermission_status_change_cb.cpp33 scopeInfo.tokenIDs = {callingTokenId}; in RegisterDataSyncPermission()
/ohos5.0/base/security/access_token/test/fuzztest/innerkits/accesstoken/registerpermstatechangecallback_fuzzer/
H A Dregisterpermstatechangecallback_fuzzer.cpp55 scopeInfo.tokenIDs = { fuzzData.GetData<AccessTokenID>() }; in RegisterPermStateChangeCallbackFuzzTest()
/ohos5.0/base/security/access_token/test/fuzztest/innerkits/accesstoken/unregisterpermstatechangecallback_fuzzer/
H A Dunregisterpermstatechangecallback_fuzzer.cpp55 scopeInfos.tokenIDs = { fuzzData.GetData<AccessTokenID>() }; in UnRegisterPermStateChangeCallbackFuzzTest()
/ohos5.0/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
H A Dpermission_manager.cpp698 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 Dregisterpermstatechangecallbackstub_fuzzer.cpp61 scopeInfo.tokenIDs = { tokenId }; in RegisterPermStateChangeCallbackStubFuzzTest()
/ohos5.0/base/security/access_token/services/accesstokenmanager/test/unittest/
H A Dpermission_manager_test.cpp733 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 Dcamera_privacy.cpp93 scopeInfo.tokenIDs = {callerToken_}; in RegisterPermissionCallback()
/ohos5.0/base/security/access_token/services/accesstokenmanager/main/cpp/include/permission/
H A Dpermission_manager.h108 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 Dcallback_manager.cpp186 if (!CalledAccordingToTokenIdLlist(scopePtr->tokenIDs, tokenID) || in GetCallbackObjectList()
/ohos5.0/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/accesstoken_mock_test/
H A Daccesstoken_kit_test.cpp433 scopeInfo.tokenIDs = {};
/ohos5.0/base/security/access_token/interfaces/innerkits/accesstoken/src/
H A Daccesstoken_manager_client.cpp335 scopeParcel.scope.tokenIDs.size() > TOKENIDS_LIST_SIZE_MAX) { in RegisterPermStateChangeCallback()
/ohos5.0/foundation/ability/form_fwk/services/src/
H A Dform_data_proxy_record.cpp169 scopeInfo.tokenIDs = {tokenId_}; in RegisterPermissionListener()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-ability-kit/
H A Djs-apis-abilityAccessCtrl-sys.md583 | 12100001 | Invalid parameter. The tokenIDs or permissionNames in the list are all invalid. |
/ohos5.0/base/location/test/location_common/source/
H A Dlocation_common_test.cpp485 scopeInfo.tokenIDs = {callingTokenId};
/ohos5.0/docs/en/application-dev/reference/apis-ability-kit/
H A Djs-apis-abilityAccessCtrl-sys.md583 | 12100001 | Invalid parameter. The tokenIDs or permissionNames in the list are all invalid. |
/ohos5.0/base/location/services/location_locator/locator/source/
H A Dlocator_ability.cpp1480 scopeInfo.tokenIDs = {callingTokenId}; in RegisterPermissionCallback()