use of com.android.internal.app.AssistUtils in project android_packages_apps_Settings by SudaMod.
the class DefaultAssistPreferenceControllerTest method getSettingIntent_doNotShowSetting_shouldNotTryToGetSettingIntent.
@Test
public void getSettingIntent_doNotShowSetting_shouldNotTryToGetSettingIntent() {
final AssistUtils assistUtils = mock(AssistUtils.class);
final DefaultAssistPreferenceController controller = new DefaultAssistPreferenceController(mContext, TEST_KEY, false);
ReflectionHelpers.setField(controller, "mAssistUtils", assistUtils);
controller.getSettingIntent(null);
verifyZeroInteractions(assistUtils);
}
use of com.android.internal.app.AssistUtils in project platform_packages_apps_Settings by BlissRoms.
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();
}
}
Aggregations