/base/hiviewdfx/hiappevent/frameworks/native/ndk/include/ |
H A D | ndk_app_event_processor_service.h | 28 int SetReportRoute(struct HiAppEvent_Processor* processor, const char* appId, const char* routeInfo); 29 int SetReportPolicy(struct HiAppEvent_Processor* processor, int periodReport, int batchReport, bool onStartReport, 31 int SetReportEvent(struct HiAppEvent_Processor* processor, const char* domain, const char* name, bool isRealTime); 32 int SetCustomConfig(struct HiAppEvent_Processor* processor, const char* key, const char* value); 33 int SetConfigId(struct HiAppEvent_Processor* processor, int configId); 34 int SetReportUserId(struct HiAppEvent_Processor* processor, const char* const * userIdNames, int size); 35 int SetReportUserProperty(struct HiAppEvent_Processor* processor, const char* const * userPropertyNames, int size); 36 int64_t AddProcessor(struct HiAppEvent_Processor* processor); 37 void DestoryProcessor(struct HiAppEvent_Processor* processor);
|
/base/useriam/fingerprint_auth/services/src/ |
H A D | sa_command_manager.cpp | 32 std::shared_ptr<ISaCommandProcessor> processor) in RegisterSaCommandProcessor() 34 IF_FALSE_LOGE_AND_RETURN(processor != nullptr); in RegisterSaCommandProcessor() 38 processors_.insert(processor); in RegisterSaCommandProcessor() 45 commandId2Processors_[commandId].insert(processor); in RegisterSaCommandProcessor() 50 std::shared_ptr<ISaCommandProcessor> processor) in UnregisterSaCommandProcessor() 52 IF_FALSE_LOGE_AND_RETURN(processor != nullptr); in UnregisterSaCommandProcessor() 56 processors_.erase(processor); in UnregisterSaCommandProcessor() 63 commandId2Processors_[commandId].erase(processor); in UnregisterSaCommandProcessor() 76 for (const auto &processor : commandId2Processors_[static_cast<SaCommandId>(command.id)]) { in ProcessSaCommands() 77 IF_FALSE_LOGE_AND_RETURN_VAL(processor ! in ProcessSaCommands() 31 RegisterSaCommandProcessor(std::vector<SaCommandId> commandIds, std::shared_ptr<ISaCommandProcessor> processor) RegisterSaCommandProcessor() argument 49 UnregisterSaCommandProcessor(std::vector<SaCommandId> commandIds, std::shared_ptr<ISaCommandProcessor> processor) UnregisterSaCommandProcessor() argument [all...] |
/base/useriam/face_auth/services/src/ |
H A D | sa_command_manager.cpp | 32 std::shared_ptr<ISaCommandProcessor> processor) in RegisterSaCommandProcessor() 34 IF_FALSE_LOGE_AND_RETURN(processor != nullptr); in RegisterSaCommandProcessor() 38 processors_.insert(processor); in RegisterSaCommandProcessor() 45 commandId2Processors_[commandId].insert(processor); in RegisterSaCommandProcessor() 50 std::shared_ptr<ISaCommandProcessor> processor) in UnregisterSaCommandProcessor() 52 IF_FALSE_LOGE_AND_RETURN(processor != nullptr); in UnregisterSaCommandProcessor() 56 processors_.erase(processor); in UnregisterSaCommandProcessor() 63 commandId2Processors_[commandId].erase(processor); in UnregisterSaCommandProcessor() 76 for (const auto &processor : commandId2Processors_[static_cast<SaCommandId>(command.id)]) { in ProcessSaCommands() 77 IF_FALSE_LOGE_AND_RETURN_VAL(processor ! in ProcessSaCommands() 31 RegisterSaCommandProcessor(std::vector<SaCommandId> commandIds, std::shared_ptr<ISaCommandProcessor> processor) RegisterSaCommandProcessor() argument 49 UnregisterSaCommandProcessor(std::vector<SaCommandId> commandIds, std::shared_ptr<ISaCommandProcessor> processor) UnregisterSaCommandProcessor() argument [all...] |
/base/hiviewdfx/hiappevent/frameworks/native/ndk/src/ |
H A D | ndk_app_event_processor_service.cpp | 56 HILOG_DEBUG(LOG_CORE, "Invalid processor name"); in CreateProcessor() 63 int SetReportRoute(struct HiAppEvent_Processor* processor, const char* appId, const char* routeInfo) in SetReportRoute() argument 68 CHECK_PROCESSOR_PTR_AND_RETURN(processor, ErrorCode::ERROR_INVALID_PROCESSOR) in SetReportRoute() 75 auto ndkProcessorPtr = reinterpret_cast<NdkAppEventProcessor*>(processor); in SetReportRoute() 79 int SetReportPolicy(struct HiAppEvent_Processor* processor, int periodReport, int batchReport, bool onStartReport, in SetReportPolicy() argument 85 CHECK_PROCESSOR_PTR_AND_RETURN(processor, ErrorCode::ERROR_INVALID_PROCESSOR) in SetReportPolicy() 89 auto ndkProcessorPtr = reinterpret_cast<NdkAppEventProcessor*>(processor); in SetReportPolicy() 93 int SetReportEvent(struct HiAppEvent_Processor* processor, const char* domain, const char* name, bool isRealTime) in SetReportEvent() argument 98 CHECK_PROCESSOR_PTR_AND_RETURN(processor, ErrorCode::ERROR_INVALID_PROCESSOR) in SetReportEvent() 102 auto ndkProcessorPtr = reinterpret_cast<NdkAppEventProcessor*>(processor); in SetReportEvent() 106 SetCustomConfig(struct HiAppEvent_Processor* processor, const char* key, const char* value) SetCustomConfig() argument 122 SetConfigId(struct HiAppEvent_Processor* processor, int configId) SetConfigId() argument 135 SetReportUserId(struct HiAppEvent_Processor* processor, const char* const * userIdNames, int size) SetReportUserId() argument 156 SetReportUserProperty(struct HiAppEvent_Processor* processor, const char* const * userPropertyNames, int size) SetReportUserProperty() argument 177 AddProcessor(struct HiAppEvent_Processor* processor) AddProcessor() argument 201 DestoryProcessor(struct HiAppEvent_Processor* processor) DestoryProcessor() argument [all...] |
/base/hiviewdfx/hiappevent/test/unittest/common/native/ |
H A D | hiappevent_inner_api_test.cpp | 54 std::shared_ptr<AppEventProcessor> processor, int64_t& processorSeq)
in CheckRegisterObserver() 56 ASSERT_EQ(AppEventProcessorMgr::RegisterProcessor(observer, processor), 0);
in CheckRegisterObserver() 63 std::shared_ptr<AppEventProcessor> processor,
in CheckRegisterObserverWithConfig() 67 ASSERT_EQ(AppEventProcessorMgr::RegisterProcessor(observer, processor), 0);
in CheckRegisterObserverWithConfig() 298 * @tc.steps: step3. Get processor sequence by name.
in HWTEST_F() 299 * @tc.steps: step4. Get processor config by sequence.
in HWTEST_F() 300 * @tc.steps: step5. Set processor config by sequence.
in HWTEST_F() 303 auto processor = std::make_shared<AppEventProcessorTest>();
in HWTEST_F() local 305 CheckRegisterObserver(TEST_PROCESSOR_NAME, processor, processorSeq);
in HWTEST_F() 327 auto processor in HWTEST_F() local 53 CheckRegisterObserver(const std::string& observer, std::shared_ptr<AppEventProcessor> processor, int64_t& processorSeq) CheckRegisterObserver() argument 61 CheckRegisterObserverWithConfig( const std::string& observer, std::shared_ptr<AppEventProcessor> processor, const ReportConfig& config, int64_t& processorSeq) CheckRegisterObserverWithConfig() argument 351 auto processor = std::make_shared<AppEventProcessorTest>(); HWTEST_F() local 373 auto processor = std::make_shared<AppEventProcessorTest>(); HWTEST_F() local 400 auto processor = std::make_shared<AppEventProcessorTest>(); HWTEST_F() local 427 auto processor = std::make_shared<AppEventProcessorTest>(); HWTEST_F() local 454 auto processor = std::make_shared<AppEventProcessorTest>(); HWTEST_F() local 482 auto processor = std::make_shared<AppEventProcessorTest>(); HWTEST_F() local 945 auto processor = std::make_shared<AppEventProcessorTest>(); HWTEST_F() local [all...] |
H A D | hiappevent_native_test.cpp | 746 auto processor = CreateProcessor(TEST_PROCESSOR_NAME); in HWTEST_F() local 747 ASSERT_TRUE(processor != nullptr); in HWTEST_F() 748 ASSERT_EQ(SetReportRoute(processor, nullptr, nullptr), ErrorCode::ERROR_INVALID_PARAM_VALUE); in HWTEST_F() 749 ASSERT_EQ(SetReportRoute(processor, "", ""), 0); in HWTEST_F() 750 ASSERT_EQ(SetReportPolicy(processor, -1, 0, false, false), ErrorCode::ERROR_INVALID_PARAM_VALUE); in HWTEST_F() 751 ASSERT_EQ(SetReportEvent(processor, nullptr, nullptr, false), ErrorCode::ERROR_INVALID_PARAM_VALUE); in HWTEST_F() 752 ASSERT_EQ(SetCustomConfig(processor, nullptr, nullptr), ErrorCode::ERROR_INVALID_PARAM_VALUE); in HWTEST_F() 753 ASSERT_EQ(SetCustomConfig(processor, "", ""), ErrorCode::ERROR_INVALID_PARAM_VALUE_LENGTH); in HWTEST_F() 754 ASSERT_EQ(SetConfigId(processor, -1), ErrorCode::ERROR_INVALID_PARAM_VALUE); in HWTEST_F() 755 ASSERT_EQ(SetReportUserId(processor, nullpt in HWTEST_F() 773 auto processor = CreateProcessor(TEST_PROCESSOR_NAME); HWTEST_F() local [all...] |
/base/hiviewdfx/hiview/base/include/ |
H A D | audit_log_parser.h | 29 std::string processor = ""; member 41 return "SerialId:" + std::to_string(eventSerialId) + " Sender:" + sender + " Processor:" + processor + in ToString() 54 // only processor, in and out time is valid 65 for (auto &processor : processChain) { in ToString() 67 ret.append(processor.processor); in ToString() 69 ret.append(std::to_string(processor.inTime)); in ToString() 71 ret.append(std::to_string(processor.outTime)); in ToString() 73 ret.append(processor.threadNameOrTid); in ToString() 87 // [timestamp] [eventSerialId] [0] [sender] [processor] [threa [all...] |
/base/update/updater/services/flow_update/update_bin/ |
H A D | bin_process.cpp | 115 PkgStream::ExtractFileProcessor processor = in ExtractBinFile() local 119 ret = pkgManager->CreatePkgStream(processStream, upgradeFileName, processor, stream); in ExtractBinFile() 278 std::unique_ptr<ComponentProcessor> processor = in ComponentProcess() local 286 processor.reset(); in ComponentProcess() 287 processor = std::make_unique<SkipImgProcessor>(name, fileSize); in ComponentProcess() 296 if ((processor == nullptr && fileInfo.resType == UPGRADE_FILE_COMP_OTHER_TPYE) || in ComponentProcess() 299 processor.reset(); in ComponentProcess() 300 processor = std::make_unique<SkipImgProcessor>(name, fileSize); in ComponentProcess() 303 if (processor == nullptr) { in ComponentProcess() 307 processor in ComponentProcess() [all...] |
/base/hiviewdfx/hiappevent/frameworks/cj/ffi/src/ |
H A D | hiappevent_ffi.cpp | 97 int ConvertReportConfig(const CProcessor& processor, ReportConfig& conf) in ConvertReportConfig() argument 99 if (processor.name != nullptr && IsValidProcessorName(std::string(processor.name))) { in ConvertReportConfig() 100 conf.name = processor.name; in ConvertReportConfig() 104 conf.debugMode = processor.debugMode; in ConvertReportConfig() 105 conf.routeInfo = processor.routeInfo; in ConvertReportConfig() 106 conf.appId = processor.appId; in ConvertReportConfig() 107 conf.triggerCond.onStartup = processor.onStartReport; in ConvertReportConfig() 108 conf.triggerCond.onBackground = processor.onBackgroundReport; in ConvertReportConfig() 109 if (!IsValidPeriodReport(processor in ConvertReportConfig() 207 FfiOHOSHiAppEventAddProcessor(CProcessor processor) FfiOHOSHiAppEventAddProcessor() argument [all...] |
/base/hiviewdfx/hiappevent/frameworks/native/ndk/ |
H A D | hiappevent_ndk.c | 354 int OH_HiAppEvent_SetReportRoute(struct HiAppEvent_Processor* processor, const char* appId, const char* routeInfo) in OH_HiAppEvent_SetReportRoute() argument 356 return SetReportRoute(processor, appId, routeInfo); in OH_HiAppEvent_SetReportRoute() 359 int OH_HiAppEvent_SetReportPolicy(struct HiAppEvent_Processor* processor, int periodReport, int batchReport, in OH_HiAppEvent_SetReportPolicy() argument 362 return SetReportPolicy(processor, periodReport, batchReport, onStartReport, onBackgroundReport); in OH_HiAppEvent_SetReportPolicy() 365 int OH_HiAppEvent_SetReportEvent(struct HiAppEvent_Processor* processor, const char* domain, const char* name, in OH_HiAppEvent_SetReportEvent() argument 368 return SetReportEvent(processor, domain, name, isRealTime); in OH_HiAppEvent_SetReportEvent() 371 int OH_HiAppEvent_SetCustomConfig(struct HiAppEvent_Processor* processor, const char* key, const char* value) in OH_HiAppEvent_SetCustomConfig() argument 373 return SetCustomConfig(processor, key, value); in OH_HiAppEvent_SetCustomConfig() 376 int OH_HiAppEvent_SetConfigId(struct HiAppEvent_Processor* processor, int configId) in OH_HiAppEvent_SetConfigId() argument 378 return SetConfigId(processor, configI in OH_HiAppEvent_SetConfigId() 381 OH_HiAppEvent_SetReportUserId(struct HiAppEvent_Processor* processor, const char* const * userIdNames, int size) OH_HiAppEvent_SetReportUserId() argument 386 OH_HiAppEvent_SetReportUserProperty(struct HiAppEvent_Processor* processor, const char* const * userPropertyNames, int size) OH_HiAppEvent_SetReportUserProperty() argument 392 OH_HiAppEvent_AddProcessor(struct HiAppEvent_Processor* processor) OH_HiAppEvent_AddProcessor() argument 397 OH_HiAppEvent_DestoryProcessor(struct HiAppEvent_Processor* processor) OH_HiAppEvent_DestoryProcessor() argument [all...] |
/base/hiviewdfx/hiappevent/test/processor/ |
H A D | test_init.cpp | 33 auto processor = std::make_shared<TestProcessor>();
in XInit() local 34 int ret = AppEventProcessorMgr::RegisterProcessor("test_processor", processor);
in XInit()
|
/base/hiviewdfx/hiview/plugins/performance/context/ |
H A D | NormalContext.cpp | 80 AppLaunchSceneDataProcessor* processor = new AppLaunchSceneDataProcessor(db, exec, nullptr, sceneTimer); in MakeAppStartMonitor() local 81 sceneTimer->SetCb(processor); in MakeAppStartMonitor() 84 AppLaunchMonitor* appStartMonitor = new AppLaunchMonitor(this, common.thr, reporter, processor); in MakeAppStartMonitor() 86 processor->SetMetricReporter(appStartMonitor); in MakeAppStartMonitor()
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/observer/include/ |
H A D | app_event_processor_proxy.h | 28 AppEventProcessorProxy(const std::string& name, std::shared_ptr<AppEventProcessor> processor)
in AppEventProcessorProxy() argument 29 : AppEventObserver(name), processor_(processor), userIdVersion_(-1), userPropertyVersion_(-1) {}
in AppEventProcessorProxy()
|
/base/security/device_security_level/baselib/msglib/src/common/ |
H A D | messenger.c | 50 void ForEachDeviceProcess(const Messenger *messenger, const DeviceProcessor processor, void *para) in ForEachDeviceProcess() argument 52 ForEachDeviceProcessImpl(messenger, processor, para); in ForEachDeviceProcess()
|
H A D | messenger_device_status_manager.h | 42 void MessengerForEachDeviceProcess(const DeviceProcessor processor, void *para);
|
H A D | messenger_impl.h | 38 void ForEachDeviceProcessImpl(const Messenger *messenger, const DeviceProcessor processor, void *para);
|
/base/useriam/face_auth/services/inc/ |
H A D | sa_command_manager.h | 39 std::shared_ptr<ISaCommandProcessor> processor); 41 std::shared_ptr<ISaCommandProcessor> processor);
|
/base/useriam/fingerprint_auth/services/inc/ |
H A D | sa_command_manager.h | 39 std::shared_ptr<ISaCommandProcessor> processor); 41 std::shared_ptr<ISaCommandProcessor> processor);
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/load/ |
H A D | module_loader.cpp | 101 int ModuleLoader::RegisterProcessor(const std::string& name, std::shared_ptr<AppEventProcessor> processor)
in RegisterProcessor() argument 103 if (name.empty() || processor == nullptr) {
in RegisterProcessor() 104 HILOG_WARN(LOG_CORE, "the name or processor is invalid");
in RegisterProcessor() 109 HILOG_WARN(LOG_CORE, "the processor already exists");
in RegisterProcessor() 112 processors_[name] = processor;
in RegisterProcessor()
|
/base/security/device_security_level/baselib/msglib/src/standard/ |
H A D | messenger_device_status_manager.cpp | 174 auto processor = DeviceStatusControlBlock::GetInstance().GetStateReceiver(); in ProcessDeviceStatusReceiver() 175 if (processor == nullptr) { in ProcessDeviceStatusReceiver() 179 processor(&queueData->srcIdentity, queueData->status, queueData->level); in ProcessDeviceStatusReceiver() 368 void MessengerForEachDeviceProcess(const DeviceProcessor processor, void *para) in MessengerForEachDeviceProcess() argument 370 if (processor == nullptr) { in MessengerForEachDeviceProcess() 390 processor(&curr, level, para); in MessengerForEachDeviceProcess()
|
H A D | messenger_impl.c | 123 void ForEachDeviceProcessImpl(const Messenger *messenger, const DeviceProcessor processor, void *para) in ForEachDeviceProcessImpl() argument 130 return MessengerForEachDeviceProcess(processor, para); in ForEachDeviceProcessImpl()
|
/base/hiviewdfx/hiappevent/interfaces/native/inner_api/src/ |
H A D | app_event_processor_mgr.cpp | 47 int AppEventProcessorMgr::RegisterProcessor(const std::string& name, std::shared_ptr<AppEventProcessor> processor)
in RegisterProcessor() argument 52 return AppEventObserverMgr::GetInstance().RegisterProcessor(name, processor);
in RegisterProcessor()
|
/base/hiviewdfx/hiappevent/frameworks/cj/ffi/include/ |
H A D | hiappevent_ffi.h | 27 FFI_EXPORT RetDataBool FfiOHOSHiAppEventAddProcessor(CProcessor processor);
|
/base/hiviewdfx/hiappevent/interfaces/native/inner_api/include/ |
H A D | app_event_processor_mgr.h | 30 static int RegisterProcessor(const std::string& name, std::shared_ptr<AppEventProcessor> processor);
|
/base/startup/init/interfaces/innerkits/syspara/ |
H A D | param_comm.h | 36 INIT_LOCAL_API PropertyValueProcessor SetPropertyGetProcessor(PropertyValueProcessor processor);
|