blob: 6148febb38850b791b5eedb2d77b3a1b68c2ccc4 [file] [log] [blame]
Jason Monk3d5f5512014-07-25 11:17:28 -04001/*
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 com.android.systemui.statusbar.policy;
17
18public interface SecurityController {
19
20 boolean hasDeviceOwner();
Selim Cinek24ac55e2014-08-27 12:51:45 +020021 boolean hasProfileOwner();
Jason Monk3d5f5512014-07-25 11:17:28 -040022 String getDeviceOwnerName();
Selim Cinek24ac55e2014-08-27 12:51:45 +020023 String getProfileOwnerName();
Jason Monk3d5f5512014-07-25 11:17:28 -040024 boolean isVpnEnabled();
25 String getVpnApp();
26 boolean isLegacyVpn();
27 String getLegacyVpnName();
Jeff Davidson05542602014-08-11 14:07:27 -070028 void disconnectFromVpn();
Selim Cinek24ac55e2014-08-27 12:51:45 +020029 void onUserSwitched(int newUserId);
Jason Monk3d5f5512014-07-25 11:17:28 -040030
Selim Cinek24ac55e2014-08-27 12:51:45 +020031 void addCallback(SecurityControllerCallback callback);
32 void removeCallback(SecurityControllerCallback callback);
Jason Monk3d5f5512014-07-25 11:17:28 -040033
Selim Cinek24ac55e2014-08-27 12:51:45 +020034 public interface SecurityControllerCallback {
35 void onStateChanged();
Jason Monk3d5f5512014-07-25 11:17:28 -040036 }
37
38}