HomeSort by relevance Sort by last modified time
    Searched defs:accountId (Results 26 - 50 of 56) sorted by null

12 3

  /packages/apps/Exchange/exchange2/src/com/android/exchange/provider/
ExchangeDirectoryProvider.java 186 Long accountId = mAccountIdMap.get(accountName);
187 if (accountId == null) {
188 accountId = Utility.getFirstRowLong(context, Account.CONTENT_URI,
191 if (accountId != -1) {
192 mAccountIdMap.put(accountName, accountId);
195 return accountId;
290 long accountId = getAccountIdByName(getContext(), accountName);
291 if (accountId == -1) {
297 GalResult galResult = EasSyncService.searchGal(getContext(), accountId,
  /packages/apps/Email/src/com/android/email/
Controller.java 273 public Mailbox getSearchMailbox(long accountId) {
274 Mailbox m = Mailbox.restoreMailboxOfType(mContext, accountId, Mailbox.TYPE_SEARCH);
277 m.mAccountKey = accountId;
342 public void updateMailboxList(final long accountId) {
346 final IEmailService service = getServiceForAccount(accountId);
350 service.updateFolderList(accountId);
358 mLegacyController.listFolders(accountId, mLegacyListener);
370 public void serviceCheckMail(final long accountId, final long mailboxId, final long tag) {
371 IEmailService service = getServiceForAccount(accountId);
378 mLegacyListener.checkMailFinished(mContext, accountId, mailboxId, tag)
    [all...]
NotificationController.java 223 private int getNewMessageNotificationId(long accountId) {
224 // We assume accountId will always be less than 0x0FFFFFFF; is there a better way?
225 return (int) (NOTIFICATION_ID_BASE_NEW_MESSAGES + accountId);
283 * @param accountId The ID of the account. If this is the special account ID
287 public void suspendMessageNotification(boolean suspend, long accountId) {
292 if (suspend && accountId != Account.NO_ACCOUNT && accountId > 0L) {
293 mSuspendAccountId = accountId;
294 if (accountId == Account.ACCOUNT_ID_COMBINED_VIEW) {
300 for (long accountId : mNotificationMap.keySet())
    [all...]
  /packages/apps/Email/src/com/android/email/activity/
ActionBarController.java 170 * @param accountId ID of the selected account, or {@link Account#ACCOUNT_ID_COMBINED_VIEW}.
172 public void onAccountSelected(long accountId);
177 * @param accountId ID of the selected account, or {@link Account#ACCOUNT_ID_COMBINED_VIEW}.
181 public void onMailboxSelected(long accountId, long mailboxId);
389 final long accountId = mCallback.getUIAccountId();
391 if ((mLastAccountIdForDirtyCheck != accountId)
393 mLastAccountIdForDirtyCheck = accountId;
396 if (accountId != Account.NO_ACCOUNT) {
397 loadAccountMailboxInfo(accountId, mailboxId);
407 private void loadAccountMailboxInfo(final long accountId, final long mailboxId)
    [all...]
UIControllerTwoPane.java 92 public void onMailboxSelected(long accountId, long mailboxId, boolean nestedNavigation) {
93 setListContext(MessageListContext.forMailbox(accountId, mailboxId));
131 public void onAccountSelected(long accountId) {
134 switchAccount(accountId, true);
397 long accountId = mListContext.mAccountId;
399 if ((getUIAccountId() != accountId) || (getMailboxListMailboxId() != mailboxId)) {
403 MailboxListFragment.newInstance(accountId, mailboxId, enableHighlight));
573 public RefreshTask(EmailAsyncTask.Tracker tracker, Context context, long accountId,
575 this(tracker, context, accountId, mailboxId, Clock.INSTANCE,
580 RefreshTask(EmailAsyncTask.Tracker tracker, Context context, long accountId,
    [all...]
MailboxListFragment.java 173 private static final String ARG_ACCOUNT_ID = "accountId";
233 * @param accountId
242 public void onMailboxSelected(long accountId, long mailboxId, boolean nestedNavigation);
245 public void onAccountSelected(long accountId);
255 @Override public void onMailboxSelected(long accountId, long mailboxId,
257 @Override public void onAccountSelected(long accountId) { }
285 * @param accountId The ID of the account we want to view
291 public static MailboxListFragment newInstance(long accountId, long initialCurrentMailboxId,
295 args.putLong(ARG_ACCOUNT_ID, accountId);
334 * @return {@code accountId} passed to {@link #newInstance}. Safe to call even before onCreate
    [all...]
UIControllerBase.java 116 public void onMessagingError(final long accountId, long mailboxId, final String message) {
121 public void onRefreshStatusChanged(long accountId, long mailboxId) {
210 long accountId = getUIAccountId();
211 Preferences.getPreferences(mActivity).setLastUsedAccountId(accountId);
212 showAccountSpecificWarning(accountId);
528 * @param accountId ID of the account to load. Can be {@link Account#ACCOUNT_ID_COMBINED_VIEW}.
533 public final void switchAccount(long accountId, boolean forceShowInbox) {
535 if (Account.isSecurityHold(mActivity, accountId)) {
536 ActivityHelper.showSecurityHoldDialog(mActivity, accountId);
541 if (accountId == getUIAccountId() && !forceShowInbox)
    [all...]
MessageListFragment.java 316 long accountId = listContext.mAccountId;
317 if (accountId == Account.ACCOUNT_ID_COMBINED_VIEW) {
323 long inboxId = Mailbox.findMailboxOfType(mActivity, accountId, Mailbox.TYPE_INBOX);
    [all...]
MessageCompose.java 233 * Create an {@link Intent} that can start the message compose activity. If accountId -1,
236 public static Intent getMessageComposeIntent(Context context, long accountId) {
238 i.putExtra(EXTRA_ACCOUNT_ID, accountId);
248 private static Intent getMainAppIntent(Context context, long accountId) {
249 Intent result = getMessageComposeIntent(context, accountId);
259 * @param accountId
261 public static void actionCompose(Context context, long accountId) {
263 Intent i = getMainAppIntent(context, accountId);
278 * @param accountId
281 public static boolean actionCompose(Context context, String uriString, long accountId) {
    [all...]
  /packages/apps/Email/src/com/android/email/service/
MailService.java 127 * @param accountId the account whose pending mail should be sent
129 public static void actionSendPendingMail(Context context, long accountId) {
133 i.putExtra(MailService.EXTRA_ACCOUNT, accountId);
151 final long accountId = intent.getLongExtra(EXTRA_ACCOUNT, -1);
171 Log.d(LOG_TAG, "action: check mail for id=" + accountId);
173 if (accountId >= 0) {
174 setWatchdog(accountId, alarmManager);
179 if (accountId != -1 && ContentResolver.getMasterSyncAutomatically()) {
182 if (report.accountId == accountId) {
    [all...]
AttachmentDownloadService.java 171 final long accountId;
182 accountId = msg.mAccountKey;
185 accountId = messageId = -1;
326 if (downloadsForAccount(req.accountId) >= MAX_SIMULTANEOUS_DOWNLOADS_PER_ACCOUNT) {
329 req.accountId);
395 * @param accountId the id of the account
398 /*package*/ synchronized int downloadsForAccount(long accountId) {
401 if (req.accountId == accountId) {
448 Intent intent = getServiceIntentForAccount(req.accountId);
    [all...]
  /packages/apps/Email/src/com/android/email/widget/
EmailWidget.java 161 long accountId = WidgetManager.loadAccountIdPref(mContext, mWidgetId);
164 if (accountId == Account.NO_ACCOUNT) {
165 accountId = Account.ACCOUNT_ID_COMBINED_VIEW;
168 mAccountId = accountId;
430 long accountId = mCursor.getLong(EmailWidgetLoader.WIDGET_COLUMN_ACCOUNT_KEY);
431 int colorId = mResourceHelper.getAccountColorId(accountId);
  /packages/apps/Email/tests/src/com/android/email/activity/
MessageComposeTests.java 140 long accountId = Account.getDefaultAccountId(mContext);
141 if (accountId == -1) {
147 accountId = account.mId;
148 mCreatedAccountId = accountId;
150 Account account = Account.restoreAccountWithId(mContext, accountId);
    [all...]
  /packages/apps/Email/tests/src/com/android/email/provider/
AttachmentProviderTests.java 658 long accountId = account.mId;
662 "msg1a", accountId, mailboxId, false, true, mMockContext);
664 "msg1b", accountId, mailboxId, false, true, mMockContext);
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
Account.java 233 public static boolean isNormalAccount(long accountId) {
234 return (accountId > 0L) && (accountId != ACCOUNT_ID_COMBINED_VIEW);
480 public static boolean supportsServerSearch(Context context, long accountId) {
481 Account account = Account.restoreAccountWithId(context, accountId);
581 * @param accountId the id of the account to be examined
584 public static String getProtocol(Context context, long accountId) {
585 Account account = Account.restoreAccountWithId(context, accountId);
623 long accountId = getAccountIdForMessageId(context, messageId);
624 if (accountId != -1)
    [all...]
  /packages/apps/Email/src/com/android/email/activity/setup/
AccountSettings.java 114 public static void actionSettings(Activity fromActivity, long accountId) {
115 fromActivity.startActivity(createAccountSettingsIntent(fromActivity, accountId, null));
123 public static Intent createAccountSettingsIntent(Context context, long accountId,
126 IntentUtilities.setAccountId(b, accountId);
428 long accountId = c.getLong(Account.CONTENT_ID_COLUMN);
429 if (accountId == deletingAccountId) {
436 newHeader.id = accountId;
441 AccountSettingsFragment.buildArguments(accountId, email);
AccountSettingsFragment.java 67 private static final String BUNDLE_KEY_ACCOUNT_ID = "AccountSettingsFragment.AccountId";
146 public static Bundle buildArguments(long accountId, String email) {
148 b.putLong(BUNDLE_KEY_ACCOUNT_ID, accountId);
183 long accountId = b.getLong(BUNDLE_KEY_ACCOUNT_ID, -1);
185 if (accountId >= 0 && !mLoaded) {
186 startLoadingAccount(accountId);
321 public void startLoadingAccount(long accountId) {
324 AsyncTask.THREAD_POOL_EXECUTOR, accountId);
333 long accountId = params[0];
334 Account account = Account.restoreAccountWithId(mContext, accountId);
    [all...]
  /packages/apps/Email/src/com/android/email/provider/
EmailProvider.java 531 private HashMap<Integer, Long> getOrCreateAccountMailboxTypeMap(long accountId) {
533 HashMap<Integer, Long> accountMailboxTypeMap = mMailboxTypeMap.get(accountId);
536 mMailboxTypeMap.put(accountId, accountMailboxTypeMap);
543 long accountId = c.getLong(Mailbox.CONTENT_ACCOUNT_KEY_COLUMN);
547 getOrCreateAccountMailboxTypeMap(accountId);
552 private long getMailboxIdFromMailboxTypeMap(long accountId, int type) {
554 HashMap<Integer, Long> accountMap = mMailboxTypeMap.get(accountId);
    [all...]
  /packages/apps/Exchange/exchange2/src/com/android/exchange/
EasSyncService.java     [all...]
ExchangeService.java 314 public void syncMailboxListStatus(final long accountId, final int status,
319 cb.syncMailboxListStatus(accountId, status, progress);
434 public void updateFolderList(long accountId) throws RemoteException {
435 reloadFolderList(ExchangeService.this, accountId, false);
439 public void hostChanged(long accountId) throws RemoteException {
452 } else if (error != null && m.mAccountKey == accountId) {
458 exchangeService.stopAccountSyncs(accountId, true);
479 public boolean createFolder(long accountId, String name) throws RemoteException {
484 public boolean deleteFolder(long accountId, String name) throws RemoteException {
489 public boolean renameFolder(long accountId, String oldName, String newName
    [all...]
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
ContactAggregator.java 650 long accountId = 0;
658 accountId = cursor.getLong(RawContactIdAndAccountQuery.ACCOUNT_ID);
664 aggregateContact(txContext, db, rawContactId, accountId, contactId,
703 long rawContactId, long accountId, long currentContactId, MatchCandidateList candidates,
738 !canJoinIntoContact(db, contactId, rawContactId, accountId)) {
    [all...]
  /frameworks/base/services/java/com/android/server/accounts/
AccountManagerService.java 366 final long accountId = cursor.getLong(0);
373 db.delete(TABLE_ACCOUNTS, ACCOUNTS_ID + "=" + accountId, null);
686 long accountId = db.insert(TABLE_ACCOUNTS, ACCOUNTS_NAME, values);
687 if (accountId < 0) {
695 if (insertExtraLocked(db, accountId, key, value) < 0) {
738 private long insertExtraLocked(SQLiteDatabase db, long accountId, String key, String value) {
741 values.put(EXTRAS_ACCOUNTS_ID, accountId);
    [all...]
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
ContactsProvider2.java     [all...]
  /prebuilts/sdk/11/
android.jar 
  /prebuilts/sdk/12/
android.jar 

Completed in 490 milliseconds

12 3