/base/hiviewdfx/hiappevent/test/unittest/common/native/ |
H A D | hiappevent_inner_api_test.cpp | 515 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 D | hiappevent_impl.cpp | 132 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 D | hiappevent_ffi.cpp | 222 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 D | ndk_app_event_processor_service.cpp | 193 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 D | app_event_processor_mgr.cpp | 39 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 D | napi_hiappevent_processor.cpp | 417 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 D | ndk_app_event_processor_service.h | 38 int RemoveProcessor(int64_t processorId);
|
/base/hiviewdfx/hiappevent/interfaces/native/inner_api/include/ |
H A D | app_event_processor_mgr.h | 28 static int RemoveProcessor(int64_t processorId);
|
/base/hiviewdfx/hiappevent/frameworks/cj/ffi/include/ |
H A D | hiappevent_impl.h | 35 static int RemoveProcessor(int64_t processorId);
|
/base/hiviewdfx/hiappevent/frameworks/native/ndk/ |
H A D | hiappevent_ndk.c | 402 int OH_HiAppEvent_RemoveProcessor(int64_t processorId) in OH_HiAppEvent_RemoveProcessor() argument 404 return RemoveProcessor(processorId); in OH_HiAppEvent_RemoveProcessor()
|