191097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn/* 291097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn * Copyright (C) 2014 The Android Open Source Project 391097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn * 491097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn * Licensed under the Apache License, Version 2.0 (the "License"); 591097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn * you may not use this file except in compliance with the License. 691097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn * You may obtain a copy of the License at 791097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn * 891097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn * http://www.apache.org/licenses/LICENSE-2.0 991097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn * 1091097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn * Unless required by applicable law or agreed to in writing, software 1191097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn * distributed under the License is distributed on an "AS IS" BASIS, 1291097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1391097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn * See the License for the specific language governing permissions and 1491097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn * limitations under the License. 1591097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn */ 1691097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn 1791097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackbornpackage com.android.internal.app; 1891097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn 193d07c94c393831091958fe6a98811843db8973bdDianne Hackbornimport android.app.VoiceInteractor; 2091097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackbornimport android.os.Bundle; 2191097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn 2291097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackbornimport com.android.internal.app.IVoiceInteractorCallback; 2391097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackbornimport com.android.internal.app.IVoiceInteractorRequest; 2491097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn 2591097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn/** 2691097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn * IPC interface for an application to perform calls through a VoiceInteractor. 2791097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn */ 2891097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborninterface IVoiceInteractor { 2991097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn IVoiceInteractorRequest startConfirmation(String callingPackage, 306cf397508eb7edef13baefad942a59b058ed450bJames Cook IVoiceInteractorCallback callback, in VoiceInteractor.Prompt prompt, in Bundle extras); 313d07c94c393831091958fe6a98811843db8973bdDianne Hackborn IVoiceInteractorRequest startPickOption(String callingPackage, 326cf397508eb7edef13baefad942a59b058ed450bJames Cook IVoiceInteractorCallback callback, in VoiceInteractor.Prompt prompt, 333d07c94c393831091958fe6a98811843db8973bdDianne Hackborn in VoiceInteractor.PickOptionRequest.Option[] options, in Bundle extras); 34d3fdb8bed8e836786253f9cd5ab640c7c5ed8501Barnaby James IVoiceInteractorRequest startCompleteVoice(String callingPackage, 356cf397508eb7edef13baefad942a59b058ed450bJames Cook IVoiceInteractorCallback callback, in VoiceInteractor.Prompt prompt, in Bundle extras); 36a2c076d54048258cf88ab14551ce5fdf5a09c6e8Dianne Hackborn IVoiceInteractorRequest startAbortVoice(String callingPackage, 376cf397508eb7edef13baefad942a59b058ed450bJames Cook IVoiceInteractorCallback callback, in VoiceInteractor.Prompt prompt, in Bundle extras); 3891097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn IVoiceInteractorRequest startCommand(String callingPackage, 3991097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn IVoiceInteractorCallback callback, String command, in Bundle extras); 4091097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn boolean[] supportsCommands(String callingPackage, in String[] commands); 4191097de49b0f683b00e26a75dbc0ac6082344137Dianne Hackborn} 42