• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
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  */
16 package com.android.systemui.statusbar.policy;
17 
18 import com.android.systemui.Dumpable;
19 import com.android.systemui.statusbar.policy.SecurityController.SecurityControllerCallback;
20 
21 public interface SecurityController extends CallbackController<SecurityControllerCallback>,
22         Dumpable {
23     /** Whether the device has device owner, even if not on this user. */
isDeviceManaged()24     boolean isDeviceManaged();
hasProfileOwner()25     boolean hasProfileOwner();
hasWorkProfile()26     boolean hasWorkProfile();
getDeviceOwnerName()27     String getDeviceOwnerName();
getProfileOwnerName()28     String getProfileOwnerName();
getDeviceOwnerOrganizationName()29     CharSequence getDeviceOwnerOrganizationName();
getWorkProfileOrganizationName()30     CharSequence getWorkProfileOrganizationName();
isNetworkLoggingEnabled()31     boolean isNetworkLoggingEnabled();
isVpnEnabled()32     boolean isVpnEnabled();
isVpnRestricted()33     boolean isVpnRestricted();
34     /** Whether the VPN app should use branded VPN iconography.  */
isVpnBranded()35     boolean isVpnBranded();
getPrimaryVpnName()36     String getPrimaryVpnName();
getWorkProfileVpnName()37     String getWorkProfileVpnName();
hasCACertInCurrentUser()38     boolean hasCACertInCurrentUser();
hasCACertInWorkProfile()39     boolean hasCACertInWorkProfile();
onUserSwitched(int newUserId)40     void onUserSwitched(int newUserId);
41 
42     public interface SecurityControllerCallback {
onStateChanged()43         void onStateChanged();
44     }
45 
46 }
47