/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/Settings/src/com/android/settings/notification/ |
D | ZenModePrioritySettings.java | 20 import android.app.NotificationManager.Policy; 50 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() 144 NotificationManager.Policy.PRIORITY_CATEGORY_REPEAT_CALLERS); in onCreate() 169 isPriorityCategoryEnabled(Policy.PRIORITY_CATEGORY_CALLS) in updateControls() 173 isPriorityCategoryEnabled(Policy.PRIORITY_CATEGORY_MESSAGES) in updateControls() 175 mReminders.setChecked(isPriorityCategoryEnabled(Policy.PRIORITY_CATEGORY_REMINDERS)); in updateControls() [all …]
|
D | ZenModeSettings.java | 22 import android.app.NotificationManager.Policy; 67 private Policy mPolicy; 381 String getPrioritySettingSummary(Policy policy) { in getPrioritySettingSummary() 383 s = append(s, isCategoryEnabled(policy, Policy.PRIORITY_CATEGORY_REMINDERS), in getPrioritySettingSummary() 385 s = append(s, isCategoryEnabled(policy, Policy.PRIORITY_CATEGORY_EVENTS), in getPrioritySettingSummary() 387 if (isCategoryEnabled(policy, Policy.PRIORITY_CATEGORY_MESSAGES)) { in getPrioritySettingSummary() 388 if (policy.priorityMessageSenders == Policy.PRIORITY_SENDERS_ANY) { in getPrioritySettingSummary() 394 if (isCategoryEnabled(policy, Policy.PRIORITY_CATEGORY_CALLS)) { in getPrioritySettingSummary() 395 if (policy.priorityCallSenders == Policy.PRIORITY_SENDERS_ANY) { in getPrioritySettingSummary() 400 } else if (isCategoryEnabled(policy, Policy.PRIORITY_CATEGORY_REPEAT_CALLERS)) { in getPrioritySettingSummary() [all …]
|
D | ZenModeVisualInterruptionSettings.java | 20 import android.app.NotificationManager.Policy; 39 private NotificationManager.Policy mPolicy; 62 savePolicy(getNewSuppressedEffects(val, Policy.SUPPRESSED_EFFECT_SCREEN_OFF)); in onCreate() 76 savePolicy(getNewSuppressedEffects(val, Policy.SUPPRESSED_EFFECT_SCREEN_ON)); in onCreate() 100 mScreenOff.setChecked(isEffectSuppressed(Policy.SUPPRESSED_EFFECT_SCREEN_OFF)); in updateControls() 101 mScreenOn.setChecked(isEffectSuppressed(Policy.SUPPRESSED_EFFECT_SCREEN_ON)); in updateControls() 120 mPolicy = new Policy(mPolicy.priorityCategories, in savePolicy()
|
/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/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/Dialer/java/com/android/voicemail/impl/scheduling/ |
D | BaseTask.java | 55 @NonNull private final List<Policy> mPolicies = new ArrayList<>(); 99 public BaseTask addPolicy(Policy policy) { in addPolicy() 163 for (Policy policy : mPolicies) { in onCreate() 184 for (Policy policy : mPolicies) { in onBeforeExecute() 194 for (Policy policy : mPolicies) { in onCompleted() 199 for (Policy policy : mPolicies) { in onCompleted() 206 for (Policy policy : mPolicies) { in onDuplicatedTaskAdded()
|
D | Policy.java | 25 public interface Policy { interface
|
D | PostponePolicy.java | 28 public class PostponePolicy implements Policy {
|
/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/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/Settings/tests/robotests/src/com/android/settings/notification/ |
D | ZenModePreferenceControllerTest.java | 20 import android.app.NotificationManager.Policy; 54 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()
|