/base/notification/common_event_service/frameworks/core/test/unittest/common_event_branch_test/ |
H A D | common_event_branch_test.cpp | 81 CommonEvent commonEvent;
in HWTEST_F() local 84 EXPECT_EQ(subscribeFailed, commonEvent.CreateCommonEventListener(subscriber, commonEventListener));
in HWTEST_F() 95 CommonEvent commonEvent;
in HWTEST_F() local 97 EXPECT_EQ(nullptr, commonEvent.GetCommonEventProxy());
in HWTEST_F() 108 CommonEvent commonEvent;
in HWTEST_F() local 110 EXPECT_EQ(false, commonEvent.UnfreezeAll());
in HWTEST_F() 121 CommonEvent commonEvent;
in HWTEST_F() local 123 EXPECT_EQ(false, commonEvent.Unfreeze(uid));
in HWTEST_F() 134 CommonEvent commonEvent;
in HWTEST_F() local 136 EXPECT_EQ(false, commonEvent in HWTEST_F() 147 std::shared_ptr<CommonEvent> commonEvent = std::make_shared<CommonEvent>(); HWTEST_F() local 159 CommonEvent commonEvent; HWTEST_F() local 175 CommonEvent commonEvent; HWTEST_F() local 191 CommonEvent commonEvent; HWTEST_F() local 205 CommonEvent commonEvent; HWTEST_F() local 220 CommonEvent commonEvent; HWTEST_F() local 239 CommonEvent commonEvent; HWTEST_F() local 256 CommonEvent commonEvent; HWTEST_F() local 275 CommonEvent commonEvent; HWTEST_F() local 291 CommonEvent commonEvent; HWTEST_F() local [all...] |
/base/notification/common_event_service/test/fuzztest/commonevent_fuzzer/ |
H A D | commonevent_fuzzer.cpp | 45 EventFwk::CommonEvent commonEvent;
in DoSomethingInterestingWithMyAPI() local 81 commonEvent.PublishCommonEvent(commonEventData, commonEventPublishInfo, subscriber);
in DoSomethingInterestingWithMyAPI() 83 commonEvent.PublishCommonEvent(commonEventData, commonEventPublishInfo, subscriber, code, code);
in DoSomethingInterestingWithMyAPI() 84 commonEvent.PublishCommonEventAsUser(commonEventData, commonEventPublishInfo, nullptr, code);
in DoSomethingInterestingWithMyAPI() 85 commonEvent.PublishCommonEventAsUser(commonEventData, commonEventPublishInfo, nullptr, code, code, code);
in DoSomethingInterestingWithMyAPI() 87 return commonEvent.DumpState(dumpType, stringData, code, state);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/common_event_service/frameworks/core/test/unittest/ |
H A D | common_event_test.cpp | 88 CommonEvent commonEvent; in HWTEST_F() local 89 bool publishCommonEvent = commonEvent.PublishCommonEvent(data, publishInfo, subscriber); in HWTEST_F() 120 CommonEvent commonEvent; in HWTEST_F() local 121 bool publishCommonEvent = commonEvent.PublishCommonEvent(data, publishInfo, subscriber, SYSTEM_UID, 0); in HWTEST_F() 134 CommonEvent commonEvent; in HWTEST_F() local 135 bool freeze = commonEvent.Freeze(SYSTEM_UID); in HWTEST_F() 148 CommonEvent commonEvent; in HWTEST_F() local 149 bool unfreeze = commonEvent.Unfreeze(SYSTEM_UID); in HWTEST_F() 174 CommonEvent commonEvent; in HWTEST_F() local 175 bool unfreezeAll = commonEvent in HWTEST_F() 188 CommonEvent commonEvent; HWTEST_F() local 500 CommonEvent commonEvent; HWTEST_F() local 512 CommonEvent commonEvent; HWTEST_F() local [all...] |
H A D | common_event_stub_test.cpp | 318 CommonEvent commonEvent; in HWTEST_F() local 341 CommonEvent commonEvent; in HWTEST_F() local 363 CommonEvent commonEvent; in HWTEST_F() local 367 bool ret = commonEvent.Unfreeze(uid); in HWTEST_F() 388 CommonEvent commonEvent; in HWTEST_F() local 410 CommonEvent commonEvent; in HWTEST_F() local 413 bool ret = commonEvent.UnfreezeAll(); in HWTEST_F() 434 CommonEvent commonEvent; in HWTEST_F() local
|
/base/msdp/device_status/test/unittest/intention/adapters/src/ |
H A D | common_event_adapter_test.cpp | 59 CommonEventAdapter commonEvent; in HWTEST_F() local 60 int32_t ret = commonEvent.AddObserver(g_observer); in HWTEST_F()
|
/base/account/os_account/services/accountmgr/include/osaccount/ |
H A D | os_account_interface.h | 54 const OsAccountInfo &osAccountInfo, const std::string &commonEvent, const std::string &operation);
|
/base/account/os_account/services/accountmgr/test/mock/os_account/ |
H A D | os_account_interface.h | 45 const OsAccountInfo &osAccountInfo, const std::string &commonEvent, const std::string &operation);
|
H A D | os_account_interface.cpp | 87 const OsAccountInfo &osAccountInfo, const std::string &commonEvent, const std::string &operation) in PublishCommonEvent() 86 PublishCommonEvent( const OsAccountInfo &osAccountInfo, const std::string &commonEvent, const std::string &operation) PublishCommonEvent() argument
|
/base/msdp/device_status/intention/cooperate/plugin/src/ |
H A D | state_machine.cpp | 261 [&context, this] (const std::string &commonEvent) { in EnableCooperate() 262 OnCommonEvent(context, commonEvent); in EnableCooperate() 585 void StateMachine::OnCommonEvent(Context &context, const std::string &commonEvent) in OnCommonEvent() argument 587 FI_HILOGD("Current common event:%{public}s", commonEvent.c_str()); in OnCommonEvent() 589 if (commonEvent == EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_ON || in OnCommonEvent() 590 commonEvent == EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_UNLOCKED) { in OnCommonEvent() 596 if (commonEvent == EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_OFF || in OnCommonEvent() 597 commonEvent == EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_LOCKED) { in OnCommonEvent() 598 FI_HILOGD("Receive common event:%{public}s, stop cooperate", commonEvent.c_str()); in OnCommonEvent()
|
/base/theme/wallpaper_mgr/test/unittest/ |
H A D | wallpaper_test.cpp | 987 std::string commonEvent = EventFwk::CommonEventSupport::COMMON_EVENT_USER_ADDED; in HWTEST_F() local 988 WallpaperTest::TriggerEvent(TEST_USERID, commonEvent); in HWTEST_F() 1009 std::string commonEvent = EventFwk::CommonEventSupport::COMMON_EVENT_USER_ADDED; in HWTEST_F() local 1010 WallpaperTest::TriggerEvent(TEST_USERID, commonEvent); in HWTEST_F() 1014 commonEvent = EventFwk::CommonEventSupport::COMMON_EVENT_USER_REMOVED; in HWTEST_F() 1015 WallpaperTest::TriggerEvent(TEST_USERID, commonEvent); in HWTEST_F() 1088 std::string commonEvent = EventFwk::CommonEventSupport::COMMON_EVENT_USER_ADDED; in HWTEST_F() local 1089 WallpaperTest::TriggerEvent(INVALID_USERID, commonEvent); in HWTEST_F() 1093 commonEvent = EventFwk::CommonEventSupport::COMMON_EVENT_USER_REMOVED; in HWTEST_F() 1094 WallpaperTest::TriggerEvent(INVALID_USERID, commonEvent); in HWTEST_F() [all...] |
/base/msdp/device_status/intention/cooperate/plugin/include/ |
H A D | state_machine.h | 96 void OnCommonEvent(Context &context, const std::string &commonEvent);
|
/base/time/time_service/test/unittest/service_test/src/ |
H A D | time_service_test.cpp | 1027 std::string commonEvent = EventFwk::CommonEventSupport::COMMON_EVENT_USER_ADDED; in HWTEST_F() local 1029 want.SetAction(commonEvent); in HWTEST_F() 1031 std::string data(commonEvent); in HWTEST_F() 1049 std::string commonEvent = EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_ON; in HWTEST_F() local 1051 want.SetAction(commonEvent); in HWTEST_F() 1053 std::string data(commonEvent); in HWTEST_F()
|
/base/account/os_account/services/accountmgr/src/osaccount/ |
H A D | os_account_interface.cpp | 283 const OsAccountInfo &osAccountInfo, const std::string &commonEvent, const std::string &operation) in PublishCommonEvent() 289 want.SetAction(commonEvent); in PublishCommonEvent() 282 PublishCommonEvent( const OsAccountInfo &osAccountInfo, const std::string &commonEvent, const std::string &operation) PublishCommonEvent() argument
|
/base/msdp/device_status/test/unittest/intention/cooperate/src/ |
H A D | cooperate_plugin_test.cpp | 2789 std::string commonEvent = EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_OFF; in HWTEST_F() local 2790 ASSERT_NO_FATAL_FAILURE(g_stateMachine->OnCommonEvent(cooperateContext, commonEvent)); in HWTEST_F() 2805 std::string commonEvent = "-1"; in HWTEST_F() local 2806 ASSERT_NO_FATAL_FAILURE(g_stateMachine->OnCommonEvent(cooperateContext, commonEvent)); in HWTEST_F()
|