Home
last modified time | relevance | path

Searched refs:Policy (Results 1 – 25 of 28) sorted by relevance

12

/packages/apps/Email/tests/src/com/android/email/
DSecurityPolicyTests.java34 import com.android.emailcommon.provider.Policy;
55 private static final Policy EMPTY_POLICY = new Policy();
107 private Policy setupPolicy(int minPasswordLength, int passwordMode, int maxPasswordFails, in setupPolicy()
112 Policy policy = new Policy(); in setupPolicy()
143 Policy p3ain = setupPolicy(10, Policy.PASSWORD_MODE_SIMPLE, 0, 0, false, 0, 0, 0, in testAggregator()
146 Policy p3aout = mSecurityPolicy.computeAggregatePolicy(); in testAggregator()
151 Policy p3bin = setupPolicy(10, Policy.PASSWORD_MODE_SIMPLE, 15, 16, false, 6, 2, 3, in testAggregator()
154 Policy p3bout = mSecurityPolicy.computeAggregatePolicy(); in testAggregator()
166 Policy p4in = setupPolicy(20, Policy.PASSWORD_MODE_STRONG, 25, 26, false, 0, 5, 7, in testAggregator()
170 Policy p4out = mSecurityPolicy.computeAggregatePolicy(); in testAggregator()
[all …]
/packages/apps/Email/tests/src/com/android/email/provider/
DPolicyTests.java32 import com.android.emailcommon.provider.Policy;
72 Policy policy1 = new Policy(); in testGetAccountIdWithPolicyKey()
75 Policy policy2 = new Policy(); in testGetAccountIdWithPolicyKey()
84 assertEquals(account1.mId, Policy.getAccountIdWithPolicyKey(mMockContext, in testGetAccountIdWithPolicyKey()
86 assertEquals(account2.mId, Policy.getAccountIdWithPolicyKey(mMockContext, in testGetAccountIdWithPolicyKey()
95 assertEquals(0, EmailContent.count(mMockContext, Policy.CONTENT_URI)); in testSetAndClearAccountPolicy()
96 Policy policy = new Policy(); in testSetAndClearAccountPolicy()
101 Policy dbPolicy = Policy.restorePolicyWithId(mMockContext, account.mPolicyKey); in testSetAndClearAccountPolicy()
112 assertEquals(0, EmailContent.count(mMockContext, Policy.CONTENT_URI)); in testSetAndClearAccountPolicy()
125 Policy policy1 = new Policy(); in testSetAttachmentFlagsForNewPolicy()
[all …]
DProviderTests.java51 import com.android.emailcommon.provider.Policy;
1968 a1.mPolicy = new Policy(); in testClearAccountHoldFlags()
1972 a2.mPolicy = new Policy(); in testClearAccountHoldFlags()
2274 Policy p1 = new Policy(); in testCleanupOrphans()
2276 Policy p2 = new Policy(); in testCleanupOrphans()
2289 EmailProvider.deleteUnlinked(db, Policy.TABLE_NAME, PolicyColumns._ID, in testCleanupOrphans()
2309 assertNull(Policy.restorePolicyWithId(mMockContext, p1.mId)); in testCleanupOrphans()
2310 assertNull(Policy.restorePolicyWithId(mMockContext, p2.mId)); in testCleanupOrphans()
2312 assertNotNull(Policy.restorePolicyWithId(mMockContext, a.mPolicyKey)); in testCleanupOrphans()
/packages/apps/Email/provider_src/com/android/email/
DSecurityPolicy.java46 import com.android.emailcommon.provider.Policy;
64 private Policy mAggregatePolicy;
120 Policy computeAggregatePolicy() { in computeAggregatePolicy()
122 Policy aggregate = new Policy(); in computeAggregatePolicy()
138 Cursor c = mContext.getContentResolver().query(Policy.CONTENT_URI, in computeAggregatePolicy()
139 Policy.CONTENT_PROJECTION, null, null, null); in computeAggregatePolicy()
140 Policy policy = new Policy(); in computeAggregatePolicy()
197 return Policy.NO_POLICY; in computeAggregatePolicy()
203 public synchronized Policy getAggregatePolicy() { in getAggregatePolicy()
249 public boolean isActive(Policy policy) { in isActive()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DPolicy.java39 public final class Policy extends EmailContent implements EmailContent.PolicyColumns, Parcelable { class
122 public static final Policy NO_POLICY = new Policy();
130 public Policy() { in Policy() method in Policy
138 public static Policy restorePolicyWithId(Context context, long id) { in restorePolicyWithId()
142 public static Policy restorePolicyWithId(Context context, long id, ContentObserver observer) { in restorePolicyWithId()
143 return EmailContent.restoreContentWithId(context, Policy.class, Policy.CONTENT_URI, in restorePolicyWithId()
144 Policy.CONTENT_PROJECTION, id, observer); in restorePolicyWithId()
149 return Policy.CONTENT_URI; in getContentNotificationUri()
191 Policy policy) { in setAttachmentFlagsForNewPolicy()
251 if (!(other instanceof Policy)) return false; in equals()
[all …]
DPolicy.aidl18 parcelable Policy;
/packages/apps/Exchange/src/com/android/exchange/adapter/
DProvisionParser.java24 import com.android.emailcommon.provider.Policy;
48 private Policy mPolicy = null;
61 public Policy getPolicy() { in getPolicy()
88 sb.append(Policy.POLICY_STRING_DELIMITER); in addPolicyString()
97 private void setPolicy(Policy policy) { in setPolicy()
118 Policy policy = new Policy(); in parseProvisionDocWbxml()
129 if (policy.mPasswordMode == Policy.PASSWORD_MODE_NONE) { in parseProvisionDocWbxml()
130 policy.mPasswordMode = Policy.PASSWORD_MODE_SIMPLE; in parseProvisionDocWbxml()
139 policy.mPasswordMode = Policy.PASSWORD_MODE_STRONG; in parseProvisionDocWbxml()
366 policy.mPasswordMode = Policy.PASSWORD_MODE_NONE; in parseProvisionDocWbxml()
[all …]
DEmailSyncParser.java33 import com.android.emailcommon.provider.Policy;
83 private final Policy mPolicy;
102 mPolicy = Policy.restorePolicyWithId(mContext, mAccount.mPolicyKey); in EmailSyncParser()
114 mPolicy = Policy.restorePolicyWithId(mContext, mAccount.mPolicyKey); in EmailSyncParser()
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/
DProvisionParserTests.java19 import com.android.emailcommon.provider.Policy;
122 Policy policy = parser.getPolicy(); in testWapProvisionParser1()
127 assertEquals(Policy.PASSWORD_MODE_STRONG, policy.mPasswordMode); in testWapProvisionParser1()
135 Policy policy = parser.getPolicy(); in testWapProvisionParser2()
138 assertEquals(Policy.PASSWORD_MODE_NONE, policy.mPasswordMode); in testWapProvisionParser2()
144 Policy policy = parser.getPolicy(); in testWapProvisionParser3()
149 assertEquals(Policy.PASSWORD_MODE_SIMPLE, policy.mPasswordMode); in testWapProvisionParser3()
/packages/apps/Email/provider_src/com/android/email/provider/
DDBHelper.java57 import com.android.emailcommon.provider.Policy;
100 "; delete from " + Policy.TABLE_NAME +
559 db.execSQL("create table " + Policy.TABLE_NAME + s); in createPolicyTable()
1038 db.execSQL("alter table " + Policy.TABLE_NAME in onUpgrade()
1041 db.execSQL("alter table " + Policy.TABLE_NAME in onUpgrade()
1043 db.execSQL("alter table " + Policy.TABLE_NAME in onUpgrade()
1045 db.execSQL("alter table " + Policy.TABLE_NAME in onUpgrade()
1047 db.execSQL("alter table " + Policy.TABLE_NAME in onUpgrade()
1049 db.execSQL("alter table " + Policy.TABLE_NAME in onUpgrade()
1052 db.execSQL("alter table " + Policy.TABLE_NAME in onUpgrade()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
DPolicyServiceProxy.java24 import com.android.emailcommon.provider.Policy;
49 public boolean isActive(final Policy arg0) throws RemoteException { in isActive()
71 public void setAccountPolicy(final long accountId, final Policy policy, in setAccountPolicy()
77 public void setAccountPolicy2(final long accountId, final Policy policy, in setAccountPolicy2()
127 public static boolean isActive(Context context, Policy policies) { in isActive()
151 public static void setAccountPolicy(Context context, long accountId, Policy policy, in setAccountPolicy()
156 public static void setAccountPolicy2(Context context, long accountId, Policy policy, in setAccountPolicy2()
DIPolicyService.aidl18 import com.android.emailcommon.provider.Policy;
21 boolean isActive(in Policy policies); in isActive()
24 void setAccountPolicy(long accountId, in Policy policy, String securityKey); in setAccountPolicy()
26 void setAccountPolicy2(long accountId, in Policy policy, String securityKey, boolean notify); in setAccountPolicy2()
DLegacyPolicySet.java18 import com.android.emailcommon.provider.Policy;
68 public static Policy flagsToPolicy(long flags) { in flagsToPolicy()
69 Policy policy = new Policy(); in flagsToPolicy()
DEmailServiceProxy.java29 import com.android.emailcommon.provider.Policy;
164 bundle.setClassLoader(Policy.class.getClassLoader()); in validate()
/packages/apps/Email/provider_src/com/android/email/service/
DPolicyService.java28 import com.android.emailcommon.provider.Policy;
41 public boolean isActive(Policy policy) {
70 public void setAccountPolicy(long accountId, Policy policy, String securityKey) {
75 public void setAccountPolicy2(long accountId, Policy policy, String securityKey,
/packages/apps/Email/src/com/android/email/activity/setup/
DSetupDataFragment.java13 import com.android.emailcommon.provider.Policy;
54 private volatile Policy mPolicy;
158 public synchronized Policy getPolicy() { in getPolicy()
162 public synchronized void setPolicy(Policy policy) { in setPolicy()
DAccountCheckSettingsFragment.java35 import com.android.emailcommon.provider.Policy;
401 mSetupData.setPolicy((Policy)bundle.getParcelable( in doInBackground()
405 final Policy policy = bundle.getParcelable( in doInBackground()
409 unsupported.split("" + Policy.POLICY_STRING_DELIMITER); in doInBackground()
DAccountSettingsFragment.java59 import com.android.emailcommon.provider.Policy;
464 Policy.restorePolicyWithId(getContext(), account.mPolicyKey, mObserver); in loadInBackground()
592 private ArrayList<String> getSystemPoliciesList(Policy policy) { in getSystemPoliciesList()
595 if (policy.mPasswordMode != Policy.PASSWORD_MODE_NONE) { in getSystemPoliciesList()
622 Policy.addPolicyStringToList(policiesToAdd, policies); in setPolicyListSummary()
DMailboxSettings.java47 import com.android.emailcommon.provider.Policy;
314 { Policy.MAX_EMAIL_LOOKBACK };
349 ContentUris.withAppendedId(Policy.CONTENT_URI, policyKey), in loadInBackground()
DAccountSetupOptionsFragment.java31 import com.android.emailcommon.provider.Policy;
144 final Policy policy = account.mPolicy; in enableLookbackSpinner()
/packages/apps/Exchange/src/com/android/exchange/eas/
DEasProvision.java24 import com.android.emailcommon.provider.Policy;
85 private Policy mPolicy;
133 public final Policy test() { in test()
DEasFolderSync.java25 import com.android.emailcommon.provider.Policy;
61 private Policy mPolicy;
/packages/apps/Email/provider_src/com/android/email/activity/setup/
DAccountSecurity.java43 import com.android.emailcommon.provider.Policy;
302 account.mPolicy = Policy.restorePolicyWithId(mContext, policyId); in loadInBackground()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DHtmlSanitizer.java398 final org.owasp.html.HtmlSanitizer.Policy policy = POLICY_DEFINITION.apply(renderer); in sanitizeHtml()
/packages/experimental/StrictModeTest/src/com/android/strictmodetest/
DStrictModeActivity.java140 BlockGuard.Policy policy = BlockGuard.getThreadPolicy(); in onCreate()

12