/packages/apps/Exchange/tests/src/com/android/exchange/provider/ |
D | MailboxUtilitiesTests.java | 40 private Account mAccount; field in MailboxUtilitiesTests 56 mAccount = null; in setUp() 66 if (mAccount != null && mAccount.mId > 0) { in tearDown() 68 ContentUris.withAppendedId(Account.CONTENT_URI, mAccount.mId), null, null); in tearDown() 74 mAccount = setupTestAccount("acct1", true); in brokentestSetupParentKeyAndFlag() 75 Mailbox box1 = EmailContentSetupUtils.setupMailbox("box1", mAccount.mId, true, in brokentestSetupParentKeyAndFlag() 77 Mailbox box2 = EmailContentSetupUtils.setupMailbox("box2", mAccount.mId, true, in brokentestSetupParentKeyAndFlag() 79 Mailbox box3 = EmailContentSetupUtils.setupMailbox("box3", mAccount.mId, true, in brokentestSetupParentKeyAndFlag() 81 Mailbox box4 = EmailContentSetupUtils.setupMailbox("box4", mAccount.mId, true, in brokentestSetupParentKeyAndFlag() 83 Mailbox box5 = EmailContentSetupUtils.setupMailbox("box5", mAccount.mId, true, in brokentestSetupParentKeyAndFlag() [all …]
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
D | AccountSettingsFragment.java | 134 private Account mAccount; field in AccountSettingsFragment 242 if (mAccount != null && !mLoaded) { in onStart() 263 mAccount.mHostAuthRecv = in onResume() 264 HostAuth.restoreHostAuthWithId(mContext, mAccount.mHostAuthKeyRecv); in onResume() 265 mAccount.mHostAuthSend = in onResume() 266 HostAuth.restoreHostAuthWithId(mContext, mAccount.mHostAuthKeySend); in onResume() 269 Account refreshedAccount = Account.restoreAccountWithId(mContext, mAccount.mId); in onResume() 270 if (refreshedAccount == null || mAccount.mHostAuthRecv == null) { in onResume() 275 mAccount.setDeletePolicy(refreshedAccount.getDeletePolicy()); in onResume() 351 summary = mAccount.mEmailAddress; in onPreferenceChange() [all …]
|
D | SetupData.java | 53 private Account mAccount; field in SetupData 70 mAccount = new Account(); in SetupData() 88 mAccount = account; in SetupData() 104 return mAccount; in getAccount() 108 mAccount = account; in setAccount() 155 mAccount.mPolicy = policy; in setPolicy() 188 dest.writeParcelable(mAccount, 0); in writeToParcel() 200 mAccount = in.readParcelable(loader); in SetupData() 212 sb.append(mAccount == null ? "none" :mAccount.mId); in debugString()
|
D | AccountSecurity.java | 68 private Account mAccount; field in AccountSecurity 119 mAccount = Account.restoreAccountWithId(AccountSecurity.this, accountId); in onCreate() 120 if (mAccount == null) { in onCreate() 130 PasswordExpirationDialog.newInstance(mAccount.getDisplayName(), in onCreate() 140 if (mAccount.mPolicyKey != 0) { in onCreate() 147 SecurityNeededDialog.newInstance(mAccount.getDisplayName()); in onCreate() 155 tryAdvanceSecurity(mAccount); in onCreate() 167 tryAdvanceSecurity(mAccount); in onActivityResult() 350 if (activity.mAccount == null) { in onClick() 360 activity.tryAdvanceSecurity(activity.mAccount); in onClick() [all …]
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/compose/ |
D | ComposeActivityTest.java | 62 private Account mAccount; field in ComposeActivityTest 101 return getRefMessage(resolver, mAccount.folderListUri); in getRefMessage() 108 mAccount = account; in setAccount() 109 activity.setAccount(mAccount); in setAccount() 143 ReplyFromAccount a = new ReplyFromAccount(mAccount, mAccount.uri, customFrom, in testRecipientsRefReplyAllCustomFromReplyTo() 147 mAccount.accountFromAddresses = array.toString(); in testRecipientsRefReplyAllCustomFromReplyTo() 148 ReplyFromAccount currentAccount = new ReplyFromAccount(mAccount, mAccount.uri, in testRecipientsRefReplyAllCustomFromReplyTo() 149 mAccount.name, mAccount.name, customFrom, true, false); in testRecipientsRefReplyAllCustomFromReplyTo() 180 final Account account = mAccount; in testRecipientsRefReplyAllOnlyAccount() 182 ReplyFromAccount currentAccount = new ReplyFromAccount(mAccount, mAccount.uri, in testRecipientsRefReplyAllOnlyAccount() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | AbstractActivityController.java | 180 protected Account mAccount; field in AbstractActivityController 506 return mAccount; in getCurrentAccount() 633 if (mAccount.isAccountInitializationRequired()) { in perhapsEnterWaitMode() 639 final boolean isSyncRequired = mAccount.isAccountSyncRequired(); in perhapsEnterWaitMode() 657 final boolean firstLoad = mAccount == null; in switchToDefaultInboxOrChangeAccount() 658 final boolean switchToDefaultInbox = !firstLoad && account.uri.equals(mAccount.uri); in switchToDefaultInboxOrChangeAccount() 671 final boolean firstLoad = mAccount == null; in changeAccount() 672 final boolean accountChanged = firstLoad || !account.uri.equals(mAccount.uri); in changeAccount() 675 if (!accountChanged && !account.settingsDiffer(mAccount)) { in changeAccount() 703 if (mAccount != null && !Uri.EMPTY.equals(mAccount.settings.setupIntentUri)) { in changeAccount() [all …]
|
D | MailActionBarView.java | 84 private Account mAccount; field in MailActionBarView 119 if (mAccount != null) { in handleMessage() 121 subtitleText = mAccount.name; in handleMessage() 142 final Uri mAccount; field in MailActionBarView.UpdateProvider 145 mAccount = account; in UpdateProvider() 151 mResolver.call(mAccount, UIProvider.AccountCallMethods.SET_CURRENT_ACCOUNT, in doInBackground() 152 mAccount.toString(), params[0]); in doInBackground() 289 final boolean accountChanged = mAccount == null || !mAccount.uri.equals(account.uri); in updateAccount() 290 mAccount = account; in updateAccount() 291 if (mAccount != null && accountChanged) { in updateAccount() [all …]
|
D | RecentFolderList.java | 56 private Account mAccount = null; field in RecentFolderList 95 private final Account mAccount; field in RecentFolderList.StoreRecent 106 mAccount = account; in StoreRecent() 112 final Uri uri = mAccount.recentFolderListUri; in doInBackground() 152 final boolean accountSwitched = (mAccount == null) || !mAccount.matches(account); in setCurrentAccount() 153 mAccount = account; in setCurrentAccount() 165 if (mAccount == null || c == null) { in loadFromUiProvider() 167 mAccount, c); in loadFromUiProvider() 182 LogUtils.v(TAG, "Account %s, Recent: %s", mAccount.name, folder.name); in loadFromUiProvider() 194 if (mAccount == null || !mAccount.equals(account)) { in touchFolder() [all …]
|
D | AnimatedAdapter.java | 87 private Account mAccount; field in AnimatedAdapter 216 if (mAccount != null && mAccount.uri.equals(newAccount.uri) in setAccount() 217 && mAccount.settings.priorityArrowsEnabled == in setAccount() 219 && mAccount.supportsCapability(UIProvider.AccountCapabilities.UNDO) == in setAccount() 221 && mAccount.settings.convListIcon == newAccount.settings.convListIcon in setAccount() 222 && mAccount.settings.convListAttachmentPreviews == in setAccount() 229 mAccount = newAccount; in setAccount() 230 mPriorityMarkersEnabled = mAccount.settings.priorityArrowsEnabled; in setAccount() 231 mSwipeEnabled = mAccount.supportsCapability(UIProvider.AccountCapabilities.UNDO); in setAccount() 377 view = new SwipeableConversationItemView(context, mAccount.name); in createConversationItemView() [all …]
|
D | WaitFragment.java | 46 private Account mAccount; field in WaitFragment 74 mAccount = (Account)args.getParcelable(ACCOUNT_KEY); in onCreate() 90 if (mAccount != null in getContent() 91 && (mAccount.syncStatus & SyncStatus.MANUAL_SYNC_REQUIRED) in getContent() 109 mAccount = account; in updateAccount() 118 return mAccount; in getAccount() 130 if (mAccount != null && mAccount.manualSyncUri != null) { in onClick() 140 return new CursorLoader(getActivity(), mAccount.manualSyncUri, null, null, null, null); in onCreateLoader()
|
D | AbstractConversationWebViewClient.java | 47 private Account mAccount; field in AbstractConversationWebViewClient 51 mAccount = account; in AbstractConversationWebViewClient() 55 mAccount = account; in setAccount() 73 if (Utils.divertMailtoUri(mActivity, uri, mAccount)) { in shouldOverrideUrlLoading() 78 if (mAccount != null && !Utils.isEmpty(mAccount.viewIntentProxyUri)) { in shouldOverrideUrlLoading() 100 final Intent intent = new Intent(Intent.ACTION_VIEW, mAccount.viewIntentProxyUri); in generateProxyIntent() 102 intent.putExtra(UIProvider.ViewProxyExtras.EXTRA_ACCOUNT, mAccount); in generateProxyIntent()
|
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/ |
D | EmailSyncAdapterTests.java | 100 setupSyncParserAndAdapter(mAccount, mMailbox); in brokentestSendDeletedItems() 107 mSyncAdapter.mAccount = mAccount; in brokentestSendDeletedItems() 108 Mailbox box1 = EmailContentSetupUtils.setupMailbox("box1", mAccount.mId, true, in brokentestSendDeletedItems() 113 Message msg1 = EmailContentSetupUtils.setupMessage("message1", mAccount.mId, box1.mId, in brokentestSendDeletedItems() 116 Message msg2 = EmailContentSetupUtils.setupMessage("message2", mAccount.mId, box1.mId, in brokentestSendDeletedItems() 119 Message msg3 = EmailContentSetupUtils.setupMessage("message3", mAccount.mId, box1.mId, in brokentestSendDeletedItems() 123 getAccountArgument(mAccount.mId))); in brokentestSendDeletedItems() 133 getAccountArgument(mAccount.mId))); in brokentestSendDeletedItems() 135 WHERE_ACCOUNT_KEY, getAccountArgument(mAccount.mId))); in brokentestSendDeletedItems() 146 Message msg4 = EmailContentSetupUtils.setupMessage("message4", mAccount.mId, box1.mId, in brokentestSendDeletedItems() [all …]
|
D | FolderSyncParserTests.java | 57 Mailbox box = EmailContentSetupUtils.setupMailbox("box1", mAccount.mId, false, in setupBoxSync() 80 mAccount.save(mProviderContext); in brokentestSaveAndRestoreMailboxSyncOptions() 82 parser.mAccount = mAccount; in brokentestSaveAndRestoreMailboxSyncOptions() 83 parser.mAccountId = mAccount.mId; in brokentestSaveAndRestoreMailboxSyncOptions() 84 parser.mAccountIdAsString = Long.toString(mAccount.mId); in brokentestSaveAndRestoreMailboxSyncOptions() 305 mAccount.save(mProviderContext); in testComplexFolderListParse() 306 mMailboxQueryArgs[0] = Long.toString(mAccount.mId); in testComplexFolderListParse() 307 parser.mAccount = mAccount; in testComplexFolderListParse() 308 parser.mAccountId = mAccount.mId; in testComplexFolderListParse() 309 parser.mAccountIdAsString = Long.toString(mAccount.mId); in testComplexFolderListParse() [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/src/com/android/exchange/ |
D | EasAccountService.java | 153 int trafficFlags = TrafficFlags.getSyncFlags(mContext, mAccount); in run() 155 if ((mMailbox == null) || (mAccount == null)) { in run() 177 ExchangeService.reloadFolderList(mContext, mAccount.mId, true); in run() 203 HostAuth.restoreHostAuthWithId(mContext, mAccount.mHostAuthKeyRecv); in canHandleAccountMailboxRedirect() 222 MailboxUtilities.checkMailboxConsistency(mContext, mAccount.mId); in sync() 225 if (mAccount.mSyncKey == null) { in sync() 226 mAccount.mSyncKey = "0"; in sync() 229 cv.put(AccountColumns.SYNC_KEY, mAccount.mSyncKey); in sync() 230 mAccount.update(mContext, cv); in sync() 233 boolean firstSync = mAccount.mSyncKey.equals("0"); in sync() [all …]
|
D | EasSyncService.java | 185 if (mAccount == null) { in EasSyncService() 189 HostAuth ha = HostAuth.restoreHostAuthWithId(_context, mAccount.mHostAuthKeyRecv); in EasSyncService() 375 Account account = service.mAccount; in setupProtocolVersion() 424 svc.mAccount = account; in setupServiceForAccount() 470 mAccount = new Account(); in validateAccount() 471 mAccount.mEmailAddress = hostAuth.mLogin; in validateAccount() 572 mAccount.mSecuritySyncKey = pp.getSecuritySyncKey(); in validateAccount() 1028 attendeeValues.put(Attendees.ATTENDEE_EMAIL, mAccount.mEmailAddress); in sendMeetingResponseMail() 1056 meetingInfo.get(MeetingInfo.MEETING_UID), mAccount); in sendMeetingResponseMail() 1059 EasOutboxService.sendMessage(mContext, mAccount.mId, outgoingMsg); in sendMeetingResponseMail() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
D | ComposeActivity.java | 243 protected Account mAccount; field in ComposeActivity 480 if (mAccount == null) { in finishCreate() 505 final String accountScheme = mAccount.composeIntentUri.getScheme(); in finishCreate() 764 if (mFromSpinner != null && mAccount != null) { in onResume() 765 mFromSpinner.initialize(mComposeMode, mAccount, mAccounts, mRefMessage); in onResume() 862 state.putParcelable(Utils.EXTRA_ACCOUNT, mAccount); in saveState() 942 : mAccount != null ? mAccount.getEmailAddress() : null; in createMessage() 944 final String senderName = mAccount != null ? mAccount.getSenderName() : null; in createMessage() 963 if (!account.equals(mAccount)) { in setAccount() 964 mAccount = account; in setAccount() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/widget/ |
D | WidgetService.java | 209 private final Account mAccount; field in WidgetService.MailFactory 233 mAccount = Account.newinstance(intent.getStringExtra(Utils.EXTRA_ACCOUNT)); in MailFactory() 255 BaseWidgetProvider.updateWidget(mContext, mAppWidgetId, mAccount, mFolderType, in MailFactory() 268 saveWidgetInformation(mContext, mAppWidgetId, mAccount, mFolderUri.toString()); in onCreate() 272 if (!mService.isWidgetConfigured(mContext, mAppWidgetId, mAccount)) { in onCreate() 273 BaseWidgetProvider.updateWidget(mContext, mAppWidgetId, mAccount, mFolderType, in onCreate() 310 mAccountLoader = new CursorLoader(mContext, mAccount.uri, in onCreate() 413 MAX_SENDERS_LENGTH, senders, null, null, mAccount.name, true); 439 mAccount)); 502 Utils.createViewFolderIntent(mContext, mFolderUri, mAccount)); in getViewMoreConversationsView() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | SelectedConversationsActionMenu.java | 92 private Account mAccount; field in SelectedConversationsActionMenu 106 mAccount = newAccount; in SelectedConversationsActionMenu() 109 mAccount = mAccountObserver.initialize(activity.getAccountController()); in SelectedConversationsActionMenu() 167 Account acct = mAccount; in onActionItemClicked() 200 return Utils.getFolder(mContext, mAccount.settings.moveToInbox, in onActionItemClicked() 250 final Settings settings = mAccount.settings; in performDestructiveAction() 401 && mAccount.supportsCapability(AccountCapabilities.ARCHIVE); in onPrepareActionMode() 416 mAccount.supportsCapability(UIProvider.AccountCapabilities.ARCHIVE); in onPrepareActionMode() 434 && mAccount.supportsCapability(UIProvider.AccountCapabilities.REPORT_SPAM) in onPrepareActionMode() 438 mAccount.supportsCapability(UIProvider.AccountCapabilities.REPORT_SPAM) && in onPrepareActionMode() [all …]
|
D | EmlViewerActivity.java | 60 private Account mAccount; field in EmlViewerActivity 93 mAccount = savedInstanceState.getParcelable(SAVED_ACCOUNT); in onCreate() 120 mHelpItem.setVisible(mAccount != null in onPrepareOptionsMenu() 121 && mAccount.supportsCapability(UIProvider.AccountCapabilities.HELP_CONTENT)); in onPrepareOptionsMenu() 124 mSendFeedbackItem.setVisible(mAccount != null in onPrepareOptionsMenu() 125 && mAccount.supportsCapability(UIProvider.AccountCapabilities.SEND_FEEDBACK)); in onPrepareOptionsMenu() 138 Utils.showSettings(this, mAccount); in onOptionsItemSelected() 140 Utils.showHelp(this, mAccount, getString(R.string.main_help_context)); in onOptionsItemSelected() 142 Utils.sendFeedback(this, mAccount, false); in onOptionsItemSelected() 157 return mAccount; in getAccount() [all …]
|
/packages/apps/Exchange/src/com/android/exchange/adapter/ |
D | FolderSyncParser.java | 180 mAccountId = mAccount.mId; in FolderSyncParser() 192 mAccountId = mAccount.mId; in FolderSyncParser() 202 mInitialSync = (mAccount.mSyncKey == null) || "0".equals(mAccount.mSyncKey); in parse() 232 (mAccount.mId == Account.NOT_SAVED)) { in parse() 252 mSyncKeyChanged = !newKey.equals(mAccount.mSyncKey); in parse() 253 mAccount.mSyncKey = newKey; in parse() 478 if (type == Eas.MAILBOX_TYPE_CALENDAR && !name.contains(mAccount.mEmailAddress)) { in addParser() 479 name = mAccount.mEmailAddress; in addParser() 704 cv.put(AccountColumns.SYNC_KEY, mAccount.mSyncKey); in commit() 706 ContentProviderOperation.newUpdate(mAccount.getUri()).withValues(cv).build()); in commit() [all …]
|
/packages/apps/Exchange/src/com/android/exchange/eas/ |
D | EasOperation.java | 152 protected Account mAccount; field in EasOperation 176 mAccount = account; in EasOperation() 196 mAccount = parentOperation.mAccount; in EasOperation() 207 mAccount = new Account(); in setDummyAccount() 208 mAccount.mEmailAddress = hostAuth.mLogin; in setDummyAccount() 209 mConnection = new EasServerConnection(mContext, mAccount, hostAuth); in setDummyAccount() 223 if (mAccount == null || allowReload) { in init() 224 mAccount = Account.restoreAccountWithId(mContext, getAccountId()); in init() 225 if (mAccount != null) { in init() 226 mConnection = new EasServerConnection(mContext, mAccount, in init() [all …]
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | AccountSyncSettings.java | 77 private Account mAccount; field in AccountSyncSettings 98 .removeAccount(mAccount, in onCreateDialog() 186 mAccount = (Account) arguments.getParcelable(ACCOUNT_KEY); in onActivityCreated() 187 if (mAccount != null) { in onActivityCreated() 188 if (Log.isLoggable(TAG, Log.VERBOSE)) Log.v(TAG, "Got account: " + mAccount); in onActivityCreated() 189 mUserId.setText(mAccount.name); in onActivityCreated() 190 mProviderId.setText(mAccount.type); in onActivityCreated() 333 if (mAccount != null) { in requestOrCancelSyncForEnabledProviders() 336 if (syncAdapter.accountType.equals(mAccount.type)) { in requestOrCancelSyncForEnabledProviders() 337 requestOrCancelSync(mAccount, syncAdapter.authority, startSync); in requestOrCancelSyncForEnabledProviders() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | MailAppProvider.java | 192 final Account account = accountEntry.mAccount; in query() 280 LogUtils.v(LOG_TAG, "adding account %s", accountEntry.mAccount); in addAccountImpl() 348 if (accountEntry.mAccount.settings == null) { in loadCachedAccountList() 353 Account account = accountEntry.mAccount; in loadCachedAccountList() 404 return entry.mAccount; in getAccountFromAccountUri() 435 previousQueryUriSet.add(entry.mAccount.uri); in onLoadComplete() 491 final Account mAccount; field in MailAppProvider.AccountCacheEntry 498 mAccount = account; in AccountCacheEntry() 503 mAccount = Account.newinstance(o.getString(KEY_ACCOUNT)); in AccountCacheEntry() 504 if (mAccount == null) { in AccountCacheEntry() [all …]
|
/packages/apps/Email/tests/src/com/android/email/activity/setup/ |
D | AccountSettingsTests.java | 49 private Account mAccount; field in AccountSettingsTests 75 if (mAccount != null) { in tearDown() 159 mAccount = new Account(); in getTestIntent() 160 mAccount.setSenderName(name); in getTestIntent() 162 mAccount.mEmailAddress = "user@server.com"; in getTestIntent() 163 HostAuth.setHostAuthFromString(mAccount.getOrCreateHostAuthRecv(mContext), storeUri); in getTestIntent() 164 HostAuth.setHostAuthFromString(mAccount.getOrCreateHostAuthSend(mContext), senderUri); in getTestIntent() 165 mAccount.save(mContext); in getTestIntent() 166 mAccountId = mAccount.mId; in getTestIntent()
|