Miscellaneous.logEvent("i",String.format(Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf),this.getParentRule().getName()),"Checking for bluetooth...",4);
Miscellaneous.logEvent("i", Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf),String.format("Checking for bluetooth...",this.getParentRule().getName()),4);
Miscellaneous.logEvent("i",String.format(Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf),this.getParentRule().getName()),"Checking for wifi state",4);
Miscellaneous.logEvent("i", Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf),String.format("Checking for wifi state",this.getParentRule().getName()),4);
if(this.getTriggerParameter2().length()>0)// only check if any wifi name specified, otherwise any wifi will do
{
Miscellaneous.logEvent("i",String.format(Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf),this.getParentRule().getName()),"Wifi name specified, checking that.",4);
Miscellaneous.logEvent("i", Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf),String.format("Wifi name specified, checking that.",this.getParentRule().getName()),4);
Miscellaneous.logEvent("i",String.format(Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf),this.getParentRule().getName()),"Wifi name matches. Rule will apply.",4);
Miscellaneous.logEvent("i", Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf),String.format("Wifi name matches. Rule will apply.",this.getParentRule().getName()),4);
}
else
Miscellaneous.logEvent("i",String.format(Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf),this.getParentRule().getName()),"No wifi name specified, any will do.",4);
Miscellaneous.logEvent("i", Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf),String.format("No wifi name specified, any will do.",this.getParentRule().getName()),4);
}
else
{
Miscellaneous.logEvent("i",String.format(Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf),this.getParentRule().getName()),"Wifi state not correct, demanded "+String.valueOf(this.getTriggerParameter()+", got "+String.valueOf(WifiBroadcastReceiver.lastConnectedState)),4);
Miscellaneous.logEvent("i", Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf),String.format("Wifi state not correct, demanded "+String.valueOf(this.getTriggerParameter()+", got "+String.valueOf(WifiBroadcastReceiver.lastConnectedState)),this.getParentRule().getName()),4);
Miscellaneous.logEvent("i",String.format(Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf),this.getParentRule().getName()),"Rule doesn't apply. This is " +activePoi.getName()+", not "+this.getPointOfInterest().getName()+".",4);
Miscellaneous.logEvent("i",String.format(Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf),this.getParentRule().getName()),String.format("Rule %1$s doesn't apply. This is " +activePoi.getName()+", not "+this.getPointOfInterest().getName()+".",getParentRule().getName()),4);
returnfalse;
}
}
@ -663,7 +663,7 @@ public class Trigger
{
if(this.getTriggerParameter())
{
Miscellaneous.logEvent("i",String.format(Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf),this.getParentRule().getName()),"Rule doesn't apply. We're at a POI. Rule specifies not at none, so leaving any.",4);
Miscellaneous.logEvent("i",String.format(Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf),this.getParentRule().getName()),String.format("Rule %s$s doesn't apply. We're at a POI. Rule specifies not at none, so leaving any.",getParentRule().getName()),4);
returnfalse;
}
}
@ -681,7 +681,7 @@ public class Trigger
}
else
{
Miscellaneous.logEvent("i",String.format(Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf),this.getParentRule().getName()),"Rule doesn't apply. We're not at POI \"" +this.getPointOfInterest().getName()+"\".",3);
Miscellaneous.logEvent("i",String.format(Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf),this.getParentRule().getName()),String.format("Rule %1$s doesn't apply. We're not at POI \"" +this.getPointOfInterest().getName()+"\".",getParentRule().getName()),3);
returnfalse;
}
// }
@ -690,7 +690,7 @@ public class Trigger
{
if(!this.getTriggerParameter())
{
Miscellaneous.logEvent("i",String.format(Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf),this.getParentRule().getName()),"Rule doesn't apply. We're at no POI. Rule specifies to be at anyone.",5);
Miscellaneous.logEvent("i",String.format(Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf),this.getParentRule().getName()),String.format("Rule %1$s doesn't apply. We're at no POI. Rule specifies to be at anyone.",getParentRule().getName()),5);
<stringname="bluetoothDeviceInRange">Bluetooth device %1$s in range.</string>
<stringname="bluetoothDeviceOutOfRange">Bluetooth device %1$s out of range.</string>
<stringname="anyDevice">any device</string>
<stringname="ruleDoesntApplyNotTheCorrectDeviceName"translatable="false">Rule doesn\'t apply. Not the correct bluetooth device name.</string>
<stringname="ruleDoesntApplyNotTheCorrectDeviceAddress"translatable="false">Rule doesn\'t apply. Not the correct bluetooth device address.</string>
<stringname="ruleDoesntApplyNotTheCorrectDeviceName"translatable="false">Rule %1$s doesn\'t apply. Not the correct bluetooth device name.</string>
<stringname="ruleDoesntApplyNotTheCorrectDeviceAddress"translatable="false">Rule %1$s doesn\'t apply. Not the correct bluetooth device address.</string>
<stringname="noDevice">no device</string>
<stringname="selectDeviceFromList">one from list</string>
<stringname="connectionToDevice">connection to device</string>
@ -435,8 +435,8 @@
<stringname="deviceOutOfRange">device out of range</string>
<stringname="selectDeviceOption">Select a device option.</string>
<stringname="selectConnectionOption">Select a connection option.</string>
<stringname="ruleDoesntApplyDeviceInRangeButShouldNotBe"translatable="false">Rule doesn\'t apply. Device is in range, but should not be.</string>