ITrustAgentServiceCallback.aidl revision ff2144ccb4215acf4587fc628493b3d49dca6043
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;
19ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roosimport android.os.UserHandle;
20ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos
21ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos/**
22ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos * Communication channel from the TrustAgentService back to TrustManagerService.
23ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos * @hide
24ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos */
25ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roosoneway interface ITrustAgentServiceCallback {
26ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos    void enableTrust(String message, long durationMs, boolean initiatedByUser);
27ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos    void revokeTrust();
28ff2144ccb4215acf4587fc628493b3d49dca6043Adrian Roos}
29