use of com.android.settings.enterprise.ManageDeviceAdminPreferenceController 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);
}
use of com.android.settings.enterprise.ManageDeviceAdminPreferenceController 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);
}
use of com.android.settings.enterprise.ManageDeviceAdminPreferenceController 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);
}
use of com.android.settings.enterprise.ManageDeviceAdminPreferenceController 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);
}
use of com.android.settings.enterprise.ManageDeviceAdminPreferenceController in project platform_packages_apps_Settings by BlissRoms.
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);
}
Aggregations