/foundation/ability/ability_runtime/test/unittest/start_other_app_interceptor_test/ |
H A D | start_other_app_interceptor_test.cpp | 20 #include "interceptor/start_other_app_interceptor.h" 59 auto interceptor = std::make_shared<StartOtherAppInterceptor>(); in HWTEST_F() local 60 bool res = interceptor->CheckNativeCall(); in HWTEST_F() 71 auto interceptor = std::make_shared<StartOtherAppInterceptor>(); in HWTEST_F() local 72 bool res = interceptor->CheckCallerIsSystemApp(); in HWTEST_F() 83 auto interceptor = std::make_shared<StartOtherAppInterceptor>(); in HWTEST_F() local 85 bool res = interceptor->GetApplicationInfo(nullptr, applicationInfo); in HWTEST_F() 96 auto interceptor = std::make_shared<StartOtherAppInterceptor>(); in HWTEST_F() local 99 bool res = interceptor->GetApplicationInfo(callerToken, applicationInfo); in HWTEST_F() 110 auto interceptor in HWTEST_F() local 126 auto interceptor = std::make_shared<StartOtherAppInterceptor>(); HWTEST_F() local 143 auto interceptor = std::make_shared<StartOtherAppInterceptor>(); HWTEST_F() local 160 auto interceptor = std::make_shared<StartOtherAppInterceptor>(); HWTEST_F() local 176 auto interceptor = std::make_shared<StartOtherAppInterceptor>(); HWTEST_F() local 190 auto interceptor = std::make_shared<StartOtherAppInterceptor>(); HWTEST_F() local 204 auto interceptor = std::make_shared<StartOtherAppInterceptor>(); HWTEST_F() local 220 auto interceptor = std::make_shared<StartOtherAppInterceptor>(); HWTEST_F() local 236 std::shared_ptr<StartOtherAppInterceptor> interceptor = std::make_shared<StartOtherAppInterceptor>(); HWTEST_F() local 250 std::shared_ptr<StartOtherAppInterceptor> interceptor = std::make_shared<StartOtherAppInterceptor>(); HWTEST_F() local 264 std::shared_ptr<StartOtherAppInterceptor> interceptor = std::make_shared<StartOtherAppInterceptor>(); HWTEST_F() local [all...] |
/foundation/multimodalinput/input/frameworks/proxy/event_handler/src/ |
H A D | input_interceptor_manager.cpp | 29 int32_t InputInterceptorManager::AddInterceptor(std::shared_ptr<IInputEventConsumer> interceptor, in AddInterceptor() argument 32 CHKPR(interceptor, INVALID_HANDLER_ID); in AddInterceptor() 33 return AddHandler(InputHandlerType::INTERCEPTOR, interceptor, eventType); in AddInterceptor() 36 int32_t InputInterceptorManager::AddInterceptor(std::shared_ptr<IInputEventConsumer> interceptor, in AddInterceptor() argument 39 CHKPR(interceptor, INVALID_HANDLER_ID); in AddInterceptor() 40 return AddHandler(InputHandlerType::INTERCEPTOR, interceptor, eventType, priority, deviceTags); in AddInterceptor()
|
/foundation/multimodalinput/input/service/interceptor/src/ |
H A D | event_interceptor_handler.cpp | 95 SessionHandler interceptor { handlerType, eventType, priority, deviceTags, session }; in AddInputHandler() 98 return interceptors_.AddInterceptor(interceptor); in AddInputHandler() 107 SessionHandler interceptor { handlerType, eventType, priority, deviceTags, session }; in RemoveInputHandler() 110 interceptors_.RemoveInterceptor(interceptor); in RemoveInputHandler() 240 for (const auto &interceptor : interceptors_) { in HandleEvent() 242 interceptor.eventType_, interceptor.deviceTags_); in HandleEvent() 243 if ((capKeyboard & interceptor.deviceTags_) == 0) { in HandleEvent() 247 if (!inputDevice->HasCapability(interceptor.deviceTags_)) { in HandleEvent() 250 if ((interceptor in HandleEvent() 307 AddInterceptor(const SessionHandler& interceptor) AddInterceptor() argument 335 RemoveInterceptor(const SessionHandler& interceptor) RemoveInterceptor() argument [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilitymgrjumpinterceptor_fuzzer/ |
H A D | abilitymgrjumpinterceptor_fuzzer.cpp | 22 #include "interceptor/ability_jump_interceptor.h" 68 std::shared_ptr<AbilityJumpInterceptor> interceptor = std::make_shared<AbilityJumpInterceptor>(); in DoSomethingInterestingWithMyAPI() local 79 interceptor->DoProcess(param); in DoSomethingInterestingWithMyAPI() 82 interceptor->CheckControl(bundleMgrHelper, want, userId, controlRule); in DoSomethingInterestingWithMyAPI() 83 interceptor->CheckIfJumpExempt(controlRule, userId); in DoSomethingInterestingWithMyAPI() 84 interceptor->CheckIfExemptByBundleName(jsonStr, jsonStr, userId); in DoSomethingInterestingWithMyAPI() 85 interceptor->LoadAppLabelInfo(want, controlRule, userId); in DoSomethingInterestingWithMyAPI()
|
/foundation/ability/ability_runtime/test/unittest/ability_interceptor_test/ |
H A D | ability_interceptor_test.cpp | 20 #include "interceptor/ability_jump_interceptor.h" 21 #include "interceptor/ecological_rule_interceptor.h" 22 #include "interceptor/disposed_rule_interceptor.h" 27 #include "interceptor/ability_interceptor_executer.h" 28 #include "interceptor/control_interceptor.h" 29 #include "interceptor/crowd_test_interceptor.h" 227 // make appControlRule become nullptr by crowdtest interceptor in HWTEST_F() 537 std::shared_ptr<AbilityJumpInterceptor> interceptor = std::make_shared<AbilityJumpInterceptor>(); in HWTEST_F() local 544 int result = interceptor->DoProcess(param); in HWTEST_F() 556 std::shared_ptr<AbilityJumpInterceptor> interceptor in HWTEST_F() local 577 std::shared_ptr<AbilityJumpInterceptor> interceptor = std::make_shared<AbilityJumpInterceptor>(); HWTEST_F() local 598 std::shared_ptr<AbilityJumpInterceptor> interceptor = std::make_shared<AbilityJumpInterceptor>(); HWTEST_F() local 615 std::shared_ptr<AbilityJumpInterceptor> interceptor = std::make_shared<AbilityJumpInterceptor>(); HWTEST_F() local 633 std::shared_ptr<AbilityJumpInterceptor> interceptor = std::make_shared<AbilityJumpInterceptor>(); HWTEST_F() local 653 std::shared_ptr<AbilityJumpInterceptor> interceptor = std::make_shared<AbilityJumpInterceptor>(); HWTEST_F() local 673 std::shared_ptr<AbilityJumpInterceptor> interceptor = std::make_shared<AbilityJumpInterceptor>(); HWTEST_F() local 689 std::shared_ptr<AbilityJumpInterceptor> interceptor = std::make_shared<AbilityJumpInterceptor>(); HWTEST_F() local 705 std::shared_ptr<AbilityJumpInterceptor> interceptor = std::make_shared<AbilityJumpInterceptor>(); HWTEST_F() local 721 std::shared_ptr<AbilityJumpInterceptor> interceptor = std::make_shared<AbilityJumpInterceptor>(); HWTEST_F() local 743 std::shared_ptr<EcologicalRuleInterceptor> interceptor = std::make_shared<EcologicalRuleInterceptor>(); HWTEST_F() local 762 std::shared_ptr<EcologicalRuleInterceptor> interceptor = std::make_shared<EcologicalRuleInterceptor>(); HWTEST_F() local 784 std::shared_ptr<EcologicalRuleInterceptor> interceptor = std::make_shared<EcologicalRuleInterceptor>(); HWTEST_F() local [all...] |
/foundation/ability/ability_runtime/services/abilitymgr/src/interceptor/ |
H A D | disposed_rule_interceptor.cpp | 16 #include "interceptor/disposed_rule_interceptor.h" 195 auto unregisterTask = [appManager, bundleName, interceptor = shared_from_this()] () { in StartNonBlockRule() 196 std::lock_guard<ffrt::mutex> guard{interceptor->observerLock_}; in StartNonBlockRule() 197 auto iter = interceptor->disposedObserverMap_.find(bundleName); in StartNonBlockRule() 198 if (iter != interceptor->disposedObserverMap_.end()) { in StartNonBlockRule() 201 interceptor->disposedObserverMap_.erase(iter); in StartNonBlockRule() 232 auto unregisterTask = [bundleName, interceptor = shared_from_this()] () { in UnregisterObserver() 233 std::lock_guard<ffrt::mutex> guard{interceptor->observerLock_}; in UnregisterObserver() 234 auto iter = interceptor->disposedObserverMap_.find(bundleName); in UnregisterObserver() 235 if (iter == interceptor in UnregisterObserver() [all...] |
H A D | ability_interceptor_executer.cpp | 16 #include "interceptor/ability_interceptor_executer.h" 22 const std::shared_ptr<IAbilityInterceptor> &interceptor) in AddInterceptor() 25 if (interceptor != nullptr) { in AddInterceptor() 26 interceptorMap_[interceptorName] = interceptor; in AddInterceptor() 21 AddInterceptor(std::string interceptorName, const std::shared_ptr<IAbilityInterceptor> &interceptor) AddInterceptor() argument
|
/foundation/barrierfree/accessibility/services/aams/src/ |
H A D | accessibility_input_interceptor.cpp | 367 auto interceptor = AccessibilityInputInterceptor::GetInstance(); in OnInputEvent() local 368 if (!interceptor) { in OnInputEvent() 369 HILOG_ERROR("interceptor is null."); in OnInputEvent() 378 auto task = [keyEvent, interceptor] {interceptor->ProcessKeyEvent(keyEvent);}; in OnInputEvent() 391 auto interceptor = AccessibilityInputInterceptor::GetInstance(); in OnInputEvent() local 392 if (!interceptor) { in OnInputEvent() 393 HILOG_ERROR("interceptor is null."); in OnInputEvent() 401 auto task = [pointerEvent, interceptor] {interceptor in OnInputEvent() [all...] |
/foundation/multimodalinput/input/frameworks/proxy/event_handler/include/ |
H A D | input_interceptor_manager.h | 32 int32_t AddInterceptor(std::shared_ptr<IInputEventConsumer> interceptor, HandleEventType eventType); 33 int32_t AddInterceptor(std::shared_ptr<IInputEventConsumer> interceptor, HandleEventType eventType,
|
/foundation/ability/ability_runtime/test/unittest/app_mgr_service_inner_mock_test/src/ |
H A D | mock_app_mgr_service_inner.cpp | 85 int AppMgrServiceInner::RegisterKiaInterceptor(const sptr<IKiaInterceptor> &interceptor) in RegisterKiaInterceptor() argument 93 if (interceptor == nullptr) { in RegisterKiaInterceptor() 94 TAG_LOGE(AAFwkTag::APPMGR, "interceptor is nullptr."); in RegisterKiaInterceptor() 97 kiaInterceptor_ = interceptor; in RegisterKiaInterceptor()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/ |
H A D | sqlite_single_ver_natural_store_extend.cpp | 353 void SQLiteSingleVerNaturalStore::SetSendDataInterceptor(const PushDataInterceptor &interceptor) in SetSendDataInterceptor() argument 356 pushDataInterceptor_ = interceptor; in SetSendDataInterceptor() 362 PushDataInterceptor interceptor = nullptr; in InterceptData() local 365 interceptor = isPush ? pushDataInterceptor_ : receiveDataInterceptor_; in InterceptData() 366 if (interceptor == nullptr) { in InterceptData() 378 int errCode = interceptor(data, sourceID, targetID); in InterceptData() 637 void SQLiteSingleVerNaturalStore::SetReceiveDataInterceptor(const DataInterceptor &interceptor) in SetReceiveDataInterceptor() argument 640 receiveDataInterceptor_ = interceptor; in SetReceiveDataInterceptor()
|
/foundation/ability/ability_runtime/test/fuzztest/disposedobserver_fuzzer/ |
H A D | disposedobserver_fuzzer.cpp | 54 std::shared_ptr<DisposedRuleInterceptor> interceptor; in DoSomethingInterestingWithMyAPI() local 55 auto disposedObserver = std::make_shared<DisposedObserver>(disposedRule, interceptor); in DoSomethingInterestingWithMyAPI()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/kv/ |
H A D | sync_able_kvdb_connection.h | 50 int SetReceiveDataInterceptor(const DataInterceptor &interceptor) override; 86 int SetPushDataInterceptor(const PushDataInterceptor &interceptor);
|
H A D | sync_able_kvdb.h | 92 virtual void SetSendDataInterceptor(const PushDataInterceptor &interceptor) = 0; 116 virtual void SetReceiveDataInterceptor(const DataInterceptor &interceptor) = 0;
|
/foundation/multimodalinput/input/frameworks/proxy/events/test/ |
H A D | input_manager_simulate_test.cpp | 177 * @tc.desc: Verify touchscreen interceptor 204 auto interceptor = GetPtr<InputEventCallback>(); in HWTEST_F() local 205 int32_t interceptorId{InputManager::GetInstance()->AddInterceptor(interceptor)}; in HWTEST_F() 221 * @tc.desc: Verify touchscreen interceptor 243 auto interceptor = GetPtr<InputEventCallback>(); in HWTEST_F() local 244 int32_t interceptorId = InputManager::GetInstance()->AddInterceptor(interceptor); in HWTEST_F() 269 * @tc.desc: Verify mouse interceptor 291 auto interceptor = GetPtr<InputEventCallback>(); in HWTEST_F() local 292 int32_t interceptorId = InputManager::GetInstance()->AddInterceptor(interceptor); in HWTEST_F() 317 * @tc.desc: Verify volume key interceptor 337 auto interceptor = GetPtr<InputEventCallback>(); HWTEST_F() local 380 auto interceptor = GetPtr<InputEventCallback>(); HWTEST_F() local [all...] |
/foundation/ability/ability_runtime/services/abilitymgr/src/ |
H A D | disposed_observer.cpp | 18 #include "interceptor/disposed_rule_interceptor.h" 30 const std::shared_ptr<DisposedRuleInterceptor> &interceptor) in DisposedObserver() 31 : disposedRule_(disposedRule), interceptor_(interceptor) in DisposedObserver() 29 DisposedObserver(const AppExecFwk::DisposedRule &disposedRule, const std::shared_ptr<DisposedRuleInterceptor> &interceptor) DisposedObserver() argument
|
/foundation/ability/ability_runtime/test/fuzztest/abilitymgrinterceptorexecuter_fuzzer/ |
H A D | abilitymgrinterceptorexecuter_fuzzer.cpp | 22 #include "interceptor/ability_interceptor_executer.h" 69 std::shared_ptr<IAbilityInterceptor> interceptor; in DoSomethingInterestingWithMyAPI() local 70 executer->AddInterceptor(jsonStr, interceptor); in DoSomethingInterestingWithMyAPI()
|
/foundation/barrierfree/accessibility/services/test/mock/multimodalinput/src/ |
H A D | mock_input_manager.cpp | 105 int32_t InputManager::AddInterceptor(std::function<void(std::shared_ptr<KeyEvent>)> interceptor) in AddInterceptor() argument 108 mockKeyEventCallback = interceptor; in AddInterceptor()
|
/foundation/multimodalinput/input/service/interceptor/include/ |
H A D | event_interceptor_handler.h | 87 int32_t AddInterceptor(const SessionHandler& interceptor); 88 void RemoveInterceptor(const SessionHandler& interceptor);
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/gaussdb_rd/ |
H A D | rd_single_ver_natural_store.h | 134 void SetSendDataInterceptor(const PushDataInterceptor &interceptor) override; 146 void SetReceiveDataInterceptor(const DataInterceptor &interceptor) override;
|
/foundation/ability/ability_runtime/test/unittest/ams_ipc_interface_test/ |
H A D | ams_ipc_appmgr_interface_test.cpp | 243 * @tc.desc: Register kia interceptor test. 255 sptr<IKiaInterceptor> interceptor = new MockKiaInterceptor(); in HWTEST_F() local 256 int32_t err = appMgrClient->RegisterKiaInterceptor(interceptor); in HWTEST_F() 264 * @tc.desc: Register kia interceptor test. 276 sptr<IKiaInterceptor> interceptor = new MockKiaInterceptor(); in HWTEST_F() local 277 int32_t err = appMgrClient->RegisterKiaInterceptor(interceptor); in HWTEST_F()
|
/foundation/ability/ability_runtime/services/abilitymgr/include/ |
H A D | disposed_observer.h | 31 const std::shared_ptr<DisposedRuleInterceptor> &interceptor);
|
/foundation/ability/ability_runtime/test/unittest/ability_manager_service_fourth_test/mock/include/ |
H A D | mock_ability_interceptor_executer.h | 35 * @param interceptorName, interceptor name. 36 * @param interceptor, interceptor handle the interception processing. 38 void AddInterceptor(std::string interceptorName, const std::shared_ptr<IAbilityInterceptor> &interceptor); 41 * @param interceptorName, interceptor name.
|
/foundation/ability/ability_runtime/services/abilitymgr/include/interceptor/ |
H A D | ability_interceptor_executer.h | 35 * @param interceptorName, interceptor name. 36 * @param interceptor, interceptor handle the interception processing. 38 void AddInterceptor(std::string interceptorName, const std::shared_ptr<IAbilityInterceptor> &interceptor); 41 * @param interceptorName, interceptor name.
|
/foundation/ability/ability_runtime/test/unittest/app_mgr_service_inner_mock_test/include/ |
H A D | mock_app_mgr_service_inner.h | 40 * Register KIA interceptor. 41 * @param interceptor KIA interceptor. 44 virtual int32_t RegisterKiaInterceptor(const sptr<IKiaInterceptor> &interceptor);
|