/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/src/com/android/exchange/eas/ |
EasProvision.java | 165 final long accountId = getAccountId(); 185 PolicyServiceProxy.setAccountPolicy(mContext, accountId, mPolicy, null); 196 PolicyServiceProxy.setAccountPolicy(mContext, accountId, mPolicy, mPolicyKey);
|
EasPing.java | 192 final long accountId = getAccountId(); 195 LogUtils.i(TAG, "Ping expired for account %d", accountId); 200 LogUtils.i(TAG, "Ping found changed folders for account %d", accountId); 208 LogUtils.e(TAG, "Bad ping request for account %d", accountId); 213 "old duration %d new duration %d", accountId, mPingDuration, newDuration); 218 LogUtils.i(TAG, "Too many folders for account %d", accountId); 221 LogUtils.i(TAG, "FolderSync needed for account %d", accountId); 225 LogUtils.i(TAG, "Server error for account %d", accountId); 229 LogUtils.i(TAG, "Retryable server error for account %d", accountId);
|
EasOperation.java | 166 * @param accountId 168 protected EasOperation(final Context context, final long accountId) { 170 mAccountId = accountId; 433 final long accountId = getAccountId(); 434 if (mConnection.setProtocolVersion(protocolVersion) && accountId != Account.NOT_SAVED) { 435 final Uri uri = ContentUris.withAppendedId(Account.CONTENT_URI, accountId); [all...] |
/packages/apps/Exchange/src/com/android/exchange/service/ |
EasService.java | 74 public void sendMail(final long accountId) { 75 LogUtils.d(TAG, "IEmailService.sendMail: %d", accountId); 79 public void loadAttachment(final IEmailServiceCallback callback, final long accountId, 82 final EasLoadAttachment operation = new EasLoadAttachment(EasService.this, accountId, 88 public void updateFolderList(final long accountId) { 89 final EasFolderSync operation = new EasFolderSync(EasService.this, accountId); 94 public void sync(final long accountId, final boolean updateFolderList, 98 public void pushModify(final long accountId) { 99 LogUtils.d(TAG, "IEmailService.pushModify: %d", accountId); 100 final Account account = Account.restoreAccountWithId(EasService.this, accountId); [all...] |
PingSyncSynchronizer.java | 250 * @param accountId The id for the account we're interested in. 255 private AccountSyncState getAccountState(final long accountId, final boolean createIfNeeded) { 257 AccountSyncState state = mAccountStateMap.get(accountId); 259 LogUtils.d(TAG, "PSS adding account state for %d", accountId); 261 mAccountStateMap.put(accountId, state); 274 * @param accountId The id for the account we're removing. 276 private void removeAccount(final long accountId) { 278 LogUtils.d(TAG, "PSS removing account state for %d", accountId); 279 mAccountStateMap.delete(accountId); 286 public void syncStart(final long accountId) { [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)) 155 public static Uri getAttachmentThumbnailUri(long accountId, long id, long width, long height) { 160 .appendPath(Long.toString(accountId)) 175 public static File getAttachmentFilename(Context context, long accountId, long attachmentId) { 176 return new File(getAttachmentDirectory(context, accountId), Long.toString(attachmentId)); 186 public static File getAttachmentDirectory(Context context, long accountId) { 187 return context.getDatabasePath(accountId + ".db_att"); 299 * @param accountId the account for the message 302 public static void deleteAllAttachmentFiles(Context context, long accountId, long messageId) [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/ |
LegacyConversionsTests.java | 199 final long accountId = 1; 204 "local-message", accountId, mailboxId, false, true, mProviderContext); 210 "local-message", accountId, mailboxId, false, true, mProviderContext); 256 final long accountId = 1; 291 "local-message", accountId, mailboxId, false, true, mProviderContext); 306 final long accountId = 1; 309 "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; 250 mMockContext, Account.restoreAccountWithId(mMockContext, accountId));
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
AttachmentProviderTests.java | 648 long accountId = account.mId; 652 "msg1a", accountId, mailboxId, false, true, mMockContext); 654 "msg1b", accountId, mailboxId, false, true, mMockContext);
|
/packages/apps/Exchange/src/com/android/exchange/provider/ |
ExchangeDirectoryProvider.java | 202 Long accountId = mAccountIdMap.get(accountName); 203 if (accountId == null) { 204 accountId = Utility.getFirstRowLong(context, Account.CONTENT_URI, 207 if (accountId != -1) { 208 mAccountIdMap.put(accountName, accountId); 211 return accountId; 307 final long accountId = getAccountIdByName(getContext(), accountName); 308 if (accountId == -1) { 329 final GalResult galResult = EasSyncService.searchGal(getContext(), accountId,
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
Account.java | 236 public static boolean isNormalAccount(long accountId) { 237 return (accountId > 0L) && (accountId != ACCOUNT_ID_COMBINED_VIEW); 474 public static boolean supportsServerSearch(Context context, long accountId) { 475 Account account = Account.restoreAccountWithId(context, accountId); 560 final long accountId = cursor.getLong(Account.ID_PROJECTION_COLUMN); 562 if (accountId == lastUsedAccountId) { 563 return accountId; 567 firstAccount = accountId; 583 * @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...] |