/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/ |
H A D | IPolicyService.aidl | 22 void setAccountHoldFlag(long accountId, boolean newState); 24 void setAccountPolicy(long accountId, in Policy policy, String securityKey); 26 void setAccountPolicy2(long accountId, in Policy policy, String securityKey, boolean notify);
|
H A D | IEmailService.aidl | 30 oneway void loadAttachment(IEmailServiceCallback cb, long accountId, long attachmentId, 33 void updateFolderList(long accountId); 37 void sendMail(long accountId); 39 int sync(long accountId, inout Bundle syncExtras); 44 void pushModify(long accountId); 49 int searchMessages(long accountId, in SearchParams params, long destMailboxId);
|
H A D | IAccountService.aidl | 22 int getAccountColor(long accountId);
|
H A D | PolicyServiceProxy.java | 71 public void setAccountPolicy(final long accountId, final Policy policy, argument 73 setAccountPolicy2(accountId, policy, securityKey, true /* notify */); 77 public void setAccountPolicy2(final long accountId, final Policy policy, argument 82 mService.setAccountPolicy2(accountId, policy, securityKey, notify); 133 public static void setAccountPolicy(Context context, long accountId, Policy policy, argument 135 setAccountPolicy2(context, accountId, policy, securityKey, true /* notify */); 138 public static void setAccountPolicy2(Context context, long accountId, Policy policy, argument 141 new PolicyServiceProxy(context).setAccountPolicy2(accountId, policy, securityKey,
|
H A D | EmailServiceProxy.java | 111 * @param accountId the id of the account in question 117 public void loadAttachment(final IEmailServiceCallback cb, final long accountId, argument 124 mService.loadAttachment(cb, accountId, attachmentId, background); 205 * @param accountId the id of the account whose folder list is to be updated 208 public void updateFolderList(final long accountId) throws RemoteException { argument 212 mService.updateFolderList(accountId); 281 * @param accountId the id of the account to be searched 287 public int searchMessages(final long accountId, final SearchParams searchParams, argument 292 mReturn = mService.searchMessages(accountId, searchParams, destMailboxId); 306 * @param accountId th 309 sendMail(final long accountId) argument 324 pushModify(final long accountId) argument 334 sync(final long accountId, final Bundle syncExtras) argument [all...] |
H A D | AccountServiceProxy.java | 47 public int getAccountColor(final long accountId) { argument 51 mReturn = mService.getAccountColor(accountId);
|
/packages/apps/Email/src/com/android/email/ |
H A D | ResourceHelper.java | 59 /* 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 D | NotificationController.java | 121 * @param accountId The id of the account this notification is being built for. 132 private NotificationCompat.Builder createBaseAccountNotificationBuilder(long accountId, argument 155 Account account = Account.restoreAccountWithId(mContext, accountId); 165 * @param accountId The account id this notification is being built for. 172 private void showNotification(long accountId, String ticker, String title, argument 174 final NotificationCompat.Builder builder = createBaseAccountNotificationBuilder(accountId, 246 for (final Long accountId : sRefreshAccountSet) { 247 refreshNotificationsForAccountInternal(context, accountId); 260 * @param accountId The ID of the account to register the observer for. May be 264 private void registerMessageNotification(final long accountId) { argument 299 unregisterMessageNotification(final long accountId) argument 406 getLoginFailedNotificationId(long accountId) argument 415 showLoginFailedNotificationSynchronous(long accountId, boolean incoming) argument 441 cancelLoginFailedNotification(long accountId) argument 451 showPasswordExpiringNotificationSynchronous(long accountId) argument 471 showPasswordExpiredNotificationSynchronous(long accountId) argument 583 refreshNotificationsForAccount(final Context context, final long accountId) argument 599 refreshNotificationsForAccountInternal(final Context context, final long accountId) argument 741 MessageContentObserver( final Handler handler, final Context context, final long accountId) argument [all...] |
/packages/apps/Email/tests/src/com/android/email/ |
H A D | ResourceHelperTest.java | 37 for (long accountId = -1; accountId < 100; accountId++) { 39 Integer color = mResourceHelper.getAccountColor(accountId); 40 Paint paint = mResourceHelper.getAccountColorPaint(accountId);
|
/packages/apps/Exchange/tests/src/com/android/exchange/provider/ |
H A D | EmailContentSetupUtils.java | 54 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/Exchange/src/com/android/exchange/service/ |
H A D | PingSyncSynchronizer.java | 292 * @param accountId The id for the account we're interested in. 297 private AccountSyncState getAccountState(final long accountId, final boolean createIfNeeded) { argument 299 AccountSyncState state = mAccountStateMap.get(accountId); 301 LogUtils.d(TAG, "PSS adding account state for %d", accountId); 303 mAccountStateMap.put(accountId, state); 316 * @param accountId The id for the account we're removing. 318 private void removeAccount(final long accountId) { argument 320 LogUtils.d(TAG, "PSS removing account state for %d", accountId); 321 mAccountStateMap.delete(accountId); 328 public void syncStart(final long accountId) { argument 357 pingEnd(final long accountId, final android.accounts.Account amAccount) argument 386 pushStop(final long accountId) argument [all...] |
H A D | EasService.java | 87 public void loadAttachment(final IEmailServiceCallback callback, final long accountId, 90 final EasLoadAttachment operation = new EasLoadAttachment(EasService.this, accountId, 96 public void updateFolderList(final long accountId) { 97 final EasFolderSync operation = new EasFolderSync(EasService.this, accountId); 101 public void sendMail(final long accountId) { 106 public int sync(final long accountId, Bundle syncExtras) { 107 EasFullSyncOperation op = new EasFullSyncOperation(EasService.this, accountId, syncExtras); 112 public void pushModify(final long accountId) { 113 LogUtils.d(TAG, "IEmailService.pushModify: %d", accountId); 114 final Account account = Account.restoreAccountWithId(EasService.this, accountId); 400 searchGal(final Context context, final long accountId, final String filter, final int limit) argument [all...] |
/packages/apps/Email/src/com/android/email/service/ |
H A D | PolicyService.java | 51 public void setAccountHoldFlag(long accountId, boolean newState) { 52 SecurityPolicy.setAccountHoldFlag(mContext, accountId, newState); 68 public void setAccountPolicy(long accountId, Policy policy, String securityKey) { 69 setAccountPolicy2(accountId, policy, securityKey, true /* notify */); 73 public void setAccountPolicy2(long accountId, Policy policy, String securityKey, 76 mSecurityPolicy.setAccountPolicy(accountId, policy, securityKey, notify);
|
H A D | AccountService.java | 44 public int getAccountColor(long accountId) { 45 return ResourceHelper.getInstance(mContext).getAccountColor(accountId);
|
/packages/apps/Email/src/com/android/email/provider/ |
H A D | 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) { argument 123 if (accountId 133 migrateLegacyWidgetMailboxId(long mailboxId, long accountId) argument 142 getAccount(Context context, long accountId) argument [all...] |
/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/ |
H A D | BluetoothMapEmailProvider.java | 68 * @param accountId the ID of the account to which the message belong 77 abstract protected void WriteMessageToStream(long accountId, long messageId, argument 147 long accountId = Long.valueOf(getAccountId(uri)); 148 UpdateMimeMessageFromStream(fIn, accountId, messageId); 172 * @param accountId the accountId 175 abstract protected void UpdateMimeMessageFromStream(FileInputStream input, long accountId, argument 197 long accountId = Long.parseLong(getAccountId(uri)); 210 WriteMessageToStream(accountId, messageId, includeAttachments, download, fout); 234 * @param accountId th 237 onAccountChanged(String accountId) argument 260 onMessageChanged(String accountId, String messageId) argument 426 deleteMessage(String accountId, String messageId) argument 474 insertMessage(String accountId, String folderId) argument 543 queryFolder(String accountId, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 563 queryMessage(String accountId, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 628 updateAccount(String accountId, int flagExpose) argument 638 updateMessage(String accountId, Long messageId, Long folderId, Boolean flagRead) argument 676 syncFolder(long accountId, long folderId) argument [all...] |
H A D | BluetoothMapContract.java | 124 public static Uri buildAccountUriwithId(String authority, String accountId) { argument 128 .appendPath(accountId) 146 public static Uri buildMessageUri(String authority, String accountId) { argument 149 .appendPath(accountId) 158 public static Uri buildMessageUriWithId(String authority, String accountId,String messageId) { argument 161 .appendPath(accountId) 171 public static Uri buildFolderUri(String authority, String accountId) { argument 174 .appendPath(accountId)
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
H A D | AttachmentUtilities.java | 141 public static Uri getAttachmentUri(long accountId, long id) { argument 146 .appendPath(Long.toString(accountId)) 153 public static Uri getAttachmentThumbnailUri(long accountId, long id, long width, long height) { argument 158 .appendPath(Long.toString(accountId)) 173 public static File getAttachmentFilename(Context context, long accountId, long attachmentId) { argument 174 return new File(getAttachmentDirectory(context, accountId), Long.toString(attachmentId)); 184 public static File getAttachmentDirectory(Context context, long accountId) { argument 185 return context.getDatabasePath(accountId + ".db_att"); 297 * @param accountId the account for the message 300 public static void deleteAllAttachmentFiles(Context context, long accountId, lon argument 325 deleteAllCachedAttachmentFiles(Context context, long accountId, long messageId) argument 353 deleteAllMailboxAttachmentFiles(Context context, long accountId, long mailboxId) argument 374 deleteAllAccountAttachmentFiles(Context context, long accountId) argument [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
H A D | HeadlessAccountSettingsLoader.java | 24 public static Uri getIncomingSettingsUri(long accountId) { argument 27 IntentUtilities.setAccountId(baseUri, accountId); 31 public static Uri getOutgoingSettingsUri(long accountId) { argument 34 IntentUtilities.setAccountId(baseUri, accountId);
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
H A D | PhoneAccountUtils.java | 35 String accountId) { 36 if (TextUtils.isEmpty(componentString) || TextUtils.isEmpty(accountId)) { 40 return new PhoneAccountHandle(componentName, accountId); 34 getAccount(String componentString, String accountId) argument
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/mock/ |
H A D | MockUiProvider.java | 68 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 246 createMessageDetailsMap(int accountId, int messageId, String subject, int hasAttachments, boolean addReplyTo) argument 276 createFolderDetailsMap(int folderId, int accountId, String name, int unread, int total) argument 281 createFolderDetailsMap(int folderId, int accountId, String name, boolean hasChildren, int unread, int total) argument 301 createAccountDetailsMap(int accountId,String defaultInbox) argument 388 getMockAccountUri(int accountId) argument 392 getMockAccountFolderUri(int accountId, int folderId) argument 396 getMockConversationUri(int accountId, int conversationId) argument 400 getMockMessageUri(int accountId, int messageId) argument [all...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
H A D | MessageChangeLogTable.java | 73 * @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 D | MailboxUtilities.java | 165 private static void setAccountSyncAdapterFlag(Context context, long accountId, boolean start) { argument 166 Account account = Account.restoreAccountWithId(context, accountId); 179 * @param accountId the account that is starting to change its mailbox list 181 public static void startMailboxChanges(Context context, long accountId) { argument 182 setAccountSyncAdapterFlag(context, accountId, true); 188 * @param accountId the account that is finished with changes to its mailbox list 190 public static void endMailboxChanges(Context context, long accountId) { argument 191 setAccountSyncAdapterFlag(context, accountId, false); 198 * @param accountId the account whose mailboxes are to be checked 201 public static void checkMailboxConsistency(Context context, long accountId) { argument 248 setupHierarchicalNames(Context context, long accountId) argument [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/ |
H A D | AccountPreferences.java | 65 public AccountPreferences(final Context context, final String accountId) { argument 66 super(context, buildSharedPrefsName(accountId)); 69 private static String buildSharedPrefsName(final String accountId) { argument 70 return PREFS_NAME_PREFIX + '-' + accountId;
|
/packages/apps/Exchange/tests/src/com/android/exchange/utility/ |
H A D | ExchangeTestCase.java | 45 for (Long accountId: mCreatedAccountIds) { 46 resolver.delete(ContentUris.withAppendedId(Account.CONTENT_URI, accountId), null,
|