Home
last modified time | relevance | path

Searched refs:scopeInfo (Results 1 - 16 of 16) sorted by relevance

/base/security/access_token/interfaces/innerkits/accesstoken/src/
H A Dperm_state_change_callback_customize.cpp25 const PermStateChangeScope &scopeInfo) : scopeInfo_(scopeInfo) in PermStateChangeCallbackCustomize()
31 void PermStateChangeCallbackCustomize::GetScope(PermStateChangeScope &scopeInfo) const in GetScope()
33 scopeInfo = scopeInfo_; in GetScope()
24 PermStateChangeCallbackCustomize( const PermStateChangeScope &scopeInfo) PermStateChangeCallbackCustomize() argument
/base/security/access_token/test/fuzztest/services/accesstoken/registerpermstatechangecallbackstub_fuzzer/
H A Dregisterpermstatechangecallbackstub_fuzzer.cpp32 explicit CbCustomizeTest2(const PermStateChangeScope &scopeInfo) in CbCustomizeTest2() argument
33 : PermStateChangeCallbackCustomize(scopeInfo) in CbCustomizeTest2()
59 PermStateChangeScope scopeInfo; in RegisterPermStateChangeCallbackStubFuzzTest() local
60 scopeInfo.permList = { testName }; in RegisterPermStateChangeCallbackStubFuzzTest()
61 scopeInfo.tokenIDs = { tokenId }; in RegisterPermStateChangeCallbackStubFuzzTest()
62 auto callbackPtr = std::make_shared<CbCustomizeTest2>(scopeInfo); in RegisterPermStateChangeCallbackStubFuzzTest()
65 scopeParcel.scope = scopeInfo; in RegisterPermStateChangeCallbackStubFuzzTest()
/base/security/access_token/test/fuzztest/innerkits/accesstoken/registerpermstatechangecallback_fuzzer/
H A Dregisterpermstatechangecallback_fuzzer.cpp29 explicit CbCustomizeTest2(const PermStateChangeScope &scopeInfo) in CbCustomizeTest2() argument
30 : PermStateChangeCallbackCustomize(scopeInfo) in CbCustomizeTest2()
53 PermStateChangeScope scopeInfo; in RegisterPermStateChangeCallbackFuzzTest() local
54 scopeInfo.permList = { fuzzData.GenerateRandomString() }; in RegisterPermStateChangeCallbackFuzzTest()
55 scopeInfo.tokenIDs = { fuzzData.GetData<AccessTokenID>() }; in RegisterPermStateChangeCallbackFuzzTest()
56 auto callbackPtr = std::make_shared<CbCustomizeTest2>(scopeInfo); in RegisterPermStateChangeCallbackFuzzTest()
/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/
H A Daccesstoken_kit_extension_test.cpp1008 explicit CbCustomizeTest(const PermStateChangeScope &scopeInfo) in CbCustomizeTest() argument
1009 : PermStateChangeCallbackCustomize(scopeInfo) in CbCustomizeTest()
1034 PermStateChangeScope scopeInfo; in HWTEST_F() local
1035 scopeInfo.permList = {"ohos.permission.CAMERA"}; in HWTEST_F()
1036 scopeInfo.tokenIDs = {}; in HWTEST_F()
1037 auto callbackPtr = std::make_shared<CbCustomizeTest>(scopeInfo); in HWTEST_F()
1105 PermStateChangeScope scopeInfo; in HWTEST_F() local
1106 scopeInfo.permList = {"ohos.permission.GET_BUNDLE_INFO"}; in HWTEST_F()
1107 scopeInfo.tokenIDs = {}; in HWTEST_F()
1108 auto callbackPtr = std::make_shared<CbCustomizeTest>(scopeInfo); in HWTEST_F()
1162 PermStateChangeScope scopeInfo; HWTEST_F() local
1227 PermStateChangeScope scopeInfo; HWTEST_F() local
1318 PermStateChangeScope scopeInfo; HWTEST_F() local
1357 PermStateChangeScope scopeInfo; HWTEST_F() local
1407 PermStateChangeScope scopeInfo; HWTEST_F() local
1434 PermStateChangeScope scopeInfo; HWTEST_F() local
1477 PermStateChangeScope scopeInfo; HWTEST_F() local
1527 PermStateChangeScope scopeInfo; HWTEST_F() local
1555 PermStateChangeScope scopeInfo; HWTEST_F() local
1575 PermStateChangeScope scopeInfo; HWTEST_F() local
1634 PermStateChangeScope scopeInfo; HWTEST_F() local
1688 PermStateChangeScope scopeInfo; HWTEST_F() local
1706 PermStateChangeScope scopeInfo; HWTEST_F() local
1730 PermStateChangeScope scopeInfo; HWTEST_F() local
1870 PermStateChangeScope scopeInfo; HWTEST_F() local
[all...]
H A Daccesstoken_deny_test.cpp331 explicit CbCustomizeTest1(const PermStateChangeScope &scopeInfo) in CbCustomizeTest1() argument
332 : PermStateChangeCallbackCustomize(scopeInfo) in CbCustomizeTest1()
350 PermStateChangeScope scopeInfo; in HWTEST_F() local
351 scopeInfo.permList = {"ohos.permission.CAMERA"}; in HWTEST_F()
352 scopeInfo.tokenIDs = {}; in HWTEST_F()
353 auto callbackPtr = std::make_shared<CbCustomizeTest1>(scopeInfo); in HWTEST_F()
384 PermStateChangeScope scopeInfo; in HWTEST_F() local
385 scopeInfo.permList = {"ohos.permission.CAMERA"}; in HWTEST_F()
386 scopeInfo.tokenIDs = {}; in HWTEST_F()
387 auto callbackPtr = std::make_shared<CbCustomizeTest1>(scopeInfo); in HWTEST_F()
[all...]
H A Dsecurity_component_grant_test.cpp425 explicit CbCustomizeTest(const PermStateChangeScope &scopeInfo) in CbCustomizeTest() argument
426 : PermStateChangeCallbackCustomize(scopeInfo) in CbCustomizeTest()
549 PermStateChangeScope scopeInfo; in HWTEST_F() local
550 scopeInfo.permList = {TEST_PERMISSION_NOT_REQUESTED}; in HWTEST_F()
551 scopeInfo.tokenIDs = {}; in HWTEST_F()
552 auto callbackPtr = std::make_shared<CbCustomizeTest>(scopeInfo); in HWTEST_F()
/base/location/services/location_locator/locator/include/
H A Dpermission_status_change_cb.h27 explicit PermissionStatusChangeCb(const PermStateChangeScope &scopeInfo) in PermissionStatusChangeCb() argument
28 : PermStateChangeCallbackCustomize(scopeInfo) {} in PermissionStatusChangeCb()
/base/security/access_token/interfaces/innerkits/accesstoken/include/
H A Dperm_state_change_callback_customize.h59 * @param scopeInfo struct PermStateChangeScope quote
61 explicit PermStateChangeCallbackCustomize(const PermStateChangeScope &scopeInfo);
75 * @param scopeInfo struct PermStateChangeScope quote as return value
77 void GetScope(PermStateChangeScope &scopeInfo) const;
/base/security/access_token/interfaces/kits/cj/accesstoken/src/
H A Dat_manager_impl.cpp346 PermStateChangeScope scopeInfo; in UnregisterPermStateChangeCallback() local
347 item->subscriber->GetScope(scopeInfo); in UnregisterPermStateChangeCallback()
350 DeleteRegisterFromVector(scopeInfo, item->callbackRef); in UnregisterPermStateChangeCallback()
691 PermStateChangeScope scopeInfo; in FillPermStateChangeInfo() local
695 scopeInfo.tokenIDs.emplace_back(res); in FillPermStateChangeInfo()
704 scopeInfo.permList.emplace_back(str); in FillPermStateChangeInfo()
706 std::sort(scopeInfo.tokenIDs.begin(), scopeInfo.tokenIDs.end()); in FillPermStateChangeInfo()
707 std::sort(scopeInfo.permList.begin(), scopeInfo in FillPermStateChangeInfo()
766 PermStateChangeScope scopeInfo; FindAndGetSubscriberInVector() local
780 DeleteRegisterFromVector(const PermStateChangeScope& scopeInfo, int64_t subscriberRef) DeleteRegisterFromVector() argument
843 PermStateChangeScope scopeInfo; IsExistRegister() local
[all...]
/base/security/access_token/test/fuzztest/innerkits/accesstoken/unregisterpermstatechangecallback_fuzzer/
H A Dunregisterpermstatechangecallback_fuzzer.cpp29 explicit CbCustomizeTest1(const PermStateChangeScope &scopeInfo) in CbCustomizeTest1() argument
30 : PermStateChangeCallbackCustomize(scopeInfo) in CbCustomizeTest1()
/base/security/access_token/frameworks/js/napi/accesstoken/src/
H A Dnapi_atmanager.cpp1130 PermStateChangeScope scopeInfo; in FillPermStateChangeInfo() local
1135 if (!ParseAccessTokenIDArray(env, argv[1], scopeInfo.tokenIDs)) { in FillPermStateChangeInfo()
1141 if (!ParseStringArray(env, argv[2], scopeInfo.permList)) { in FillPermStateChangeInfo()
1152 std::sort(scopeInfo.tokenIDs.begin(), scopeInfo.tokenIDs.end()); in FillPermStateChangeInfo()
1153 std::sort(scopeInfo.permList.begin(), scopeInfo.permList.end()); in FillPermStateChangeInfo()
1157 registerPermStateChangeInfo.subscriber = std::make_shared<RegisterPermStateChangeScopePtr>(scopeInfo); in FillPermStateChangeInfo()
1277 PermStateChangeScope scopeInfo; in ParseInputToUnregister() local
1279 if (!ParseAccessTokenIDArray(env, argv[1], scopeInfo in ParseInputToUnregister()
1330 PermStateChangeScope scopeInfo; UnregisterPermStateChangeCallback() local
1363 PermStateChangeScope scopeInfo; FindAndGetSubscriberInVector() local
1386 PermStateChangeScope scopeInfo; IsExistRegister() local
1430 DeleteRegisterFromVector(const PermStateChangeScope& scopeInfo, const napi_env env, napi_ref subscriberRef) DeleteRegisterFromVector() argument
[all...]
/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/accesstoken_mock_test/
H A Daccesstoken_kit_test.cpp399 explicit CbCustomizeTest(const PermStateChangeScope &scopeInfo) in CbCustomizeTest() argument
400 : PermStateChangeCallbackCustomize(scopeInfo) in CbCustomizeTest()
418 PermStateChangeScope scopeInfo; in HWTEST_F() local
419 scopeInfo.permList = {"ohos.permission.CAMERA"}; in HWTEST_F()
420 scopeInfo.tokenIDs = {}; in HWTEST_F()
421 auto callbackPtr = std::make_shared<CbCustomizeTest>(scopeInfo); in HWTEST_F()
/base/security/access_token/interfaces/kits/js/napi/accesstoken/include/
H A Dnapi_atmanager.h72 PermStateChangeScope scopeInfo; member
154 static void DeleteRegisterFromVector(const PermStateChangeScope& scopeInfo, const napi_env env,
/base/security/access_token/interfaces/kits/cj/accesstoken/include/
H A Dat_manager_impl.h143 PermStateChangeScope scopeInfo; member
200 static void DeleteRegisterFromVector(const PermStateChangeScope& scopeInfo, int64_t subscriberRef);
/base/location/test/location_common/source/
H A Dlocation_common_test.cpp484 PermStateChangeScope scopeInfo; in HWTEST_F() local
485 scopeInfo.permList = {"ohos.permission.LOCATION"}; in HWTEST_F()
486 scopeInfo.tokenIDs = {callingTokenId}; in HWTEST_F()
487 auto callbackPtr = std::make_shared<PermissionStatusChangeCb>(scopeInfo); in HWTEST_F()
/base/location/services/location_locator/locator/source/
H A Dlocator_ability.cpp1419 PermStateChangeScope scopeInfo; in RegisterPermissionCallback() local
1420 scopeInfo.permList = permissionNameList; in RegisterPermissionCallback()
1421 scopeInfo.tokenIDs = {callingTokenId}; in RegisterPermissionCallback()
1422 auto callbackPtr = std::make_shared<PermissionStatusChangeCb>(scopeInfo); in RegisterPermissionCallback()

Completed in 17 milliseconds