/packages/apps/Email/tests/src/com/android/email/service/ |
D | EmailBroadcastProcessorServiceTests.java | 92 Account account2 = ProviderTestUtils.setupAccount("pop-account1", false, mMockContext); in testSetImapDeletePolicy() local 93 account2.mHostAuthRecv = setupSimpleHostAuth("pop3"); in testSetImapDeletePolicy() 94 account2.mHostAuthSend = setupSimpleHostAuth("smtp"); in testSetImapDeletePolicy() 95 account2.mFlags = 0x08; // set delete policy in testSetImapDeletePolicy() 96 account2.save(mMockContext); in testSetImapDeletePolicy() 97 long accountId2 = account2.mId; in testSetImapDeletePolicy()
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | PolicyTests.java | 74 Account account2 = ProviderTestUtils.setupAccount("acct2", true, mMockContext); in testGetAccountIdWithPolicyKey() local 76 SecurityPolicy.setAccountPolicy(mMockContext, account2, policy2, securitySyncKey); in testGetAccountIdWithPolicyKey() 79 account2.refresh(mMockContext); in testGetAccountIdWithPolicyKey() 83 assertTrue(account2.mPolicyKey > 0); in testGetAccountIdWithPolicyKey() 86 assertEquals(account2.mId, Policy.getAccountIdWithPolicyKey(mMockContext, in testGetAccountIdWithPolicyKey() 87 account2.mPolicyKey)); in testGetAccountIdWithPolicyKey()
|
D | AttachmentProviderTests.java | 596 Account account2 = ProviderTestUtils.setupAccount("attach-acct-del2", false, mMockContext); in testDeleteAccount() local 597 account2.save(mMockContext); in testDeleteAccount() 598 long account2Id = account2.mId; in testDeleteAccount() 607 populateAccountMailbox(account2, mailbox3Id, 5); in testDeleteAccount() 608 populateAccountMailbox(account2, mailbox4Id, 2); in testDeleteAccount() 615 account2.mId); in testDeleteAccount()
|
D | ProviderTests.java | 195 Account account2 = Account.restoreAccountWithId(mMockContext, account1Id); in testAccountSave() local 197 ProviderTestUtils.assertAccountEqual("testAccountSave", account1, account2); in testAccountSave() 310 Account account2 = (Account) b2.getParcelable("account"); in testAccountParcel() local 313 ProviderTestUtils.assertAccountEqual("testAccountParcel", account1, account2); in testAccountParcel() 334 Account account2 = in testGetProtocol() local 336 account2.save(mMockContext); in testGetProtocol() 338 assertNull(Account.getProtocol(mMockContext, account2.mId)); in testGetProtocol() 339 assertNull(account2.getProtocol(mMockContext)); in testGetProtocol() 346 final Account account2 = ProviderTestUtils.setupAccount("account-2", true, mMockContext); in testAccountIsValidId() local 349 assertTrue(Account.isValidId(mMockContext, account2.mId)); in testAccountIsValidId() [all …]
|
/packages/services/Telephony/src/com/android/phone/settings/ |
D | PhoneAccountSettingsFragment.java | 299 public int compare(PhoneAccount account1, PhoneAccount account2) { in initAccountList() 304 boolean isSim2 = account2.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); in initAccountList() 310 int subId2 = mTelephonyManager.getSubIdForPhoneAccount(account2); in initAccountList() 320 String pkg2 = account2.getAccountHandle().getComponentName().getPackageName(); in initAccountList() 327 String label2 = nullToEmpty(account2.getLabel().toString()); in initAccountList() 333 retval = account1.hashCode() - account2.hashCode(); in initAccountList()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | PhoneAccountRegistrar.java | 666 private String getAccountDiffString(PhoneAccount account1, PhoneAccount account2) { in getAccountDiffString() argument 667 if (account1 == null || account2 == null) { in getAccountDiffString() 668 return "Diff: " + account1 + ", " + account2; in getAccountDiffString() 674 Log.piiHandle(account2.getAddress())); in getAccountDiffString() 675 appendDiff(sb, "cap", account1.getCapabilities(), account2.getCapabilities()); in getAccountDiffString() 676 appendDiff(sb, "hl", account1.getHighlightColor(), account2.getHighlightColor()); in getAccountDiffString() 677 appendDiff(sb, "icon", account1.getIcon(), account2.getIcon()); in getAccountDiffString() 678 appendDiff(sb, "lbl", account1.getLabel(), account2.getLabel()); in getAccountDiffString() 679 appendDiff(sb, "desc", account1.getShortDescription(), account2.getShortDescription()); in getAccountDiffString() 681 Log.piiHandle(account2.getSubscriptionAddress())); in getAccountDiffString() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsProvider2Test.java | 1012 Account account2 = new Account("act2", "actype2"); in testContactEntitiesWithIdBasedUri() local 1019 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account2); in testContactEntitiesWithIdBasedUri() 1034 Account account2 = new Account("act2", "actype2"); in testContactEntitiesWithLookupUri() local 1041 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account2); in testContactEntitiesWithLookupUri() 1264 Account account2 = new Account("c", "d"); in testRawContactDataQuery() local 1267 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account2); in testRawContactDataQuery() 1271 Uri uri2 = TestUtil.maybeAddAccountQueryParameters(dataUri2, account2); in testRawContactDataQuery() 2945 Account account2 = new Account(accountName2, accountType2); in testUpdateFromMetadataEntry() local 2946 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, account2); in testUpdateFromMetadataEntry() 4309 Account account2 = new Account("c", "d"); in testGroupQuery() local [all …]
|