Felipe Leme | 749b889 | 2018-12-03 16:30:30 -0800 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package android.service.contentcapture; |
| 18 | |
Felipe Leme | af4e4fd | 2019-01-15 08:32:42 -0800 | [diff] [blame] | 19 | import android.os.IBinder; |
Felipe Leme | 749b889 | 2018-12-03 16:30:30 -0800 | [diff] [blame] | 20 | import android.service.contentcapture.SnapshotData; |
Felipe Leme | aa5088e | 2018-12-10 14:53:58 -0800 | [diff] [blame] | 21 | import android.view.contentcapture.ContentCaptureContext; |
Adam He | 3d0409b | 2019-01-15 14:22:04 -0800 | [diff] [blame] | 22 | import android.view.contentcapture.UserDataRemovalRequest; |
Felipe Leme | 749b889 | 2018-12-03 16:30:30 -0800 | [diff] [blame] | 23 | |
Felipe Leme | b9687849 | 2018-12-17 12:22:29 -0800 | [diff] [blame] | 24 | import com.android.internal.os.IResultReceiver; |
| 25 | |
Felipe Leme | 749b889 | 2018-12-03 16:30:30 -0800 | [diff] [blame] | 26 | import java.util.List; |
| 27 | |
| 28 | /** |
| 29 | * Interface from the system to a Content Capture service. |
| 30 | * |
| 31 | * @hide |
| 32 | */ |
| 33 | oneway interface IContentCaptureService { |
Felipe Leme | 326f15a | 2019-02-19 09:42:24 -0800 | [diff] [blame] | 34 | void onConnected(IBinder callback, boolean verbose, boolean debug); |
Felipe Leme | af4e4fd | 2019-01-15 08:32:42 -0800 | [diff] [blame] | 35 | void onDisconnected(); |
Felipe Leme | b9687849 | 2018-12-17 12:22:29 -0800 | [diff] [blame] | 36 | void onSessionStarted(in ContentCaptureContext context, String sessionId, int uid, |
| 37 | in IResultReceiver clientReceiver); |
| 38 | void onSessionFinished(String sessionId); |
Felipe Leme | 749b889 | 2018-12-03 16:30:30 -0800 | [diff] [blame] | 39 | void onActivitySnapshot(String sessionId, in SnapshotData snapshotData); |
Adam He | 3d0409b | 2019-01-15 14:22:04 -0800 | [diff] [blame] | 40 | void onUserDataRemovalRequest(in UserDataRemovalRequest request); |
Felipe Leme | 749b889 | 2018-12-03 16:30:30 -0800 | [diff] [blame] | 41 | } |