Search in sources :

Example 11 with MainApplication

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);
}
Also used : ContentEngine(com.vodafone360.people.engine.content.ContentEngine) MainApplication(com.vodafone360.people.MainApplication)

Example 12 with MainApplication

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);
}
Also used : ContactSyncEngine(com.vodafone360.people.engine.contactsync.ContactSyncEngine) MainApplication(com.vodafone360.people.MainApplication)

Example 13 with MainApplication

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);
}
Also used : IdentityEngine(com.vodafone360.people.engine.identities.IdentityEngine) MainApplication(com.vodafone360.people.MainApplication)

Example 14 with MainApplication

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);
}
Also used : MainApplication(com.vodafone360.people.MainApplication) PresenceEngine(com.vodafone360.people.engine.presence.PresenceEngine)

Example 15 with MainApplication

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;
}
Also used : EngineTestFramework(com.vodafone360.people.tests.engine.EngineTestFramework) PresenceEngine(com.vodafone360.people.engine.presence.PresenceEngine)

Aggregations

MainApplication (com.vodafone360.people.MainApplication)12 EngineTestFramework (com.vodafone360.people.tests.engine.EngineTestFramework)4 Intent (android.content.Intent)2 ActivitiesEngine (com.vodafone360.people.engine.activities.ActivitiesEngine)2 IdentityEngine (com.vodafone360.people.engine.identities.IdentityEngine)2 LoginEngine (com.vodafone360.people.engine.login.LoginEngine)2 SyncMeEngine (com.vodafone360.people.engine.meprofile.SyncMeEngine)2 PresenceEngine (com.vodafone360.people.engine.presence.PresenceEngine)2 NetworkErrorException (android.accounts.NetworkErrorException)1 Instrumentation (android.app.Instrumentation)1 Cursor (android.database.Cursor)1 Uri (android.net.Uri)1 Bundle (android.os.Bundle)1 SmallTest (android.test.suitebuilder.annotation.SmallTest)1 Suppress (android.test.suitebuilder.annotation.Suppress)1 ContactSyncEngine (com.vodafone360.people.engine.contactsync.ContactSyncEngine)1 ContentEngine (com.vodafone360.people.engine.content.ContentEngine)1 GroupsEngine (com.vodafone360.people.engine.groups.GroupsEngine)1 Authenticator (com.vodafone360.people.service.Authenticator)1 RemoteService (com.vodafone360.people.service.RemoteService)1