blob: 40852ea9719d27fe8a56055cb43d98007769c30d [file] [log] [blame]
Hai Zhangb7776682018-09-25 15:10:57 -07001/*
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
17package android.rolecontrollerservice;
18
19import android.app.role.IRoleManagerCallback;
20
21/**
22 * @hide
23 */
24oneway interface IRoleControllerService {
25
Hai Zhang71d70362019-02-04 16:17:38 -080026 void onAddRoleHolder(in String roleName, in String packageName, int flags,
Hai Zhangb7776682018-09-25 15:10:57 -070027 in IRoleManagerCallback callback);
28
Hai Zhang71d70362019-02-04 16:17:38 -080029 void onRemoveRoleHolder(in String roleName, in String packageName, int flags,
Hai Zhangb7776682018-09-25 15:10:57 -070030 in IRoleManagerCallback callback);
31
Hai Zhang71d70362019-02-04 16:17:38 -080032 void onClearRoleHolders(in String roleName, int flags, in IRoleManagerCallback callback);
Eugene Suslaa4200f822018-11-09 18:06:43 -080033
34 void onGrantDefaultRoles(in IRoleManagerCallback callback);
Eugene Susla34969062019-01-29 11:02:02 -080035
36 void onSmsKillSwitchToggled(boolean smsRestrictionEnabled);
Hai Zhangb7776682018-09-25 15:10:57 -070037}