1ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos/*
2ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos * Copyright (C) 2014 The Android Open Source Project
3ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos *
4ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos * Licensed under the Apache License, Version 2.0 (the "License");
5ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos * you may not use this file except in compliance with the License.
6ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos * You may obtain a copy of the License at
7ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos *
8ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos *      http://www.apache.org/licenses/LICENSE-2.0
9ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos *
10ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos * Unless required by applicable law or agreed to in writing, software
11ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos * distributed under the License is distributed on an "AS IS" BASIS,
12ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos * See the License for the specific language governing permissions and
14ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos * limitations under the License.
15ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos */
16ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roospackage android.service.trust;
17ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos
18ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roosimport android.os.Bundle;
198f21158fe64eb93ff005dc1b831b282b95531023Adrian Roosimport android.os.IBinder;
20ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roosimport android.os.UserHandle;
21ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos
22ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos/**
23ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos * Communication channel from the TrustAgentService back to TrustManagerService.
24ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos * @hide
25ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos */
26ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roosoneway interface ITrustAgentServiceCallback {
2794e15a59b757678949cccb5d783bee1638e84697Adrian Roos    void grantTrust(CharSequence message, long durationMs, int flags);
28ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos    void revokeTrust();
297861c663fd64af33ec2a4c5ad653c806dc8bd994Adrian Roos    void setManagingTrust(boolean managingTrust);
30e303bf443532c2ad756260133f00747bcff11e69Jim Miller    void onConfigureCompleted(boolean result, IBinder token);
31ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos}
32