Search in sources :

Example 1 with TrustAgentListPreferenceController

use of com.android.settings.security.trustagent.TrustAgentListPreferenceController 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 2 with TrustAgentListPreferenceController

use of com.android.settings.security.trustagent.TrustAgentListPreferenceController in project Resurrection_packages_apps_Settings by ResurrectionRemix.

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 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));
    securityPreferenceControllers.add(new ChangeScreenLockPreferenceController(context, host));
    securityPreferenceControllers.add(new AppLockPreferenceController(context));
    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));
    profileSecurityControllers.add(new FingerprintProfileStatusPreferenceController(context));
    controllers.add(new PreferenceCategoryController(context, WORK_PROFILE_SECURITY_CATEGORY).setChildren(profileSecurityControllers));
    controllers.addAll(profileSecurityControllers);
    return controllers;
}
Also used : AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) EnterprisePrivacyPreferenceController(com.android.settings.enterprise.EnterprisePrivacyPreferenceController) AppLockPreferenceController(com.android.settings.security.applock.AppLockPreferenceController) 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) PreferenceCategoryController(com.android.settings.widget.PreferenceCategoryController)

Aggregations

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 EnterprisePrivacyPreferenceController (com.android.settings.enterprise.EnterprisePrivacyPreferenceController)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 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