Home
last modified time | relevance | path

Searched refs:PowerSwitch (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Nfc/nci/jni/
DPowerSwitch.cpp37 PowerSwitch PowerSwitch::sPowerSwitch;
38 const PowerSwitch::PowerActivity PowerSwitch::DISCOVERY = 0x01;
39 const PowerSwitch::PowerActivity PowerSwitch::SE_ROUTING = 0x02;
40 const PowerSwitch::PowerActivity PowerSwitch::SE_CONNECTED = 0x04;
41 const PowerSwitch::PowerActivity PowerSwitch::HOST_ROUTING = 0x08;
52 PowerSwitch::PowerSwitch() in PowerSwitch() function in PowerSwitch
68 PowerSwitch::~PowerSwitch() {} in ~PowerSwitch()
79 PowerSwitch& PowerSwitch::getInstance() { return sPowerSwitch; } in getInstance()
90 void PowerSwitch::initialize(PowerLevel level) { in initialize()
130 PowerSwitch::PowerLevel PowerSwitch::getLevel() { in getLevel()
[all …]
DNativeNfcManager.cpp817 PowerSwitch::getInstance().abort(); in nfaDeviceManagementCallback()
827 PowerSwitch::getInstance().initialize(PowerSwitch::UNKNOWN_LEVEL); in nfaDeviceManagementCallback()
836 PowerSwitch::getInstance().deviceManagementCallback(dmEvent, eventData); in nfaDeviceManagementCallback()
1040 PowerSwitch& powerSwitch = PowerSwitch::getInstance(); in nfcManager_doInitialize()
1048 powerSwitch.initialize(PowerSwitch::FULL_POWER); in nfcManager_doInitialize()
1144 PowerSwitch::getInstance().setLevel(PowerSwitch::LOW_POWER); in nfcManager_doInitialize()
1220 PowerSwitch::getInstance().setLevel(PowerSwitch::FULL_POWER); in nfcManager_enableDiscovery()
1287 PowerSwitch::getInstance().setModeOn(PowerSwitch::DISCOVERY); in nfcManager_enableDiscovery()
1322 if (!PowerSwitch::getInstance().setModeOff(PowerSwitch::DISCOVERY)) in nfcManager_disableDiscovery()
1323 PowerSwitch::getInstance().setLevel(PowerSwitch::LOW_POWER); in nfcManager_disableDiscovery()
[all …]
DPowerSwitch.h31 class PowerSwitch {
105 PowerSwitch();
116 ~PowerSwitch();
127 static PowerSwitch& getInstance();
241 static PowerSwitch sPowerSwitch; // singleton object