/ohos5.0/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()
|
/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 = {}; 1164 scopeInfo.permList = {}; 1165 scopeInfo.tokenIDs = {}; 1360 scopeInfo.tokenIDs = {}; 1409 scopeInfo.permList = {}; 1410 scopeInfo.tokenIDs = {}; 1436 scopeInfo.permList = {}; 1437 scopeInfo.tokenIDs = {}; 1479 scopeInfo.permList = {}; [all …]
|
H A D | accesstoken_deny_test.cpp | 313 explicit CbCustomizeTest1(const PermStateChangeScope &scopeInfo) in CbCustomizeTest1() argument 314 : PermStateChangeCallbackCustomize(scopeInfo) in CbCustomizeTest1() 332 PermStateChangeScope scopeInfo; variable 333 scopeInfo.permList = {"ohos.permission.CAMERA"}; 334 scopeInfo.tokenIDs = {}; 335 auto callbackPtr = std::make_shared<CbCustomizeTest1>(scopeInfo); 366 PermStateChangeScope scopeInfo; variable 367 scopeInfo.permList = {"ohos.permission.CAMERA"}; 368 scopeInfo.tokenIDs = {}; 369 auto callbackPtr = std::make_shared<CbCustomizeTest1>(scopeInfo);
|
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; variable 550 scopeInfo.permList = {TEST_PERMISSION_NOT_REQUESTED}; 551 scopeInfo.tokenIDs = {}; 552 auto callbackPtr = std::make_shared<CbCustomizeTest>(scopeInfo);
|
/ohos5.0/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()
|
/ohos5.0/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() 691 PermStateChangeScope scopeInfo; in FillPermStateChangeInfo() local 695 scopeInfo.tokenIDs.emplace_back(res); in FillPermStateChangeInfo() 706 std::sort(scopeInfo.tokenIDs.begin(), scopeInfo.tokenIDs.end()); in FillPermStateChangeInfo() 707 std::sort(scopeInfo.permList.begin(), scopeInfo.permList.end()); in FillPermStateChangeInfo() 766 PermStateChangeScope scopeInfo; in FindAndGetSubscriberInVector() local 768 if (scopeInfo.tokenIDs == targetTokenIDs && scopeInfo.permList == targetPermList) { in FindAndGetSubscriberInVector() 843 PermStateChangeScope scopeInfo; in IsExistRegister() local 857 auto iter = std::find(scopeInfo.permList.begin(), scopeInfo.permList.end(), PermItem); in IsExistRegister() [all …]
|
/ohos5.0/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() argument 31 void PermStateChangeCallbackCustomize::GetScope(PermStateChangeScope &scopeInfo) const in GetScope() 33 scopeInfo = scopeInfo_; in GetScope()
|
/ohos5.0/foundation/communication/dsoftbus/core/frame/standard/client_manager/src/ |
H A D | permission_status_change_cb.cpp | 31 PermStateChangeScope scopeInfo; in RegisterDataSyncPermission() local 32 scopeInfo.permList = {permissionName}; in RegisterDataSyncPermission() 33 scopeInfo.tokenIDs = {callingTokenId}; in RegisterDataSyncPermission() 35 std::make_shared<PermissionStatusChangeCb>(scopeInfo, pkgName, pid); in RegisterDataSyncPermission()
|
/ohos5.0/base/security/access_token/interfaces/kits/napi/accesstoken/src/ |
H A D | napi_atmanager.cpp | 1130 PermStateChangeScope scopeInfo; in FillPermStateChangeInfo() local 1152 std::sort(scopeInfo.tokenIDs.begin(), scopeInfo.tokenIDs.end()); in FillPermStateChangeInfo() 1153 std::sort(scopeInfo.permList.begin(), scopeInfo.permList.end()); in FillPermStateChangeInfo() 1277 PermStateChangeScope scopeInfo; in ParseInputToUnregister() local 1299 std::sort(scopeInfo.tokenIDs.begin(), scopeInfo.tokenIDs.end()); in ParseInputToUnregister() 1300 std::sort(scopeInfo.permList.begin(), scopeInfo.permList.end()); in ParseInputToUnregister() 1304 unregisterPermStateChangeInfo.scopeInfo = scopeInfo; in ParseInputToUnregister() 1330 PermStateChangeScope scopeInfo; in UnregisterPermStateChangeCallback() local 1365 if (scopeInfo.tokenIDs == targetTokenIDs && scopeInfo.permList == targetPermList) { in FindAndGetSubscriberInVector() 1400 auto iter = std::find(scopeInfo.permList.begin(), scopeInfo.permList.end(), PermItem); in IsExistRegister() [all …]
|
/ohos5.0/foundation/multimedia/camera_framework/services/camera_service/src/ |
H A D | camera_privacy.cpp | 91 Security::AccessToken::PermStateChangeScope scopeInfo; in RegisterPermissionCallback() local 92 scopeInfo.permList = {OHOS_PERMISSION_CAMERA}; in RegisterPermissionCallback() 93 scopeInfo.tokenIDs = {callerToken_}; in RegisterPermissionCallback() 97 … permissionCallbackPtr_ = std::make_shared<PermissionStatusChangeCb>(cameraDevice_, scopeInfo); in RegisterPermissionCallback()
|
/ohos5.0/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()
|
/ohos5.0/base/security/access_token/interfaces/innerkits/accesstoken/include/ |
H A D | perm_state_change_callback_customize.h | 61 explicit PermStateChangeCallbackCustomize(const PermStateChangeScope &scopeInfo); 77 void GetScope(PermStateChangeScope &scopeInfo) const;
|
/ohos5.0/foundation/communication/dsoftbus/core/frame/standard/client_manager/include/ |
H A D | permission_status_change_cb.h | 27 …PermissionStatusChangeCb(const PermStateChangeScope &scopeInfo, std::string _pkgName, int32_t _pid) in PermissionStatusChangeCb() argument 28 : PermStateChangeCallbackCustomize(scopeInfo), pkgName(_pkgName), pid(_pid) {} in PermissionStatusChangeCb()
|
/ohos5.0/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()
|
/ohos5.0/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/accesstoken_mock_test/ |
H A D | accesstoken_kit_test.cpp | 412 explicit CbCustomizeTest(const PermStateChangeScope &scopeInfo) in CbCustomizeTest() argument 413 : PermStateChangeCallbackCustomize(scopeInfo) in CbCustomizeTest() 431 PermStateChangeScope scopeInfo; variable 432 scopeInfo.permList = {"ohos.permission.CAMERA"}; 433 scopeInfo.tokenIDs = {}; 434 auto callbackPtr = std::make_shared<CbCustomizeTest>(scopeInfo);
|
/ohos5.0/foundation/multimedia/camera_framework/services/camera_service/include/ |
H A D | camera_privacy.h | 34 wptr<HCameraDevice> device, const Security::AccessToken::PermStateChangeScope& scopeInfo) in PermissionStatusChangeCb() argument 35 : PermStateChangeCallbackCustomize(scopeInfo), cameraDevice_(device) in PermissionStatusChangeCb()
|
/ohos5.0/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/sa/ |
H A D | intell_voice_service.h | 54 …cit PerStateChangeCbCustomizeCallback(const Security::AccessToken::PermStateChangeScope &scopeInfo) in PerStateChangeCbCustomizeCallback() argument 55 : PermStateChangeCallbackCustomize(scopeInfo) {} in PerStateChangeCbCustomizeCallback()
|
H A D | intell_voice_service.cpp | 267 Security::AccessToken::PermStateChangeScope scopeInfo; in RegisterPermissionCallback() local 268 scopeInfo.permList = {permissionName}; in RegisterPermissionCallback() 269 auto callbackPtr = std::make_shared<PerStateChangeCbCustomizeCallback>(scopeInfo); in RegisterPermissionCallback()
|
/ohos5.0/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);
|
/ohos5.0/base/security/access_token/interfaces/kits/napi/accesstoken/include/ |
H A D | napi_atmanager.h | 72 PermStateChangeScope scopeInfo; member 154 static void DeleteRegisterFromVector(const PermStateChangeScope& scopeInfo, const napi_env env,
|
/ohos5.0/foundation/ability/form_fwk/services/src/ |
H A D | form_data_proxy_record.cpp | 42 PermissionCustomizeListener(const Security::AccessToken::PermStateChangeScope &scopeInfo, in PermissionCustomizeListener() argument 44 : Security::AccessToken::PermStateChangeCallbackCustomize(scopeInfo) in PermissionCustomizeListener() 167 Security::AccessToken::PermStateChangeScope scopeInfo; in RegisterPermissionListener() local 168 scopeInfo.permList = {permList}; in RegisterPermissionListener() 169 scopeInfo.tokenIDs = {tokenId_}; in RegisterPermissionListener() 170 callbackPtr_ = std::make_shared<PermissionCustomizeListener>(scopeInfo, weak_from_this()); in RegisterPermissionListener()
|
/ohos5.0/base/location/test/location_common/source/ |
H A D | location_common_test.cpp | 483 PermStateChangeScope scopeInfo; variable 484 scopeInfo.permList = {"ohos.permission.LOCATION"}; 485 scopeInfo.tokenIDs = {callingTokenId}; 486 auto callbackPtr = std::make_shared<PermissionStatusChangeCb>(scopeInfo);
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/include/ |
H A D | audio_policy_server.h | 439 …cit PerStateChangeCbCustomizeCallback(const Security::AccessToken::PermStateChangeScope &scopeInfo, in PerStateChangeCbCustomizeCallback() argument 440 sptr<AudioPolicyServer> server) : PermStateChangeCallbackCustomize(scopeInfo), in PerStateChangeCbCustomizeCallback()
|
/ohos5.0/base/location/services/location_locator/locator/source/ |
H A D | locator_ability.cpp | 1478 PermStateChangeScope scopeInfo; in RegisterPermissionCallback() local 1479 scopeInfo.permList = permissionNameList; in RegisterPermissionCallback() 1480 scopeInfo.tokenIDs = {callingTokenId}; in RegisterPermissionCallback() 1481 auto callbackPtr = std::make_shared<PermissionStatusChangeCb>(scopeInfo); in RegisterPermissionCallback()
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/src/ |
H A D | audio_policy_server.cpp | 127 Security::AccessToken::PermStateChangeScope scopeInfo; in OnStart() local 128 scopeInfo.permList = {"ohos.permission.MICROPHONE"}; in OnStart() 129 auto callbackPtr = std::make_shared<PerStateChangeCbCustomizeCallback>(scopeInfo, this); in OnStart()
|