Searched refs:pwrSrc (Results 1 - 4 of 4) sorted by relevance

/macosx-10.10.1/PowerManagement-494.1.2/pmconfigd/
H A DPMSettings.c109 CFStringRef pwrSrc; local
116 pwrSrc = CFSTR(kIOPMBatteryPowerKey);
118 pwrSrc = CFSTR(kIOPMACPowerKey);
123 CFDictionaryGetValue(energySettings, pwrSrc));
142 CFStringRef pwrSrc; local
148 pwrSrc = CFSTR(kIOPMBatteryPowerKey);
150 pwrSrc = CFSTR(kIOPMACPowerKey);
155 CFDictionaryGetValue(energySettings, pwrSrc));
H A DPMAssertionLog.c446 int pwrSrc; local
448 pwrSrc = _getPowerSource();
449 if ( (prevPwrSrc == pwrSrc) && (prevAssertionBits == getKerAssertionBits()) )
452 prevPwrSrc = pwrSrc;
459 ( pwrSrc == kBatteryPowered) ? "Batt" : "AC");
H A DPMConnection.c1675 int pwrSrc; local
1678 pwrSrc = _getPowerSource();
1679 if (pwrSrc == prevPwrSrc)
1682 prevPwrSrc = pwrSrc;
1693 if (pwrSrc == kBatteryPowered)
1696 if ((pwrSrc == kACPowered) && gApoDispatch ) {
2958 int pwrSrc = _getPowerSource(); local
2960 if(kACPowered == pwrSrc && acCapTimeout != (-1))
2962 else if(kBatteryPowered == pwrSrc && battCapTimeout != (-1))
2987 if(kACPowered == pwrSrc) {
[all...]
H A DPMAssertions.c3897 int i, pwrSrc; local
3901 pwrSrc = _getPowerSource();
3902 if (pwrSrc == prevPwrSrc)
3905 prevPwrSrc = pwrSrc;
3930 if ((pwrSrc == kBatteryPowered) && !(assertion->state & kAssertionStateValidOnBatt)) {
3933 else if (pwrSrc != kBatteryPowered) {

Completed in 78 milliseconds