Search in sources :

Example 1 with EnterprisePrivacyPreferenceController

use of com.android.settings.enterprise.EnterprisePrivacyPreferenceController in project android_packages_apps_Settings by SudaMod.

the class SecuritySettings method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    final Activity activity = getActivity();
    mSubscriptionManager = SubscriptionManager.from(activity);
    mLockPatternUtils = new LockPatternUtils(activity);
    mManagedPasswordProvider = ManagedLockPasswordProvider.get(activity, MY_USER_ID);
    mDPM = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE);
    mUm = UserManager.get(activity);
    mChooseLockSettingsHelper = new ChooseLockSettingsHelper(activity);
    mDashboardFeatureProvider = FeatureFactory.getFactory(activity).getDashboardFeatureProvider(activity);
    mSecurityFeatureProvider = FeatureFactory.getFactory(activity).getSecurityFeatureProvider();
    mTrustAgentManager = mSecurityFeatureProvider.getTrustAgentManager();
    if (savedInstanceState != null && savedInstanceState.containsKey(TRUST_AGENT_CLICK_INTENT)) {
        mTrustAgentClickIntent = savedInstanceState.getParcelable(TRUST_AGENT_CLICK_INTENT);
    }
    mManageDeviceAdminPreferenceController = new ManageDeviceAdminPreferenceController(activity);
    mEnterprisePrivacyPreferenceController = new EnterprisePrivacyPreferenceController(activity, null);
    mLockScreenNotificationPreferenceController = new LockScreenNotificationPreferenceController(activity);
}
Also used : ChooseLockSettingsHelper(com.android.settings.password.ChooseLockSettingsHelper) ManageDeviceAdminPreferenceController(com.android.settings.enterprise.ManageDeviceAdminPreferenceController) EnterprisePrivacyPreferenceController(com.android.settings.enterprise.EnterprisePrivacyPreferenceController) LineageLockPatternUtils(org.lineageos.internal.util.LineageLockPatternUtils) LockPatternUtils(com.android.internal.widget.LockPatternUtils) Activity(android.app.Activity) LockScreenNotificationPreferenceController(com.android.settings.notification.LockScreenNotificationPreferenceController)

Example 2 with EnterprisePrivacyPreferenceController

use of com.android.settings.enterprise.EnterprisePrivacyPreferenceController in project android_packages_apps_Settings by DirtyUnicorns.

the class SecuritySettings method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    final Activity activity = getActivity();
    mSubscriptionManager = SubscriptionManager.from(activity);
    mLockPatternUtils = new LockPatternUtils(activity);
    mManagedPasswordProvider = ManagedLockPasswordProvider.get(activity, MY_USER_ID);
    mDPM = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE);
    mUm = UserManager.get(activity);
    mChooseLockSettingsHelper = new ChooseLockSettingsHelper(activity);
    mDashboardFeatureProvider = FeatureFactory.getFactory(activity).getDashboardFeatureProvider(activity);
    mSecurityFeatureProvider = FeatureFactory.getFactory(activity).getSecurityFeatureProvider();
    mTrustAgentManager = mSecurityFeatureProvider.getTrustAgentManager();
    if (savedInstanceState != null && savedInstanceState.containsKey(TRUST_AGENT_CLICK_INTENT)) {
        mTrustAgentClickIntent = savedInstanceState.getParcelable(TRUST_AGENT_CLICK_INTENT);
    }
    mManageDeviceAdminPreferenceController = new ManageDeviceAdminPreferenceController(activity);
    mEnterprisePrivacyPreferenceController = new EnterprisePrivacyPreferenceController(activity, null);
    mLockScreenNotificationPreferenceController = new LockScreenNotificationPreferenceController(activity);
}
Also used : ChooseLockSettingsHelper(com.android.settings.password.ChooseLockSettingsHelper) ManageDeviceAdminPreferenceController(com.android.settings.enterprise.ManageDeviceAdminPreferenceController) EnterprisePrivacyPreferenceController(com.android.settings.enterprise.EnterprisePrivacyPreferenceController) LockPatternUtils(com.android.internal.widget.LockPatternUtils) Activity(android.app.Activity) LockScreenNotificationPreferenceController(com.android.settings.notification.LockScreenNotificationPreferenceController)

Example 3 with EnterprisePrivacyPreferenceController

use of com.android.settings.enterprise.EnterprisePrivacyPreferenceController in project android_packages_apps_Settings by omnirom.

the class SecuritySettings method buildPreferenceControllers.

