Adrian Roos | ff2144c | 2014-03-28 13:02:19 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2014 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 | package android.service.trust; |
| 17 | |
| 18 | import android.os.Bundle; |
Adrian Roos | 8f21158 | 2014-07-29 15:09:57 +0200 | [diff] [blame] | 19 | import android.os.IBinder; |
Adrian Roos | ff2144c | 2014-03-28 13:02:19 +0100 | [diff] [blame] | 20 | import android.os.UserHandle; |
| 21 | |
| 22 | /** |
| 23 | * Communication channel from the TrustAgentService back to TrustManagerService. |
| 24 | * @hide |
| 25 | */ |
| 26 | oneway interface ITrustAgentServiceCallback { |
Adrian Roos | 7e03dfc | 2014-05-16 16:06:28 +0200 | [diff] [blame] | 27 | void grantTrust(CharSequence message, long durationMs, boolean initiatedByUser); |
Adrian Roos | ff2144c | 2014-03-28 13:02:19 +0100 | [diff] [blame] | 28 | void revokeTrust(); |
Adrian Roos | 7861c66 | 2014-07-25 15:37:28 +0200 | [diff] [blame] | 29 | void setManagingTrust(boolean managingTrust); |
Jim Miller | e303bf4 | 2014-08-26 17:12:29 -0700 | [diff] [blame] | 30 | void onConfigureCompleted(boolean result, IBinder token); |
Adrian Roos | ff2144c | 2014-03-28 13:02:19 +0100 | [diff] [blame] | 31 | } |