Home
last modified time | relevance | path

Searched refs:receiver (Results 1 – 9 of 9) sorted by relevance

/base/powermgr/thermal_manager/services/native/src/thermal_observer/state_machine/
Dscreen_state_collection.cpp63 auto receiver = g_service->GetStateMachineObj()->GetCommonEventReceiver(); in RegisterEvent() local
64 if (receiver == nullptr) return false; in RegisterEvent()
67 bool on = receiver->Start(CommonEventSupport::COMMON_EVENT_SCREEN_ON, handlerOn); in RegisterEvent()
74 bool off = receiver->Start(CommonEventSupport::COMMON_EVENT_SCREEN_OFF, handlerOff); in RegisterEvent()
Dcharger_state_collection.cpp74 auto receiver = g_service->GetStateMachineObj()->GetCommonEventReceiver(); in RegisterEvent() local
75 if (receiver == nullptr) { in RegisterEvent()
82 ret = receiver->Start(CommonEventSupport::COMMON_EVENT_BATTERY_CHANGED, batteryChangedHandler); in RegisterEvent()
90 …ret = receiver->Start(CommonEventSupport::COMMON_EVENT_THERMAL_LEVEL_CHANGED, thermalLevelHandler); in RegisterEvent()
/base/hiviewdfx/hiview/core/
Devent_server.cpp216 for (auto receiver = receivers.begin(); receiver != receivers.end(); receiver++) { in ReceiveMsg() local
217 (*receiver)->HandlerEvent(std::string(buffer)); in ReceiveMsg()
267 for (auto receiver = receivers.begin(); receiver != receivers.end(); receiver++) { in ReceiveMsg() local
268 (*receiver)->HandlerEvent(std::string(buffer)); in ReceiveMsg()
370 void EventServer::AddReceiver(std::shared_ptr<EventReceiver> receiver) in AddReceiver() argument
372 receivers_.emplace_back(receiver); in AddReceiver()
Devent_server.h62 void AddReceiver(std::shared_ptr<EventReceiver> receiver);
/base/powermgr/power_manager/utils/shell/src/
Dpower_shell_command.cpp183 extern "C" void PrintDumpFileError(std::string& receiver, const char* path) in PrintDumpFileError() argument
185 receiver.append("Open Dump file ("); in PrintDumpFileError()
186 receiver.append(path); in PrintDumpFileError()
187 receiver.append(") failed: "); in PrintDumpFileError()
188 receiver.append(std::to_string(errno)); in PrintDumpFileError()
189 receiver.append("\n"); in PrintDumpFileError()
/base/notification/common_event_service/services/src/
Dcommon_event_control_manager.cpp423 HistorySubscriberRecord receiver; in EnqueueHistoryEventRecord() local
424 receiver.recordTime = vec->recordTime; in EnqueueHistoryEventRecord()
425 receiver.bundleName = vec->eventRecordInfo.bundleName; in EnqueueHistoryEventRecord()
426 receiver.priority = vec->eventSubscribeInfo->GetPriority(); in EnqueueHistoryEventRecord()
427 receiver.userId = vec->eventSubscribeInfo->GetUserId(); in EnqueueHistoryEventRecord()
428 receiver.permission = vec->eventSubscribeInfo->GetPermission(); in EnqueueHistoryEventRecord()
429 receiver.deviceId = vec->eventSubscribeInfo->GetDeviceId(); in EnqueueHistoryEventRecord()
430 receiver.isFreeze = vec->isFreeze; in EnqueueHistoryEventRecord()
431 receiver.freezeTime = vec->freezeTime; in EnqueueHistoryEventRecord()
432 record.receivers.emplace_back(receiver); in EnqueueHistoryEventRecord()
[all …]
/base/account/os_account/services/accountmgr/src/appaccount/
Dapp_account_subscribe_manager.cpp309 for (auto receiver : record->receivers) { in OnAccountsChanged() local
312 accessibleAccounts, receiver->bundleName, dataStoragePtr, record->appIndex); in OnAccountsChanged()
319 …result = GetAccessibleAccountsBySubscribeInfo(receiver->subscribeInfoPtr, accessibleAccounts, appA… in OnAccountsChanged()
325 auto appAccountEventProxy = iface_cast<IAppAccountEvent>(receiver->eventListener); in OnAccountsChanged()
/base/web/webview/test/unittest/nweb_window_adapter_test/
Dnweb_window_adapter_test.cpp238 VSyncReceiverMock *receiver = vsmock.get(); variable
239 testing::Mock::AllowLeak(receiver);
240 EXPECT_CALL(*receiver, RequestNextVSync(::testing::_))
/base/iothardware/peripheral/
DREADME.md9 …Circuit \(I2C\), pulse width modulation \(PWM\), universal asynchronous receiver-transmitter \(UAR…