/base/security/access_token/interfaces/innerkits/accesstoken/src/ |
H A D | perm_state_change_callback_customize.cpp | 25 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 D | registerpermstatechangecallbackstub_fuzzer.cpp | 32 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 D | registerpermstatechangecallback_fuzzer.cpp | 29 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 D | accesstoken_kit_extension_test.cpp | 1008 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 D | accesstoken_deny_test.cpp | 331 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 D | security_component_grant_test.cpp | 425 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 D | permission_status_change_cb.h | 27 explicit PermissionStatusChangeCb(const PermStateChangeScope &scopeInfo) in PermissionStatusChangeCb() argument 28 : PermStateChangeCallbackCustomize(scopeInfo) {} in PermissionStatusChangeCb()
|
/base/security/access_token/interfaces/innerkits/accesstoken/include/ |
H A D | perm_state_change_callback_customize.h | 59 * @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 D | at_manager_impl.cpp | 346 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 D | unregisterpermstatechangecallback_fuzzer.cpp | 29 explicit CbCustomizeTest1(const PermStateChangeScope &scopeInfo) in CbCustomizeTest1() argument 30 : PermStateChangeCallbackCustomize(scopeInfo) in CbCustomizeTest1()
|
/base/security/access_token/frameworks/js/napi/accesstoken/src/ |
H A D | napi_atmanager.cpp | 1130 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 D | accesstoken_kit_test.cpp | 399 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 D | napi_atmanager.h | 72 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 D | at_manager_impl.h | 143 PermStateChangeScope scopeInfo; member 200 static void DeleteRegisterFromVector(const PermStateChangeScope& scopeInfo, int64_t subscriberRef);
|
/base/location/test/location_common/source/ |
H A D | location_common_test.cpp | 484 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 D | locator_ability.cpp | 1419 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()
|