blob: a472eacb28a189aec94bf1f57b53b77c3cd586fa [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
Hai Zhanga4959e52019-03-06 12:21:07 -080017package android.app.role;
Hai Zhangb7776682018-09-25 15:10:57 -070018
Hai Zhang26f37d32019-03-06 15:58:39 -080019import android.os.RemoteCallback;
Hai Zhangb7776682018-09-25 15:10:57 -070020
21/**
22 * @hide
23 */
Hai Zhanga4959e52019-03-06 12:21:07 -080024oneway interface IRoleController {
25
Hai Zhangf5e8ccd2019-03-06 20:12:24 -080026 void grantDefaultRoles(in RemoteCallback callback);
Hai Zhangb7776682018-09-25 15:10:57 -070027
Hai Zhang71d70362019-02-04 16:17:38 -080028 void onAddRoleHolder(in String roleName, in String packageName, int flags,
Hai Zhangf5e8ccd2019-03-06 20:12:24 -080029 in RemoteCallback callback);
Hai Zhangb7776682018-09-25 15:10:57 -070030
Hai Zhang71d70362019-02-04 16:17:38 -080031 void onRemoveRoleHolder(in String roleName, in String packageName, int flags,
Hai Zhangf5e8ccd2019-03-06 20:12:24 -080032 in RemoteCallback callback);
Hai Zhangb7776682018-09-25 15:10:57 -070033
Hai Zhangf5e8ccd2019-03-06 20:12:24 -080034 void onClearRoleHolders(in String roleName, int flags, in RemoteCallback callback);
Eugene Suslaa4200f822018-11-09 18:06:43 -080035
Hai Zhanga4959e52019-03-06 12:21:07 -080036 void onSmsKillSwitchToggled(boolean enabled);
Hai Zhang26f37d32019-03-06 15:58:39 -080037
38 void isApplicationQualifiedForRole(in String roleName, in String packageName,
Hai Zhangf5e8ccd2019-03-06 20:12:24 -080039 in RemoteCallback callback);
Hai Zhang26f37d32019-03-06 15:58:39 -080040
41 void isRoleVisible(in String roleName, in RemoteCallback callback);
Hai Zhangb7776682018-09-25 15:10:57 -070042}