Search in sources :

Example 1 with Request

use of android.app.VoiceInteractor.Request in project android_frameworks_base by ResurrectionRemix.

the class Activity method setVoiceInteractor.

void setVoiceInteractor(IVoiceInteractor voiceInteractor) {
    if (mVoiceInteractor != null) {
        for (Request activeRequest : mVoiceInteractor.getActiveRequests()) {
            activeRequest.cancel();
            activeRequest.clear();
        }
    }
    if (voiceInteractor == null) {
        mVoiceInteractor = null;
    } else {
        mVoiceInteractor = new VoiceInteractor(voiceInteractor, this, this, Looper.myLooper());
    }
}
Also used : Request(android.app.VoiceInteractor.Request) IVoiceInteractor(com.android.internal.app.IVoiceInteractor)

Example 2 with Request

use of android.app.VoiceInteractor.Request in project android_frameworks_base by crdroidandroid.

the class Activity method setVoiceInteractor.

void setVoiceInteractor(IVoiceInteractor voiceInteractor) {
    if (mVoiceInteractor != null) {
        for (Request activeRequest : mVoiceInteractor.getActiveRequests()) {
            activeRequest.cancel();
            activeRequest.clear();
        }
    }
    if (voiceInteractor == null) {
        mVoiceInteractor = null;
    } else {
        mVoiceInteractor = new VoiceInteractor(voiceInteractor, this, this, Looper.myLooper());
    }
}
Also used : Request(android.app.VoiceInteractor.Request) IVoiceInteractor(com.android.internal.app.IVoiceInteractor)

Example 3 with Request

use of android.app.VoiceInteractor.Request in project platform_frameworks_base by android.

the class Activity method setVoiceInteractor.

void setVoiceInteractor(IVoiceInteractor voiceInteractor) {
    if (mVoiceInteractor != null) {
        for (Request activeRequest : mVoiceInteractor.getActiveRequests()) {
            activeRequest.cancel();
            activeRequest.clear();
        }
    }
    if (voiceInteractor == null) {
        mVoiceInteractor = null;
    } else {
        mVoiceInteractor = new VoiceInteractor(voiceInteractor, this, this, Looper.myLooper());
    }
}
Also used : Request(android.app.VoiceInteractor.Request) IVoiceInteractor(com.android.internal.app.IVoiceInteractor)

Example 4 with Request

use of android.app.VoiceInteractor.Request in project android_frameworks_base by AOSPA.

the class Activity method setVoiceInteractor.

void setVoiceInteractor(IVoiceInteractor voiceInteractor) {
    if (mVoiceInteractor != null) {
        for (Request activeRequest : mVoiceInteractor.getActiveRequests()) {
            activeRequest.cancel();
            activeRequest.clear();
        }
    }
    if (voiceInteractor == null) {
        mVoiceInteractor = null;
    } else {
        mVoiceInteractor = new VoiceInteractor(voiceInteractor, this, this, Looper.myLooper());
    }
}
Also used : Request(android.app.VoiceInteractor.Request) IVoiceInteractor(com.android.internal.app.IVoiceInteractor)

Example 5 with Request

use of android.app.VoiceInteractor.Request in project android_frameworks_base by DirtyUnicorns.

the class Activity method setVoiceInteractor.

void setVoiceInteractor(IVoiceInteractor voiceInteractor) {
    if (mVoiceInteractor != null) {
        for (Request activeRequest : mVoiceInteractor.getActiveRequests()) {
            activeRequest.cancel();
            activeRequest.clear();
        }
    }
    if (voiceInteractor == null) {
        mVoiceInteractor = null;
    } else {
        mVoiceInteractor = new VoiceInteractor(voiceInteractor, this, this, Looper.myLooper());
    }
}
Also used : Request(android.app.VoiceInteractor.Request) IVoiceInteractor(com.android.internal.app.IVoiceInteractor)

Aggregations

Request (android.app.VoiceInteractor.Request)5 IVoiceInteractor (com.android.internal.app.IVoiceInteractor)5