Home | History | Annotate | Download | only in policy
      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. */
     24     boolean isDeviceManaged();
     25     boolean hasProfileOwner();
     26     boolean hasWorkProfile();
     27     String getDeviceOwnerName();
     28     String getProfileOwnerName();
     29     CharSequence getDeviceOwnerOrganizationName();
     30     CharSequence getWorkProfileOrganizationName();
     31     boolean isNetworkLoggingEnabled();
     32     boolean isVpnEnabled();
     33     boolean isVpnRestricted();
     34     /** Whether the VPN app should use branded VPN iconography.  */
     35     boolean isVpnBranded();
     36     String getPrimaryVpnName();
     37     String getWorkProfileVpnName();
     38     boolean hasCACertInCurrentUser();
     39     boolean hasCACertInWorkProfile();
     40     void onUserSwitched(int newUserId);
     41 
     42     public interface SecurityControllerCallback {
     43         void onStateChanged();
     44     }
     45 
     46 }
     47