Home
last modified time | relevance | path

Searched refs:mAccount (Results 1 – 25 of 93) sorted by relevance

1234

/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DActionBarController.java62 private Account mAccount; field in ActionBarController
81 final Uri mAccount; field in ActionBarController.UpdateProvider
84 mAccount = account; in UpdateProvider()
90 mResolver.call(mAccount, UIProvider.AccountCallMethods.SET_CURRENT_ACCOUNT, in doInBackground()
91 mAccount.toString(), params[0]); in doInBackground()
154 final boolean accountChanged = mAccount == null || !mAccount.uri.equals(account.uri); in updateAccount()
155 mAccount = account; in updateAccount()
156 if (mAccount != null && accountChanged) { in updateAccount()
160 final UpdateProvider updater = new UpdateProvider(mAccount.uri, resolver); in updateAccount()
233 Utils.setMenuItemPresent(mEmptyTrashItem, mAccount != null && mFolder != null in validateVolatileMenuOptionVisibility()
[all …]
DAbstractActivityController.java185 protected Account mAccount; field in AbstractActivityController
555 return mAccount; in getCurrentAccount()
661 if (mAccount.isAccountInitializationRequired()) { in perhapsEnterWaitMode()
667 final boolean isSyncRequired = mAccount.isAccountSyncRequired(); in perhapsEnterWaitMode()
695 final boolean firstLoad = mAccount == null; in switchToDefaultInboxOrChangeAccount()
696 final boolean switchToDefaultInbox = !firstLoad && account.uri.equals(mAccount.uri); in switchToDefaultInboxOrChangeAccount()
708 final boolean firstLoad = mAccount == null; in changeAccount()
709 final boolean accountChanged = firstLoad || !account.uri.equals(mAccount.uri); in changeAccount()
712 if (!accountChanged && !account.settingsDiffer(mAccount)) { in changeAccount()
739 if (mAccount != null && !Uri.EMPTY.equals(mAccount.settings.setupIntentUri)) { in changeAccount()
[all …]
DRecentFolderList.java57 private Account mAccount = null; field in RecentFolderList
96 private final Account mAccount; field in RecentFolderList.StoreRecent
107 mAccount = account; in StoreRecent()
113 final Uri uri = mAccount.recentFolderListUri; in doInBackground()
153 final boolean accountSwitched = (mAccount == null) || !mAccount.matches(account); in setCurrentAccount()
154 mAccount = account; in setCurrentAccount()
166 if (mAccount == null || c == null) { in loadFromUiProvider()
168 mAccount, c); in loadFromUiProvider()
183 LogUtils.v(TAG, "Account %s, Recent: %s", mAccount.getEmailAddress(), folder.name); in loadFromUiProvider()
195 if (mAccount == null || !mAccount.equals(account)) { in touchFolder()
[all …]
DWaitFragment.java46 private Account mAccount; field in WaitFragment
70 mAccount = (Account)args.getParcelable(ACCOUNT_KEY); in onCreate()
86 if (mAccount != null in getContent()
87 && (mAccount.syncStatus & SyncStatus.MANUAL_SYNC_REQUIRED) in getContent()
105 mAccount = account; in updateAccount()
114 return mAccount; in getAccount()
126 if (mAccount != null && mAccount.manualSyncUri != null) { in onClick()
136 return new CursorLoader(getActivity(), mAccount.manualSyncUri, null, null, null, null); in onCreateLoader()
DAccountFeedbackActivity.java51 protected Account mAccount; field in AccountFeedbackActivity
68 mAccount = savedInstanceState.getParcelable(SAVED_ACCOUNT); in onCreate()
84 mAccount = data.getModel(); in onAccountLoadCallbackFinished()
102 mHelpAndFeedbackItem.setVisible(mAccount != null in onPrepareOptionsMenu()
103 && mAccount.supportsCapability(UIProvider.AccountCapabilities.HELP_CONTENT)); in onPrepareOptionsMenu()
115 Utils.showSettings(this, mAccount); in onOptionsItemSelected()
127 return mAccount; in getAccount()
131 Utils.showHelp(this, mAccount, helpContext); in showHelp()
DAbstractConversationViewFragment.java77 protected Account mAccount; field in AbstractConversationViewFragment
119 final Account oldAccount = mAccount;
120 mAccount = newAccount;
121 mWebViewClient.setAccount(mAccount);
263 mAccount = args.getParcelable(ARG_ACCOUNT); in parseArguments()
272 mBaseUri = buildBaseUri(getContext(), mAccount, mConversation); in setBaseUri()
306 mAccount = mAccountObserver.initialize(mActivity.getAccountController()); in onActivityCreated()
307 mWebViewClient.setAccount(mAccount); in onActivityCreated()
347 return mAccount; in getAccount()
724 return (mAccount.enableMessageTransforms > 0) && in shouldApplyTransforms()
[all …]
DAbstractConversationWebViewClient.java57 private Account mAccount; field in AbstractConversationWebViewClient
61 mAccount = account; in AbstractConversationWebViewClient()
65 mAccount = account; in setAccount()
140 if (Utils.divertMailtoUri(mActivity, uri, mAccount)) { in shouldOverrideUrlLoading()
145 if (mAccount != null && !Utils.isEmpty(mAccount.viewIntentProxyUri)) { in shouldOverrideUrlLoading()
169 mActivity, mAccount.viewIntentProxyUri, uri, mAccount.getEmailAddress()); in generateProxyIntent()
DConversationSyncDisabledTipView.java50 private Account mAccount = null; field in ConversationSyncDisabledTipView
80 mAccount.getAccountManagerAccount(), mAccount.syncAuthority); in getTextAreaOnClickListener()
83 Utils.showAccountSettings(getContext(), mAccount); in getTextAreaOnClickListener()
90 mAccount = account;
102 if (mAccount == null || mAccount.syncAuthority == null) {
111 setReasonSyncOff(calculateReasonSyncOff(mMailPrefs, mAccount, mAccountPreferences));
/packages/apps/UnifiedEmail/tests/src/com/android/mail/compose/
DComposeActivityTest.java59 private Account mAccount; field in ComposeActivityTest
106 mAccount = account; in setAccount()
107 activity.setAccount(mAccount); in setAccount()
141 ReplyFromAccount a = new ReplyFromAccount(mAccount, mAccount.uri, customFrom, in testRecipientsRefReplyAllCustomFromReplyTo()
145 mAccount.accountFromAddresses = array.toString(); in testRecipientsRefReplyAllCustomFromReplyTo()
146 final ReplyFromAccount currentAccount = new ReplyFromAccount(mAccount, mAccount.uri, in testRecipientsRefReplyAllCustomFromReplyTo()
147 mAccount.getEmailAddress(), mAccount.getEmailAddress(), customFrom, true, false); in testRecipientsRefReplyAllCustomFromReplyTo()
179 final Account account = mAccount; in testRecipientsRefReplyAllOnlyAccount()
181 final ReplyFromAccount currentAccount = new ReplyFromAccount(mAccount, mAccount.uri, in testRecipientsRefReplyAllOnlyAccount()
182 mAccount.getEmailAddress(), mAccount.getEmailAddress(), mAccount.getEmailAddress(), in testRecipientsRefReplyAllOnlyAccount()
[all …]
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSettingsFragment.java132 private Account mAccount; field in AccountSettingsFragment
346 mAccount.mEmailAddress, mServiceInfo.accountType); in onPreferenceChange()
367 mAccount.mEmailAddress, mServiceInfo.accountType); in onPreferenceChange()
373 mAccount.mEmailAddress, mServiceInfo.accountType); in onPreferenceChange()
379 mAccount.mEmailAddress, mServiceInfo.accountType); in onPreferenceChange()
384 int newFlags = mAccount.getFlags() & ~(Account.FLAGS_BACKGROUND_ATTACHMENTS); in onPreferenceChange()
406 new UpdateTask().run(mContext.getContentResolver(), mAccount.getUri(), cv, null, null); in onPreferenceChange()
547 mAccount = (Account) data.get(AccountLoader.RESULT_KEY_ACCOUNT); in onLoadFinished()
549 if (mAccount != null && (mAccount.mFlags & Account.FLAGS_SECURITY_HOLD) != 0) { in onLoadFinished()
551 mAccount.getId(), true); in onLoadFinished()
[all …]
DAccountCheckSettingsFragment.java315 final Account mAccount; field in AccountCheckSettingsFragment.AccountCheckTask
332 mAccount = setupData.getAccount(); in AccountCheckTask()
333 if (mAccount.mHostAuthRecv != null) { in AccountCheckTask()
334 mStoreHost = mAccount.mHostAuthRecv.mAddress; in AccountCheckTask()
335 mCheckPassword = mAccount.mHostAuthRecv.mPassword; in AccountCheckTask()
340 mCheckEmail = mAccount.mEmailAddress; in AccountCheckTask()
350 final Store store = Store.getInstance(mAccount, mContext); in doInBackground()
382 final Store store = Store.getInstance(mAccount, mContext); in doInBackground()
387 mAccount.mProtocolVersion = bundle.getString( in doInBackground()
393 mAccount.mHostAuthRecv.mAddress = redirectAddress; in doInBackground()
[all …]
DSetupDataFragment.java46 private Account mAccount; field in SetupDataFragment
76 outState.putParcelable(SAVESTATE_ACCOUNT, mAccount); in onSaveInstanceState()
113 return mAccount; in getAccount()
117 mAccount = account; in setAccount()
118 mAccount.setTemporary(true); in setAccount()
127 mAccount.mEmailAddress = email; in setEmail()
200 final HostAuth recvAuth = mAccount.getOrCreateHostAuthRecv(context); in getIncomingProtocol()
205 final HostAuth recvAuth = mAccount.getOrCreateHostAuthRecv(context); in setIncomingProtocol()
212 final HostAuth recvAuth = mAccount.getOrCreateHostAuthRecv(context); in getClientCert()
246 dest.writeParcelable(mAccount, 0); in writeToParcel()
[all …]
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountSyncSettings.java71 private Account mAccount; field in AccountSyncSettings
147 mAccount = (Account) arguments.getParcelable(ACCOUNT_KEY); in onActivityCreated()
148 if (!accountExists(mAccount)) { in onActivityCreated()
149 Log.e(TAG, "Account provided does not exist: " + mAccount); in onActivityCreated()
154 Log.v(TAG, "Got account: " + mAccount); in onActivityCreated()
156 mUserId.setText(mAccount.name); in onActivityCreated()
157 mProviderId.setText(mAccount.type); in onActivityCreated()
336 if (!accountManager.hasAccountAccess(mAccount, packageName, mUserHandle)) { in requestAccountAccessIfNeeded()
338 mAccount, packageName, mUserHandle); in requestAccountAccessIfNeeded()
382 if (mAccount != null) { in requestOrCancelSyncForEnabledProviders()
[all …]
DAccountSyncPreferenceController.java44 private Account mAccount; field in AccountSyncPreferenceController
64 args.putParcelable(AccountSyncSettings.ACCOUNT_KEY, mAccount); in handlePreferenceTreeClick()
94 mAccount = account; in init()
101 if (mAccount == null) { in updateSummary()
111 if (!sa.accountType.equals(mAccount.type) || !sa.isUserVisible()) { in updateSummary()
115 ContentResolver.getIsSyncableAsUser(mAccount, sa.authority, userId); in updateSummary()
119 mAccount, sa.authority, userId); in updateSummary()
/packages/apps/Email/tests/src/com/android/email/activity/setup/
DEmailPreferenceActivityTests.java47 private Account mAccount; field in EmailPreferenceActivityTests
73 if (mAccount != null) { in tearDown()
157 mAccount = new Account(); in getTestIntent()
158 mAccount.setSenderName(name); in getTestIntent()
160 mAccount.mEmailAddress = "user@server.com"; in getTestIntent()
161 mAccount.getOrCreateHostAuthRecv(mContext).setHostAuthFromString(storeUri); in getTestIntent()
162 mAccount.getOrCreateHostAuthSend(mContext).setHostAuthFromString(senderUri); in getTestIntent()
163 mAccount.save(mContext); in getTestIntent()
164 mAccountId = mAccount.mId; in getTestIntent()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DSelectedConversationsActionMenu.java89 private Account mAccount; field in SelectedConversationsActionMenu
105 mAccount = newAccount; in SelectedConversationsActionMenu()
108 mAccount = mAccountObserver.initialize(activity.getAccountController()); in SelectedConversationsActionMenu()
181 Account acct = mAccount; in onActionItemClicked()
214 return Utils.getFolder(mContext, mAccount.settings.moveToInbox, in onActionItemClicked()
264 final Settings settings = mAccount.settings; in performDestructiveAction()
417 && mAccount.supportsCapability(AccountCapabilities.ARCHIVE); in onPrepareActionMode()
427 changeFolders.setVisible(mAccount.supportsCapability( in onPrepareActionMode()
437 mAccount.supportsCapability(UIProvider.AccountCapabilities.ARCHIVE) && in onPrepareActionMode()
442 && mAccount.supportsCapability(UIProvider.AccountCapabilities.REPORT_SPAM) in onPrepareActionMode()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAccountSyncFragment.java61 private Account mAccount; field in AccountSyncFragment
95 mAccount = getArguments().getParcelable(ARG_ACCOUNT); in onCreate()
101 Log.v(TAG, "Got account: " + mAccount); in onCreate()
135 getPreferenceScreen().setTitle(mAccount.name); in onCreatePreferences()
139 .putExtra(AccountSyncActivity.EXTRA_ACCOUNT, mAccount.name)); in onCreatePreferences()
214 if (mAccount != null) { in requestOrCancelSyncForEnabledProviders()
216 requestOrCancelSync(mAccount, syncAdapter.authority, startSync); in requestOrCancelSyncForEnabledProviders()
259 if (!accountExists(mAccount)) { in onAccountsUpdate()
344 if (!sa.accountType.equals(mAccount.type)) continue; in updateAccountSwitches()
362 Log.v(TAG, "looking for sync adapters that match account " + mAccount); in updateAccountSwitches()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/widget/
DWidgetService.java211 private final Account mAccount; field in WidgetService.MailFactory
234 mAccount = Account.newInstance(intent.getStringExtra(Utils.EXTRA_ACCOUNT)); in MailFactory()
257 BaseWidgetProvider.updateWidget(mContext, mAppWidgetId, mAccount, mFolderType, in MailFactory()
271 saveWidgetInformation(mContext, mAppWidgetId, mAccount, mFolderUri.toString()); in onCreate()
275 if (!mService.isWidgetConfigured(mContext, mAppWidgetId, mAccount)) { in onCreate()
276 BaseWidgetProvider.updateWidget(mContext, mAppWidgetId, mAccount, mFolderType, in onCreate()
314 mAccountLoader = new CursorLoader(mContext, mAccount.uri, in onCreate()
415 MAX_SENDERS_LENGTH, senders, null, null, mAccount,
439 mAccount));
496 Utils.createViewFolderIntent(mContext, mFolderUri, mAccount)); in getViewMoreConversationsView()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DMailAppProvider.java218 final Account account = accountEntry.mAccount; in query()
307 LogUtils.v(LOG_TAG, "adding account %s", accountEntry.mAccount); in addAccountImpl()
375 if (accountEntry.mAccount.settings == null) { in loadCachedAccountList()
380 Account account = accountEntry.mAccount; in loadCachedAccountList()
431 return entry.mAccount; in getAccountFromAccountUri()
462 previousQueryUriSet.add(entry.mAccount.uri); in onLoadComplete()
528 final Account mAccount; field in MailAppProvider.AccountCacheEntry
535 mAccount = account; in AccountCacheEntry()
540 mAccount = Account.newInstance(o.getString(KEY_ACCOUNT)); in AccountCacheEntry()
541 if (mAccount == null) { in AccountCacheEntry()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DFromAddressSpinner.java38 private ReplyFromAccount mAccount; field in FromAddressSpinner
51 mAccount = account; in setCurrentAccount()
56 if (mAccount == null) { in selectCurrentAccount()
61 if (TextUtils.equals(mAccount.name, acct.name) in selectCurrentAccount()
62 && TextUtils.equals(mAccount.address, acct.address)) { in selectCurrentAccount()
82 return mAccount; in getCurrentAccount()
151 if (!selection.address.equals(mAccount.address)) { in onItemSelected()
152 mAccount = selection; in onItemSelected()
DComposeActivity.java303 protected Account mAccount; field in ComposeActivity
602 if (mAccount == null) { in finishCreate()
636 final String accountScheme = mAccount.composeIntentUri.getScheme(); in finishCreate()
985 if (mFromSpinner != null && mAccount != null) { in onResume()
986 mFromSpinner.initialize(mComposeMode, mAccount, mAccounts, mRefMessage); in onResume()
1085 state.putParcelable(Utils.EXTRA_ACCOUNT, mAccount); in saveState()
1200 : mAccount != null ? mAccount.getEmailAddress() : null; in computeFromForAccount()
1202 : mAccount != null ? mAccount.getSenderName() : null; in computeFromForAccount()
1219 if (!account.equals(mAccount)) { in setAccount()
1220 mAccount = account; in setAccount()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPbapClientConnectionHandler.java88 private Account mAccount; field in PbapClientConnectionHandler
110 mAccount = new Account(mDevice.getAddress(), mContext.getString( in PbapClientConnectionHandler()
127 mAccount = new Account(mDevice.getAddress(), mContext.getString( in PbapClientConnectionHandler()
205 removeAccount(mAccount); in handleMessage()
214 mAccountCreated = addAccount(mAccount); in handleMessage()
222 PB_PATH, mAccount, PBAP_REQUESTED_FIELDS, VCARD_TYPE_30, 0, 1); in handleMessage()
226 mAccount); in handleMessage()
338 new BluetoothPbapRequestPullPhoneBook(path, mAccount, 0, VCARD_TYPE_30, 0, 0); in downloadCallLog()
352 Log.d(TAG, "Added account " + mAccount); in addAccount()
365 Log.e(TAG, "Failed to remove account " + mAccount); in removeAccount()
/packages/apps/Email/provider_src/com/android/email/activity/setup/
DAccountSecurity.java83 private Account mAccount; field in AccountSecurity
177 mAccount = savedInstanceState.getParcelable(SAVESTATE_ACCOUNT_TAG); in onCreate()
194 outState.putParcelable(SAVESTATE_ACCOUNT_TAG, mAccount); in onSaveInstanceState()
316 mAccount = account; in completeCreate()
323 PasswordExpirationDialog.newInstance(mAccount.getDisplayName(), in completeCreate()
333 if (mAccount.mPolicyKey != 0) { in completeCreate()
340 SecurityNeededDialog.newInstance(mAccount.getDisplayName()); in completeCreate()
348 tryAdvanceSecurity(mAccount); in completeCreate()
360 tryAdvanceSecurity(mAccount); in onActivityResult()
544 if (activity.mAccount == null) { in onClick()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapMasInstance.java77 private BluetoothMapAccountItem mAccount = null; // field in BluetoothMapMasInstance
122 mAccount = account; in BluetoothMapMasInstance()
316 if(mAccount.getType() == TYPE.EMAIL) { in createMasSdpRecord()
318 } else if(mAccount.getType() == TYPE.IM) { in createMasSdpRecord()
322 masName = mAccount.getName(); in createMasSdpRecord()
325 if(mAccount.getType() == TYPE.EMAIL) { in createMasSdpRecord()
327 } else if(mAccount.getType() == TYPE.IM) { in createMasSdpRecord()
359 mAccount, in startObexServerSession()
366 mAccount, in startObexServerSession()
/packages/apps/Contacts/src/com/android/contacts/group/
DGroupNameEditDialogFragment.java87 private AccountWithDataSet mAccount; field in GroupNameEditDialogFragment
133 mAccount = getArguments().getParcelable(ARG_ACCOUNT); in onCreate()
250 serviceIntent = ContactSaveService.createNewGroupIntent(getActivity(), mAccount, in maybePersistCurrentGroupName()
340 if (mAccount.dataSet != null) { in getSelection()
347 final int len = mAccount.dataSet == null ? 3 : 4; in getSelectionArgs()
349 args[0] = mAccount.name; in getSelectionArgs()
350 args[1] = mAccount.type; in getSelectionArgs()
352 if (mAccount.dataSet != null) { in getSelectionArgs()
353 args[3] = mAccount.dataSet; in getSelectionArgs()

1234