IVoiceInteractionSession.aidl revision 19695d97118d74aa7f54ba09b178e65378825cc0
175ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen/*
275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen * Copyright (C) 2014 The Android Open Source Project
304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *
475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen * Licensed under the Apache License, Version 2.0 (the "License");
504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * you may not use this file except in compliance with the License.
604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * You may obtain a copy of the License at
775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen *
875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen *      http://www.apache.org/licenses/LICENSE-2.0
975ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen *
1075ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen * Unless required by applicable law or agreed to in writing, software
1175ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen * distributed under the License is distributed on an "AS IS" BASIS,
1275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1375ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen * See the License for the specific language governing permissions and
1475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen * limitations under the License.
1575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen */
1675ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen
1775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenpackage android.service.voice;
1875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen
1975ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenimport android.app.assist.AssistContent;
2075ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenimport android.app.assist.AssistStructure;
2175ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenimport android.content.Intent;
2275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenimport android.graphics.Bitmap;
2375ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenimport android.os.Bundle;
2475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen
2575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenimport com.android.internal.app.IVoiceInteractionSessionShowCallback;
2675ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen
2775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen/**
2875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen * @hide
2975ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen */
3075ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenoneway interface IVoiceInteractionSession {
3175ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen    void show(in Bundle sessionArgs, int flags, IVoiceInteractionSessionShowCallback showCallback);
3275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen    void hide();
3375ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen    void handleAssist(in Bundle assistData, in AssistStructure structure, in AssistContent content);
3475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen    void handleScreenshot(in Bitmap screenshot);
3575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen    void taskStarted(in Intent intent, int taskId);
3675ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen    void taskFinished(in Intent intent, int taskId);
3775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen    void closeSystemDialogs();
3875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen    void onLockscreenShown();
3975ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen    void destroy();
4075ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen}
4175ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen