Home
last modified time | relevance | path

Searched refs:mPolicyKey (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Exchange/src/com/android/exchange/eas/
DEasProvision.java86 private String mPolicyKey; field in EasProvision
100 mPolicyKey = null; in EasProvision()
108 mPolicyKey = null; in EasProvision()
196 PolicyServiceProxy.setAccountPolicy(mContext, accountId, mPolicy, mPolicyKey); in provision()
275 final Serializer s = generateRequestEntitySerializer(mContext, userAgent, mPolicyKey, in getRequestEntity()
299 mPolicyKey = pp.getSecuritySyncKey(); in handleResponse()
306 mPolicyKey = pp.getSecuritySyncKey(); in handleResponse()
307 return (mPolicyKey != null ? RESULT_POLICY_SUPPORTED : RESULT_POLICY_UNSUPPORTED); in handleResponse()
/packages/apps/Email/tests/src/com/android/email/provider/
DPolicyTests.java81 assertTrue(account1.mPolicyKey > 0); in testGetAccountIdWithPolicyKey()
83 assertTrue(account2.mPolicyKey > 0); in testGetAccountIdWithPolicyKey()
85 account1.mPolicyKey)); in testGetAccountIdWithPolicyKey()
87 account2.mPolicyKey)); in testGetAccountIdWithPolicyKey()
94 assertEquals(0, account.mPolicyKey); in testSetAndClearAccountPolicy()
100 assertTrue(account.mPolicyKey > 0); in testSetAndClearAccountPolicy()
101 Policy dbPolicy = Policy.restorePolicyWithId(mMockContext, account.mPolicyKey); in testSetAndClearAccountPolicy()
111 assertEquals(0, account.mPolicyKey); in testSetAndClearAccountPolicy()
DProviderTestUtils.java65 account.mPolicyKey = 0; in setupAccount()
317 assertEquals(caller + " mPolicyKey", expect.mPolicyKey, actual.mPolicyKey); in assertAccountEqual()
DAccountBackupRestoreTests.java75 assertEquals(0, actual.mPolicyKey); in assertRestoredAccountEqual()
DProviderTests.java2461 assertNotNull(Policy.restorePolicyWithId(mMockContext, a.mPolicyKey)); in testCleanupOrphans()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DAccount.java143 public long mPolicyKey; field in Account
276 mPolicyKey = cursor.getLong(CONTENT_POLICY_KEY_COLUMN); in restore()
708 long policyKey = account.mPolicyKey; in isAutomaticSyncDisabledByRoaming()
824 values.put(AccountColumns.POLICY_KEY, mPolicyKey); in toContentValues()
875 dest.writeLong(mPolicyKey); in writeToParcel()
913 mPolicyKey = in.readLong(); in Account()
/packages/apps/Email/src/com/android/email/
DSecurityPolicy.java491 if (account.mPolicyKey == 0) return; in policiesRequired()
492 Policy policy = Policy.restorePolicyWithId(mContext, account.mPolicyKey); in policiesRequired()
549 if (account.mPolicyKey > 0) { in setAccountPolicy()
552 Policy.CONTENT_URI, account.mPolicyKey)).build()); in setAccountPolicy()
588 if (account.mPolicyKey > 0) { in setAccountPolicy()
589 oldPolicy = Policy.restorePolicyWithId(mContext, account.mPolicyKey); in setAccountPolicy()
/packages/apps/Email/tests/src/com/android/email/
DSecurityPolicyTests.java212 long policyKey = account.mPolicyKey; in assertAccountPolicyConsistent()
219 assertEquals(account.mPolicyKey, policy.mId); in assertAccountPolicyConsistent()
321 assertTrue(a1a.mPolicyKey > 0); in testDisableAdmin()
324 assertTrue(a2a.mPolicyKey > 0); in testDisableAdmin()
327 assertTrue(a3a.mPolicyKey == 0); in testDisableAdmin()
/packages/apps/Exchange/src/com/android/exchange/adapter/
DEmailSyncAdapter.java305 if (mAccount.mPolicyKey > 0) { in getAutomaticLookback()
306 Policy policy = Policy.restorePolicyWithId(mContext, mAccount.mPolicyKey); in getAutomaticLookback()
482 if (mAccount.mPolicyKey != 0) {
483 mPolicy = Policy.restorePolicyWithId(mContext, mAccount.mPolicyKey);
494 if (mAccount.mPolicyKey != 0) {
495 mPolicy = Policy.restorePolicyWithId(mContext, mAccount.mPolicyKey);
504 if (mAccount.mPolicyKey != 0) {
505 mPolicy = Policy.restorePolicyWithId(mContext, mAccount.mPolicyKey);
DEmailSyncParser.java98 if (mAccount.mPolicyKey != 0) { in EmailSyncParser()
99 mPolicy = Policy.restorePolicyWithId(mContext, mAccount.mPolicyKey); in EmailSyncParser()
110 if (mAccount.mPolicyKey != 0) { in EmailSyncParser()
111 mPolicy = Policy.restorePolicyWithId(mContext, mAccount.mPolicyKey); in EmailSyncParser()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSettingsFragment.java704 if (mAccount.mPolicyKey != 0) { in loadSettings()
707 policy = Policy.restorePolicyWithId(mContext, mAccount.mPolicyKey); in loadSettings()
DAccountSecurity.java140 if (mAccount.mPolicyKey != 0) { in onCreate()
/packages/apps/Exchange/src/com/android/exchange/
DEasSyncService.java1406 if (svc.mAccount.mPolicyKey > 0) {
1407 oldPolicy = Policy.restorePolicyWithId(context, account.mPolicyKey);
1845 Policy policy = Policy.restorePolicyWithId(mContext, mAccount.mPolicyKey);
DEasAccountService.java369 Policy policy = Policy.restorePolicyWithId(mContext, mAccount.mPolicyKey); in sync()
/packages/apps/Email/emailsync/src/com/android/emailsync/
DSyncManager.java1708 long policyKey = account.mPolicyKey; in canAutoSync()
/packages/apps/Email/src/com/android/email/provider/
DEmailProvider.java1407 account.mPolicyKey = 0; in copyAccountTables()