Miscellaneous.logEvent("Error while checking if rule "+getParentRule().getName()+" applies. Error occured in trigger "+this.toString()+"."+Diverse.lineSeparator+Diverse.getStackTraceAsString(e),1);
Miscellaneous.logEvent("i","Trigger","TimeFrame: We're currently ("+calNow.getTime().toString()+") in the specified TimeFrame ("+tf.toString()+").",4);
Miscellaneous.logEvent("TimeFrame: Trigger of rule "+this.getParentRule().getName()+" applies, but it was already executed today.",4);
returnfalse;
}
}
}
Miscellaneous.logEvent("i","Trigger","TimeFrame: That's what's specified. Trigger of rule "+this.getParentRule().getName()+" applies.",4);
returntrue;
}
else
{
Miscellaneous.logEvent("i","Trigger","TimeFrame: That's not what's specified. Trigger of rule "+this.getParentRule().getName()+" doesn't apply.",4);
returnfalse;
}
}
else
{
Miscellaneous.logEvent("i","Trigger","TimeFrame: We're currently ("+calNow.getTime().toString()+", Day: "+String.valueOf(calNow.get(Calendar.DAY_OF_WEEK))+") not in the specified TimeFrame ("+tf.toString()+") because of the time.",5);
Miscellaneous.logEvent("i","Trigger","TimeFrame: Trigger of rule "+this.getParentRule().getName()+" applies, but repeated execution is not due, yet.",4);
Miscellaneous.logEvent("i","Trigger","TimeFrame: Trigger of rule "+this.getParentRule().getName()+" applies, but it was already executed today.",4);
returnfalse;
}
}
}
Miscellaneous.logEvent("i","Trigger","TimeFrame: That's what's specified. Trigger of rule "+this.getParentRule().getName()+" applies.",5);
returntrue;
}
else
{
Miscellaneous.logEvent("i","Trigger","TimeFrame: That's not what's specified. Trigger of rule "+this.getParentRule().getName()+" doesn't apply.",5);
returnfalse;
}
}
}
else
{
Miscellaneous.logEvent("i","Trigger","TimeFrame: We're currently ("+calNow.getTime().toString()+", Day: "+String.valueOf(calNow.get(Calendar.DAY_OF_WEEK))+") not in the specified TimeFrame ("+tf.toString()+") because of the day.",5);
returnfalse;
}
}
catch(Exceptione)
{
Miscellaneous.logEvent("e","Trigger","There was an error while checking if the time based trigger applies: "+Log.getStackTraceString(e),1);
pointOfInterest,timeFrame,charging,batteryLevel,usb_host_connection,speed,noiseLevel,wifiConnection,process_started_stopped,airplaneMode,roaming,nfcTag,activityDetection,bluetoothConnection,headsetPlugged,notification,phoneCall;//phoneCall always needs to be at the very end because of Google's shitty so called privacy