Home
last modified time | relevance | path

Searched refs:PowerDevice (Results 1 – 5 of 5) sorted by relevance

/foundation/communication/bluetooth/services/bluetooth_standard/service/src/common/
Dpower_device.cpp27 struct PowerDevice::impl {
47 PowerDevice::PowerDevice(const RawAddress rawAddr, utility::Dispatcher &dispatcher) in PowerDevice() function in bluetooth::PowerDevice
48 : pimpl(std::make_unique<PowerDevice::impl>(rawAddr, dispatcher)) in PowerDevice()
55 std::weak_ptr<PowerDevice> weakDevice = shared_from_this(); in PowerDevice()
56 … pimpl->dispatcher_.PostTask(std::bind(&bluetooth::PowerDevice::DelayTimeoutCallback, weakDevice)); in PowerDevice()
61 PowerDevice::~PowerDevice() in ~PowerDevice()
67 void PowerDevice::SetRequestPower(const std::string &profileName, const RequestStatus status) const in SetRequestPower()
72 void PowerDevice::DeleteRequestPower(const std::string &profileName) const in DeleteRequestPower()
77 void PowerDevice::SetPowerMode() in SetPowerMode()
91 void PowerDevice::SetActiveMode() in SetActiveMode()
[all …]
Dpower_state_machine.h64 void Init(PowerDevice &pd);
75 …PowerState(const std::string &name, PowerStateMachine &psm, PowerDevice &pd) : State(name, psm), p… in PowerState()
83 …PowerState(const std::string &name, PowerStateMachine &psm, PowerDevice &pd, utility::StateMachine… in PowerState()
94 PowerDevice &pd_;
106 PowerActiveState(PowerStateMachine &psm, PowerDevice &pd) : PowerState(ACTIVE_STATE, psm, pd){}; in PowerActiveState()
148 …PowerActiveActivingState(PowerStateMachine &psm, PowerDevice &pd, utility::StateMachine::State &fs… in PowerActiveActivingState()
172 …PowerActiveSniffingState(PowerStateMachine &psm, PowerDevice &pd, utility::StateMachine::State &fs… in PowerActiveSniffingState()
195 PowerSniffState(PowerStateMachine &psm, PowerDevice &pd) : PowerState(SNIFF_STATE, psm, pd){}; in PowerSniffState()
218 …PowerSniffActivingState(PowerStateMachine &psm, PowerDevice &pd, utility::StateMachine::State &fst… in PowerSniffActivingState()
242 …PowerSniffSniffingState(PowerStateMachine &psm, PowerDevice &pd, utility::StateMachine::State &fst… in PowerSniffSniffingState()
Dpower_device.h30 class PowerDevice : public std::enable_shared_from_this<PowerDevice> {
39 PowerDevice(const RawAddress rawAddr, utility::Dispatcher &dispatcher);
46 PowerDevice() = delete;
53 ~PowerDevice();
210 static void DelayTimeoutCallback(const std::weak_ptr<PowerDevice>& weakDevice);
294 DISALLOW_COPY_AND_ASSIGN(PowerDevice);
Dpower_manager.cpp79 std::map<RawAddress, std::shared_ptr<PowerDevice>> powerDevices_ {};
179 powerDevices_[rawAddr] = std::make_shared<PowerDevice>(rawAddr, dispatcher_); in UpdatePowerDevicesInfo()
210 powerDevices_[rawAddr] = std::make_shared<PowerDevice>(rawAddr, dispatcher_); in ModeChangeCallBackProcess()
255 powerDevices_[rawAddr] = std::make_shared<PowerDevice>(rawAddr, dispatcher_); in ConnectionCompleteCallBackProcess()
Dpower_state_machine.cpp22 void PowerStateMachine::Init(PowerDevice &pd) in Init()