/packages/apps/Email/src/com/android/email/activity/ |
NfcHandler.java | 62 final long accountId = mUiController.getActualAccountId(); 63 final Account account = Account.restoreAccountWithId(mActivity, accountId);
|
AccountSelectorAdapter.java | 65 private static final String ACCOUNT_ID = "accountId"; 104 * @param accountId the ID of the currently viewed account 106 public static Loader<Cursor> createLoader(Context context, long accountId, long mailboxId) { 107 return new AccountsLoader(context, accountId, mailboxId, UiUtilities.useTwoPane(context)); 314 AccountsLoader(Context context, long accountId, long mailboxId, boolean useTwoPane) { 319 mAccountId = accountId; 347 final long accountId = accountCursor.getLong(0); 349 mContext, accountId, Mailbox.TYPE_INBOX); 352 addRow(matrixCursor, ROW_TYPE_ACCOUNT, accountId, name, emailAddress, unread, 353 UNKNOWN_POSITION, accountId); [all...] |
MailboxFragmentAdapter.java | 355 final long accountId = getAccountId(cursor); 364 listItem.mAccountId = accountId; 450 static Loader<Cursor> createMailboxesLoader(Context context, long accountId, 453 Log.d(Logging.LOG_TAG, "MailboxFragmentAdapter#CursorWithExtras accountId=" + accountId 456 if (accountId == Account.ACCOUNT_ID_COMBINED_VIEW) { 459 return new MailboxFragmentLoader(context, accountId, parentMailboxId); 477 long accountId) { 491 row.add(accountId); 517 MailboxFragmentLoader(Context context, long accountId, long parentKey) [all...] |
UIControllerOnePane.java | 59 public void onAccountSelected(long accountId) { 62 switchAccount(accountId, true); 67 public void onMailboxSelected(long accountId, long mailboxId, boolean nestedNavigation) { 71 openMailbox(accountId, mailboxId); 204 public void onMailboxSelected(long accountId, long mailboxId) { 208 openMailbox(accountId, mailboxId); 218 public void onAccountSelected(long accountId) { 219 switchAccount(accountId, true); // Always go to inbox 400 private void openMailboxList(long accountId) { 402 showFragment(MailboxListFragment.newInstance(accountId, Mailbox.NO_MAILBOX, false)) [all...] |
ActivityHelper.java | 137 public static void showSecurityHoldDialog(Activity callerActivity, long accountId) { 139 AccountSecurity.actionUpdateSecurityIntent(callerActivity, accountId, true));
|
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...] |
/packages/apps/Email/tests/src/com/android/email/provider/ |
ProviderTestUtils.java | 79 public static void deleteAccount(Context context, long accountId) { 81 Account.CONTENT_URI, accountId), null, null); 87 public static HostAuth setupHostAuth(String name, long accountId, boolean saveIt, 116 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, 118 return setupMailbox(name, accountId, saveIt, context, Mailbox.TYPE_MAIL); 120 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, 122 return setupMailbox(name, accountId, saveIt, context, type, '/'); 124 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, 137 box.mAccountKey = accountId; 157 public static Message setupMessage(String name, long accountId, long mailboxId [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSecurity.java | 73 * @param accountId The account of interest 79 public static Intent actionUpdateSecurityIntent(Context context, long accountId, 82 intent.putExtra(EXTRA_ACCOUNT_ID, accountId); 92 public static Intent actionDevicePasswordExpirationIntent(Context context, long accountId, 95 intent.putExtra(EXTRA_ACCOUNT_ID, accountId); 106 final long accountId = i.getLongExtra(EXTRA_ACCOUNT_ID, -1); 112 if (accountId == -1) { 117 mAccount = Account.restoreAccountWithId(AccountSecurity.this, accountId);
|
AccountSettingsEditQuickResponsesFragment.java | 111 * @param accountId - accountId of the QuickResponses 115 FragmentManager fragmentManager, long accountId) { 118 mAccountId = accountId; 156 * @param accountId - id of the account whose QuickResponses are to be returned 166 public QuickResponseFinder(EmailAsyncTask.Tracker tracker, long accountId, 170 mAccountId = accountId;
|
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);
|
/packages/apps/Email/src/com/android/email/provider/ |
AttachmentProvider.java | 150 String accountId = segments.get(0); 153 AttachmentUtilities.getAttachmentDirectory(context, Long.parseLong(accountId)); 165 String accountId = segments.get(0); 171 String filename = "thmb_" + accountId + "_" + id; 176 getAttachmentUri(Long.parseLong(accountId), Long.parseLong(id)); 217 new File(getContext().getDatabasePath(accountId + ".db_att"), id), 256 String accountId = segments.get(0);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
DataRowHandlerForGroupMembership.java | 208 final long accountId = accountIdOrNull; 219 if (entry.accountId == accountId) { 225 entry.accountId = accountId; 233 new String[]{sourceId, Long.toString(accountId)}, null, null, null); 240 groupValues.put(GroupsColumns.ACCOUNT_ID, accountId);
|
/packages/apps/Email/src/com/android/email/service/ |
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/emailcommon/src/com/android/emailcommon/provider/ |
Mailbox.java | 251 public static Mailbox newSystemMailbox(long accountId, int mailboxType, String name) { 256 box.mAccountKey = accountId; 271 * @param accountId the ID of the account 274 public static Mailbox restoreMailboxForPath(Context context, long accountId, String path) { 279 new String[] { path, Long.toString(accountId) }, 302 public static Mailbox getMailboxForPath(Context context, long accountId, String path) { 303 Mailbox mailbox = restoreMailboxForPath(context, accountId, path); 372 * @param accountId the id of the account to be queried 376 public static long findMailboxOfType(Context context, long accountId, int type) { 378 Uri uri = FROM_ACCOUNT_AND_TYPE_URI.buildUpon().appendPath(Long.toString(accountId)) [all...] |
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...] |
QuickResponse.java | 128 * @param accountId 129 * @return array of QuickResponses for the account with id accountId 132 long accountId) { 133 Uri uri = ContentUris.withAppendedId(ACCOUNT_ID_URI, accountId);
|
/packages/apps/Email/src/com/android/email/ |
AttachmentInfo.java | 189 * @param accountId the account associated with the attachment (or 0 if we don't need to 193 public Intent getAttachmentIntent(Context context, long accountId) { 194 Uri contentUri = getUriForIntent(context, accountId); 202 protected Uri getUriForIntent(Context context, long accountId) { 203 Uri contentUri = AttachmentUtilities.getAttachmentUri(accountId, mId); 204 if (accountId > 0) {
|
SecurityPolicy.java | 216 * @param accountId the account that has been updated, -1 if unknown/deleted 218 public synchronized void policiesUpdated(long accountId) { 501 public static void setAccountHoldFlag(Context context, long accountId, boolean holdEnabled) { 502 Account account = Account.restoreAccountWithId(context, accountId); 596 public void setAccountPolicy(long accountId, Policy policy, String securityKey) { 597 Account account = Account.restoreAccountWithId(mContext, accountId); 631 * @param accountId the account for which sync cannot proceed 633 public void policiesRequired(long accountId) { 634 Account account = Account.restoreAccountWithId(mContext, accountId); [all...] |
MessagingController.java | 244 * @param accountId ID of the account for which to list the folders 247 void listFolders(final long accountId, MessagingListener listener) { 248 final Account account = Account.restoreAccountWithId(mContext, accountId); 250 Log.i(Logging.LOG_TAG, "Could not load account id " + accountId 254 mListeners.listFoldersStarted(accountId); 302 mContext, accountId, mailboxId); 311 mListeners.listFoldersFinished(accountId); 313 mListeners.listFoldersFailed(accountId, e.toString()); 604 public int searchMailbox(long accountId, SearchParams searchParams, long destMailboxId) 607 return searchMailboxImpl(accountId, searchParams, destMailboxId) [all...] |
/packages/apps/Exchange/exchange2/src/com/android/exchange/ |
EmailSyncAdapterService.java | 102 long accountId = accountCursor.getLong(0); 105 ACCOUNT_AND_TYPE_INBOX, new String[] {Long.toString(accountId)}, null);
|
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/apps/Gallery2/tests/src/com/android/photos/data/ |
PhotoDatabaseUtils.java | 101 Long dateTaken, Long albumId, String mimeType, Long accountId) { 108 values.put(Photos.ACCOUNT_ID, accountId); 113 Integer privacy, Long accountId) { 118 values.put(Albums.ACCOUNT_ID, accountId);
|
/packages/apps/Email/tests/src/com/android/email/ |
RefreshManagerTest.java | 444 public void sendPendingMessages(long accountId) { 446 mAccountId = accountId; 450 public void updateMailbox(long accountId, long mailboxId, boolean userRequest) { 452 mAccountId = accountId; 457 public void updateMailboxList(long accountId) { 459 mAccountId = accountId; 495 public void onRefreshStatusChanged(long accountId, long mailboxId) { 496 mAccountId = accountId; 502 public void onMessagingError(long accountId, long mailboxId, String message) { 503 mAccountId = accountId; [all...] |
/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/mail/ |
Store.java | 183 protected static void updateMailbox(Mailbox mailbox, long accountId, String mailboxPath, 185 mailbox.mAccountKey = accountId;
|