Searched refs:accountId (Results 1 - 25 of 72) sorted by relevance

123

/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
H A DIAccountService.aidl22 oneway void notifyLoginFailed(long accountId, String reason);
23 oneway void notifyLoginSucceeded(long accountId);
27 int getAccountColor(long accountId);
H A DIPolicyService.aidl22 void setAccountHoldFlag(long accountId, boolean newState);
23 void setAccountPolicy(long accountId, in Policy policy, String securityKey);
H A DIEmailService.aidl36 oneway void updateFolderList(long accountId);
38 boolean createFolder(long accountId, String name);
39 boolean deleteFolder(long accountId, String name);
40 boolean renameFolder(long accountId, String oldName, String newName);
44 oneway void hostChanged(long accountId);
57 int searchMessages(long accountId, in SearchParams params, long destMailboxId);
59 void sendMail(long accountId);
H A DAccountServiceProxy.java46 public void notifyLoginFailed(final long accountId, final String reason) { argument
50 mService.notifyLoginFailed(accountId, reason);
56 public void notifyLoginSucceeded(final long accountId) { argument
60 mService.notifyLoginSucceeded(accountId);
79 public int getAccountColor(final long accountId) { argument
83 mReturn = mService.getAccountColor(accountId);
H A DEmailServiceProxy.java250 * @param accountId the id of the account whose folder list is to be updated
253 public void updateFolderList(final long accountId) throws RemoteException { argument
257 mService.updateFolderList(accountId);
283 * @param accountId the id of the account whose host information has changed
286 public void hostChanged(final long accountId) throws RemoteException { argument
290 mService.hostChanged(accountId);
330 * @param accountId the account in which the folder is to be created
334 public boolean createFolder(long accountId, String name) throws RemoteException { argument
341 * @param accountId the account in which the folder resides
345 public boolean deleteFolder(long accountId, Strin argument
357 renameFolder(long accountId, String oldName, String newName) argument
395 searchMessages(final long accountId, final SearchParams searchParams, final long destMailboxId) argument
417 sendMail(final long accountId) argument
[all...]
H A DPolicyServiceProxy.java71 public void setAccountPolicy(final long accountId, final Policy policy, argument
76 mService.setAccountPolicy(accountId, policy, securityKey);
127 public static void setAccountPolicy(Context context, long accountId, Policy policy, argument
130 new PolicyServiceProxy(context).setAccountPolicy(accountId, policy, securityKey);
/packages/apps/Email/tests/src/com/android/email/activity/
H A DMailboxFinderTest.java108 private long createMailbox(long accountId, int mailboxType) { argument
111 box.mAccountKey = accountId;
122 private void createAndStartFinder(final long accountId, final int mailboxType) argument
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, mCallbac
207 prepareForNetworkLookupTest(final long accountId) argument
407 updateMailboxList(long accountId) argument
436 onAccountSecurityHold(long accountId) argument
442 onMailboxFound(long accountId, long mailboxId) argument
449 onMailboxNotFound(long accountId) argument
[all...]
H A DMessagesAdapterTests.java53 private long createMailbox(long accountId, int type) { argument
54 Mailbox box = ProviderTestUtils.setupMailbox("name", accountId, false, mProviderContext);
60 private MessagesAdapter.MessagesCursor getLoaderResult(long accountId, long mailboxId) { argument
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, Mailbo
[all...]
/packages/apps/Email/src/com/android/email/
H A DResourceHelper.java59 /* package */ int getAccountColorIndex(long accountId) { argument
62 return Math.abs((int) ((accountId - 1) % mAccountColors.length));
68 public int getAccountColor(long accountId) { argument
69 return mAccountColors[getAccountColorIndex(accountId)];
76 public int getAccountColorId(long accountId) { argument
77 return mAccountColorArray.getResourceId(getAccountColorIndex(accountId),
84 public Paint getAccountColorPaint(long accountId) { argument
85 return mAccountColorPaints[getAccountColorIndex(accountId)];
H A DNotificationController.java124 * @param accountId The id of the account this notification is being built for.
135 private NotificationCompat.Builder createBaseAccountNotificationBuilder(long accountId, argument
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, argument
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) { argument
302 unregisterMessageNotification(final long accountId) argument
409 getLoginFailedNotificationId(long accountId) argument
418 showLoginFailedNotification(long accountId) argument
422 showLoginFailedNotification(long accountId, String reason) argument
439 cancelLoginFailedNotification(long accountId) argument
449 showPasswordExpiringNotification(long accountId) argument
469 showPasswordExpiredNotification(long accountId) argument
577 refreshNotificationsForAccount(final Context context, final long accountId) argument
593 refreshNotificationsForAccountInternal(final Context context, final long accountId) argument
696 MessageContentObserver( final Handler handler, final Context context, final long accountId) argument
[all...]
/packages/apps/Email/tests/src/com/android/email/
H A DResourceHelperTest.java35 for (long accountId = -1; accountId < 100; accountId++) {
37 Integer color = mResourceHelper.getAccountColor(accountId);
38 Paint paint = mResourceHelper.getAccountColorPaint(accountId);
H A DMessageListContextTests.java27 long accountId = 123;
29 MessageListContext original = MessageListContext.forMailbox(accountId, mailboxId);
41 long accountId = 123;
44 MessageListContext original = MessageListContext.forSearch(accountId, mailboxId, params);
H A DUtilityLargeTest.java64 protected void performAction(long accountId) {
66 ids.add(accountId);
/packages/apps/Exchange/tests/src/com/android/exchange/provider/
H A DEmailContentSetupUtils.java54 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, argument
56 return setupMailbox(name, accountId, saveIt, context, Mailbox.TYPE_MAIL, null);
59 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, argument
61 return setupMailbox(name, accountId, saveIt, context, type, null);
64 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, argument
69 box.mAccountKey = accountId;
86 public static Message setupMessage(String name, long accountId, long mailboxId, argument
89 return setupMessage(name, accountId, mailboxId, addBody, saveIt, context, true, true);
95 public static Message setupMessage(String name, long accountId, long mailboxId, argument
101 message.mAccountKey = accountId;
[all...]
/packages/apps/Email/src/com/android/email/service/
H A DAccountService.java44 public void notifyLoginFailed(long accountId, String reason) {
46 nc.showLoginFailedNotification(accountId, reason);
50 public void notifyLoginSucceeded(long accountId) {
51 NotificationController.getInstance(mContext).cancelLoginFailedNotification(accountId);
60 public int getAccountColor(long accountId) {
61 return ResourceHelper.getInstance(mContext).getAccountColor(accountId);
H A DPolicyService.java50 public void setAccountHoldFlag(long accountId, boolean newState) {
51 SecurityPolicy.setAccountHoldFlag(mContext, accountId, newState);
67 public void setAccountPolicy(long accountId, Policy policy, String securityKey) {
69 mSecurityPolicy.setAccountPolicy(accountId, policy, securityKey);
/packages/apps/Email/src/com/android/email/provider/
H A DWidgetProvider.java92 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) { argument
123 if (accountId
133 migrateLegacyWidgetMailboxId(long mailboxId, long accountId) argument
142 getAccount(Context context, long accountId) argument
[all...]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DAttachmentUtilities.java143 public static Uri getAttachmentUri(long accountId, long id) { argument
148 .appendPath(Long.toString(accountId))
161 public static File getAttachmentFilename(Context context, long accountId, long attachmentId) { argument
162 return new File(getAttachmentDirectory(context, accountId), Long.toString(attachmentId));
172 public static File getAttachmentDirectory(Context context, long accountId) { argument
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) { argument
295 File attachmentFile = getAttachmentFilename(context, accountId, attachmentId);
310 * @param accountId th
313 deleteAllCachedAttachmentFiles(Context context, long accountId, long messageId) argument
341 deleteAllMailboxAttachmentFiles(Context context, long accountId, long mailboxId) argument
362 deleteAllAccountAttachmentFiles(Context context, long accountId) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/mock/
H A DMockUiProvider.java68 private static void initializeAccount(int accountId, argument
71 createFolderDetailsMap(0, accountId, "zero", true, 0, 2);
75 final Map<String, Object> accountDetailsMap = createAccountDetailsMap(accountId,
81 createFolderDetailsMap(2, accountId, "two", 2, 2);
87 ImmutableList.of(createFolderDetailsMap(10, accountId, "zeroChild0", 0, 0),
88 createFolderDetailsMap(11, accountId, "zeroChild1", 0, 0)));
93 conversations.add(createConversationDetailsMap(accountId, name.hashCode(),
100 createMessageDetailsMap(accountId, "zeroConv0".hashCode(), "zeroConv0", 1, false);
107 createMessageDetailsMap(accountId, "zeroConv1".hashCode(), "zeroConv1", 1, false);
110 createMessageDetailsMap(accountId, "zeroConv1
179 createConversationDetailsMap(int accountId, int conversationId, String subject, int hasAttachments, int messageCount, int draftCount) argument
247 createMessageDetailsMap(int accountId, int messageId, String subject, int hasAttachments, boolean addReplyTo) argument
277 createFolderDetailsMap(int folderId, int accountId, String name, int unread, int total) argument
282 createFolderDetailsMap(int folderId, int accountId, String name, boolean hasChildren, int unread, int total) argument
306 createAccountDetailsMap(int accountId,String defaultInbox) argument
391 getMockAccountUri(int accountId) argument
395 getMockAccountFolderUri(int accountId, int folderId) argument
399 getMockConversationUri(int accountId, int conversationId) argument
403 getMockMessageUri(int accountId, int messageId) argument
[all...]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
H A DAccount.java234 public static boolean isNormalAccount(long accountId) { argument
235 return (accountId > 0L) && (accountId != ACCOUNT_ID_COMBINED_VIEW);
472 public static boolean supportsServerSearch(Context context, long accountId) { argument
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 th
584 getProtocol(Context context, long accountId) argument
643 isValidId(Context context, long accountId) argument
652 isSecurityHold(Context context, long accountId) argument
662 getInboxId(Context context, long accountId) argument
702 isAutomaticSyncDisabledByRoaming(Context context, long accountId) argument
[all...]
H A DMessageChangeLogTable.java73 * @param accountId The account we want to update.
77 final String accountId) {
79 args[0] = accountId;
100 * @param accountId The account we want to update.
104 final String[] projection, final String accountId) {
105 final String[] args = { accountId, STATUS_PROCESSING_STRING };
194 * @param accountId The account we're interested in.
198 final String[] projection, final long accountId) {
199 final String accountIdString = String.valueOf(accountId);
76 startProcessing(final ContentResolver cr, final Uri uri, final String accountId) argument
103 getRowsToProcess(final ContentResolver cr, final Uri uri, final String[] projection, final String accountId) argument
197 getCursor(final ContentResolver cr, final Uri uri, final String[] projection, final long accountId) argument
H A DMailboxUtilities.java164 private static void setAccountSyncAdapterFlag(Context context, long accountId, boolean start) { argument
165 Account account = Account.restoreAccountWithId(context, accountId);
178 * @param accountId the account that is starting to change its mailbox list
180 public static void startMailboxChanges(Context context, long accountId) { argument
181 setAccountSyncAdapterFlag(context, accountId, true);
187 * @param accountId the account that is finished with changes to its mailbox list
189 public static void endMailboxChanges(Context context, long accountId) { argument
190 setAccountSyncAdapterFlag(context, accountId, false);
197 * @param accountId the account whose mailboxes are to be checked
200 public static void checkMailboxConsistency(Context context, long accountId) { argument
247 setupHierarchicalNames(Context context, long accountId) argument
[all...]
/packages/apps/Email/src/com/android/email/activity/
H A DActivityHelper.java96 public static void showSecurityHoldDialog(Activity callerActivity, long accountId) { argument
98 AccountSecurity.actionUpdateSecurityIntent(callerActivity, accountId, true));
/packages/apps/Exchange/tests/src/com/android/exchange/utility/
H A DExchangeTestCase.java45 for (Long accountId: mCreatedAccountIds) {
46 resolver.delete(ContentUris.withAppendedId(Account.CONTENT_URI, accountId), null,
/packages/apps/Exchange/src/com/android/exchange/
H A DExchangeService.java205 public void updateFolderList(long accountId) throws RemoteException {
206 reloadFolderList(ExchangeService.this, accountId, false);
210 public void hostChanged(long accountId) throws RemoteException {
223 } else if (error != null && m.mAccountKey == accountId) {
229 exchangeService.stopAccountSyncs(accountId, true);
253 public boolean createFolder(long accountId, String name) throws RemoteException {
258 public boolean deleteFolder(long accountId, String name) throws RemoteException {
263 public boolean renameFolder(long accountId, String oldName, String newName)
280 public int searchMessages(long accountId, SearchParams searchParams, long destMailboxId) {
283 return Search.searchMessages(exchangeService, accountId, searchParam
563 reloadFolderListFailed(long accountId) argument
567 reloadFolderList(Context context, long accountId, boolean force) argument
[all...]

Completed in 789 milliseconds

123