blob: 882fb2674bf17b58ea0d0c68676029f56afc1f83 [file] [log] [blame]
Felipe Lemee348dc32018-11-05 12:35:29 -08001/*
2 * Copyright (C) 2018 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.view.intelligence;
18
19import android.content.ComponentName;
20import android.os.IBinder;
Felipe Lemea7bdb142018-11-05 16:29:29 -080021import android.service.intelligence.InteractionSessionId;
Felipe Leme7a534082018-11-05 15:03:04 -080022import android.view.intelligence.ContentCaptureEvent;
23
Felipe Lemee348dc32018-11-05 12:35:29 -080024import com.android.internal.os.IResultReceiver;
25
Felipe Leme7a534082018-11-05 15:03:04 -080026import java.util.List;
27
Felipe Lemee348dc32018-11-05 12:35:29 -080028/**
29 * {@hide}
30 */
Felipe Lemeecb08be2018-11-27 15:48:47 -080031// TODO(b/111276913): rename once the final name is defined
Felipe Lemee348dc32018-11-05 12:35:29 -080032oneway interface IIntelligenceManager {
33 /**
34 * Starts a session, sending the "remote" sessionId to the receiver.
35 */
36 void startSession(int userId, IBinder activityToken, in ComponentName componentName,
Felipe Lemea7bdb142018-11-05 16:29:29 -080037 in InteractionSessionId sessionId, int flags, in IResultReceiver result);
Felipe Lemee348dc32018-11-05 12:35:29 -080038
39 /**
40 * Finishes a session.
41 */
Felipe Lemeb18e3172018-11-27 10:33:41 -080042 void finishSession(int userId, in InteractionSessionId sessionId,
43 in List<ContentCaptureEvent> events);
Felipe Leme7a534082018-11-05 15:03:04 -080044
45 /**
46 * Sends a batch of events
47 */
Felipe Lemea7bdb142018-11-05 16:29:29 -080048 void sendEvents(int userId, in InteractionSessionId sessionId,
49 in List<ContentCaptureEvent> events);
Felipe Lemee348dc32018-11-05 12:35:29 -080050}