Home
last modified time | relevance | path

Searched refs:SecurityPolicy (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Email/tests/src/com/android/email/
DSecurityPolicyTests.java49 private SecurityPolicy mSecurityPolicy;
130 mSecurityPolicy = SecurityPolicy.getInstance(mMockContext); in testAggregator()
145 SecurityPolicy.setAccountPolicy(mMockContext, a3, p3ain, null); in testAggregator()
153 SecurityPolicy.setAccountPolicy(mMockContext, a3, p3bin, null); in testAggregator()
169 SecurityPolicy.setAccountPolicy(mMockContext, a4, p4in, null); in testAggregator()
195 SecurityPolicy.setAccountPolicy(mMockContext, a5, p5in, null); in testAggregator()
239 SecurityPolicy.setAccountPolicy(mMockContext, account, initial, null); in testSettingAccountPolicy()
245 SecurityPolicy.setAccountPolicy(mMockContext, account, updated, null); in testSettingAccountPolicy()
249 SecurityPolicy.clearAccountPolicy( in testSettingAccountPolicy()
287 SecurityPolicy.setAccountHoldFlag(mMockContext, a2, false); in testSetClearHoldFlag()
[all …]
/packages/apps/Email/provider_src/com/android/email/service/
DPolicyService.java27 import com.android.email.SecurityPolicy;
36 private SecurityPolicy mSecurityPolicy;
54 SecurityPolicy.setAccountHoldFlag(mContext, accountId, newState);
96 … final ComponentName adminName = new ComponentName(mContext, SecurityPolicy.PolicyAdmin.class);
121 mSecurityPolicy = SecurityPolicy.getInstance(this); in onBind()
DEmailBroadcastProcessorService.java40 import com.android.email.SecurityPolicy;
140 SecurityPolicy.onDeviceAdminReceiverMessage(this, message); in onHandleIntent()
/packages/apps/Email/provider_src/com/android/email/activity/setup/
DAccountSecurity.java39 import com.android.email.SecurityPolicy;
160 final SecurityPolicy security = SecurityPolicy.getInstance(this); in onCreate()
378 SecurityPolicy security = SecurityPolicy.getInstance(this); in tryAdvanceSecurity()
435 if ((inactiveReasons & SecurityPolicy.INACTIVE_NEED_PASSWORD) != 0) { in tryAdvanceSecurity()
455 if ((inactiveReasons & SecurityPolicy.INACTIVE_NEED_ENCRYPTION) != 0) { in tryAdvanceSecurity()
488 private static void repostNotification(final Account account, final SecurityPolicy security) { in repostNotification()
561 activity.mAccount, SecurityPolicy.getInstance(activity)); in onClick()
/packages/apps/Email/tests/src/com/android/email/provider/
DPolicyTests.java25 import com.android.email.SecurityPolicy;
73 SecurityPolicy.setAccountPolicy(mMockContext, account1, policy1, securitySyncKey); in testGetAccountIdWithPolicyKey()
76 SecurityPolicy.setAccountPolicy(mMockContext, account2, policy2, securitySyncKey); in testGetAccountIdWithPolicyKey()
97 SecurityPolicy.setAccountPolicy(mMockContext, account, policy, securitySyncKey); in testSetAndClearAccountPolicy()
108 SecurityPolicy.clearAccountPolicy(mMockContext, account); in testSetAndClearAccountPolicy()
127 SecurityPolicy.setAccountPolicy(mMockContext, acct, policy1, null); in testSetAttachmentFlagsForNewPolicy()
/packages/apps/Email/provider_src/com/android/email/
DSecurityPolicy.java58 public class SecurityPolicy { class
60 private static SecurityPolicy sInstance = null;
78 public synchronized static SecurityPolicy getInstance(Context context) { in getInstance()
80 sInstance = new SecurityPolicy(context.getApplicationContext()); in getInstance()
88 private SecurityPolicy(Context context) { in SecurityPolicy() method in SecurityPolicy
842 SecurityPolicy instance = SecurityPolicy.getInstance(context);
/packages/apps/Email/provider_src/com/android/email/provider/
DAccountReconciler.java35 import com.android.email.SecurityPolicy;
277 SecurityPolicy.getInstance(context).policiesUpdated(); in reconcileAccountsInternal()
DEmailProvider.java72 import com.android.email.SecurityPolicy;
6033 SecurityPolicy.getInstance(context).reducePolicies(); in uiDeleteAccount()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSettingsFragment.java50 import com.android.email.SecurityPolicy;
868 SecurityPolicy.setAccountHoldFlag(mContext, mAccount, false); in loadSettings()