Search in sources :

Example 21 with AssistUtils

use of com.android.internal.app.AssistUtils in project android_packages_apps_Settings by DirtyUnicorns.

the class DefaultAssistPicker method onAttach.

@Override
public void onAttach(Context context) {
    super.onAttach(context);
    mAssistUtils = new AssistUtils(context);
}
Also used : AssistUtils(com.android.internal.app.AssistUtils)

Example 22 with AssistUtils

use of com.android.internal.app.AssistUtils in project android_packages_apps_Settings by DirtyUnicorns.

the class DefaultVoiceInputPicker method onAttach.

@Override
public void onAttach(Context context) {
    super.onAttach(context);
    mAssistUtils = new AssistUtils(context);
    mHelper = new VoiceInputHelper(context);
    mHelper.buildUi();
    final ComponentName assist = getCurrentAssist();
    if (isCurrentAssistVoiceService(assist, getCurrentService(mHelper))) {
        mAssistRestrict = assist.flattenToShortString();
    }
}
Also used : AssistUtils(com.android.internal.app.AssistUtils) ComponentName(android.content.ComponentName)

Example 23 with AssistUtils

use of com.android.internal.app.AssistUtils in project android_packages_apps_Settings by crdroidandroid.

the class DefaultAssistPicker method onAttach.

@Override
public void onAttach(Context context) {
    super.onAttach(context);
    mAssistUtils = new AssistUtils(context);
}
Also used : AssistUtils(com.android.internal.app.AssistUtils)

Example 24 with AssistUtils

use of com.android.internal.app.AssistUtils in project android_packages_apps_Settings by SudaMod.

the class DefaultAssistPicker method onAttach.

@Override
public void onAttach(Context context) {
    super.onAttach(context);
    mAssistUtils = new AssistUtils(context);
}
Also used : AssistUtils(com.android.internal.app.AssistUtils)

Example 25 with AssistUtils

use of com.android.internal.app.AssistUtils in project android_packages_apps_Settings by SudaMod.

the class DefaultVoiceInputPicker method onAttach.

@Override
public void onAttach(Context context) {
    super.onAttach(context);
    mAssistUtils = new AssistUtils(context);
    mHelper = new VoiceInputHelper(context);
    mHelper.buildUi();
    final ComponentName assist = getCurrentAssist();
    if (isCurrentAssistVoiceService(assist, getCurrentService(mHelper))) {
        mAssistRestrict = assist.flattenToShortString();
    }
}
Also used : AssistUtils(com.android.internal.app.AssistUtils) ComponentName(android.content.ComponentName)

Aggregations

AssistUtils (com.android.internal.app.AssistUtils)27 ComponentName (android.content.ComponentName)12 Test (org.junit.Test)7 PackageInfo (android.content.pm.PackageInfo)5 Icon (android.graphics.drawable.Icon)5 RemoteException (android.os.RemoteException)5 KeyboardShortcutGroup (android.view.KeyboardShortcutGroup)5 KeyboardShortcutInfo (android.view.KeyboardShortcutInfo)5 ArrayList (java.util.ArrayList)5