use of com.vodafone360.people.MainApplication in project 360-Engine-for-Android by 360.
the class EngineManager method createContentEngine.
/**
* Create instance of ContentEngine.
*/
private synchronized void createContentEngine() {
final MainApplication app = (MainApplication) mService.getApplication();
mContentEngine = new ContentEngine(mUiEventCallback, app.getDatabase());
addEngine(mContentEngine);
}
use of com.vodafone360.people.MainApplication in project 360-Engine-for-Android by 360.
the class EngineManager method createContactSyncEngine.
private synchronized void createContactSyncEngine() {
final MainApplication app = (MainApplication) mService.getApplication();
mContactSyncEngine = new ContactSyncEngine(mService, mUiEventCallback, app.getDatabase(), null);
addEngine(mContactSyncEngine);
}
use of com.vodafone360.people.MainApplication in project 360-Engine-for-Android by 360.
the class EngineManager method createIdentityEngine.
/**
* Create instance of IdentityEngine.
*/
private synchronized void createIdentityEngine() {
final MainApplication app = (MainApplication) mService.getApplication();
mIdentityEngine = new IdentityEngine(mUiEventCallback, app.getDatabase());
ConnectionManager.getInstance().addConnectionListener(mIdentityEngine);
addEngine(mIdentityEngine);
}
use of com.vodafone360.people.MainApplication in project 360-Engine-for-Android by 360.
the class EngineManager method createPresenceEngine.
/**
* Create instance of PresenceEngine.
*/
private synchronized void createPresenceEngine() {
final MainApplication app = (MainApplication) mService.getApplication();
mPresenceEngine = new PresenceEngine(mUiEventCallback, app.getDatabase());
ConnectionManager.getInstance().addConnectionListener(mPresenceEngine);
getLoginEngine().addListener(mPresenceEngine);
addEngine(mPresenceEngine);
}
use of com.vodafone360.people.MainApplication in project 360-Engine-for-Android by 360.
the class PresenceEngineTest method setUp.
//private MainApplication mApplication = null;
//private PresenceTestState mState = PresenceTestState.IDLE;
@Override
protected void setUp() throws Exception {
super.setUp();
mEngineTester = new EngineTestFramework(this);
mEng = new PresenceEngine(mEngineTester, null);
//mApplication = (MainApplication)Instrumentation.newApplication(MainApplication.class, getInstrumentation().getTargetContext());
mEngineTester.setEngine(mEng);
//mState = PresenceTestState.IDLE;
}
Aggregations