Search in sources :

Example 1 with HandlerCaller

use of com.android.internal.os.HandlerCaller in project platform_frameworks_base by android.

the class PrintSpoolerService method onCreate.

@Override
public void onCreate() {
    super.onCreate();
    mHandlerCaller = new HandlerCaller(this, getMainLooper(), new HandlerCallerCallback(), false);
    mPersistanceManager = new PersistenceManager();
    mNotificationController = new NotificationController(PrintSpoolerService.this);
    mCustomIconCache = new CustomPrinterIconCache(getCacheDir());
    synchronized (mLock) {
        mPersistanceManager.readStateLocked();
        handleReadPrintJobsLocked();
    }
    synchronized (sLock) {
        sInstance = this;
    }
}
Also used : HandlerCaller(com.android.internal.os.HandlerCaller)

Example 2 with HandlerCaller

use of com.android.internal.os.HandlerCaller in project platform_frameworks_base by android.

the class VoiceInteractionSessionService method onCreate.

@Override
public void onCreate() {
    super.onCreate();
    mSystemService = IVoiceInteractionManagerService.Stub.asInterface(ServiceManager.getService(Context.VOICE_INTERACTION_MANAGER_SERVICE));
    mHandlerCaller = new HandlerCaller(this, Looper.myLooper(), mHandlerCallerCallback, true);
}
Also used : HandlerCaller(com.android.internal.os.HandlerCaller)

Example 3 with HandlerCaller

use of com.android.internal.os.HandlerCaller in project android_frameworks_base by AOSPA.

the class VoiceInteractionSessionService method onCreate.

@Override
public void onCreate() {
    super.onCreate();
    mSystemService = IVoiceInteractionManagerService.Stub.asInterface(ServiceManager.getService(Context.VOICE_INTERACTION_MANAGER_SERVICE));
    mHandlerCaller = new HandlerCaller(this, Looper.myLooper(), mHandlerCallerCallback, true);
}
Also used : HandlerCaller(com.android.internal.os.HandlerCaller)

Example 4 with HandlerCaller

use of com.android.internal.os.HandlerCaller in project android_frameworks_base by AOSPA.

the class PrintSpoolerService method onCreate.

@Override
public void onCreate() {
    super.onCreate();
    mHandlerCaller = new HandlerCaller(this, getMainLooper(), new HandlerCallerCallback(), false);
    mPersistanceManager = new PersistenceManager();
    mNotificationController = new NotificationController(PrintSpoolerService.this);
    mCustomIconCache = new CustomPrinterIconCache(getCacheDir());
    synchronized (mLock) {
        mPersistanceManager.readStateLocked();
        handleReadPrintJobsLocked();
    }
    synchronized (sLock) {
        sInstance = this;
    }
}
Also used : HandlerCaller(com.android.internal.os.HandlerCaller)

Example 5 with HandlerCaller

use of com.android.internal.os.HandlerCaller in project android_frameworks_base by DirtyUnicorns.

the class PrintSpoolerService method onCreate.

@Override
public void onCreate() {
    super.onCreate();
    mHandlerCaller = new HandlerCaller(this, getMainLooper(), new HandlerCallerCallback(), false);
    mPersistanceManager = new PersistenceManager();
    mNotificationController = new NotificationController(PrintSpoolerService.this);
    mCustomIconCache = new CustomPrinterIconCache(getCacheDir());
    synchronized (mLock) {
        mPersistanceManager.readStateLocked();
        handleReadPrintJobsLocked();
    }
    synchronized (sLock) {
        sInstance = this;
    }
}
Also used : HandlerCaller(com.android.internal.os.HandlerCaller)

Aggregations

HandlerCaller (com.android.internal.os.HandlerCaller)10