private static List<AbstractPreferenceController> buildPreferenceControllers(Context context, Lifecycle lifecycle, SecuritySettings host) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    controllers.add(new EnterprisePrivacyPreferenceController(context));
    controllers.add(new FinancedPrivacyPreferenceController(context));
    controllers.add(new ManageTrustAgentsPreferenceController(context));
    controllers.add(new ScreenPinningPreferenceController(context));
    controllers.add(new SimLockPreferenceController(context));
    controllers.add(new EncryptionStatusPreferenceController(context, PREF_KEY_ENCRYPTION_SECURITY_PAGE));
    controllers.add(new TrustAgentListPreferenceController(context, host, lifecycle));
    final List<AbstractPreferenceController> securityPreferenceControllers = new ArrayList<>();
    securityPreferenceControllers.add(new FaceStatusPreferenceController(context, lifecycle));
    securityPreferenceControllers.add(new FingerprintStatusPreferenceController(context, lifecycle));
    securityPreferenceControllers.add(new CombinedBiometricStatusPreferenceController(context, lifecycle));
    securityPreferenceControllers.add(new ChangeScreenLockPreferenceController(context, host));
    controllers.add(new PreferenceCategoryController(context, SECURITY_CATEGORY).setChildren(securityPreferenceControllers));
    controllers.addAll(securityPreferenceControllers);
    final List<AbstractPreferenceController> profileSecurityControllers = new ArrayList<>();
    profileSecurityControllers.add(new ChangeProfileScreenLockPreferenceController(context, host));
    profileSecurityControllers.add(new LockUnificationPreferenceController(context, host));
    profileSecurityControllers.add(new VisiblePatternProfilePreferenceController(context, lifecycle));
    profileSecurityControllers.add(new FaceProfileStatusPreferenceController(context, lifecycle));
    profileSecurityControllers.add(new FingerprintProfileStatusPreferenceController(context, lifecycle));
    profileSecurityControllers.add(new CombinedBiometricProfileStatusPreferenceController(context, lifecycle));
    controllers.add(new PreferenceCategoryController(context, WORK_PROFILE_SECURITY_CATEGORY).setChildren(profileSecurityControllers));
    controllers.addAll(profileSecurityControllers);
    return controllers;
}
Also used : CombinedBiometricProfileStatusPreferenceController(com.android.settings.biometrics.combination.CombinedBiometricProfileStatusPreferenceController) AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) EnterprisePrivacyPreferenceController(com.android.settings.enterprise.EnterprisePrivacyPreferenceController) FingerprintProfileStatusPreferenceController(com.android.settings.biometrics.fingerprint.FingerprintProfileStatusPreferenceController) ArrayList(java.util.ArrayList) TrustAgentListPreferenceController(com.android.settings.security.trustagent.TrustAgentListPreferenceController) ManageTrustAgentsPreferenceController(com.android.settings.security.trustagent.ManageTrustAgentsPreferenceController) FaceProfileStatusPreferenceController(com.android.settings.biometrics.face.FaceProfileStatusPreferenceController) FaceStatusPreferenceController(com.android.settings.biometrics.face.FaceStatusPreferenceController) FingerprintStatusPreferenceController(com.android.settings.biometrics.fingerprint.FingerprintStatusPreferenceController) CombinedBiometricStatusPreferenceController(com.android.settings.biometrics.combination.CombinedBiometricStatusPreferenceController) FinancedPrivacyPreferenceController(com.android.settings.enterprise.FinancedPrivacyPreferenceController) PreferenceCategoryController(com.android.settings.widget.PreferenceCategoryController)

Example 4 with EnterprisePrivacyPreferenceController

use of com.android.settings.enterprise.EnterprisePrivacyPreferenceController in project android_packages_apps_Settings by omnirom.

the class SecuritySettings method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    final Activity activity = getActivity();
    mSubscriptionManager = SubscriptionManager.from(activity);
    mLockPatternUtils = new LockPatternUtils(activity);
    mManagedPasswordProvider = ManagedLockPasswordProvider.get(activity, MY_USER_ID);
    mDPM = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE);
    mUm = UserManager.get(activity);
    mChooseLockSettingsHelper = new ChooseLockSettingsHelper(activity);
    mDashboardFeatureProvider = FeatureFactory.getFactory(activity).getDashboardFeatureProvider(activity);
    mSecurityFeatureProvider = FeatureFactory.getFactory(activity).getSecurityFeatureProvider();
    mTrustAgentManager = mSecurityFeatureProvider.getTrustAgentManager();
    if (savedInstanceState != null && savedInstanceState.containsKey(TRUST_AGENT_CLICK_INTENT)) {
        mTrustAgentClickIntent = savedInstanceState.getParcelable(TRUST_AGENT_CLICK_INTENT);
    }
    mManageDeviceAdminPreferenceController = new ManageDeviceAdminPreferenceController(activity);
    mEnterprisePrivacyPreferenceController = new EnterprisePrivacyPreferenceController(activity, null);
    mLockScreenNotificationPreferenceController = new LockScreenNotificationPreferenceController(activity);
}
Also used : ChooseLockSettingsHelper(com.android.settings.password.ChooseLockSettingsHelper) ManageDeviceAdminPreferenceController(com.android.settings.enterprise.ManageDeviceAdminPreferenceController) EnterprisePrivacyPreferenceController(com.android.settings.enterprise.EnterprisePrivacyPreferenceController) LockPatternUtils(com.android.internal.widget.LockPatternUtils) Activity(android.app.Activity) LockScreenNotificationPreferenceController(com.android.settings.notification.LockScreenNotificationPreferenceController)

