public void dispatchNumberEvent() { testSimpleArithmetricRule(); NumberEventHandlerPlugin eventHandlerPlugin = (NumberEventHandlerPlugin) mEventPluginManager.getPluginInstance(Event.Type.RULE_EVENT_NUMBER); eventHandlerPlugin.dispatchNumber(7); }
public void dispatchCallEvent() { testSimpleArithmetricRule(); CallEventHandlerPlugin eventHandlerPlugin = (CallEventHandlerPlugin) mEventPluginManager.getPluginInstance(Event.Type.RULE_EVENT_CALL); eventHandlerPlugin.onIncomingCall(new Contact(-1, "Attila", "0740507135")); }