AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <NoOpPowerResourceManager.h>
Public Member Functions | |
PowerResourceManagerInterface Functions | |
void | acquirePowerResource (const std::string &component, const PowerResourceLevel level=PowerResourceLevel::ACTIVE_HIGH) override |
void | releasePowerResource (const std::string &component) override |
bool | isPowerResourceAcquired (const std::string &component) override |
std::shared_ptr< PowerResourceId > | create (const std::string &resourceId, bool isRefCounted=true, const PowerResourceLevel level=PowerResourceLevel::STANDBY_MED) override |
bool | acquire (const std::shared_ptr< PowerResourceId > &id, const std::chrono::milliseconds autoReleaseTimeout=std::chrono::milliseconds::zero()) override |
bool | release (const std::shared_ptr< PowerResourceId > &id) override |
bool | close (const std::shared_ptr< PowerResourceId > &id) override |
Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::PowerResourceManagerInterface | |
virtual | ~PowerResourceManagerInterface ()=default |
virtual std::chrono::milliseconds | getTimeSinceLastResumeMS () |
virtual std::chrono::milliseconds | getTimeSinceLastPartialMS (const std::string &component, PartialStateBitSet &resourceFlags, PartialStateBitSet partialState=PowerResourceTypeFlag::TYPE_ALL_FLAG) |
A no-op implemention of the PowerResourceManager
to be used for fallback behavior.
|
inlineoverridevirtual |
Acquire a power resource.
id | shared pointer of type PowerResourceId representing the resource. |
autoReleaseTimeout | auto release timeout value. Zero denotes auto release disabled. |
Implements alexaClientSDK::avsCommon::sdkInterfaces::PowerResourceManagerInterface.
|
inlineoverridevirtual |
Acquire a power resource for the component.
component | component name. |
level | power resource level. |
Implements alexaClientSDK::avsCommon::sdkInterfaces::PowerResourceManagerInterface.
|
inlineoverridevirtual |
Close a power resource.
id | shared pointer of type PowerResourceId representing the resource. |
Implements alexaClientSDK::avsCommon::sdkInterfaces::PowerResourceManagerInterface.
|
inlineoverridevirtual |
Create a power resource keyed by the unique string resourceId.
resourceId | mentions what the resource is for. |
isRefCounted | whether refcounting is enabled for this resource |
level | power resource level. |
Implements alexaClientSDK::avsCommon::sdkInterfaces::PowerResourceManagerInterface.
|
inlineoverridevirtual |
Checks whether a power resource had been acquired or not.
component | component name. |
Implements alexaClientSDK::avsCommon::sdkInterfaces::PowerResourceManagerInterface.
|
inlineoverridevirtual |
Release a power resource.
id | shared pointer of type PowerResourceId representing the resource. |
Implements alexaClientSDK::avsCommon::sdkInterfaces::PowerResourceManagerInterface.
|
inlineoverridevirtual |
Release the acquired power resource of the specified component.
component | component name. |
Implements alexaClientSDK::avsCommon::sdkInterfaces::PowerResourceManagerInterface.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0