/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/Settings/src/com/android/settings/notification/ |
D | ZenModeSettings.java | 20 import android.app.NotificationManager.Policy; 38 private Policy mPolicy; 83 s = appendLowercase(s, isCategoryEnabled(mPolicy, Policy.PRIORITY_CATEGORY_REMINDERS), in updatePrioritySettingsSummary() 85 s = appendLowercase(s, isCategoryEnabled(mPolicy, Policy.PRIORITY_CATEGORY_EVENTS), in updatePrioritySettingsSummary() 87 if (isCategoryEnabled(mPolicy, Policy.PRIORITY_CATEGORY_MESSAGES)) { in updatePrioritySettingsSummary() 88 if (mPolicy.priorityMessageSenders == Policy.PRIORITY_SENDERS_ANY) { in updatePrioritySettingsSummary() 94 if (isCategoryEnabled(mPolicy, Policy.PRIORITY_CATEGORY_CALLS)) { in updatePrioritySettingsSummary() 95 if (mPolicy.priorityCallSenders == Policy.PRIORITY_SENDERS_ANY) { in updatePrioritySettingsSummary() 100 } else if (isCategoryEnabled(mPolicy, Policy.PRIORITY_CATEGORY_REPEAT_CALLERS)) { in updatePrioritySettingsSummary() 108 if (isEffectSuppressed(Policy.SUPPRESSED_EFFECT_SCREEN_ON) in updateVisualSettingsSummary() [all …]
|
D | ZenModePrioritySettings.java | 20 import android.app.NotificationManager.Policy; 51 private Policy mPolicy; 69 savePolicy(getNewPriorityCategories(val, Policy.PRIORITY_CATEGORY_REMINDERS), in onCreate() 84 savePolicy(getNewPriorityCategories(val, Policy.PRIORITY_CATEGORY_EVENTS), in onCreate() 105 getNewPriorityCategories(allowMessages, Policy.PRIORITY_CATEGORY_MESSAGES), in onCreate() 124 savePolicy(getNewPriorityCategories(allowCalls, Policy.PRIORITY_CATEGORY_CALLS), in onCreate() 143 NotificationManager.Policy.PRIORITY_CATEGORY_REPEAT_CALLERS); in onCreate() 168 isPriorityCategoryEnabled(Policy.PRIORITY_CATEGORY_CALLS) in updateControls() 172 isPriorityCategoryEnabled(Policy.PRIORITY_CATEGORY_MESSAGES) in updateControls() 174 mReminders.setChecked(isPriorityCategoryEnabled(Policy.PRIORITY_CATEGORY_REMINDERS)); in updateControls() [all …]
|
D | ZenModeVisualInterruptionSettings.java | 20 import android.app.NotificationManager.Policy; 47 private NotificationManager.Policy mPolicy; 69 savePolicy(getNewSuppressedEffects(val, Policy.SUPPRESSED_EFFECT_SCREEN_OFF)); in onCreate() 82 savePolicy(getNewSuppressedEffects(val, Policy.SUPPRESSED_EFFECT_SCREEN_ON)); in onCreate() 106 mScreenOff.setChecked(isEffectSuppressed(Policy.SUPPRESSED_EFFECT_SCREEN_OFF)); in updateControls() 107 mScreenOn.setChecked(isEffectSuppressed(Policy.SUPPRESSED_EFFECT_SCREEN_ON)); in updateControls() 126 mPolicy = new Policy(mPolicy.priorityCategories, in savePolicy()
|
D | AppNotificationSettings.java | 86 NotificationManager.Policy policy = in onCreate()
|
/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;
|
D | Account.java | 151 public transient Policy mPolicy;
|
/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/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/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 | AccountSetupOptionsFragment.java | 31 import com.android.emailcommon.provider.Policy; 144 final Policy policy = account.mPolicy; in enableLookbackSpinner()
|
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 | 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()
|
/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()
|