blob: dbc28f72ca98766f0cf326b0dbf700d797875ebe [file] [log] [blame]
Dianne Hackborn91097de2014-04-04 18:02:06 -07001/*
2 * Copyright (C) 2014 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.service.voice;
18
Dianne Hackborn69c6adc2015-06-02 10:52:59 -070019import android.app.assist.AssistContent;
20import android.app.assist.AssistStructure;
Dianne Hackbornc03c9162014-05-02 10:45:59 -070021import android.content.Intent;
Dianne Hackborn27eac1d2015-03-16 17:15:53 -070022import android.graphics.Bitmap;
Dianne Hackbornae6688b2015-02-11 17:02:41 -080023import android.os.Bundle;
Dianne Hackborn91097de2014-04-04 18:02:06 -070024
Jorim Jaggi225d3b52015-04-01 11:18:57 -070025import com.android.internal.app.IVoiceInteractionSessionShowCallback;
26
Dianne Hackborn91097de2014-04-04 18:02:06 -070027/**
28 * @hide
29 */
Dianne Hackbornc03c9162014-05-02 10:45:59 -070030oneway interface IVoiceInteractionSession {
Jorim Jaggi225d3b52015-04-01 11:18:57 -070031 void show(in Bundle sessionArgs, int flags, IVoiceInteractionSessionShowCallback showCallback);
Dianne Hackbornffeecb12015-02-25 11:08:11 -080032 void hide();
Dianne Hackborn09d57fe2015-05-27 18:05:52 -070033 void handleAssist(in Bundle assistData, in AssistStructure structure, in AssistContent content);
Dianne Hackborn27eac1d2015-03-16 17:15:53 -070034 void handleScreenshot(in Bitmap screenshot);
Dianne Hackbornc03c9162014-05-02 10:45:59 -070035 void taskStarted(in Intent intent, int taskId);
36 void taskFinished(in Intent intent, int taskId);
37 void closeSystemDialogs();
Jorim Jaggi19695d92015-07-20 15:51:40 -070038 void onLockscreenShown();
Dianne Hackbornc03c9162014-05-02 10:45:59 -070039 void destroy();
Dianne Hackborn91097de2014-04-04 18:02:06 -070040}