/packages/apps/Exchange/tests/src/com/android/exchange/provider/ |
D | MailboxUtilitiesTests.java | 39 private Account mAccount; field in MailboxUtilitiesTests 53 mAccount = null; in setUp() 63 if (mAccount != null && mAccount.mId > 0) { in tearDown() 65 ContentUris.withAppendedId(Account.CONTENT_URI, mAccount.mId), null, null); in tearDown() 71 mAccount = setupTestAccount("acct1", true); in testSetupParentKeyAndFlag() 72 Mailbox box1 = EmailContentSetupUtils.setupMailbox("box1", mAccount.mId, true, in testSetupParentKeyAndFlag() 74 Mailbox box2 = EmailContentSetupUtils.setupMailbox("box2", mAccount.mId, true, in testSetupParentKeyAndFlag() 76 Mailbox box3 = EmailContentSetupUtils.setupMailbox("box3", mAccount.mId, true, in testSetupParentKeyAndFlag() 78 Mailbox box4 = EmailContentSetupUtils.setupMailbox("box4", mAccount.mId, true, in testSetupParentKeyAndFlag() 80 Mailbox box5 = EmailContentSetupUtils.setupMailbox("box5", mAccount.mId, true, in testSetupParentKeyAndFlag() [all …]
|
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/provider/ |
D | MailboxUtilitiesTests.java | 39 private Account mAccount; field in MailboxUtilitiesTests 53 mAccount = null; in setUp() 63 if (mAccount != null && mAccount.mId > 0) { in tearDown() 65 ContentUris.withAppendedId(Account.CONTENT_URI, mAccount.mId), null, null); in tearDown() 71 mAccount = setupTestAccount("acct1", true); in testSetupParentKeyAndFlag() 72 Mailbox box1 = EmailContentSetupUtils.setupMailbox("box1", mAccount.mId, true, in testSetupParentKeyAndFlag() 74 Mailbox box2 = EmailContentSetupUtils.setupMailbox("box2", mAccount.mId, true, in testSetupParentKeyAndFlag() 76 Mailbox box3 = EmailContentSetupUtils.setupMailbox("box3", mAccount.mId, true, in testSetupParentKeyAndFlag() 78 Mailbox box4 = EmailContentSetupUtils.setupMailbox("box4", mAccount.mId, true, in testSetupParentKeyAndFlag() 80 Mailbox box5 = EmailContentSetupUtils.setupMailbox("box5", mAccount.mId, true, in testSetupParentKeyAndFlag() [all …]
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
D | AccountSettingsFragment.java | 107 private Account mAccount; field in AccountSettingsFragment 227 if (mAccount != null && !mLoaded) { in onStart() 248 mAccount.mHostAuthRecv = in onResume() 249 HostAuth.restoreHostAuthWithId(mContext, mAccount.mHostAuthKeyRecv); in onResume() 250 mAccount.mHostAuthSend = in onResume() 251 HostAuth.restoreHostAuthWithId(mContext, mAccount.mHostAuthKeySend); in onResume() 254 Account refreshedAccount = Account.restoreAccountWithId(mContext, mAccount.mId); in onResume() 255 if (refreshedAccount == null || mAccount.mHostAuthRecv == null in onResume() 256 || mAccount.mHostAuthSend == null) { in onResume() 261 mAccount.setDeletePolicy(refreshedAccount.getDeletePolicy()); in onResume() [all …]
|
D | SetupData.java | 55 private Account mAccount; field in SetupData 89 return getInstance().mAccount; in getAccount() 92 static public void setAccount(Account mAccount) { in setAccount() argument 93 getInstance().mAccount = mAccount; in setAccount() 141 data.mAccount.mPolicy = policy; in setPolicy() 178 data.mAccount = account; in init() 186 mAccount = new Account(); in commonInit() 211 dest.writeParcelable(mAccount, 0); in writeToParcel() 225 mAccount = in.readParcelable(loader); in SetupData() 254 sb.append(":acct=" + (data.mAccount == null ? "none" : data.mAccount.mId)); in debugString()
|
D | MailboxSettings.java | 71 private Account mAccount; field in MailboxSettings 109 mAccount = savedInstanceState.getParcelable(BUNDLE_ACCOUNT); in onCreate() 113 if (mAccount == null) { in onCreate() 134 outState.putParcelable(BUNDLE_ACCOUNT, mAccount); in onSaveInstanceState() 167 mAccount = Account.restoreAccountWithId(c, mMailbox.mAccountKey); in doInBackground() 174 if ((mAccount == null) || (mMailbox == null)) { in onSuccess() 223 Preconditions.checkNotNull(mAccount); in onDataLoaded() 236 setupLookbackPreferenceOptions(this, mSyncLookbackPref, mAccount); in onDataLoaded() 259 syncInterval = mAccount.mSyncInterval; in getSyncInterval() 281 return mAccount.mSyncLookback; in getSyncLookback() [all …]
|
D | AccountSecurity.java | 66 private Account mAccount; field in AccountSecurity 117 mAccount = Account.restoreAccountWithId(AccountSecurity.this, accountId); in onCreate() 118 if (mAccount == null) { in onCreate() 127 PasswordExpirationDialog.newInstance(mAccount.getDisplayName(), in onCreate() 134 if (mAccount.mPolicyKey != 0) { in onCreate() 141 SecurityNeededDialog.newInstance(mAccount.getDisplayName()); in onCreate() 146 tryAdvanceSecurity(mAccount); in onCreate() 158 tryAdvanceSecurity(mAccount); in onActivityResult() 336 if (activity.mAccount == null) { in onClick() 346 activity.tryAdvanceSecurity(activity.mAccount); in onClick() [all …]
|
D | AccountSetupNames.java | 246 private final Account mAccount; field in AccountSetupNames.FinalSetupTask 250 mAccount = account; in FinalSetupTask() 258 cv.put(AccountColumns.DISPLAY_NAME, mAccount.getDisplayName()); in doInBackground() 259 cv.put(AccountColumns.SENDER_NAME, mAccount.getSenderName()); in doInBackground() 260 mAccount.update(mContext, cv); in doInBackground() 265 return Account.isSecurityHold(mContext, mAccount.mId); in doInBackground() 273 AccountSetupNames.this, mAccount.mId, false); in onPostExecute()
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/ |
D | EasAccountService.java | 150 int trafficFlags = TrafficFlags.getSyncFlags(mContext, mAccount); in run() 152 if ((mMailbox == null) || (mAccount == null)) { in run() 174 ExchangeService.reloadFolderList(mContext, mAccount.mId, true); in run() 200 HostAuth.restoreHostAuthWithId(mContext, mAccount.mHostAuthKeyRecv); in canHandleAccountMailboxRedirect() 219 MailboxUtilities.checkMailboxConsistency(mContext, mAccount.mId); in sync() 224 .syncMailboxListStatus(mAccount.mId, EmailServiceStatus.IN_PROGRESS, 0); in sync() 229 if (mAccount.mSyncKey == null) { in sync() 230 mAccount.mSyncKey = "0"; in sync() 233 cv.put(AccountColumns.SYNC_KEY, mAccount.mSyncKey); in sync() 234 mAccount.update(mContext, cv); in sync() [all …]
|
D | EasSyncService.java | 181 if (mAccount == null) { in EasSyncService() 185 HostAuth ha = HostAuth.restoreHostAuthWithId(_context, mAccount.mHostAuthKeyRecv); in EasSyncService() 347 Account account = service.mAccount; in setupProtocolVersion() 398 svc.mAccount = account; in setupServiceForAccount() 444 mAccount = new Account(); in validateAccount() 445 mAccount.mEmailAddress = hostAuth.mLogin; in validateAccount() 546 mAccount.mSecuritySyncKey = pp.getSecuritySyncKey(); in validateAccount() 1004 attendeeValues.put(Attendees.ATTENDEE_EMAIL, mAccount.mEmailAddress); in sendMeetingResponseMail() 1032 meetingInfo.get(MeetingInfo.MEETING_UID), mAccount); in sendMeetingResponseMail() 1035 EasOutboxService.sendMessage(mContext, mAccount.mId, outgoingMsg); in sendMeetingResponseMail() [all …]
|
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/adapter/ |
D | EmailSyncAdapterTests.java | 99 setupSyncParserAndAdapter(mAccount, mMailbox); in testSendDeletedItems() 106 mSyncAdapter.mAccount = mAccount; in testSendDeletedItems() 107 Mailbox box1 = EmailContentSetupUtils.setupMailbox("box1", mAccount.mId, true, in testSendDeletedItems() 112 Message msg1 = EmailContentSetupUtils.setupMessage("message1", mAccount.mId, box1.mId, in testSendDeletedItems() 115 Message msg2 = EmailContentSetupUtils.setupMessage("message2", mAccount.mId, box1.mId, in testSendDeletedItems() 118 Message msg3 = EmailContentSetupUtils.setupMessage("message3", mAccount.mId, box1.mId, in testSendDeletedItems() 122 getAccountArgument(mAccount.mId))); in testSendDeletedItems() 132 getAccountArgument(mAccount.mId))); in testSendDeletedItems() 134 WHERE_ACCOUNT_KEY, getAccountArgument(mAccount.mId))); in testSendDeletedItems() 145 Message msg4 = EmailContentSetupUtils.setupMessage("message4", mAccount.mId, box1.mId, in testSendDeletedItems() [all …]
|
D | FolderSyncParserTests.java | 59 parser.mAccount = mAccount; in testIsValidMailFolder() 60 mAccount.save(getContext()); in testIsValidMailFolder() 63 Mailbox boxMailType = EmailContentSetupUtils.setupMailbox("box1", mAccount.mId, false, in testIsValidMailFolder() 69 Mailbox boxCalendarType = EmailContentSetupUtils.setupMailbox("box", mAccount.mId, false, in testIsValidMailFolder() 71 Mailbox boxContactsType = EmailContentSetupUtils.setupMailbox("box", mAccount.mId, false, in testIsValidMailFolder() 73 Mailbox boxTasksType = EmailContentSetupUtils.setupMailbox("box", mAccount.mId, false, in testIsValidMailFolder() 81 Mailbox boxUnknownType = EmailContentSetupUtils.setupMailbox("box", mAccount.mId, false, in testIsValidMailFolder() 100 Mailbox boxParentUnknownType = EmailContentSetupUtils.setupMailbox("box", mAccount.mId, in testIsValidMailFolder() 119 Mailbox box = EmailContentSetupUtils.setupMailbox("box1", mAccount.mId, false, in setupBoxSync() 142 mAccount.save(mProviderContext); in testSaveAndRestoreMailboxSyncOptions() [all …]
|
D | SyncAdapterTestCase.java | 41 public Account mAccount; field in SyncAdapterTestCase 61 if (mAccount != null && mAccount.mId > 0) { in tearDown() 62 mResolver.delete(ContentUris.withAppendedId(Account.CONTENT_URI, mAccount.mId), null, in tearDown() 77 mAccount = new Account(); in getTestService() 78 mAccount.mEmailAddress = "__test__@android.com"; in getTestService() 79 mAccount.mId = -1; in getTestService() 82 return getTestService(mAccount, mailbox); in getTestService() 89 service.mAccount = account; in getTestService()
|
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/ |
D | EmailSyncAdapterTests.java | 99 setupSyncParserAndAdapter(mAccount, mMailbox); in testSendDeletedItems() 106 mSyncAdapter.mAccount = mAccount; in testSendDeletedItems() 107 Mailbox box1 = EmailContentSetupUtils.setupMailbox("box1", mAccount.mId, true, in testSendDeletedItems() 112 Message msg1 = EmailContentSetupUtils.setupMessage("message1", mAccount.mId, box1.mId, in testSendDeletedItems() 115 Message msg2 = EmailContentSetupUtils.setupMessage("message2", mAccount.mId, box1.mId, in testSendDeletedItems() 118 Message msg3 = EmailContentSetupUtils.setupMessage("message3", mAccount.mId, box1.mId, in testSendDeletedItems() 122 getAccountArgument(mAccount.mId))); in testSendDeletedItems() 132 getAccountArgument(mAccount.mId))); in testSendDeletedItems() 134 WHERE_ACCOUNT_KEY, getAccountArgument(mAccount.mId))); in testSendDeletedItems() 145 Message msg4 = EmailContentSetupUtils.setupMessage("message4", mAccount.mId, box1.mId, in testSendDeletedItems() [all …]
|
D | FolderSyncParserTests.java | 59 parser.mAccount = mAccount; in testIsValidMailFolder() 60 mAccount.save(getContext()); in testIsValidMailFolder() 63 Mailbox boxMailType = EmailContentSetupUtils.setupMailbox("box1", mAccount.mId, false, in testIsValidMailFolder() 69 Mailbox boxCalendarType = EmailContentSetupUtils.setupMailbox("box", mAccount.mId, false, in testIsValidMailFolder() 71 Mailbox boxContactsType = EmailContentSetupUtils.setupMailbox("box", mAccount.mId, false, in testIsValidMailFolder() 73 Mailbox boxTasksType = EmailContentSetupUtils.setupMailbox("box", mAccount.mId, false, in testIsValidMailFolder() 81 Mailbox boxUnknownType = EmailContentSetupUtils.setupMailbox("box", mAccount.mId, false, in testIsValidMailFolder() 100 Mailbox boxParentUnknownType = EmailContentSetupUtils.setupMailbox("box", mAccount.mId, in testIsValidMailFolder() 119 Mailbox box = EmailContentSetupUtils.setupMailbox("box1", mAccount.mId, false, in setupBoxSync() 142 mAccount.save(mProviderContext); in testSaveAndRestoreMailboxSyncOptions() [all …]
|
D | SyncAdapterTestCase.java | 41 public Account mAccount; field in SyncAdapterTestCase 61 if (mAccount != null && mAccount.mId > 0) { in tearDown() 62 mResolver.delete(ContentUris.withAppendedId(Account.CONTENT_URI, mAccount.mId), null, in tearDown() 77 mAccount = new Account(); in getTestService() 78 mAccount.mEmailAddress = "__test__@android.com"; in getTestService() 79 mAccount.mId = -1; in getTestService() 82 return getTestService(mAccount, mailbox); in getTestService() 89 service.mAccount = account; in getTestService()
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/ |
D | FolderSyncParser.java | 130 mAccountId = mAccount.mId; in FolderSyncParser() 142 String key = mAccount.mSyncKey; in parse() 159 (mAccount.mId == Account.NOT_SAVED)) { in parse() 167 mAccount.mSyncKey = "0"; in parse() 169 cv.put(AccountColumns.SYNC_KEY, mAccount.mSyncKey); in parse() 171 mAccount.mId), cv, null, null); in parse() 193 mAccount.mSyncKey = newKey; in parse() 208 userLog("Leaving FolderSyncParser with Account syncKey=", mAccount.mSyncKey); in parse() 362 mailbox.mSyncInterval = mAccount.mSyncInterval; in addParser() 366 mailbox.mSyncInterval = mAccount.mSyncInterval; in addParser() [all …]
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | AccountSyncSettings.java | 77 private Account mAccount; field in AccountSyncSettings 98 .removeAccount(mAccount, in onCreateDialog() 185 mAccount = (Account) arguments.getParcelable(ACCOUNT_KEY); in onActivityCreated() 186 if (mAccount != null) { in onActivityCreated() 187 if (Log.isLoggable(TAG, Log.VERBOSE)) Log.v(TAG, "Got account: " + mAccount); in onActivityCreated() 188 mUserId.setText(mAccount.name); in onActivityCreated() 189 mProviderId.setText(mAccount.type); in onActivityCreated() 332 if (mAccount != null) { in requestOrCancelSyncForEnabledProviders() 335 if (syncAdapter.accountType.equals(mAccount.type)) { in requestOrCancelSyncForEnabledProviders() 336 requestOrCancelSync(mAccount, syncAdapter.authority, startSync); in requestOrCancelSyncForEnabledProviders() [all …]
|
/packages/apps/Email/tests/src/com/android/email/activity/setup/ |
D | AccountSettingsTests.java | 46 private Account mAccount; field in AccountSettingsTests 72 if (mAccount != null) { in tearDown() 156 mAccount = new Account(); in getTestIntent() 157 mAccount.setSenderName(name); in getTestIntent() 159 mAccount.mEmailAddress = "user@server.com"; in getTestIntent() 160 HostAuth.setHostAuthFromString(mAccount.getOrCreateHostAuthRecv(mContext), storeUri); in getTestIntent() 161 HostAuth.setHostAuthFromString(mAccount.getOrCreateHostAuthSend(mContext), senderUri); in getTestIntent() 162 mAccount.save(mContext); in getTestIntent() 163 mAccountId = mAccount.mId; in getTestIntent()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsProvider2Test.java | 3031 long rawContactId1 = RawContactUtil.createRawContact(mResolver, mAccount); in testGroupCreationAfterMembershipInsert() 3034 long groupId = assertSingleGroup(NO_LONG, mAccount, "gsid1", null); in testGroupCreationAfterMembershipInsert() 3040 long rawContactId1 = RawContactUtil.createRawContact(mResolver, mAccount); in testGroupReuseAfterMembershipInsert() 3041 long groupId1 = createGroup(mAccount, "gsid1", "title1"); in testGroupReuseAfterMembershipInsert() 3044 assertSingleGroup(groupId1, mAccount, "gsid1", "title1"); in testGroupReuseAfterMembershipInsert() 3050 long rawContactId1 = RawContactUtil.createRawContact(mResolver, mAccount); in testGroupInsertFailureOnGroupIdConflict() 3051 long groupId1 = createGroup(mAccount, "gsid1", "title1"); in testGroupInsertFailureOnGroupIdConflict() 4240 long rawContactId = RawContactUtil.createRawContact(mResolver, mAccount); in testQueryStreamItemsByRawContactId() 4242 insertStreamItem(rawContactId, values, mAccount); in testQueryStreamItemsByRawContactId() 4741 long rawContactId = RawContactUtil.createRawContact(mResolver, mAccount); in testDeleteStreamItemsWhenRawContactDeleted() [all …]
|
D | GroupsTest.java | 150 createGroup(mAccount, "gsid1", "title1")); in testGroupDirtySetOnChange() 158 createGroup(mAccount, "gsid1", "title1")); in testMarkAsDirtyParameter() 160 Uri updateUri = setCallerIsSyncAdapter(uri, mAccount); in testMarkAsDirtyParameter() 170 createGroup(mAccount, "gsid1", "title1")); in testGroupDirtyClearedWhenSetExplicitly() 182 long groupId = createGroup(mAccount, "g1", "gt1"); in testGroupDeletion1() 190 Uri permanentDeletionUri = setCallerIsSyncAdapter(uri, mAccount); in testGroupDeletion1() 196 long groupId = createGroup(mAccount, "g1", "gt1"); in testGroupDeletion2() 200 Uri permanentDeletionUri = setCallerIsSyncAdapter(uri, mAccount); in testGroupDeletion2() 207 createGroup(mAccount, "gsid1", "title1")); in testGroupVersionUpdates()
|
/packages/apps/Email/tests/src/com/android/email/service/ |
D | AttachmentDownloadServiceTests.java | 46 private Account mAccount; field in AttachmentDownloadServiceTests 61 mAccount = ProviderTestUtils.setupAccount("account", false, mMockContext); in setUp() 62 mAccount.mFlags |= Account.FLAGS_BACKGROUND_ATTACHMENTS; in setUp() 63 mAccount.save(mMockContext); in setUp() 64 mAccountId = mAccount.mId; in setUp() 245 assertTrue(mService.canPrefetchForAccount(mAccount, mMockDirectory)); in testCanPrefetchForAccount() 249 assertFalse(mService.canPrefetchForAccount(mAccount, mMockDirectory)); in testCanPrefetchForAccount() 258 assertTrue(mService.canPrefetchForAccount(mAccount, mMockDirectory)); in testCanPrefetchForAccount() 263 assertFalse(mService.canPrefetchForAccount(mAccount, mMockDirectory)); in testCanPrefetchForAccount()
|
/packages/apps/Email/src/com/android/email/activity/ |
D | MessageCompose.java | 153 private Account mAccount; field in MessageCompose 378 mAccount = account; in setAccount() 447 setInitialComposeText(null, getAccountSignature(mAccount)); in resolveIntent() 494 new String[] {Long.toString(mAccount.mId)}) > 0; in doInBackground() 515 if (mAccount != null) { in onResume() 636 .toString().equals("\n" + getAccountSignature(mAccount)); in isBodyEmpty() 862 loadAttachments(message.mId, mAccount, new AttachmentLoadedCallback() { in resumeDraft() 930 processSourceMessage(mSource, mAccount); in loadSourceMessage() 931 setInitialComposeText(null, getAccountSignature(mAccount)); in loadSourceMessage() 934 loadAttachments(message.mId, mAccount, new AttachmentLoadedCallback() { in loadSourceMessage() [all …]
|
/packages/apps/Browser/src/com/android/browser/ |
D | GoogleAccountLogin.java | 60 private final Account mAccount; field in GoogleAccountLogin 75 mAccount = account; in GoogleAccountLogin() 179 am.getAuthToken(mAccount, "SID", null, mActivity, this, null); in invalidateTokens() 197 mAccount, "LSID", null, mActivity, this, null); in run() 239 mAccount.name), in startLogin() 245 mAccount, "SID", null, mActivity, this, null); in startLogin() 267 Log.d(LOGTAG, "Finished login attempt for " + mAccount.name); in done()
|
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/ |
D | SelectCalendarsSyncFragment.java | 75 private Account mAccount; field in SelectCalendarsSyncFragment 93 mAccount = new Account(bundle.getString(Calendars.ACCOUNT_NAME), in SelectCalendarsSyncFragment() 126 || !ContentResolver.getSyncAutomatically(mAccount, CalendarContract.AUTHORITY)) { in onResume() 137 Utils.startCalendarMetafeedSync(mAccount); in onResume() 151 mAccount = new Account(bundle.getString(Calendars.ACCOUNT_NAME), in onAttach() 187 mArgs[0] = mAccount.name; in onCreateLoader() 188 mArgs[1] = mAccount.type; in onCreateLoader()
|
/packages/apps/Email/tests/src/com/android/email/activity/ |
D | MessagesAdapterTests.java | 76 assertEquals(accountId, result.mAccount.mId); in testLoad() 91 assertEquals(accountId, result.mAccount.mId); in testLoadEas() 106 assertEquals(accountId, result.mAccount.mId); in testLoadNotRefreshable() 119 assertNull(result.mAccount); in testMailboxNotFound() 133 assertNull(result.mAccount); in testAccountNotFound() 146 assertNull(result.mAccount); in testMagicMailbox()
|