blob: ec66cc8d3623ebc2b29248bfe528167b722cc3bb [file] [log] [blame]
Adrian Roosff2144c2014-03-28 13:02:19 +01001/*
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 */
16package android.service.trust;
17
18import android.os.Bundle;
Adrian Roos8f211582014-07-29 15:09:57 +020019import android.os.IBinder;
Adrian Roosff2144c2014-03-28 13:02:19 +010020import android.os.UserHandle;
21
22/**
23 * Communication channel from the TrustAgentService back to TrustManagerService.
24 * @hide
25 */
26oneway interface ITrustAgentServiceCallback {
Adrian Roos94e15a52015-04-16 12:23:18 -070027 void grantTrust(CharSequence message, long durationMs, int flags);
Adrian Roosff2144c2014-03-28 13:02:19 +010028 void revokeTrust();
Adrian Roos7861c662014-07-25 15:37:28 +020029 void setManagingTrust(boolean managingTrust);
Jim Millere303bf42014-08-26 17:12:29 -070030 void onConfigureCompleted(boolean result, IBinder token);
Adrian Roosff2144c2014-03-28 13:02:19 +010031}