/packages/apps/Email/tests/src/com/android/email/ |
D | SecurityPolicyTests.java | 34 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/ |
D | PolicyTests.java | 32 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 …]
|
D | ProviderTests.java | 51 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/ |
D | SecurityPolicy.java | 46 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/ |
D | Policy.java | 39 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 …]
|
D | Policy.aidl | 18 parcelable Policy;
|
/packages/apps/Exchange/src/com/android/exchange/adapter/ |
D | ProvisionParser.java | 24 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 …]
|
D | EmailSyncParser.java | 33 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/ |
D | ProvisionParserTests.java | 19 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/ |
D | DBHelper.java | 57 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/ |
D | PolicyServiceProxy.java | 24 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()
|
D | IPolicyService.aidl | 18 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()
|
D | LegacyPolicySet.java | 18 import com.android.emailcommon.provider.Policy; 68 public static Policy flagsToPolicy(long flags) { in flagsToPolicy() 69 Policy policy = new Policy(); in flagsToPolicy()
|
D | EmailServiceProxy.java | 29 import com.android.emailcommon.provider.Policy; 164 bundle.setClassLoader(Policy.class.getClassLoader()); in validate()
|
/packages/apps/Email/provider_src/com/android/email/service/ |
D | PolicyService.java | 28 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/ |
D | SetupDataFragment.java | 13 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()
|
D | AccountCheckSettingsFragment.java | 35 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()
|
D | AccountSettingsFragment.java | 59 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()
|
D | MailboxSettings.java | 47 import com.android.emailcommon.provider.Policy; 314 { Policy.MAX_EMAIL_LOOKBACK }; 349 ContentUris.withAppendedId(Policy.CONTENT_URI, policyKey), in loadInBackground()
|
D | AccountSetupOptionsFragment.java | 31 import com.android.emailcommon.provider.Policy; 144 final Policy policy = account.mPolicy; in enableLookbackSpinner()
|
/packages/apps/Exchange/src/com/android/exchange/eas/ |
D | EasProvision.java | 24 import com.android.emailcommon.provider.Policy; 85 private Policy mPolicy; 133 public final Policy test() { in test()
|
D | EasFolderSync.java | 25 import com.android.emailcommon.provider.Policy; 61 private Policy mPolicy;
|
/packages/apps/Email/provider_src/com/android/email/activity/setup/ |
D | AccountSecurity.java | 43 import com.android.emailcommon.provider.Policy; 302 account.mPolicy = Policy.restorePolicyWithId(mContext, policyId); in loadInBackground()
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | HtmlSanitizer.java | 398 final org.owasp.html.HtmlSanitizer.Policy policy = POLICY_DEFINITION.apply(renderer); in sanitizeHtml()
|
/packages/experimental/StrictModeTest/src/com/android/strictmodetest/ |
D | StrictModeActivity.java | 140 BlockGuard.Policy policy = BlockGuard.getThreadPolicy(); in onCreate()
|