blob: eb650324a942ee4b29621fefe5aa6d8ae6ded532 [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 Lemeaf4e4fd2019-01-15 08:32:42 -080019import android.os.IBinder;
Felipe Leme749b8892018-12-03 16:30:30 -080020import android.service.contentcapture.SnapshotData;
Felipe Lemeaa5088e2018-12-10 14:53:58 -080021import android.view.contentcapture.ContentCaptureContext;
Adam He3d0409b2019-01-15 14:22:04 -080022import android.view.contentcapture.UserDataRemovalRequest;
Felipe Leme749b8892018-12-03 16:30:30 -080023
Felipe Lemeb96878492018-12-17 12:22:29 -080024import com.android.internal.os.IResultReceiver;
25
Felipe Leme749b8892018-12-03 16:30:30 -080026import java.util.List;
27
28/**
29 * Interface from the system to a Content Capture service.
30 *
31 * @hide
32 */
33oneway interface IContentCaptureService {
Felipe Leme326f15a2019-02-19 09:42:24 -080034 void onConnected(IBinder callback, boolean verbose, boolean debug);
Felipe Lemeaf4e4fd2019-01-15 08:32:42 -080035 void onDisconnected();
Felipe Lemeb96878492018-12-17 12:22:29 -080036 void onSessionStarted(in ContentCaptureContext context, String sessionId, int uid,
37 in IResultReceiver clientReceiver);
38 void onSessionFinished(String sessionId);
Felipe Leme749b8892018-12-03 16:30:30 -080039 void onActivitySnapshot(String sessionId, in SnapshotData snapshotData);
Adam He3d0409b2019-01-15 14:22:04 -080040 void onUserDataRemovalRequest(in UserDataRemovalRequest request);
Felipe Leme749b8892018-12-03 16:30:30 -080041}