Felipe Leme | e348dc3 | 2018-11-05 12:35:29 -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.intelligence; |
| 18 | |
Felipe Leme | 284ad1c | 2018-11-15 18:16:12 -0800 | [diff] [blame] | 19 | import android.os.IBinder; |
Felipe Leme | ecb08be | 2018-11-27 15:48:47 -0800 | [diff] [blame] | 20 | import android.service.intelligence.ContentCaptureEventsRequest; |
Felipe Leme | e348dc3 | 2018-11-05 12:35:29 -0800 | [diff] [blame] | 21 | import android.service.intelligence.InteractionSessionId; |
| 22 | import android.service.intelligence.InteractionContext; |
Winson Chung | fbbb158 | 2018-11-13 16:09:01 -0800 | [diff] [blame] | 23 | import android.service.intelligence.SnapshotData; |
Felipe Leme | e348dc3 | 2018-11-05 12:35:29 -0800 | [diff] [blame] | 24 | |
Felipe Leme | 284ad1c | 2018-11-15 18:16:12 -0800 | [diff] [blame] | 25 | import android.view.autofill.AutofillId; |
Felipe Leme | bf93cdc | 2018-12-03 12:05:58 -0800 | [diff] [blame] | 26 | import android.view.autofill.AutofillValue; |
Felipe Leme | 7a53408 | 2018-11-05 15:03:04 -0800 | [diff] [blame] | 27 | import android.view.intelligence.ContentCaptureEvent; |
| 28 | |
| 29 | import java.util.List; |
| 30 | |
Felipe Leme | e348dc3 | 2018-11-05 12:35:29 -0800 | [diff] [blame] | 31 | /** |
| 32 | * Interface from the system to an intelligence service. |
| 33 | * |
| 34 | * @hide |
| 35 | */ |
Felipe Leme | ecb08be | 2018-11-27 15:48:47 -0800 | [diff] [blame] | 36 | // TODO(b/111276913): rename / update javadoc (once the final name is defined) |
Felipe Leme | e348dc3 | 2018-11-05 12:35:29 -0800 | [diff] [blame] | 37 | oneway interface IIntelligenceService { |
| 38 | |
| 39 | // Called when session is created (context not null) or destroyed (context null) |
| 40 | void onSessionLifecycle(in InteractionContext context, in InteractionSessionId sessionId); |
Felipe Leme | 7a53408 | 2018-11-05 15:03:04 -0800 | [diff] [blame] | 41 | |
Felipe Leme | ecb08be | 2018-11-27 15:48:47 -0800 | [diff] [blame] | 42 | void onContentCaptureEventsRequest(in InteractionSessionId sessionId, |
| 43 | in ContentCaptureEventsRequest request); |
Winson Chung | fbbb158 | 2018-11-13 16:09:01 -0800 | [diff] [blame] | 44 | |
| 45 | void onActivitySnapshot(in InteractionSessionId sessionId, |
| 46 | in SnapshotData snapshotData); |
Felipe Leme | 284ad1c | 2018-11-15 18:16:12 -0800 | [diff] [blame] | 47 | |
| 48 | void onAutofillRequest(in InteractionSessionId sessionId, in IBinder autofillManagerClient, |
Felipe Leme | bf93cdc | 2018-12-03 12:05:58 -0800 | [diff] [blame] | 49 | int autofilSessionId, in AutofillId focusedId, |
| 50 | in AutofillValue focusedValue, long requestTime); |
Felipe Leme | 284ad1c | 2018-11-15 18:16:12 -0800 | [diff] [blame] | 51 | |
| 52 | void onDestroyAutofillWindowsRequest(in InteractionSessionId sessionId); |
Felipe Leme | e348dc3 | 2018-11-05 12:35:29 -0800 | [diff] [blame] | 53 | } |