blob: e1e022d8ac77b746637cd492873bf6b4262cacf1 [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();
Selim Cinek24ac55e2014-08-27 12:51:45 +020025 void onUserSwitched(int newUserId);
Jason Monk3d5f5512014-07-25 11:17:28 -040026
Selim Cinek24ac55e2014-08-27 12:51:45 +020027 void addCallback(SecurityControllerCallback callback);
28 void removeCallback(SecurityControllerCallback callback);
Jason Monk3d5f5512014-07-25 11:17:28 -040029
Selim Cinek24ac55e2014-08-27 12:51:45 +020030 public interface SecurityControllerCallback {
31 void onStateChanged();
Jason Monk3d5f5512014-07-25 11:17:28 -040032 }
33
34}