Example 5 with EnterprisePrivacyPreferenceController

use of com.android.settings.enterprise.EnterprisePrivacyPreferenceController in project android_packages_apps_Settings by crdroidandroid.

the class SecuritySettings method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    final Activity activity = getActivity();
    mSubscriptionManager = SubscriptionManager.from(activity);
    mLockPatternUtils = new LockPatternUtils(activity);
    mManagedPasswordProvider = ManagedLockPasswordProvider.get(activity, MY_USER_ID);
    mDPM = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE);
    mUm = UserManager.get(activity);
    mChooseLockSettingsHelper = new ChooseLockSettingsHelper(activity);
    mDashboardFeatureProvider = FeatureFactory.getFactory(activity).getDashboardFeatureProvider(activity);
    mSecurityFeatureProvider = FeatureFactory.getFactory(activity).getSecurityFeatureProvider();
    mTrustAgentManager = mSecurityFeatureProvider.getTrustAgentManager();
    if (savedInstanceState != null && savedInstanceState.containsKey(TRUST_AGENT_CLICK_INTENT)) {
        mTrustAgentClickIntent = savedInstanceState.getParcelable(TRUST_AGENT_CLICK_INTENT);
    }
    mManageDeviceAdminPreferenceController = new ManageDeviceAdminPreferenceController(activity);
    mEnterprisePrivacyPreferenceController = new EnterprisePrivacyPreferenceController(activity, null);
    mLockScreenNotificationPreferenceController = new LockScreenNotificationPreferenceController(activity);
}
Also used : ChooseLockSettingsHelper(com.android.settings.password.ChooseLockSettingsHelper) ManageDeviceAdminPreferenceController(com.android.settings.enterprise.ManageDeviceAdminPreferenceController) EnterprisePrivacyPreferenceController(com.android.settings.enterprise.EnterprisePrivacyPreferenceController) LineageLockPatternUtils(org.lineageos.internal.util.LineageLockPatternUtils) LockPatternUtils(com.android.internal.widget.LockPatternUtils) Activity(android.app.Activity) LockScreenNotificationPreferenceController(com.android.settings.notification.LockScreenNotificationPreferenceController)

Aggregations

EnterprisePrivacyPreferenceController (com.android.settings.enterprise.EnterprisePrivacyPreferenceController)7 Activity (android.app.Activity)5 LockPatternUtils (com.android.internal.widget.LockPatternUtils)5 ManageDeviceAdminPreferenceController (com.android.settings.enterprise.ManageDeviceAdminPreferenceController)5 LockScreenNotificationPreferenceController (com.android.settings.notification.LockScreenNotificationPreferenceController)5 ChooseLockSettingsHelper (com.android.settings.password.ChooseLockSettingsHelper)5 FaceProfileStatusPreferenceController (com.android.settings.biometrics.face.FaceProfileStatusPreferenceController)2 FaceStatusPreferenceController (com.android.settings.biometrics.face.FaceStatusPreferenceController)2 FingerprintProfileStatusPreferenceController (com.android.settings.biometrics.fingerprint.FingerprintProfileStatusPreferenceController)2 FingerprintStatusPreferenceController (com.android.settings.biometrics.fingerprint.FingerprintStatusPreferenceController)2 ManageTrustAgentsPreferenceController (com.android.settings.security.trustagent.ManageTrustAgentsPreferenceController)2 TrustAgentListPreferenceController (com.android.settings.security.trustagent.TrustAgentListPreferenceController)2 PreferenceCategoryController (com.android.settings.widget.PreferenceCategoryController)2 AbstractPreferenceController (com.android.settingslib.core.AbstractPreferenceController)2 ArrayList (java.util.ArrayList)2 LineageLockPatternUtils (org.lineageos.internal.util.LineageLockPatternUtils)2 CombinedBiometricProfileStatusPreferenceController (com.android.settings.biometrics.combination.CombinedBiometricProfileStatusPreferenceController)1 CombinedBiometricStatusPreferenceController (com.android.settings.biometrics.combination.CombinedBiometricStatusPreferenceController)1 FinancedPrivacyPreferenceController (com.android.settings.enterprise.FinancedPrivacyPreferenceController)1 AppLockPreferenceController (com.android.settings.security.applock.AppLockPreferenceController)1