/packages/apps/Email/tests/src/com/android/email/ |
MessageListContextTests.java | 27 long accountId = 123; 29 MessageListContext original = MessageListContext.forMailbox(accountId, mailboxId); 41 long accountId = 123; 44 MessageListContext original = MessageListContext.forSearch(accountId, mailboxId, params);
|
ControllerProviderOpsTests.java | 110 * Does not test duplication, bad accountID, or any other bad input. 147 * - when accountId or mailboxType are -1, returns NO_MAILBOX 151 long accountId = account.mId; 152 Mailbox box = ProviderTestUtils.setupMailbox("box", accountId, false, mProviderContext); 158 long testBoxId = mTestController.findOrCreateMailboxOfType(accountId, boxType); 163 long boxId2 = mTestController.findOrCreateMailboxOfType(accountId, Mailbox.TYPE_DRAFTS); 168 long boxId3 = mTestController.findOrCreateMailboxOfType(accountId, Mailbox.TYPE_DRAFTS); 174 assertEquals(Mailbox.NO_MAILBOX, mTestController.findOrCreateMailboxOfType(accountId, -1));
|
LegacyConversionsTests.java | 196 final long accountId = 1; 201 "local-message", accountId, mailboxId, false, true, mProviderContext); 207 "local-message", accountId, mailboxId, false, true, mProviderContext); 253 final long accountId = 1; 288 "local-message", accountId, mailboxId, false, true, mProviderContext); 303 final long accountId = 1; 306 "local-message", accountId, mailboxId, false, true, mProviderContext);
|
SecurityPolicyTests.java | 210 private long assertAccountPolicyConsistent(long accountId, long oldKey) { 211 Account account = Account.restoreAccountWithId(mMockContext, accountId); 221 accountId, 236 long accountId = account.mId; 239 Policy.setAccountPolicy(mMockContext, accountId, initial, null); 245 Policy.setAccountPolicy(mMockContext, accountId, updated, null); 250 mMockContext, Account.restoreAccountWithId(mMockContext, accountId));
|
/packages/apps/Email/tests/src/com/android/email/activity/ |
MessagesAdapterTests.java | 53 private long createMailbox(long accountId, int type) { 54 Mailbox box = ProviderTestUtils.setupMailbox("name", accountId, false, mProviderContext); 60 private MessagesAdapter.MessagesCursor getLoaderResult(long accountId, long mailboxId) { 64 MessageListContext.forMailbox(accountId, mailboxId))); 71 final long accountId = createAccount(false); 72 final long mailboxId = createMailbox(accountId, Mailbox.TYPE_MAIL); 74 MessagesAdapter.MessagesCursor result = getLoaderResult(accountId, mailboxId); 76 assertEquals(accountId, result.mAccount.mId); 86 final long accountId = createAccount(true); 87 final long mailboxId = createMailbox(accountId, Mailbox.TYPE_MAIL) [all...] |
MailboxFinderTest.java | 108 private long createMailbox(long accountId, int mailboxType) { 111 box.mAccountKey = accountId; 122 private void createAndStartFinder(final long accountId, final int mailboxType) 127 mMailboxFinder = new MailboxFinder(mProviderContext, accountId, mailboxType, 152 final long accountId = createAccount(true); 154 createAndStartFinder(accountId, Mailbox.TYPE_INBOX); 186 final long accountId = createAccount(false); 187 final long mailboxId = createMailbox(accountId, Mailbox.TYPE_INBOX); 189 createAndStartFinder(accountId, Mailbox.TYPE_INBOX); 198 assertEquals(accountId, mCallback.mAccountId) [all...] |
MessageComposeTests.java | 139 long accountId = Account.getDefaultAccountId(mContext); 140 if (accountId == -1) { 146 accountId = account.mId; 147 mCreatedAccountId = accountId; 149 Account account = Account.restoreAccountWithId(mContext, accountId); [all...] |
/packages/apps/Email/src/com/android/email/provider/ |
AttachmentProvider.java | 154 String accountId = segments.get(0); 157 AttachmentUtilities.getAttachmentDirectory(context, Long.parseLong(accountId)); 169 String accountId = segments.get(0); 175 String filename = "thmb_" + accountId + "_" + id; 180 getAttachmentUri(Long.parseLong(accountId), Long.parseLong(id)); 221 new File(getContext().getDatabasePath(accountId + ".db_att"), id), 260 String accountId = segments.get(0);
|
WidgetProvider.java | 92 long accountId = loadAccountIdPref(context, widgetId); 95 if (accountId == Account.NO_ACCOUNT || mailboxId == Mailbox.NO_MAILBOX) { 96 LogUtils.d(LOG_TAG, "Couldn't load account or mailbox. accountId: %d" + 97 " mailboxId: %d widgetId %d", accountId, mailboxId, widgetId); 101 accountId = migrateLegacyWidgetAccountId(accountId); 102 mailboxId = migrateLegacyWidgetMailboxId(mailboxId, accountId); 105 final com.android.mail.providers.Account uiAccount = getAccount(context, accountId); 122 private static long migrateLegacyWidgetAccountId(long accountId) { 123 if (accountId == Account.ACCOUNT_ID_COMBINED_VIEW) [all...] |
/packages/apps/Exchange/tests/src/com/android/exchange/provider/ |
MailboxUtilitiesTests.java | [all...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
Utility.java | 261 long accountId = c2.getLong(Account.ID_PROJECTION_COLUMN); 262 if (accountId != allowAccountId) { 263 Account account = Account.restoreAccountWithId(context, accountId); [all...] |
AttachmentUtilities.java | 143 public static Uri getAttachmentUri(long accountId, long id) { 148 .appendPath(Long.toString(accountId)) 161 public static File getAttachmentFilename(Context context, long accountId, long attachmentId) { 162 return new File(getAttachmentDirectory(context, accountId), Long.toString(attachmentId)); 172 public static File getAttachmentDirectory(Context context, long accountId) { 173 return context.getDatabasePath(accountId + ".db_att"); 285 * @param accountId the account for the message 288 public static void deleteAllAttachmentFiles(Context context, long accountId, long messageId) { 295 File attachmentFile = getAttachmentFilename(context, accountId, attachmentId); 310 * @param accountId the account for the messag [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSecurity.java | 75 * @param accountId The account of interest 81 public static Intent actionUpdateSecurityIntent(Context context, long accountId, 84 intent.putExtra(EXTRA_ACCOUNT_ID, accountId); 94 public static Intent actionDevicePasswordExpirationIntent(Context context, long accountId, 97 intent.putExtra(EXTRA_ACCOUNT_ID, accountId); 108 final long accountId = i.getLongExtra(EXTRA_ACCOUNT_ID, -1); 114 if (accountId == -1) { 119 mAccount = Account.restoreAccountWithId(AccountSecurity.this, accountId);
|
AccountSettings.java | 140 public static void actionSettings(Activity fromActivity, long accountId) { 141 fromActivity.startActivity(createAccountSettingsIntent(accountId, null, null)); 149 public static Intent createAccountSettingsIntent(long accountId, 153 IntentUtilities.setAccountId(b, accountId); 167 final long accountId = IntentUtilities.getAccountIdFromIntent(intent); 168 if (accountId < 0) { 176 accountId, IntentUtilities.getAccountNameFromIntent(intent))); 505 final long accountId = c.getLong(Account.CONTENT_ID_COLUMN); 506 if (accountId == deletingAccountId) { 513 newHeader.id = accountId; [all...] |
AccountSettingsFragment.java | 84 private static final String BUNDLE_KEY_ACCOUNT_ID = "AccountSettingsFragment.AccountId"; 175 public static Bundle buildArguments(long accountId, String email) { 177 b.putLong(BUNDLE_KEY_ACCOUNT_ID, accountId); 212 long accountId = b.getLong(BUNDLE_KEY_ACCOUNT_ID, -1); 214 if (accountId >= 0 && !mLoaded) { 215 startLoadingAccount(accountId); 440 public void startLoadingAccount(long accountId) { 443 AsyncTask.THREAD_POOL_EXECUTOR, accountId); 455 final long accountId = params[0]; 456 Account account = Account.restoreAccountWithId(mContext, accountId); [all...] |
/frameworks/av/drm/common/ |
IDrmManagerService.cpp | 354 const String8 accountId = drmRights.getAccountId(); 355 data.writeString8((accountId == String8("")) ? String8("NULL") : accountId); [all...] |
/packages/apps/Email/src/com/android/email/ |
SecurityPolicy.java | 449 public static void setAccountHoldFlag(Context context, long accountId, boolean newState) { 450 Account account = Account.restoreAccountWithId(context, accountId); 485 * @param accountId the account for which sync cannot proceed 487 public void policiesRequired(long accountId) { 488 Account account = Account.restoreAccountWithId(mContext, accountId); 585 public void setAccountPolicy(long accountId, Policy policy, String securityKey) { 586 Account account = Account.restoreAccountWithId(mContext, accountId); 618 Uri uri = EmailProvider.uiUri("uiaccountdata", accountId); 701 long accountId = c.getLong(EmailContent.ID_PROJECTION_COLUMN); 702 Uri uri = EmailProvider.uiUri("uiaccountdata", accountId); [all...] |
NotificationController.java | 124 * @param accountId The id of the account this notification is being built for. 135 private NotificationCompat.Builder createBaseAccountNotificationBuilder(long accountId, 158 Account account = Account.restoreAccountWithId(mContext, accountId); 168 * @param accountId The account id this notification is being built for. 175 private void showNotification(long accountId, String ticker, String title, 177 final NotificationCompat.Builder builder = createBaseAccountNotificationBuilder(accountId, 249 for (final Long accountId : sRefreshAccountSet) { 250 refreshNotificationsForAccountInternal(context, accountId); 263 * @param accountId The ID of the account to register the observer for. May be 267 private void registerMessageNotification(final long accountId) { [all...] |
/packages/apps/Email/src/com/android/email/service/ |
EmailBroadcastProcessorService.java | 362 long accountId = c.getLong(Account.CONTENT_ID_COLUMN); 363 Uri uri = ContentUris.withAppendedId(Account.CONTENT_URI, accountId);
|
AttachmentDownloadService.java | 180 final long accountId; 193 accountId = msg.mAccountKey; 196 accountId = messageId = -1; 206 accountId = orig.accountId; 354 if (downloadsForAccount(req.accountId) >= MAX_SIMULTANEOUS_DOWNLOADS_PER_ACCOUNT) { 357 req.accountId); 433 * @param accountId the id of the account 436 /*package*/ synchronized int downloadsForAccount(long accountId) { 439 if (req.accountId == 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/Exchange/src/com/android/exchange/provider/ |
ExchangeDirectoryProvider.java | 198 Long accountId = mAccountIdMap.get(accountName); 199 if (accountId == null) { 200 accountId = Utility.getFirstRowLong(context, Account.CONTENT_URI, 203 if (accountId != -1) { 204 mAccountIdMap.put(accountName, accountId); 207 return accountId; 303 final long accountId = getAccountIdByName(getContext(), accountName); 304 if (accountId == -1) { 310 final GalResult galResult = EasSyncService.searchGal(getContext(), accountId,
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
Account.java | 234 public static boolean isNormalAccount(long accountId) { 235 return (accountId > 0L) && (accountId != ACCOUNT_ID_COMBINED_VIEW); 472 public static boolean supportsServerSearch(Context context, long accountId) { 473 Account account = Account.restoreAccountWithId(context, accountId); 558 final long accountId = cursor.getLong(Account.ID_PROJECTION_COLUMN); 560 if (accountId == lastUsedAccountId) { 561 return accountId; 565 firstAccount = accountId; 581 * @param accountId the id of the account to be examine [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
ContactAggregator.java | 664 long accountId = 0; 672 accountId = cursor.getLong(RawContactIdAndAccountQuery.ACCOUNT_ID); 678 aggregateContact(txContext, db, rawContactId, accountId, contactId, 717 long rawContactId, long accountId, long currentContactId, MatchCandidateList candidates, 752 !canJoinIntoContact(db, contactId, rawContactId, accountId)) { [all...] |
/frameworks/base/services/java/com/android/server/accounts/ |
AccountManagerService.java | 379 final long accountId = cursor.getLong(0); 386 db.delete(TABLE_ACCOUNTS, ACCOUNTS_ID + "=" + accountId, null); 709 long accountId = db.insert(TABLE_ACCOUNTS, ACCOUNTS_NAME, values); 710 if (accountId < 0) { 718 if (insertExtraLocked(db, accountId, key, value) < 0) { 761 private long insertExtraLocked(SQLiteDatabase db, long accountId, String key, String value) { 764 values.put(EXTRAS_ACCOUNTS_ID, accountId); [all...] |