Lines Matching defs:PowerSwitch
21 #include "PowerSwitch.h"
35 PowerSwitch PowerSwitch::sPowerSwitch;
36 const PowerSwitch::PowerActivity PowerSwitch::DISCOVERY=0x01;
37 const PowerSwitch::PowerActivity PowerSwitch::SE_ROUTING=0x02;
38 const PowerSwitch::PowerActivity PowerSwitch::SE_CONNECTED=0x04;
39 const PowerSwitch::PowerActivity PowerSwitch::HOST_ROUTING=0x08;
43 ** Function: PowerSwitch
50 PowerSwitch::PowerSwitch ()
62 ** Function: ~PowerSwitch
69 PowerSwitch::~PowerSwitch ()
83 PowerSwitch& PowerSwitch::getInstance ()
98 void PowerSwitch::initialize (PowerLevel level)
100 static const char fn [] = "PowerSwitch::initialize";
139 PowerSwitch::PowerLevel PowerSwitch::getLevel ()
159 bool PowerSwitch::setLevel (PowerLevel newLevel)
161 static const char fn [] = "PowerSwitch::setLevel";
229 bool PowerSwitch::setModeOff (PowerActivity deactivated)
236 ALOGD ("PowerSwitch::setModeOff(deactivated=0x%x) : mCurrActivity=0x%x", deactivated, mCurrActivity);
251 bool PowerSwitch::setModeOn (PowerActivity activated)
258 ALOGD ("PowerSwitch::setModeOn(activated=0x%x) : mCurrActivity=0x%x", activated, mCurrActivity);
274 bool PowerSwitch::setPowerOffSleepState (bool sleep)
276 static const char fn [] = "PowerSwitch::setPowerOffSleepState";
361 const char* PowerSwitch::deviceMgtPowerStateToString (UINT8 deviceMgtPowerState)
385 const char* PowerSwitch::powerLevelToString (PowerLevel level)
412 void PowerSwitch::abort ()
414 static const char fn [] = "PowerSwitch::abort";
432 void PowerSwitch::deviceManagementCallback (UINT8 event, tNFA_DM_CBACK_DATA* eventData)
434 static const char fn [] = "PowerSwitch::deviceManagementCallback";
467 bool PowerSwitch::isPowerOffSleepFeatureEnabled ()