Home
last modified time | relevance | path

Searched refs:processorId (Results 1 - 10 of 10) sorted by relevance

/base/hiviewdfx/hiappevent/test/unittest/common/native/
H A Dhiappevent_inner_api_test.cpp515 int64_t processorId = AppEventProcessorMgr::AddProcessor(config); in HWTEST_F() local
516 ASSERT_EQ(processorId, -1); in HWTEST_F()
517 ASSERT_EQ(AppEventProcessorMgr::RemoveProcessor(processorId), 0); in HWTEST_F()
544 int64_t processorId = AppEventProcessorMgr::AddProcessor(config); in HWTEST_F() local
545 ASSERT_GT(processorId, 0); in HWTEST_F()
546 CheckSameConfig(processorId, config); in HWTEST_F()
548 ASSERT_EQ(AppEventProcessorMgr::RemoveProcessor(processorId), 0); in HWTEST_F()
707 int64_t processorId = AppEventProcessorMgr::AddProcessor(config); in HWTEST_F() local
708 ASSERT_GT(processorId, 0); in HWTEST_F()
709 CheckSameConfig(processorId, confi in HWTEST_F()
749 int64_t processorId = AppEventProcessorMgr::AddProcessor(config); HWTEST_F() local
790 int64_t processorId = AppEventProcessorMgr::AddProcessor(config); HWTEST_F() local
825 int64_t processorId = AppEventProcessorMgr::AddProcessor(config); HWTEST_F() local
845 int64_t processorId = AppEventProcessorMgr::AddProcessor(config); HWTEST_F() local
892 int64_t processorId = AppEventProcessorMgr::AddProcessor(config); HWTEST_F() local
913 int64_t processorId = AppEventProcessorMgr::AddProcessor(config); HWTEST_F() local
[all...]
/base/hiviewdfx/hiappevent/frameworks/cj/ffi/src/
H A Dhiappevent_impl.cpp132 int64_t processorId = AppEventObserverMgr::GetInstance().RegisterObserver(conf.name, conf); in AddProcessor() local
133 if (processorId <= 0) { in AddProcessor()
135 return processorId; in AddProcessor()
137 return processorId; in AddProcessor()
140 int HiAppEventImpl::RemoveProcessor(int64_t processorId) in RemoveProcessor() argument
142 if (processorId <= 0) { in RemoveProcessor()
143 LOGE("failed to remove processor id=%{public}" PRIi64 "", processorId); in RemoveProcessor()
146 if (AppEventObserverMgr::GetInstance().UnregisterObserver(processorId) != 0) { in RemoveProcessor()
147 LOGE("failed to remove processor id=%{public}" PRIi64"", processorId); in RemoveProcessor()
H A Dhiappevent_ffi.cpp222 int64_t processorId = HiAppEventImpl::AddProcessor(conf); in FfiOHOSHiAppEventAddProcessor() local
223 if (processorId <= 0) { in FfiOHOSHiAppEventAddProcessor()
226 ret.code = processorId; in FfiOHOSHiAppEventAddProcessor()
/base/hiviewdfx/hiappevent/frameworks/native/ndk/src/
H A Dndk_app_event_processor_service.cpp193 int64_t processorId = AppEventObserverMgr::GetInstance().RegisterObserver(config.name, config); in AddProcessor() local
194 if (processorId <= 0) { in AddProcessor()
198 return processorId; in AddProcessor()
211 int RemoveProcessor(int64_t processorId) in RemoveProcessor() argument
216 if (processorId <= 0) { in RemoveProcessor()
217 HILOG_DEBUG(LOG_CORE, "Failed to remove processor id=%{public}" PRId64, processorId); in RemoveProcessor()
220 if (AppEventObserverMgr::GetInstance().UnregisterObserver(processorId) != 0) { in RemoveProcessor()
221 HILOG_DEBUG(LOG_CORE, "Failed to remove processor id=%{public}" PRId64, processorId); in RemoveProcessor()
/base/hiviewdfx/hiappevent/interfaces/native/inner_api/src/
H A Dapp_event_processor_mgr.cpp39 int AppEventProcessorMgr::RemoveProcessor(int64_t processorId) in RemoveProcessor() argument
44 return AppEventObserverMgr::GetInstance().UnregisterObserver(processorId); in RemoveProcessor()
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
H A Dnapi_hiappevent_processor.cpp417 int64_t processorId = AppEventObserverMgr::GetInstance().RegisterObserver(name, conf); in AddProcessor() local
418 if (processorId <= 0) { in AddProcessor()
423 out = NapiUtil::CreateInt64(env, processorId); in AddProcessor()
434 int64_t processorId = NapiUtil::GetInt64(env, id); in RemoveProcessor() local
435 if (processorId <= 0) { in RemoveProcessor()
436 HILOG_ERROR(LOG_CORE, "failed to remove processor id=%{public}" PRId64, processorId); in RemoveProcessor()
439 if (AppEventObserverMgr::GetInstance().UnregisterObserver(processorId) != 0) { in RemoveProcessor()
440 HILOG_WARN(LOG_CORE, "failed to remove processor id=%{public}" PRId64, processorId); in RemoveProcessor()
/base/hiviewdfx/hiappevent/frameworks/native/ndk/include/
H A Dndk_app_event_processor_service.h38 int RemoveProcessor(int64_t processorId);
/base/hiviewdfx/hiappevent/interfaces/native/inner_api/include/
H A Dapp_event_processor_mgr.h28 static int RemoveProcessor(int64_t processorId);
/base/hiviewdfx/hiappevent/frameworks/cj/ffi/include/
H A Dhiappevent_impl.h35 static int RemoveProcessor(int64_t processorId);
/base/hiviewdfx/hiappevent/frameworks/native/ndk/
H A Dhiappevent_ndk.c402 int OH_HiAppEvent_RemoveProcessor(int64_t processorId) in OH_HiAppEvent_RemoveProcessor() argument
404 return RemoveProcessor(processorId); in OH_HiAppEvent_RemoveProcessor()

Completed in 7 milliseconds