blob: f32432f099c0a3aa42b6be4e9434e2186d1043ac [file] [log] [blame]
Felipe Leme749b8892018-12-03 16:30:30 -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.service.contentcapture;
18
Felipe Leme141864d2019-02-27 17:01:51 -080019import android.content.ComponentName;
Felipe Lemeaf4e4fd2019-01-15 08:32:42 -080020import android.os.IBinder;
Felipe Leme141864d2019-02-27 17:01:51 -080021import android.service.contentcapture.ActivityEvent;
Felipe Leme749b8892018-12-03 16:30:30 -080022import android.service.contentcapture.SnapshotData;
Felipe Lemeaa5088e2018-12-10 14:53:58 -080023import android.view.contentcapture.ContentCaptureContext;
Adam He3d0409b2019-01-15 14:22:04 -080024import android.view.contentcapture.UserDataRemovalRequest;
Felipe Leme749b8892018-12-03 16:30:30 -080025
Felipe Lemeb96878492018-12-17 12:22:29 -080026import com.android.internal.os.IResultReceiver;
27
Felipe Leme749b8892018-12-03 16:30:30 -080028import java.util.List;
29
30/**
31 * Interface from the system to a Content Capture service.
32 *
33 * @hide
34 */
35oneway interface IContentCaptureService {
Felipe Leme326f15a2019-02-19 09:42:24 -080036 void onConnected(IBinder callback, boolean verbose, boolean debug);
Felipe Lemeaf4e4fd2019-01-15 08:32:42 -080037 void onDisconnected();
Felipe Lemeb96878492018-12-17 12:22:29 -080038 void onSessionStarted(in ContentCaptureContext context, String sessionId, int uid,
39 in IResultReceiver clientReceiver);
40 void onSessionFinished(String sessionId);
Felipe Leme749b8892018-12-03 16:30:30 -080041 void onActivitySnapshot(String sessionId, in SnapshotData snapshotData);
Adam He3d0409b2019-01-15 14:22:04 -080042 void onUserDataRemovalRequest(in UserDataRemovalRequest request);
Felipe Leme141864d2019-02-27 17:01:51 -080043 void onActivityEvent(in ActivityEvent event);
Felipe Leme749b8892018-12-03 16:30:30 -080044}