Lines Matching +refs:check +refs:type
180 int check = today_cf_day_of_week % 7;
187 // Therefore, since we're tossing the CF day of week into a variable (check)
188 // that we're checking the bitmask with, "check" effectively refers
190 while(!(days_mask & (1<<check)))
192 check = (check + 1) % 7;
194 check -= today_cf_day_of_week;
195 check++; // adjust for CF day of week (1-7) vs. bitmask day of week (0-6)
198 // check will be negative. Mod of negative is bogus, so we add an extra
201 check += 7;
202 check %= 7;
203 if(check == 0) check = 7;
205 return check;
245 copyNextRepeatingEvent(CFStringRef type)
262 * WakeOrPowerOn type repeat events.
264 if( CFEqual(type, CFSTR(kIOPMAutoSleep))
265 || CFEqual(type, CFSTR(kIOPMAutoShutdown)) ||
266 CFEqual(type, CFSTR(kIOPMAutoRestart)) )
271 CFEqual(type, CFSTR(kIOPMAutoPowerOn)) ||
272 CFEqual(type, CFSTR(kIOPMAutoWake)) )
280 if (CFEqual(type, repeatDictType) ||
282 (CFEqual(type, CFSTR(kIOPMAutoPowerOn)) || CFEqual(type, CFSTR(kIOPMAutoWake)))