Home
last modified time | relevance | path

Searched refs:eventId (Results 1 - 25 of 300) sorted by relevance

12345678910>>...12

/base/security/security_guard/services/security_collector/src/
H A Dsecurity_collector_run_manager.cpp39 LOGI("eventid:%{public}" PRId64 " report by collector, store to db", event.eventId); in OnNotify()
40 auto info = std::make_shared<SecurityGuard::EventInfo>(event.eventId, event.version, event.content); in OnNotify()
52 int64_t eventId = subscriber->GetSecurityCollectorSubscribeInfo().GetEvent().eventId; in StartCollector() local
53 LOGI("appName:%{public}s, eventId:%{public}" PRId64, appName.c_str(), eventId); in StartCollector()
54 if (collectorRunManager_.find(eventId) != collectorRunManager_.end()) { in StartCollector()
60 LOGI("start collector, eventId:%{public}" PRId64, eventId); in StartCollector()
61 if (!DataCollection::GetInstance().StartCollectors(std::vector<int64_t>{eventId}, collectorListenne in StartCollector()
77 int64_t eventId = subscriber->GetSecurityCollectorSubscribeInfo().GetEvent().eventId; StopCollector() local
[all...]
H A Ddata_collection.cpp42 for (int64_t eventId : eventIds) { in StartCollectors()
43 LOGI("StartCollectors eventId is 0x%{public}" PRIx64, eventId); in StartCollectors()
44 if (IsCollectorStarted(eventId)) { in StartCollectors()
45 LOGI("Collector already started, eventId is 0x%{public}" PRIx64, eventId); in StartCollectors()
49 ErrorCode ret = GetCollectorPath(eventId, collectorPath); in StartCollectors()
51 LOGE("GetCollectorPath failed, eventId is 0x%{public}" PRIx64, eventId); in StartCollectors()
55 ret = LoadCollector(eventId, collectorPat in StartCollectors()
92 IsCollectorStarted(int64_t eventId) IsCollectorStarted() argument
145 LoadCollector(int64_t eventId, std::string path, std::shared_ptr<ICollectorFwk> api) LoadCollector() argument
178 GetCollectorPath(int64_t eventId, std::string& path) GetCollectorPath() argument
225 GetCollectorType(int64_t eventId, int32_t& collectorType) GetCollectorType() argument
[all...]
H A Dsecurity_collector_subscriber_manager.cpp47 event.eventId, event.version.c_str(), event.extra.c_str()); in NotifySubscriber()
48 const auto it = eventToSubscribers_.find(event.eventId); in NotifySubscriber()
72 int32_t SecurityCollectorSubscriberManager::GetAppSubscribeCount(const std::string &appName, int64_t eventId) in GetAppSubscribeCount() argument
74 const auto &subscribers = eventToSubscribers_[eventId]; in GetAppSubscribeCount()
78 LOGI("subcirbipt count 1, appName=%{public}s, eventId:%{public}" PRId64, appName.c_str(), eventId); in GetAppSubscribeCount()
81 LOGI("subcirbipt count 0, appName=%{public}s, eventId:%{public}" PRId64, appName.c_str(), eventId); in GetAppSubscribeCount()
93 LOGI("Find Event By Callback appName=%{public}s, eventId:%{public}" PRId64, in FindEventIds()
108 LOGI("Find Event Listenner appName=%{public}s, eventId in FindSecurityCollectorSubscribers()
124 int64_t eventId = subscriber->GetSecurityCollectorSubscribeInfo().GetEvent().eventId; SubscribeCollector() local
[all...]
H A Dcollector_cfg_marshalling.cpp26 std::transform(moduleCfg.eventId.begin(), moduleCfg.eventId.end(), std::back_inserter(eventIds), in to_json()
27 [](int64_t eventId) { return std::to_string(eventId); }); in to_json()
42 for (const std::string& eventId : eventList) { in from_json()
44 if (eventId == "" || ! SecurityGuard::SecurityGuardUtils::StrToI64Hex(eventId, tmp)) { in from_json()
47 moduleCfg.eventId.emplace_back(tmp); in from_json()
/base/notification/eventhandler/frameworks/cj/src/
H A Demitter_ffi.cpp38 int32_t CJ_OnWithId(uint32_t eventId, CEventCallback callbackInfo) in CJ_OnWithId() argument
44 return Emitter::On(eventId, callback); in CJ_OnWithId()
47 int32_t CJ_OnWithStringId(char* eventId, CEventCallback callbackInfo) in CJ_OnWithStringId() argument
53 return Emitter::On(eventId, callback); in CJ_OnWithStringId()
56 int32_t CJ_OnceWithId(uint32_t eventId, CEventCallback callbackInfo) in CJ_OnceWithId() argument
62 return Emitter::Once(eventId, callback); in CJ_OnceWithId()
65 int32_t CJ_OnceWithStringId(char* eventId, CEventCallback callbackInfo) in CJ_OnceWithStringId() argument
71 return Emitter::Once(eventId, callback); in CJ_OnceWithStringId()
74 void CJ_OffWithId(uint32_t eventId) in CJ_OffWithId() argument
76 Emitter::Off(eventId); in CJ_OffWithId()
79 CJ_OffWithString(char* eventId) CJ_OffWithString() argument
84 CJ_OffWithIdCallback(uint32_t eventId, CEventCallback callbackInfo) CJ_OffWithIdCallback() argument
95 CJ_OffWithStringCallback(char* eventId, CEventCallback callbackInfo) CJ_OffWithStringCallback() argument
106 CJ_EmitWithId(uint32_t eventId, uint32_t priority, CEventData data) CJ_EmitWithId() argument
111 CJ_EmitWithString(char* eventId, uint32_t priority, CEventData data) CJ_EmitWithString() argument
116 CJ_GetListenerCountById(uint32_t eventId) CJ_GetListenerCountById() argument
122 CJ_GetListenerCountByString(char* eventId) CJ_GetListenerCountByString() argument
[all...]
H A Demitter_ffi.h32 FFI_EXPORT int32_t CJ_OnWithId(uint32_t eventId, CEventCallback callbackInfo);
33 FFI_EXPORT int32_t CJ_OnWithStringId(char* eventId, CEventCallback callbackInfo);
34 FFI_EXPORT int32_t CJ_OnceWithId(uint32_t eventId, CEventCallback callbackInfo);
35 FFI_EXPORT int32_t CJ_OnceWithStringId(char* eventId, CEventCallback callbackInfo);
36 FFI_EXPORT void CJ_OffWithId(uint32_t eventId);
37 FFI_EXPORT void CJ_OffWithString(char* eventId);
38 FFI_EXPORT int32_t CJ_OffWithIdCallback(uint32_t eventId, CEventCallback callbackInfo);
39 FFI_EXPORT int32_t CJ_OffWithStringCallback(char* eventId, CEventCallback callbackInfo);
40 FFI_EXPORT void CJ_EmitWithId(uint32_t eventId, uint32_t priority, CEventData data);
41 FFI_EXPORT void CJ_EmitWithString(char* eventId, uint32_
[all...]
H A Demitter.cpp34 InnerEvent::EventId eventId; member
51 bool IsExistValidCallback(const InnerEvent::EventId &eventId) in IsExistValidCallback() argument
54 auto subscribe = g_emitterImpls.find(eventId); in IsExistValidCallback()
67 void EmitWithEventData(InnerEvent::EventId eventId, uint32_t priority, CEventData data) in EmitWithEventData() argument
69 if (!IsExistValidCallback(eventId)) { in EmitWithEventData()
79 auto event = InnerEvent::Get(eventId, dataPtr); in EmitWithEventData()
121 void OutPutEventIdLog(const InnerEvent::EventId &eventId) in OutPutEventIdLog() argument
123 if (eventId.index() == OHOS::AppExecFwk::TYPE_U32_INDEX) { in OutPutEventIdLog()
124 LOGD("Event id value: %{public}u", std::get<uint32_t>(eventId)); in OutPutEventIdLog()
126 LOGD("Event id value: %{public}s", std::get<std::string>(eventId) in OutPutEventIdLog()
130 OnOrOnce(InnerEvent::EventId eventId, CallbackImpl **callbackImpl, bool once) OnOrOnce() argument
155 On(uint32_t eventId, CallbackImpl *callback) On() argument
161 On(char* eventId, CallbackImpl *callback) On() argument
167 Once(uint32_t eventId, CallbackImpl *callback) Once() argument
173 Once(char* eventId, CallbackImpl *callback) Once() argument
179 Unsubscribe(InnerEvent::EventId eventId) Unsubscribe() argument
190 Unsubscribe(InnerEvent::EventId eventId, CallbackImpl *callback) Unsubscribe() argument
199 Off(uint32_t eventId) Off() argument
205 Off(char* eventId) Off() argument
211 Off(uint32_t eventId, CallbackImpl *callback) Off() argument
217 Off(char* eventId, CallbackImpl *callback) Off() argument
223 Emit(uint32_t eventId, uint32_t priority, CEventData data) Emit() argument
229 Emit(char* eventId, uint32_t priority, CEventData data) Emit() argument
235 GetListenerCountByEventId(InnerEvent::EventId eventId) GetListenerCountByEventId() argument
250 GetListenerCount(uint32_t eventId) GetListenerCount() argument
256 GetListenerCount(std::string eventId) GetListenerCount() argument
309 InnerEvent::EventId eventId = event->GetInnerEventIdEx(); ProcessEvent() local
[all...]
H A Demitter.h41 static int32_t On(uint32_t eventId, CallbackImpl *callback);
43 static int32_t On(char* eventId, CallbackImpl *callback);
45 static int32_t Once(uint32_t eventId, CallbackImpl *callback);
47 static int32_t Once(char* eventId, CallbackImpl *callback);
49 static void Off(uint32_t eventId);
51 static void Off(char* eventId);
53 static void Off(uint32_t eventId, CallbackImpl *callback);
55 static void Off(char* eventId, CallbackImpl *callback);
57 static void Emit(uint32_t eventId, uint32_t priority, CEventData data);
59 static void Emit(char* eventId, uint32_
[all...]
/base/telephony/core_service/test/unittest/tel_ril_gtest/
H A Dtel_ril_test_util.cpp309 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_CURRENT_CALLS); in CallGetCurrentCallsStatusTest() local
310 auto event = AppExecFwk::InnerEvent::Get(eventId); in CallGetCurrentCallsStatusTest()
316 bool syncResult = WaitGetResult(eventId, handler, WAIT_TIME_SECOND); in CallGetCurrentCallsStatusTest()
329 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SIM_GET_STATUS); in SimGetSimStatusTest() local
330 auto event = AppExecFwk::InnerEvent::Get(eventId); in SimGetSimStatusTest()
336 bool syncResult = WaitGetResult(eventId, handler, WAIT_TIME_SECOND); in SimGetSimStatusTest()
348 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SIM_IO); in SimIccIoTest() local
349 auto event = AppExecFwk::InnerEvent::Get(eventId); in SimIccIoTest()
364 bool syncResult = WaitGetResult(eventId, handler, WAIT_TIME_SECOND); in SimIccIoTest()
376 int32_t eventId in SimGetImsiTest() local
395 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SIM_GET_LOCK_STATUS); GetSimLockStatusTest() local
415 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SIM_SET_LOCK); SetSimLockTest() local
438 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SIM_SET_LOCK); UnSetSimLockTest() local
461 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SIM_CHANGE_PASSWD); ChangeSimPasswordTest() local
485 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SET_STATUS); RadioRestartTest() local
512 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SIM_ENTER_PIN); EnterSimPinTest() local
532 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SIM_ENTER_PIN); EnterErrorPinTest() local
552 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SIM_UNLOCK_PIN); UnlockSimPinTest() local
573 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SIM_SET_LOCK); SetPin2LockTest() local
596 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SIM_SET_LOCK); UnSetPin2LockTest() local
619 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SIM_ENTER_PIN2); EnterSimPin2Test() local
639 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SIM_ENTER_PIN2); EnterErrorPin2Test() local
659 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SIM_UNLOCK_PIN2); UnlockSimPin2Test() local
680 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SIM_CARD_ENABLED); EnableSimCardTest() local
701 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_SET_RADIO_PROTOCOL); GetRadioProtocolTest() local
722 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_GET_RADIO_PROTOCOL); SetRadioProtocolTest() local
749 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_STK_SEND_TERMINAL_RESPONSE); SendTerminalResponseCmdTest() local
768 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_STK_SEND_ENVELOPE); SendEnvelopeCmdTest() local
787 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_STK_SEND_CALL_SETUP_REQUEST_RESULT); SendCallSetupRequestResultTest() local
807 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_GET_SIGNAL_STRENGTH); NetworkGetRssiTest() local
826 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_DIAL); CallDialTest() local
851 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_REJECT_CALL); RefusedCallTest() local
870 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_GET_CALL_WAIT); GetCallWaitTest() local
889 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SET_CALL_WAIT); SetCallWaitTest() local
910 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_HANGUP_CONNECT); CallHangupTest() local
929 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_ACCEPT_CALL); CallAnswerTest() local
948 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_HOLD_CALL); CallHoldTest() local
967 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_ACTIVE_CALL); CallActiveTest() local
986 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SWAP_CALL); CallSwapTest() local
1005 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_VOICE_REG_STATE); NetworkVoiceRegistrationStateTest() local
1024 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_DATA_REG_STATE); NetworkDataRegistrationStateTest() local
1043 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_OPERATOR); NetworkOperatorTest() local
1062 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SEND_SMS); SendRilCmSmsTest() local
1081 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_STORAGE_SMS); StorageRilCmSmsTest() local
1105 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_DELETE_SMS); DeleteRilCmSmsTest() local
1125 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_UPDATE_SMS); UpdateRilCmSmsTest() local
1178 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_GET_SMS_CENTER_ADDRESS); GetRilCmSmsCenterAddressTest() local
1197 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SET_CELL_BROADCAST); SetRilCmCBConfigTest() local
1220 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SET_CDMA_CELL_BROADCAST); SetRilCmCdmaCBConfigTest() local
1240 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_GET_CELL_BROADCAST); GetRilCmCBConfigTest() local
1259 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_GET_CDMA_CELL_BROADCAST); GetRilCmCdmaCBConfigTest() local
1278 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SEND_SMS_EXPECT_MORE); SmsSendSmsExpectMoreTest() local
1297 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SET_STATUS); SetRadioStateTest() local
1321 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_GET_STATUS); GetRadioStateTest() local
1340 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_SEND_SMS_ACK); SmsAcknowledgeTest() local
1359 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_ADD_CDMA_SMS); AddRilCmCdmaSmsTest() local
1380 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_DEL_CDMA_SMS); DelRilCmCdmaSmsTest() local
1400 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_UPDATE_CDMA_SMS); UpdateRilCmCdmaSmsTest() local
1423 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_RILCM_SET_INIT_APN_INFO); DataSetInitApnInfoTest() local
1450 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_RILCM_SETUP_DATA_CALL); DataSetupDataCallTest() local
1481 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_RILCM_DEACTIVATE_DATA_CALL); DataDisableDataCallTest() local
1500 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_RILCM_GET_DATA_CALL_LIST); GetDataCallListTest() local
1515 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_RILCM_SET_DATA_PERMITTED_TEST); SetDataPermittedTest() local
1534 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_RILCM_GET_LINK_CAPABILITY_TEST); GetLinkCapabilityTest() local
1555 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_RILCM_CLEAN_ALL_DATA_CONNECTIONS_TEST); CleanAllConnectionsTest() local
1575 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_GET_NETWORKS_TO_USE); GetNetworkSearchInformationTest() local
1594 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_GET_SELECTION_MOD_FOR_NETWORKS); GetNetworkSelectionModeTest() local
1613 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_SET_MODE_AUTOMATIC_NETWORKS); SetNetworkSelectionModeTest() local
1632 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_SET_PREFERRED_NETWORK_TYPE); SetPreferredNetworkParaTest() local
1652 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_GET_PREFERRED_NETWORK_TYPE); GetPreferredNetworkParaTest() local
1671 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_GET_IMEI); GetImeiTest() local
1690 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_GET_IMEISV); GetImeiSvTest() local
1709 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_GET_MEID); GetMeidTest() local
1728 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_GET_VOICE_RADIO_INFO); GetVoiceRadioTechnologyTest() local
1747 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_GET_PHYSICAL_CHANNEL_CONFIG); GetPhysicalChannelConfigTest() local
1766 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_SET_LOCATE_UPDATES); SetLocateUpdatesTest() local
1786 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_SET_NOTIFICATION_FILTER); SetNotificationFilterTest() local
1806 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_SET_DEVICE_STATE); SetDeviceStateTest() local
1827 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_GET_RRC_CONNECTION_STATE); GetRrcConnectionStateTest() local
1846 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_GET_NR_OPTION_MODE); GetNrOptionModeTest() local
1865 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_SET_NR_OPTION_MODE); SetNrOptionModeTest() local
1885 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_GET_NR_SSBID_INFO); GetNrSsbIdTest() local
1904 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_GET_CELL_INFO_LIST_TYPE); GetCellInfoListTest() local
1931 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_JOIN_CALL); CallJoinTest() local
1959 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SPLIT_CALL); CallSplitTest() local
1979 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_GET_CALL_FORWARD); GetCallForwardTest() local
1998 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SPLIT_CALL); SetCallForwardTest() local
2022 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_GET_CALL_CLIP); GetClipTest() local
2041 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SET_CALL_CLIP); SetClipTest() local
2061 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_GET_CALL_RESTRICTION); GetCallRestrictionTest() local
2080 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SET_CALL_RESTRICTION); SetCallRestrictionTest() local
2106 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SET_CALL_RESTRICTION_PWD); SetBarringPasswordTest() local
2130 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SEND_DTMF); SendDtmfTest() local
2146 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_START_DTMF); StartDtmfTest() local
2162 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_STOP_DTMF); StopDtmfTest() local
2178 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SET_USSD); SetUssdTest() local
2197 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_GET_USSD); GetUssdTest() local
2216 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SET_CMUT); SetMuteTest() local
2235 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_GET_CMUT); GetMuteTest() local
2254 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_GET_EMERGENCY_CALL_LIST); GetEmergencyCallListTest() local
2273 int32_t eventId = static_cast<int32_t>(RadioEvent::RADIO_SET_VONR_SWITCH_STATUS); SetVoNRSwitchTest() local
2293 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_RILCM_SET_LINK_BANDWIDTH_REPORTING_RULE); OnRequestSetLinkBandwidthReportingRuleTest() local
2323 int32_t eventId = static_cast<int32_t>(DiffInterfaceId::TEST_RILCM_GET_LINK_BANDWIDTH_INFO); GetLinkBandwidthInfoTest() local
2342 WaitGetResult(int32_t eventId, std::shared_ptr<AppExecFwk::EventHandler> handler, int32_t timeOut) WaitGetResult() argument
2371 GetBoolResult(int32_t eventId) GetBoolResult() argument
[all...]
/base/security/security_guard/services/data_collect/store/src/
H A Ddatabase_manager.cpp44 bool success = ConfigDataManager::GetInstance().GetEventConfig(event.eventId, config); in InsertEvent()
46 SGLOGE("not found event, id=%{public}" PRId64, event.eventId); in InsertEvent()
51 std::string table = ConfigDataManager::GetInstance().GetTableFromEventId(event.eventId); in InsertEvent()
52 SGLOGD("table=%{public}s, eventId=%{public}" PRId64, table.c_str(), config.eventId); in InsertEvent()
58 SGLOGD("risk event insert, eventId=%{public}" PRId64, event.eventId); in InsertEvent()
63 int64_t count = RiskEventRdbHelper::GetInstance().CountEventByEventId(event.eventId); in InsertEvent()
65 (void) RiskEventRdbHelper::GetInstance().DeleteOldEventByEventId(event.eventId, in InsertEvent()
84 int DatabaseManager::QueryRecentEventByEventId(int64_t eventId, SecEven argument
93 QueryRecentEventByEventId(std::string table, const std::vector<int64_t> &eventId, std::vector<SecEvent> &event) QueryRecentEventByEventId() argument
111 QueryEventByEventId(int64_t eventId, std::vector<SecEvent> &events) QueryEventByEventId() argument
161 CountEventByEventId(int64_t eventId) CountEventByEventId() argument
170 DeleteOldEventByEventId(int64_t eventId, int64_t count) DeleteOldEventByEventId() argument
179 DeleteAllEventByEventId(int64_t eventId) DeleteAllEventByEventId() argument
[all...]
/base/security/security_guard/services/data_collect/sa/
H A Dacquire_data_subscribe_manager.cpp42 bool isSuccess = ConfigDataManager::GetInstance().GetEventConfig(subscribeInfo.GetEvent().eventId, config); in InsertSubscribeRecord()
47 int64_t event = subscribeInfo.GetEvent().eventId; in InsertSubscribeRecord()
50 eventIdToSubscriberMap_[subscribeInfo.GetEvent().eventId].insert(callback); in InsertSubscribeRecord()
53 int32_t code = DatabaseManager::GetInstance().SubscribeDb({subscribeInfo.GetEvent().eventId}, listener_); in InsertSubscribeRecord()
63 eventIdToSubscriberMap_[subscribeInfo.GetEvent().eventId].insert(callback); in InsertSubscribeRecord()
71 int AcquireDataSubscribeManager::SubscribeSc(int64_t eventId) in SubscribeSc() argument
73 if (scSubscribeMap_.count(eventId)) { in SubscribeSc()
77 bool isSuccess = ConfigDataManager::GetInstance().GetEventConfig(eventId, config); in SubscribeSc()
84 scEvent.eventId = eventId; in SubscribeSc()
106 UnSubscribeSc(int64_t eventId) UnSubscribeSc() argument
[all...]
/base/security/security_guard/services/risk_classify/model_manager/src/
H A Ddb_operate.cpp32 int DbOperate::QueryRecentEventByEventId(int64_t eventId, SecEvent &event) in QueryRecentEventByEventId() argument
34 return DatabaseManager::GetInstance().QueryRecentEventByEventId(eventId, event); in QueryRecentEventByEventId()
37 int DbOperate::QueryRecentEventByEventId(const std::vector<int64_t> &eventId, std::vector<SecEvent> &event) in QueryRecentEventByEventId() argument
39 return DatabaseManager::GetInstance().QueryRecentEventByEventId(table_, eventId, event); in QueryRecentEventByEventId()
42 int DbOperate::QueryEventByEventId(int64_t eventId, std::vector<SecEvent> &events) in QueryEventByEventId() argument
44 return DatabaseManager::GetInstance().QueryEventByEventId(eventId, events); in QueryEventByEventId()
72 int64_t DbOperate::CountEventByEventId(int64_t eventId) in CountEventByEventId() argument
74 return DatabaseManager::GetInstance().CountEventByEventId(eventId); in CountEventByEventId()
77 int DbOperate::DeleteOldEventByEventId(int64_t eventId, int64_t count) in DeleteOldEventByEventId() argument
79 return DatabaseManager::GetInstance().DeleteOldEventByEventId(eventId, coun in DeleteOldEventByEventId()
82 DeleteAllEventByEventId(int64_t eventId) DeleteAllEventByEventId() argument
[all...]
/base/security/security_guard/test/unittest/mock/data_collect/
H A Drisk_event_rdb_helper.h32 virtual int QueryRecentEventByEventId(int64_t eventId, SecEvent &event) = 0;
33 virtual int QueryRecentEventByEventId(const std::vector<int64_t> &eventId, std::vector<SecEvent> &event) = 0;
34 virtual int QueryEventByEventId(int64_t eventId, std::vector<SecEvent> &events) = 0;
42 virtual int64_t CountEventByEventId(int64_t eventId) = 0;
43 virtual int DeleteOldEventByEventId(int64_t eventId, int64_t count) = 0;
44 virtual int DeleteAllEventByEventId(int64_t eventId) = 0;
59 MOCK_METHOD2(QueryRecentEventByEventId, int(int64_t eventId, SecEvent &event));
60 MOCK_METHOD2(QueryRecentEventByEventId, int(const std::vector<int64_t> &eventId, std::vector<SecEvent> &event));
61 MOCK_METHOD2(QueryEventByEventId, int(int64_t eventId, std::vector<SecEvent> &events));
69 MOCK_METHOD1(CountEventByEventId, int64_t(int64_t eventId));
[all...]
/base/notification/eventhandler/frameworks/eventhandler/test/unittest/
H A Dlib_event_handler_event_test.cpp105 uint32_t eventId = 0; in HWTEST_F() local
107 auto event = InnerEvent::Get(eventId, eventParam); in HWTEST_F()
110 EXPECT_EQ(eventId, id); in HWTEST_F()
125 uint32_t eventId = 0; in HWTEST_F() local
128 auto event = InnerEvent::Get(eventId, object, eventParam); in HWTEST_F()
132 EXPECT_EQ(eventId, id); in HWTEST_F()
149 uint32_t eventId = 0; in HWTEST_F() local
153 auto event = InnerEvent::Get(eventId, weakObject, eventParam); in HWTEST_F()
158 EXPECT_EQ(eventId, id); in HWTEST_F()
175 uint32_t eventId in HWTEST_F() local
200 uint32_t eventId = 0; HWTEST_F() local
266 uint32_t eventId = 0; HWTEST_F() local
285 uint32_t eventId = 0; HWTEST_F() local
304 uint32_t eventId = 0; HWTEST_F() local
323 uint32_t eventId = 0; HWTEST_F() local
375 uint32_t eventId = 1; HWTEST_F() local
417 uint32_t eventId = 1; HWTEST_F() local
455 uint32_t eventId = 0; HWTEST_F() local
[all...]
/base/telephony/core_service/interfaces/innerkits/include/
H A Dcore_manager_inner.h57 int32_t slotId, int32_t eventId, int fun, int rst, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
59 int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler) const;
60 int32_t ShutDown(int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
61 int32_t Dial(int32_t slotId, int32_t eventId, std::string address, int clirMode,
63 int32_t Reject(int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
65 int32_t slotId, int32_t eventId, int32_t gsmIndex, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
66 int32_t Answer(int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
68 int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler) const;
69 int32_t HoldCall(int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
70 int32_t UnHoldCall(int32_t slotId, int32_t eventId, cons
[all...]
/base/security/security_guard/test/fuzztest/data_collect/datacollect_fuzzer/
H A Ddata_collect_fuzzer.cpp63 int64_t eventId = *(reinterpret_cast<const int64_t *>(data + offset)); in AcquireDataSubscribeManagerFuzzTest() local
66 Security::SecurityCollector::Event event{eventId, string, string, string}; in AcquireDataSubscribeManagerFuzzTest()
67 SecEvent events{eventId, string}; in AcquireDataSubscribeManagerFuzzTest()
73 AcquireDataSubscribeManager::GetInstance().SubscribeSc(eventId); in AcquireDataSubscribeManagerFuzzTest()
74 AcquireDataSubscribeManager::GetInstance().UnSubscribeSc(eventId); in AcquireDataSubscribeManagerFuzzTest()
84 int64_t eventId = *(reinterpret_cast<const int64_t *>(data)); in AcquireDataCallbackProxyFuzzTest() local
87 Security::SecurityCollector::Event event{eventId, string, string, string}; in AcquireDataCallbackProxyFuzzTest()
117 int64_t eventId = *(reinterpret_cast<const int64_t *>(data)); in DataCollectManagerServiceFuzzTest() local
121 Security::SecurityCollector::SecurityEventRuler ruler{eventId}; in DataCollectManagerServiceFuzzTest()
122 Security::SecurityCollector::Event event{eventId, strin in DataCollectManagerServiceFuzzTest()
151 int64_t eventId = *(reinterpret_cast<const int64_t *>(data)); SecurityEventQueryCallbackProxyFuzzTest() local
168 int64_t eventId = *(reinterpret_cast<const int64_t *>(data)); DatabaseHelperFuzzTest() local
211 int64_t eventId = *(reinterpret_cast<const int64_t *>(data)); DatabaseManagerFuzzTest() local
[all...]
/base/startup/init/services/loopevent/task/
H A Dle_asynctask.c37 uint64_t eventId = *(uint64_t*)(buffer->data); in DoAsyncEvent_() local
39 asyncTask->processAsyncEvent((TaskHandle)asyncTask, eventId, in DoAsyncEvent_()
74 uint64_t eventId = 0; in HandleAsyncEvent_() local
75 int ret = read(GetSocketFd(taskHandle), &eventId, sizeof(eventId)); in HandleAsyncEvent_()
76 LE_LOGV("HandleAsyncEvent_ read fd:%d ret: %d eventId %llu", GetSocketFd(taskHandle), ret, eventId); in HandleAsyncEvent_()
83 static uint64_t eventId = 0; in HandleAsyncEvent_() local
84 (void)write(GetSocketFd(taskHandle), &eventId, sizeof(eventId)); in HandleAsyncEvent_() local
132 LE_StartAsyncEvent(const LoopHandle loopHandle, const TaskHandle taskHandle, uint64_t eventId, const uint8_t *data, uint32_t buffLen) LE_StartAsyncEvent() argument
[all...]
/base/sensors/medical_sensor/utils/src/
H A Ddmd_report.cpp48 static std::string GetEventName(int32_t eventId) in GetEventName() argument
50 switch (eventId) { in GetEventName()
76 void DmdReport::ReportException(int32_t eventId, const std::string &interfaceName, int32_t error) in ReportException() argument
80 auto eventIt = eventMap_.find(eventId); in ReportException()
82 HiLog::Error(LABEL, "%{public}s eventId : %{public}d is not supported", __func__, eventId); in ReportException()
87 HiSysEventWrite(HiviewDFX::HiSysEvent::Domain::MEDICAL_SENSOR, GetEventName(eventId), in ReportException()
89 HiLog::Error(LABEL, "%{public}s eventId : %{public}d, interfaceName=%{public}s, error=%{public}d", in ReportException()
90 __func__, eventId, interfaceName.c_str(), error); in ReportException()
91 eventMap_[eventId] in ReportException()
[all...]
/base/security/security_guard/test/unittest/risk_classify/include/
H A Di_db_operate.h28 virtual int QueryRecentEventByEventId(int64_t eventId, SecEvent &event) = 0;
29 virtual int QueryRecentEventByEventId(const std::vector<int64_t> &eventId,
31 virtual int QueryEventByEventId(int64_t eventId, std::vector<SecEvent> &events) = 0;
37 virtual int64_t CountEventByEventId(int64_t eventId) = 0;
38 virtual int DeleteOldEventByEventId(int64_t eventId, int64_t count) = 0;
39 virtual int DeleteAllEventByEventId(int64_t eventId) = 0;
/base/security/security_guard/test/unittest/model_manager/include/
H A Ddb_operate.h29 int QueryRecentEventByEventId(int64_t eventId, SecEvent &event) override;
30 int QueryRecentEventByEventId(const std::vector<int64_t> &eventId, std::vector<SecEvent> &event) override;
31 int QueryEventByEventId(int64_t eventId, std::vector<SecEvent> &events) override;
37 int64_t CountEventByEventId(int64_t eventId) override;
38 int DeleteOldEventByEventId(int64_t eventId, int64_t count) override;
39 int DeleteAllEventByEventId(int64_t eventId) override;
H A Di_db_operate.h28 virtual int QueryRecentEventByEventId(int64_t eventId, SecEvent &event) = 0;
29 virtual int QueryRecentEventByEventId(const std::vector<int64_t> &eventId,
31 virtual int QueryEventByEventId(int64_t eventId, std::vector<SecEvent> &events) = 0;
37 virtual int64_t CountEventByEventId(int64_t eventId) = 0;
38 virtual int DeleteOldEventByEventId(int64_t eventId, int64_t count) = 0;
39 virtual int DeleteAllEventByEventId(int64_t eventId) = 0;
/base/security/security_guard/interfaces/inner_api/classify/include/
H A Di_db_operate.h28 virtual int QueryRecentEventByEventId(int64_t eventId, SecEvent &event) = 0;
29 virtual int QueryRecentEventByEventId(const std::vector<int64_t> &eventId,
31 virtual int QueryEventByEventId(int64_t eventId, std::vector<SecEvent> &events) = 0;
37 virtual int64_t CountEventByEventId(int64_t eventId) = 0;
38 virtual int DeleteOldEventByEventId(int64_t eventId, int64_t count) = 0;
39 virtual int DeleteAllEventByEventId(int64_t eventId) = 0;
/base/security/security_guard/services/risk_classify/model_manager/include/
H A Ddb_operate.h29 int QueryRecentEventByEventId(int64_t eventId, SecEvent &event) override;
30 int QueryRecentEventByEventId(const std::vector<int64_t> &eventId, std::vector<SecEvent> &event) override;
31 int QueryEventByEventId(int64_t eventId, std::vector<SecEvent> &events) override;
37 int64_t CountEventByEventId(int64_t eventId) override;
38 int DeleteOldEventByEventId(int64_t eventId, int64_t count) override;
39 int DeleteAllEventByEventId(int64_t eventId) override;
/base/update/updater/services/
H A Dupdater_init.h56 void InvokeEvent(enum UpdaterInitEvent eventId) const in InvokeEvent()
58 if (eventId >= UPDATER_INIT_EVENT_BUTT) { in InvokeEvent()
61 for (const auto &handler : initEvent_[eventId]) { in InvokeEvent()
67 void SubscribeEvent(enum UpdaterInitEvent eventId, InitHandler handler) in SubscribeEvent() argument
69 if (eventId < UPDATER_INIT_EVENT_BUTT) { in SubscribeEvent()
70 initEvent_[eventId].push_back(handler); in SubscribeEvent()
/base/security/security_guard/frameworks/common/collect/test/unittest/src/
H A Ddata_collect_kit_test.cpp91 static int64_t eventId = 1011009000; in HWTEST_F() local
95 info.eventId = eventId; in HWTEST_F()
113 static int64_t eventId = 1011009000; in HWTEST_F() local
117 info.eventId = eventId; in HWTEST_F()
135 static int64_t eventId = 1011009000; in HWTEST_F() local
139 info.eventId = eventId; in HWTEST_F()
157 static int64_t eventId in HWTEST_F() local
179 static int64_t eventId = 0; HWTEST_F() local
[all...]

Completed in 12 milliseconds

12345678910>>...12