/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); 151 public static void setAccountPolicy(Context context, long accountId, Policy policy, argument 153 setAccountPolicy2(context, accountId, policy, securityKey, true /* notify */); 156 public static void setAccountPolicy2(Context context, long accountId, Policy policy, argument 159 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/provider_src/com/android/email/ |
H A D | NotificationController.java | 28 void showLoginFailedNotificationSynchronous(long accountId, boolean incoming); argument 29 void cancelLoginFailedNotification(long accountId); argument 36 void showPasswordExpiringNotificationSynchronous(long accountId); argument 37 void showPasswordExpiredNotificationSynchronous(long accountId); argument
|
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)];
|
/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/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ |
H A D | RawContactMatcher.java | 168 private MatchScore getMatchingScore(long rawContactId, long contactId, long accountId) { argument 173 matchingScore.reset(rawContactId, contactId, accountId); 175 matchingScore = new MatchScore(rawContactId, contactId, accountId); 191 public void matchName(long rawContactId, long contactId, long accountId, int argument 199 updatePrimaryScore(rawContactId, contactId, accountId, maxScore); 239 updatePrimaryScore(rawContactId, contactId, accountId, score); 242 public void matchIdentity(long rawContactId, long contactId, long accountId) { argument 243 updateSecondaryScore(rawContactId, contactId, accountId, IDENTITY_MATCH_SCORE); 246 public void updateScoreWithPhoneNumberMatch(long rawContactId, long contactId, long accountId) { argument 247 updateSecondaryScore(rawContactId, contactId, accountId, PHONE_MATCH_SCOR 250 updateScoreWithEmailMatch(long rawContactId, long contactId, long accountId) argument 254 updateScoreWithNicknameMatch(long rawContactId, long contactId, long accountId) argument 258 updatePrimaryScore(long rawContactId, long contactId, long accountId, int score) argument 262 updateSecondaryScore(long rawContactId, long contactId, long accountId, int score) argument 267 keepIn(long rawContactId, long contactId, long accountId) argument 271 keepOut(long rawContactId, long contactId, long accountId) argument 356 matchNoName(Long rawContactId, Long contactId, Long accountId) argument [all...] |
H A D | MatchScore.java | 38 public MatchScore(long rawContactId, long contactId, long accountId) { argument 41 this.mAccountId = accountId; 50 public void reset(long rawContactId, long contactId, long accountId) { argument 53 this.mAccountId = accountId;
|
/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/ |
H A D | BluetoothMapIMProvider.java | 100 * @param accountId the ID of the account that changed. Null is a valid value, 101 * if accountId is unknown or multiple accounts changed. 103 protected void onAccountChanged(String accountId) { argument 109 if(accountId == null){ 112 newUri = BluetoothMapContract.buildAccountUriwithId(mAuthority, accountId); 115 if(D) Log.d(TAG,"onAccountChanged() accountId = " + accountId + " URI: " + newUri); 122 * @param accountId Null is a valid value, if accountId is unknown, but 127 protected void onMessageChanged(String accountId, Strin argument 158 onContactChanged(String accountId, String contactId) argument 231 deleteMessage(String accountId, String messageId) argument 279 insertMessage(String accountId, ContentValues values) argument 387 queryMessage(String accountId, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 435 queryConversation(String accountId, Long threadId, Boolean read, Long periodEnd, Long periodBegin, String searchString, String[] projection, String sortOrder) argument 459 queryConvoContact(String accountId, Long contactId, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 543 updateAccount(String accountId, Integer flagExpose) argument 553 updateMessage(String accountId, Long messageId, Long folderId, Boolean flagRead) argument 646 syncFolder(long accountId, long folderId) argument [all...] |
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 | 172 public static Uri buildAccountUriwithId(String authority, String accountId) { argument 176 .appendPath(accountId) 194 public static Uri buildMessageUri(String authority, String accountId) { argument 197 .appendPath(accountId) 206 public static Uri buildMessageUriWithId(String authority, String accountId,String messageId) { argument 209 .appendPath(accountId) 219 public static Uri buildFolderUri(String authority, String accountId) { argument 222 .appendPath(accountId) 232 public static Uri buildConversationUri(String authority, String accountId) { argument 235 .appendPath(accountId) 257 buildConvoContactsUri(String authority, String accountId) argument 269 buildConvoContactsUriWithId(String authority, String accountId, String contactId) argument [all...] |
/packages/apps/Email/provider_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/Email/provider_src/com/android/email/service/ |
H A D | PolicyService.java | 53 public void setAccountHoldFlag(long accountId, boolean newState) { 54 SecurityPolicy.setAccountHoldFlag(mContext, accountId, newState); 70 public void setAccountPolicy(long accountId, Policy policy, String securityKey) { 71 setAccountPolicy2(accountId, policy, securityKey, true /* notify */); 75 public void setAccountPolicy2(long accountId, Policy policy, String securityKey, 78 mSecurityPolicy.setAccountPolicy(accountId, policy, securityKey, notify);
|
H A D | AccountService.java | 43 public int getAccountColor(long accountId) { 44 return ResourceHelper.getInstance(mContext).getAccountColor(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/ |
H A D | EmailNotificationController.java | 121 * @param accountId The id of the account this notification is being built for. 131 private NotificationCompat.Builder createBaseAccountNotificationBuilder(long accountId, argument 153 Account account = Account.restoreAccountWithId(mContext, accountId); 163 * @param accountId The account id this notification is being built for. 170 private void showNotification(long accountId, String ticker, String title, argument 172 final NotificationCompat.Builder builder = createBaseAccountNotificationBuilder(accountId, 245 for (final Long accountId : sRefreshAccountSet) { 246 refreshNotificationsForAccountInternal(context, accountId); 259 * @param accountId The ID of the account to register the observer for. May be 263 private void registerMessageNotification(final long accountId) { argument 298 unregisterMessageNotification(final long accountId) argument 406 getLoginFailedNotificationId(long accountId) argument 416 showLoginFailedNotificationSynchronous(long accountId, boolean incoming) argument 443 cancelLoginFailedNotification(long accountId) argument 454 showPasswordExpiringNotificationSynchronous(long accountId) argument 475 showPasswordExpiredNotificationSynchronous(long accountId) argument 593 refreshNotificationsForAccount(final Context context, final long accountId) argument 609 refreshNotificationsForAccountInternal(final Context context, final long accountId) argument 752 MessageContentObserver( final Handler handler, final Context context, final long accountId) argument [all...] |
/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/Email/src/com/android/email2/ui/ |
H A D | MailActivityEmail.java | 98 private Intent getViewIntent(long accountId, long mailboxId) { argument 102 EmailProvider.uiUri("uiaccount", accountId), 107 LogUtils.e(LOG_TAG, "Null account cursor for mAccountId %d", accountId); 127 accountId, mailboxId); 137 accountId, mailboxId);
|
/packages/services/Telephony/src/com/android/phone/vvm/omtp/fetch/ |
H A D | FetchVoicemailReceiver.java | 96 String accountId = cursor.getString(PHONE_ACCOUNT_ID); 97 if (TextUtils.isEmpty(accountId)) { 100 accountId = telephonyManager.getSimSerialNumber(); 102 if (TextUtils.isEmpty(accountId)) { 108 mPhoneAccount = PhoneUtils.makePstnPhoneAccountHandle(accountId);
|